amElnagdy/delegate-skills / skills/cline-delegate
cline-delegate
VerifiedDelegate a coding task to the Cline coding agent CLI (`cline`) as a background implementer, then review its diff and land it yourself. Use this whenever the user wants to delegate implementation work to Cline - phrasings like "have Cline implement X", "delegate this to cline", "run it through Cline", or "use cline to implement/fix/refactor" - or wants to run a queue of coding tasks through Cline while staying the reviewer. DO NOT USE for tasks small enough to do inline, or when the user wants the code written directly without delegating.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.1 KB |
| references/dispatch-and-poll.md | markdown | 8.1 KB |
| references/multi-task-queues.md | markdown | 2.2 KB |
| references/review-and-land.md | markdown | 3.6 KB |
| references/writing-the-brief.md | markdown | 5.5 KB |
| scripts/relay.mjs | script | 31.9 KB |
references/review-and-land.md
View on GitHub# Review and land
The implementer made the changes; you own the judgment. Verify against reality, never the
self-report, and read the diff as generated code because a green gate cannot catch every failure
mode.
## Check tests before trusting gates
If the diff touches existing tests, review those edits first:
- Treat unbriefed test edits as a contract change, not part of the fix.
- Treat newly skipped, disabled, or commented-out tests as failing until proven otherwise.
- Treat loosened assertions the same way: contains/truthy replacing exact matches, broadened
error types, and widened tolerances all weaken the gate.
## Re-run the gates yourself
`result.json` carries cline's claims, not evidence. Re-run the project's actual test, lint, and
build commands in the working tree and read their output. Passing is necessary, not sufficient.
## Read the diff against the brief
Start with `touchedFiles`, open the diff, and compare it to the brief:
- **Scope creep** - changes the brief excluded.
- **Scope shortfall** - missed behavior, edges, or cleanup.
- **Quiet judgment calls** - defensible but unasked decisions that need review.
## The implementer sweep
Check every diff for patterns gates often miss:
- Hardcoded success or fixture data on a real-work path.
- Catch-all error handling that returns a default instead of propagating or recovering.
- Imports, dependencies, methods, and signatures not present in the installed version.
- Unused imports, uncalled helpers, unreachable branches, and scaffolding comments.
- A second client, error idiom, or logging style beside the repo's existing one.
- Tests that assert internals instead of behavior, or near-duplicate test bodies.
- Optional parameters, config flags, and abstractions with no caller.
- Guards for impossible cases that hide trust-boundary validation.
Send anything blocking back to cline as a delta brief, or fix it in the tree, and report either
choice to the human. Run relevant guard skills if installed.
## The commit boundary
When the gates pass and the diff holds, **the orchestrator commits**, never the implementer.
Write a clear message describing what landed.
From dispatch until that commit, the uncommitted working tree is the authoritative copy of the
implementer's work - the only one you can commit from, and often the only copy at all. Never run
`git checkout`, `reset`, `clean`, or a branch switch in the workspace between those two points -
however messy an interrupted run looks, inspect it first: `git status`, `git diff`,
`git diff --cached` for anything the implementer staged (plain `git diff` is blind to the index),
and commit the intended files explicitly.
## Rework: re-dispatch a corrected brief
Re-dispatch the correction with the needed context:
```bash
echo "The fix is right, but the tests mock the DB session: use the real migrated fixture and
remove the unused import." | node "<skill-dir>/scripts/relay.mjs" --cd /path/to/repo
```
Cline's verified headless JSON path does not support session resume, so each correction is a fresh
run and its brief must restate the required context. Rework gets the same test review, diff review,
and implementer sweep.
## Surface, do not absorb
The human opted into delegation, so committing verified, gate-passing work is the contract. Keep
them in the loop when the work changes shape:
- Report design decisions and defensible-but-unrequested turns.
- Note non-blocking nitpicks you did not block on.
- Stop and ask if correct completion requires going beyond the brief.
For a queue, keep these notes in the progress file described in
[multi-task-queues.md](multi-task-queues.md).
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |