Implement
Required Reading
- skill: ts-principles
- Read
ts-principles/SKILL.md.
- Read every linked principle detail document before implementing.
Role
Implement is a judge.
It owns scope, delegation, changes, verification, and handoff. Use it for concrete code work: building a request,
fixing bugs, applying review findings, or changing behavior. Not for discovery or planning.
The judge may do implementation directly. Delegate only when the work separates
cleanly across files, domains, or independent tasks. Workers return changes and
verification notes. The judge reconciles them.
The technical-writing editor is the exception: when the change creates or
modifies technical writing, always spawn a sub-agent with
skill: ts-technical-writing to edit that writing directly. The editor is not a
reviewer and must not return findings.
Sub-Agent Selection
Use this section when this skill spawns sub-agent workers.
- Choose the first available entry for the worker role.
- If the harness cannot set provider, model line, and reasoning separately,
choose the closest available model and record what actually ran.
- Do not spawn extra workers just to use every entry.
- Spawn workers only when a worker can produce a disjoint patch that the judge
can verify and integrate cheaply.
- Do not delegate cross-cutting architecture, shared ownership decisions, or
final integration.
Implementation Worker
| Priority |
Provider |
Model line |
Reasoning |
| 1 |
OpenAI |
terra latest |
medium |
| 2 |
Anthropic |
sonnet latest |
medium |
| 3 |
OpenAI |
sol latest |
high |
| 4 |
Cursor |
composer |
high |
Good worker tasks:
- one module or adapter
- one UI surface
- one test file or test suite
- one docs update before the final technical-writing edit
- one mechanical refactor slice
Technical-Writing Editor
Use the first available entry.
| Priority |
Provider |
Model line |
Reasoning |
| 1 |
OpenAI |
terra latest |
medium |
| 2 |
Anthropic |
sonnet latest |
medium |
| 3 |
OpenAI |
sol latest |
high |
| 4 |
Cursor |
composer |
high |
Workflow
- DETERMINE_SCOPE
- DETERMINE_DELEGATION
- APPLY_CHANGES
- EDIT_TECHNICAL_WRITING
- VERIFY
- HANDOFF
DETERMINE_SCOPE
- Identify the task input: a request, plan, design, or open findings.
- Treat every supplied finding as in scope unless impossible or unsafe. Do not drop findings silently.
DETERMINE_DELEGATION
- Implement directly when the change is one bounded edit.
- Spawn sub-agent workers only when the work separates cleanly across files, domains, or independent tasks.
- Use disjoint write scopes for parallel workers.
- Workers must not spawn other workers, widen scope, or write the handoff.
- The prompt of each worker MUST include:
- The bounded task and scope.
- The worker's assigned provider, model line, and reasoning level.
- The skills to use, e.g.
skill: ts-principles.
- The output shape: changes made, verification run, open risks.
- The rule that workers escalate tooling failures to the judge instead of silently downgrading output.
APPLY_CHANGES
- Apply the changes per
skill: ts-principles.
- Add or update tests when the changed behavior needs proof.
- Before finishing code, check changed exported contracts, invariants, failure
modes, concurrency, performance, security, and domain rules for knowledge the
code cannot carry.
- Add the nearest useful documentation:
/** ... */ for exported contracts,
short comments for non-obvious invariants or sharp edges, or source-owned docs
for changed behavior.
- Do not add comments that repeat names, types, schemas, tests, or obvious code.
EDIT_TECHNICAL_WRITING
- Run this step whenever the change creates or modifies technical writing:
Markdown docs, README files, comments, JSDoc, changelog text, migration notes,
CLI help, UI technical copy, workflow logs, or handoff artifacts.
- Always spawn a technical-writing editor sub-agent with
skill: ts-technical-writing.
- The editor edits the writing directly. It must return the edited files or
patch, not review findings or suggestions.
- The editor must preserve technical facts, commands, APIs, file paths, code
symbols, examples, source links, behavior, and scope.
- The editor may fix audience fit, artifact shape, structure, bullets, prose,
examples, and llm-isms.
- The judge must not perform the technical-writing edit itself. The judge may
make factual corrections after the edit.
- If factual corrections materially rewrite the writing, run the editor again.
- The editor prompt must include:
- The changed writing surfaces and exact file paths.
- The technical facts and behavior that must not change.
- The assigned provider, model line, and reasoning level.
skill: ts-technical-writing.
- The rule that the editor is not a reviewer and must edit directly.
VERIFY
- Run the most relevant checks available: typecheck, lint, tests touching the change.
- If a required check cannot run after the obvious fix, stop and escalate. In a workflow, return
STATUS: ESCALATE: <tool> unavailable: <reason>. Outside a workflow, stop and surface the failure inline.
Recording-and-proceeding is allowed only when the task input explicitly authorizes proceeding without that check.
HANDOFF
- Report:
- Scope changed.
- Verification run and result.
- Open risks or deviations.
- Findings resolved or still unresolved.
- If a log path was provided, use the
ts-log skill to update it. Otherwise report inline.
1---2name: ts-implement3description: Implement or fix code. Only explicitly triggered by user.4---56# Implement78## Required Reading910- skill: ts-principles11 - Read `ts-principles/SKILL.md`.12 - Read every linked principle detail document before implementing.1314## Role1516Implement is a judge.1718It owns scope, delegation, changes, verification, and handoff. Use it for concrete code work: building a request,19fixing bugs, applying review findings, or changing behavior. Not for discovery or planning.2021The judge may do implementation directly. Delegate only when the work separates22cleanly across files, domains, or independent tasks. Workers return changes and23verification notes. The judge reconciles them.2425The technical-writing editor is the exception: when the change creates or26modifies technical writing, always spawn a sub-agent with27`skill: ts-technical-writing` to edit that writing directly. The editor is not a28reviewer and must not return findings.2930## Sub-Agent Selection3132Use this section when this skill spawns sub-agent workers.3334- Choose the first available entry for the worker role.35- If the harness cannot set provider, model line, and reasoning separately,36 choose the closest available model and record what actually ran.37- Do not spawn extra workers just to use every entry.38- Spawn workers only when a worker can produce a disjoint patch that the judge39 can verify and integrate cheaply.40- Do not delegate cross-cutting architecture, shared ownership decisions, or41 final integration.4243### Implementation Worker4445| Priority | Provider | Model line | Reasoning |46| --- | --- | --- | --- |47| 1 | OpenAI | `terra` latest | `medium` |48| 2 | Anthropic | `sonnet` latest | `medium` |49| 3 | OpenAI | `sol` latest | `high` |50| 4 | Cursor | `composer` | `high` |5152Good worker tasks:5354- one module or adapter55- one UI surface56- one test file or test suite57- one docs update before the final technical-writing edit58- one mechanical refactor slice5960### Technical-Writing Editor6162Use the first available entry.6364| Priority | Provider | Model line | Reasoning |65| --- | --- | --- | --- |66| 1 | OpenAI | `terra` latest | `medium` |67| 2 | Anthropic | `sonnet` latest | `medium` |68| 3 | OpenAI | `sol` latest | `high` |69| 4 | Cursor | `composer` | `high` |7071## Workflow72731. DETERMINE_SCOPE742. DETERMINE_DELEGATION753. APPLY_CHANGES764. EDIT_TECHNICAL_WRITING775. VERIFY786. HANDOFF7980### DETERMINE_SCOPE8182- Identify the task input: a request, plan, design, or open findings.83- Treat every supplied finding as in scope unless impossible or unsafe. Do not drop findings silently.8485### DETERMINE_DELEGATION8687- Implement directly when the change is one bounded edit.88- Spawn sub-agent workers only when the work separates cleanly across files, domains, or independent tasks.89- Use disjoint write scopes for parallel workers.90- Workers must not spawn other workers, widen scope, or write the handoff.91- The prompt of each worker MUST include:92 - The bounded task and scope.93 - The worker's assigned provider, model line, and reasoning level.94 - The skills to use, e.g. `skill: ts-principles`.95 - The output shape: changes made, verification run, open risks.96 - The rule that workers escalate tooling failures to the judge instead of silently downgrading output.9798### APPLY_CHANGES99100- Apply the changes per `skill: ts-principles`.101- Add or update tests when the changed behavior needs proof.102- Before finishing code, check changed exported contracts, invariants, failure103 modes, concurrency, performance, security, and domain rules for knowledge the104 code cannot carry.105- Add the nearest useful documentation: `/** ... */` for exported contracts,106 short comments for non-obvious invariants or sharp edges, or source-owned docs107 for changed behavior.108- Do not add comments that repeat names, types, schemas, tests, or obvious code.109110### EDIT_TECHNICAL_WRITING111112- Run this step whenever the change creates or modifies technical writing:113 Markdown docs, README files, comments, JSDoc, changelog text, migration notes,114 CLI help, UI technical copy, workflow logs, or handoff artifacts.115- Always spawn a technical-writing editor sub-agent with116 `skill: ts-technical-writing`.117- The editor edits the writing directly. It must return the edited files or118 patch, not review findings or suggestions.119- The editor must preserve technical facts, commands, APIs, file paths, code120 symbols, examples, source links, behavior, and scope.121- The editor may fix audience fit, artifact shape, structure, bullets, prose,122 examples, and llm-isms.123- The judge must not perform the technical-writing edit itself. The judge may124 make factual corrections after the edit.125- If factual corrections materially rewrite the writing, run the editor again.126- The editor prompt must include:127 - The changed writing surfaces and exact file paths.128 - The technical facts and behavior that must not change.129 - The assigned provider, model line, and reasoning level.130 - `skill: ts-technical-writing`.131 - The rule that the editor is not a reviewer and must edit directly.132133### VERIFY134135- Run the most relevant checks available: typecheck, lint, tests touching the change.136- If a required check cannot run after the obvious fix, stop and escalate. In a workflow, return137 `STATUS: ESCALATE: <tool> unavailable: <reason>`. Outside a workflow, stop and surface the failure inline.138 Recording-and-proceeding is allowed only when the task input explicitly authorizes proceeding without that check.139140### HANDOFF141142- Report:143 - Scope changed.144 - Verification run and result.145 - Open risks or deviations.146 - Findings resolved or still unresolved.147- If a log path was provided, use the `ts-log` skill to update it. Otherwise report inline.