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 bgauryy/octocode --skill octocode-prompt-optimizergit clone --depth 1 https://github.com/bgauryy/octocodeWrote 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/bgauryy/octocode/octocode-prompt-optimizer)<a href="https://agentmods.dev/skills/bgauryy/octocode/octocode-prompt-optimizer"><img src="https://agentmods.dev/badge/skills/bgauryy/octocode/octocode-prompt-optimizer/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/bgauryy/octocode/octocode-prompt-optimizer"><img src="https://agentmods.dev/badge/skills/bgauryy/octocode/octocode-prompt-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00059 | $0.00867 |
| Opus 5 | $0.00030 | $0.00434 |
| Sonnet 5 | $0.00012 | $0.00173 |
| Haiku 4.5 | $0.00006 | $0.00087 |
Grade A, and why
octocode-prompt-optimizer 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 12d 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.
How it starts
The opening of the file, as written. The whole thing — 40 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Octocode Prompt Optimizer
Optimize instruction behavior, not prose aesthetics.
Flow: READ → UNDERSTAND → RATE → FIX → VALIDATE → OUTPUT.
Lobby rules and gates
- READ: inspect the whole input and its type; UNDERSTAND: map goal, parts, flow, assumptions, and unknowns.
- RATE: record evidenced issues, severity, and baseline; FIX: address Critical/High issues and name deliberate deferrals.
- VALIDATE: prove intent and required behavior remain correct; OUTPUT: provide the requested artifact and truthful delta.
- Use the full path for multi-section, ambiguous, tool-facing, or high-risk work; combine adjacent steps only for short, low-risk text. Never skip VALIDATE.
- Preserve intent, working branches, identifiers, commands, and required metadata; ask before changing them.
- Verify cited commands, flags, paths, tool names, and schemas before rewriting; flag unverified claims.
- Make only critical behavior mandatory; retain preference language for real preferences. Mutate files only with authority.
- Stop when: a material unknown would change intent, scope, or risk (ask one focused question and pause); instruction authority is ambiguous, or resolving a conflict would override user intent; an edit changed intent or working logic (revert it and return to UNDERSTAND); write authority is missing (deliver a patch-style delta instead of a file change); a VALIDATE check fails twice on the same section (report the weakest branch instead of forcing a pass); a reliability gain has no held-out evidence (report it as unmeasured).
Smart routes — load only what the current step needs
- READ and UNDERSTAND: load
references/gates.md— read every section and map intent before judging or drafting. - RATE: load
references/rate.md; FIX: loadreferences/fix.md; VALIDATE: loadreferences/validate.md; OUTPUT: loadreferences/output.md— load only the active gate so later-step advice cannot bias the current decision. - When instructions conflict or a fix needs a compact instruction pattern, load
references/patterns.md— apply the higher authority and log the resolution in one line. - When reducing noise, load
references/conciseness-toolkit.md; when fixing priority/hierarchy loadreferences/attention.md; when choosing a technique for an observed failure loadreferences/prompt-techniques.md— match technique to failure mechanism. - When optimizing tool or MCP contracts, load
references/tool-contracts.md; for agent handoffs loadreferences/agent-communication.md; for typed packet boundaries loadreferences/zod-agent-contracts.md— make inputs, outputs, authority, and failure states explicit. - When context can overflow, load
references/context-budget.md; when repeated calls share stable prefixes loadreferences/prompt-caching.md— control relevance, pagination, latency, and cost. - When reliability must be measured, load
references/evaluation-data.md— build realistic held-out scenarios, verifiers, metrics, and a failure ledger. - When instructions consume retrieved or user-supplied content, load
references/untrusted-content.md— preserve the boundary between data and authority. - When improving this skill, prefer
octocode-graph-eval; otherwise loadreferences/improve-loop.md— require measurable acceptance instead of intuition.
What ships with it
18 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.
- README.md 1.4 KB
- references/agent-communication.md 3.4 KB
- references/attention.md 4.7 KB
- references/conciseness-toolkit.md 3.3 KB
- references/context-budget.md 2.5 KB
- references/evaluation-data.md 2.2 KB
- references/fix.md 2.3 KB
- references/gates.md 2.0 KB
- references/improve-loop.md 754 B
- references/output.md 1.8 KB
- references/patterns.md 2.3 KB
- references/prompt-caching.md 2.9 KB
- references/prompt-techniques.md 3.6 KB
- references/rate.md 2.4 KB
- references/tool-contracts.md 2.8 KB
- references/untrusted-content.md 2.1 KB
- references/validate.md 2.4 KB
- references/zod-agent-contracts.md 3.4 KB
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.
- 12d ago First seen · 40 lines · 59 tokens per session scan A c9753298ffbd
octocode-prompt-optimizer is a skill published in the GitHub repository bgauryy/octocode (932 stars, last pushed yesterday), licensed MIT. It adds 59 tokens to every session and 867 once invoked, about $0.0003 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-30.
Other skills, from other repositories
create-handler
Create a new API handler following the handler pattern. Use when the user asks to create an endpoint, handler, or route.
architecture-docs
Workflow for creating and maintaining architecture documentation. Use when the user needs to document system architecture or make ADRs.
component-creation
Step-by-step workflow for creating accessible, tested UI components. Use when the user asks to create a new UI component.
fix-tests
Systematic workflow for diagnosing and fixing failing tests. Use when the user reports failing tests or asks to fix test failures.
code-review
Structured workflow for conducting thorough code reviews. Use when the user asks to review code, a PR, or specific files.
infrastructure
Workflow for provisioning cloud infrastructure using IaC. Use when the user needs to create or modify cloud resources.