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.
npx skills add Peter-N91/hve-squad-mcp --skill rpi-refinegit clone --depth 1 https://github.com/Peter-N91/hve-squad-mcpWrote 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.
[](https://agentmods.dev/skills/peter-n91/hve-squad-mcp/rpi-refine)<a href="https://agentmods.dev/skills/peter-n91/hve-squad-mcp/rpi-refine"><img src="https://agentmods.dev/badge/skills/peter-n91/hve-squad-mcp/rpi-refine/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/peter-n91/hve-squad-mcp/rpi-refine"><img src="https://agentmods.dev/badge/skills/peter-n91/hve-squad-mcp/rpi-refine.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00064 | $0.02652 |
| Opus 5.5 | $0.00026 | $0.01061 |
| Sonnet 5.5 | $0.00013 | $0.00530 |
| Haiku 4.5 | $0.00006 | $0.00265 |
Grade A, and why
rpi-refine 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 5d 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.
This is a copy
100% identical to rpi-refine — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.
RPI Refine
Goal
Produce one complete, human-readable subtractive refinement record after implementation finishes. Focus on what can be removed, simplified, or redesigned across everything the session worked on: code, tests, documents, domain language, dependencies, error boundaries, runtime performance, language versions, and configuration. Reject additive wrappers and speculative guards that do not cut complexity or prevent a concrete failure mode.
Read references/refinement.md for the four subtractive lenses, main-agent execution and targeted subagent lookups, depth tiers, outcome vocabulary, routing rules, conversation protocol, and per-finding walkthrough. Use templates/refinement-log.md as the canonical record skeleton.
Flow
- Resolve one task artifact set: current task-centered plan, changes record, relevant research, and changed workspace files. Use supplied paths, or the work's name and date: the task slug for a task's first work, or the name a later request's documents carry. Stop if multiple unrelated sets remain ambiguous.
- Resolve review depth. Use
standardby default. Usesurfacewhen a parent session runs a bounded refinement check after a repeated loop introduced significant changes in the same session, or when the user asks for a surface pass. Usedeeponly when the user explicitly requests a deep review; do not inferdeepfrom task size, complexity, or risk. Record depth and provenance. - Resolve candidate decision participation:
user-ownedfor standalone and manual RPI,agent-ownedby default for a confirmed automatic RPI session, anduser-retainedwhen an automatic-session user keeps Review decisions. When the refinement record already exists, use its latest Parent Decision Record participation event. Record provenance. - Confirm the plan, changes record, changed files, remaining work, follow-up items, and validation state form a clear review boundary. Inspect the refinement path. When a record exists, continue a
startedreview from its saved record, and reuse a finished record unless the user asks for a new review or a parent session runs asurfacepass after significant same-session loop changes. - Start the review by creating the record skeleton from templates/refinement-log.md at
.copilot-tracking/reviews/logs/{{YYYY-MM-DD}}/{{task_slug}}-refinement.md, named like the plan it reviews, or at the next numbered path such as{{task_slug}}-refinement-2.mdfor an explicit repeat orsurfacepass. Persist Scope and Evidence and Opening Refinement State with review executionstartedand append one participation event to Parent Decision Record. When parent state exists, record the refinement path before assessing lenses so readers and the canvas follow the record as it grows. Send the opening message defined in the reference. - Assess the completed work yourself across the four subtractive lenses and active depth tier in references/refinement.md. Activate domain skills whose descriptions say they apply during review when they fit the touched stack; exclude this skill and other RPI lifecycle phase entrypoints.
- The main agent owns and performs the refinement analysis, backward logic tracing, assumption and domain evaluation, cross-lens synthesis, and authoring of the
-refinement.mdrecord. Never offload whole review lenses or core refinement judgment to a lower-intelligence subagent. - When a dispatch tool is available and subagent direction allows subagents (
autoby default, or guided by this skill, a coordinating Project, or the user), create and manage regular subagents strictly for narrow, bounded lookups as references/refinement.md defines, and verify every return at the cited files while keeping synthesis and judgment in the main agent. - When subagents are unavailable or
subagents=noneis set, run all lookups and all four lenses directly in the main agent without failing or skipping a gate. - Follow the
surface,standard, ordeepboundary in references/refinement.md;deepremains a single review pass without open-ended external research.
- The main agent owns and performs the refinement analysis, backward logic tracing, assumption and domain evaluation, cross-lens synthesis, and authoring of the
- Write the evidence body as each lens finishes, saving the record as findings are verified while execution stays
started. Record each confirmedRF-xxxfinding with its dimension, current state, what to remove or rework, impact, resolution condition, and proposed destination. Once all lenses are merged, write the assessed execution status, assessed outcome, validation coverage, kept-as-is summary, limitations, and reviewer self-check, then update review execution fromstartedtoComplete,Partial, orBlocked. - Resolve every actionable
RF-xxxaccording to decision participation. Treat Decision History within## Parent Decision Recordas the append-only canonical decision log using stableFD-xxxevent IDs. Append events for participation, walkthrough, execution, outcome, route dispositions, and continuation; never rewrite or delete earlier events. Refresh Current Disposition from those events.- For
user-ownedoruser-retained, walk through each actionable finding one at a time as references/refinement.md defines, and persist each answer before moving to the next finding. Auser-retainedautomatic session remains automatic and resumes once decisions are recorded. - For
agent-owned, skip per-item prompts, record the walkthrough asskipped-auto, and decide every proposal from evidence.
- For
- Decide final execution and outcome from the verified findings and resolved or deferred routes, appending those events to
## Parent Decision Recordwithout rewriting the evidence body. When parent state exists, update derivednext_actionand accepted follow-up projections only after saving the canonical record. - Route each accepted finding once to
rpi-plan,rpi-implement,rpi-research, orfollow-upas references/refinement.md defines (feeding in-sessionrpi-planroutes into newPxxphases on the active plan, or into a separate RPI session for broader rework). - Persist and finalize the complete canonical refinement record before presenting handoff guidance or
## Next Steps, then close with the Final response.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 5d ago First seen · 85 lines · 64 tokens per session scan A f7d729d8058f
rpi-refine is a skill published in the GitHub repository Peter-N91/hve-squad-mcp (3 stars, last pushed 2d ago), licensed MIT. It adds 64 tokens to every session and 2,652 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to rpi-refine, differing in 0 lines, and is treated as a copy.
rpi-refine compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rpi-refinePeter-N91/hve-squad-mcp | Skill | 3 | 2d ago | MIT | A | 64 | Claude Code |
| autoreviewopenclaw/clawhub | Skill | 9.6k | today | MIT | A | 17 | Claude Code, Codex |
| omh-code-reviewrlaope/oh-my-hermes | Skill | 6.2k | today | MIT | A | 18 | Claude Code |
| agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skills | Skill | 2.2k | 9d ago | MIT | A | 115 | Claude Code, Codex |
| asplos-writing-stylebrycewang-stanford/Awesome-Journal-Skills | Skill | 1.5k | 2d ago | MIT | A | 65 | Claude Code |
| revdiff-planumputun/revdiff | Skill | 974 | 2d ago | MIT | A | 84 | Claude Code |
| re0-mergeLilMGenius/paperthin | Skill | 1.5k | today | MIT | A | 51 | Claude Code, Codex |