implement

implement is a command for coding agents from rafadorado/qrspiv. It costs 13 tokens per session (1,114 once invoked), scanned A, original, MIT.

A command that carries out an approved implementation plan one phase at a time, using the codebase as the source of truth. It also runs the verification steps specified by the plan.

In plain words
What is it for?
Use it to implement the next unfinished phase of a plan, or to start a specified phase after pointing the command to the plan files.
Why use it?
It turns a written plan into controlled code changes and avoids skipping files or checks required for the current phase.

Command

Part of the qrspiv plugin — 7 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/rafadorado/qrspiv/implement
Clone the repo
git clone --depth 1 https://github.com/rafadorado/qrspiv

Or install qrspiv, the plugin that ships this one along with the rest of its 7 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for implement

README.md
[![agentmods](https://agentmods.dev/badge/commands/rafadorado/qrspiv/implement.svg)](https://agentmods.dev/commands/rafadorado/qrspiv/implement)
Your own site
<a href="https://agentmods.dev/commands/rafadorado/qrspiv/implement"><img src="https://agentmods.dev/badge/commands/rafadorado/qrspiv/implement.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,114 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00013 $0.01114
Opus 5 $0.00006 $0.00557
Sonnet 5 $0.00003 $0.00223
Haiku 4.5 $0.00001 $0.00111

Measured 3d ago against content hash 4fd591ee0751, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

implement scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/implement.md · 127 lines

How it starts

The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Implement Plan (I Phase)

The plan contains exact file changes, code snippets, and verification commands for each phase. Your job is to follow the plan faithfully while adapting to what you actually find in the codebase. The plan is your guide — but the code is the truth.

By default, implement ONE phase per invocation. The user can request multiple phases explicitly.

Also read all codebase files referenced in the current phase's "Changes Required" section.

If a specific phase was requested (e.g., thoughts/001-auth-endpoint/ phase 2), skip to that phase.

If no parameters provided, respond with:

"I'll implement a plan for you. Point me to the thoughts folder (e.g., thoughts/001-auth-endpoint/), or provide the plan file directly."

Then wait for the user's input.

  • If no checkmarks exist, start at Phase 1.
  • If checkmarks exist, find the first unchecked phase and start there. Trust that completed phases are done — only re-verify previous work if something seems off.

Confirm with the user which phase you're about to implement:

Starting Phase [N]: [Name]
[One-line summary of what this phase does]

Proceeding with implementation.
  • Read each file to be modified FULLY before changing it
  • Write the code changes specified in the plan
  • Follow pattern references — if the plan says "follows pattern from path/to/existing.ext", read that file and match its naming, structure, error handling style, and conventions in your new code
  • Create new files where specified
Mismatch in Phase [N]:
  Plan expects: [what the plan says]
  Codebase has: [what actually exists]
  Impact: [why this matters for the implementation]

How should I proceed?

Wait for the user's guidance before continuing.

After all automated checks pass, check off the automated items in the plan file using Edit, then pause:

Phase [N] complete — ready for your review.

Automated verification passed:
- [x] `make test-xxx` — passed
- [x] `npm run typecheck` — passed
[list each command that was actually run]

Manual verification for you to check:
- [ ] [Each manual item from the plan's "Manual Verification" section]

Reply 'proceed' when you've reviewed and I'll continue to Phase [N+1].

If the phase has no manual verification items, say: "No manual verification needed for this phase — automated checks are sufficient."

Do not check off manual verification items — only the user can confirm those.

All phases complete for thoughts/<id>-<title>/.

Your work item's QRSPI trail:
  task.md       ← what we're building
  questions.md  ← what we researched
  research.md   ← what we found
  design.md     ← where we're going
  outline.md    ← how we get there
  plan.md       ← exact steps (all checked off)

Next step: run /qrspiv:validate thoughts/<id>-<title>/
This checks functional correctness, pattern compliance, and code quality before you commit.

Read the full file on GitHub · 127 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 127 lines · 13 tokens per session scan A 4fd591ee0751

Subscribe to this mod's changes

implement is a command published in the GitHub repository rafadorado/qrspiv (6 stars, last pushed 4mo ago), licensed MIT. It adds 13 tokens to every session and 1,114 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.