skill-implement
Implement a proposed improvement for a skill, tool, MCP server, hook, or command: code plus tests plus docs. Use when the user asks to build, wire, or improve agent capabilities.
Files1
View on GitHubSKILL.mdCapabilityTreeSitter/03-AgenticRuntime/skill-implement/SKILL.md
GitHubSkill/Tool Implementation
You are implementing an improvement for a skill, tool, MCP server, hook, or command.
Pre-flight
- Read the relevant audit report or proposal to understand the gap.
- Confirm the smallest verifiable slice (not the whole backlog).
- Check existing code for similar patterns (plugins.rs, tools.rs, hooks.rs, commands.rs, autorunner.rs) and reuse them.
Implementation rules
- Confinement: file tools stay under the allowed root; reject traversal (
.., absolute paths). - Approval: write/high-risk tools require an explicit approval flag or hole binding.
- No secrets: secrets resolved by slot name at call time; never inline, never logged.
- Data, not instructions: tool results are structured JSON; they never enter a command path.
- Telemetry: record name, ok, latency only (no args or results).
- Receipts: mutating operations record a fingerprint/receipt.
- Honesty: mark
TODO, scaffolds, and untested items as PROPOSED, not IMPLEMENTED.
Steps
- Write the code in the smallest correct form.
- Add unit tests or a smoke script.
- Run
cargo build --releaseand targeted tests; fix compile errors. - Run relevant smoke scripts (
compliance_smoke.sh,eval_atoma.sh). - Update docs (design/audit) and checkpoint with the new status.
- Report VERIFIED findings with evidence (build output, smoke results).
Anti-patterns
- Do not claim a tool is implemented if it only returns a descriptor.
- Do not wire a scaffold into a critical path without a gate.
- Do not skip tests or verification to save time.
- Do not expand scope mid-implementation; file new proposals instead.