ワンクリックで
kn-implement
Use when implementing a task - follow the plan, check ACs, track progress
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when implementing a task - follow the plan, check ACs, track progress
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Use when orchestrating a full Knowns spec or task wave through planning, implementation, review, integration, and verification, optionally using sub-agents when scopes are parallel-safe.
Use when you need to understand existing code, find patterns, search project knowledge, use web research for external/current facts, or explore a large codebase before implementation
Use when committing code changes with proper conventional commit format and verification
Use when working with Knowns documentation - viewing, searching, creating, or updating docs
Use when extracting reusable patterns, decisions, failures, or knowledge into documentation
Use only when the user explicitly wants the legacy no-review-gates pipeline for an approved spec; prefer kn-flow for normal spec orchestration
SOC 職業分類に基づく
| name | kn-implement |
| description | Use when implementing a task - follow the plan, check ACs, track progress |
Execute the implementation plan, track progress, and complete the task.
Announce: "Using kn-implement for task [ID]."
Core principle: CHECK AC ONLY AFTER WORK IS DONE.
/kn-plan <id> first unless user explicitly overrides/kn-flow @doc/<spec-path> instead of implementing a single task in isolationmcp_knowns_tasks({ "action": "get", "taskId": "$ARGUMENTS" })
If task status is "done" (reopening):
mcp_knowns_tasks({ "action": "update", "taskId": "$ARGUMENTS",
"status": "in-progress",
"appendNotes": "Reopened: <reason>"
})
mcp_knowns_time({ "action": "start", "taskId": "$ARGUMENTS" })
Verify: plan exists, timer running, which ACs pending.
mcp_knowns_templates({ "action": "list" })
If template exists → use it to generate boilerplate.
For each step:
mcp_knowns_tasks({ "action": "update", "taskId": "$ARGUMENTS",
"checkAc": [1],
"appendNotes": "Done: brief description"
})
Working rules:
search to discover relevant sources; use retrieve when implementation needs assembled context with citations for docs, tasks, and memories.mcp_knowns_search({ "action": "retrieve", "query": "<keywords>" }) for retrieval; fall back to CLI knowns retrieve "<keywords>" --json if MCP is unavailable.Small: Add AC + note
mcp_knowns_tasks({ "action": "update", "taskId": "$ARGUMENTS",
"addAc": ["New requirement"],
"appendNotes": "Scope: added per user"
})
Large: Stop and ask user.
mcp_knowns_validate({ "entity": "$ARGUMENTS" })
appendNotes, NOT notes!)mcp_knowns_time({ "action": "stop", "taskId": "$ARGUMENTS" })
mcp_knowns_tasks({ "action": "update", "taskId": "$ARGUMENTS",
"status": "done"
})
Note: When task is marked done (or AC is checked), matching ACs in the linked spec document are automatically checked. No manual spec update needed.
Check if task has spec field. If yes, run SDD workflow:
mcp_knowns_tasks({ "action": "list", "spec": "<spec-path-from-task>" })
Use the returned task metadata as a compact sibling summary. Sort siblings by:
order when present[<slug>-NN]Do not fetch every sibling task body unless a dependency or status inconsistency requires it.
Count tasks by status:
done: completed taskstodo / in-progress: pending tasksIf pending tasks exist:
✓ Task done! This task is part of spec: <spec-path>
Remaining tasks (Y of Z):
- task-YY: [user-auth-02] Title (todo)
- task-ZZ: [user-auth-03] Title (in-progress)
Next: /kn-flow @doc/<spec-path> to orchestrate the remaining tasks, or /kn-plan <first-todo-id> for manual task-by-task work
If this is the LAST task (all others done):
✓ Task done! All tasks for <spec-path> complete!
Running SDD verification...
Then auto-run:
mcp_knowns_validate({ "scope": "sdd" })
Display SDD Coverage Report:
SDD Coverage Report
═══════════════════════════════════════
Spec: <spec-path>
Tasks: X/X complete (100%)
ACs: Y/Z verified
✅ Spec fully implemented!
Before final response, ask whether the work produced guidance future tasks should follow:
If patterns, decisions, or failures need structured extraction: /kn-extract
If a quick insight is worth remembering but does not warrant a full doc:
mcp_knowns_memory({ "action": "add", "title": "<insight>",
"content": "<2-3 sentence summary>",
"layer": "project",
"category": "<pattern|decision|convention>",
"tags": ["<domain>"]
})
All built-in skills in scope must end with the same user-facing information order: kn-init, kn-spec, kn-flow, kn-plan, kn-research, kn-implement, kn-verify, kn-doc, kn-template, kn-extract, and kn-commit.
Required order for the final user-facing response:
Keep this concise for CLI use. Skill-specific content may extend the key-details section, but must not replace or reorder the shared structure.
Out of scope: explaining, syncing, or generating .claude/skills/*. Runtime auto-sync already handles platform copies, so this skill source only defines the built-in output contract.
For kn-implement, the key details should cover:
You MUST suggest the next action when a natural follow-up exists. User won't know what to do next.
After task completion, check for:
More tasks from same spec?
mcp_knowns_tasks({ "action": "list", "spec": "<spec-path>", "status": "todo" })
Sort results by order or [<slug>-NN] before choosing the next task.
Suggest based on context:
| Situation | Suggest |
|---|---|
| More tasks in spec | "Next: /kn-flow @doc/<spec-path> to orchestrate remaining tasks, or /kn-plan <next-task-id> for manual flow" |
| All spec tasks done | "All tasks complete! Run /kn-verify to verify against spec" |
| Standalone task | "Task done. Run /kn-extract to extract patterns, or /kn-commit to commit" |
| Patterns discovered | "Consider /kn-extract to document this pattern" |
Example output:
✓ Task #43 complete!
Next task from @doc/specs/2026-06-17/user-auth:
→ Task #44: [user-auth-02] Add refresh token rotation
Run: /kn-plan 44
/kn-flow @doc/<spec-path> - Continue or complete the surrounding spec/task wave/kn-plan <id> - Create plan before implementing/kn-verify - Verify all tasks against spec/kn-extract - Extract patterns to docs/kn-commit - Commit with verification/kn-flow when appropriatenotes instead of appendNotes