Implement one dependency-ready ticket task in an isolated worktree using a small design sketch, behavior-first tests, the appropriate task playbook, and bounded verification. Use for the work stage after ticket planning.
94%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Implement one task. Keep the change no larger than the task's observable outcome requires.
Read .factory/CONTEXT.md first: it lists the commands for check, lint and tests, the environment, and the test layers, so use them before exploring for your own. Then read the ticket's plan.md, optional adr.md, the target task, its blockers, relevant code and tests, and project instructions. Confirm the ticket and task identifiers before editing. Do not begin when a dependency is incomplete or the worktree is shared with another active ticket.
If the plan conflicts with current evidence, add a bullet to plan.md under Discoveries and adjust affected task scope before continuing. A bullet is a plain finding, what was found and what it changed, with no date, round, or run label; see the plan artifacts. Escalate when the new evidence changes product behavior or invalidates multiple tasks.
Read references/playbooks.md and use only the playbook matching the task type.
Sketch the smallest viable shape:
Keep this sketch in the session unless it changes the durable plan. Do not scaffold unused abstractions. If implementation repeatedly fights the sketch, stop, incorporate the evidence, and redesign instead of layering exceptions.
Tests should exercise public behavior, not mirror implementation. For a behavior that cannot reasonably begin with a failing test, state why and use the closest reliable validation. Do not add test-only production interfaces.
An end-to-end test proves a criterion from outside the code: through a browser, an HTTP API (a request through the framework's test client), a job, or a CLI. The prompt says whether QA runs for this task. When it does, QA owns the end-to-end tests for the task's acceptance criteria: write unit tests (and component tests and stories where the project has them), keep the existing end-to-end suite passing, and leave every from-the-outside test of the task's criteria, API requests included, to QA. When QA does not run, add or update end-to-end coverage for the task's user stories when the project has a viable harness; if automation is unavailable or disproportionately expensive, record the reason and a concrete human verification path in the task.
Run focused checks while working, then the relevant broader suite once. Do not spend budget repeatedly running an unchanged full suite.
Prove the real artifact before claiming the task is ready. Follow ../prove-it-works/SKILL.md. A compile, typecheck, file timestamp, or self-report is not proof. When the project has .factory/skills/verify-<repo>/ and the task changes behavior a user can see in the running product, drive that skill. A change with no runtime behavior, such as a document or static file, is proven by reading it back.
Leave the work uncommitted. The controller inspects the worktree diff and runs the commands in FACTORY.json validation.work.commands. Do not write an evidence manifest and do not set the task status. Review owns approval.
In a controller run, report the result and let the controller validate the diff, the configured checks, and usage. In a direct invocation, report the result without inventing operational state edits. Never open .factory/db/ by hand.
Do not start the reviewer, commit, push, publish, or create a pull request. The controller owns the next stage.
Your report is the arguments of subagent_done, as references/output.md describes; the controller reads nothing else, so text or thinking that only states the report never reaches it.
If subagent_done refuses the report, fix the fields it names and call it again. Once it replies that the session is shutting down, stop: do not call it again, do not call caller_ping, and do not send more text. caller_ping is the only other terminal call, and it replaces the report when you need a decision. Do not edit the controller database.
geut/factory-skills
49b6f31
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.