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-clean-agentic-codegit 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-clean-agentic-code)<a href="https://agentmods.dev/skills/bgauryy/octocode/octocode-clean-agentic-code"><img src="https://agentmods.dev/badge/skills/bgauryy/octocode/octocode-clean-agentic-code/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-clean-agentic-code"><img src="https://agentmods.dev/badge/skills/bgauryy/octocode/octocode-clean-agentic-code.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.00040 | $0.00799 |
| Opus 5.5 | $0.00016 | $0.00320 |
| Sonnet 5.5 | $0.00008 | $0.00160 |
| Haiku 4.5 | $0.00004 | $0.00080 |
Grade A, and why
octocode-clean-agentic-code 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 today.
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.
What it actually says
Octocode clean agentic code
- Record the requested scope, existing edits and affected checks before cleanup. Save each affected check's baseline report (JUnit XML, TAP, JSON, or a list of failing check names) and coverage report under
<workspace>/.octocode/tmp/octocode-clean-agentic-code/; mark a blocked baseline. Skip the baselines when the request is report-only (no edits). - List literal candidates with scan-signals:
node <skill-folder>/scripts/scan-signals.mjs [paths] --diff <base>for the change (omit--diffto audit whole paths). Judge each JSON-line candidate with the reference below that names itssignal; exit 1 only means rows were printed. - For each candidate, check semantic references, public entry points, configuration, dynamic loading and external consumers. Use Octocode
lspSearchreferences and exactlocalSearchreads. An empty search alone cannot justify deletion. - Keep live contracts. Defer uncertain removals with the check that would settle them. Group proven removals into reversible batches, update their callers and regenerate derived files at their source. Flag authentication, authorization, deletion, billing and public API changes for human review. Explain any rewrite beyond the candidates, or a file where
git diff --numstatshows more added than deleted lines (an untracked file counts as all added). - Replay the affected checks and inspect the diff, then compare with the baseline:
node <skill-folder>/scripts/check-diff.mjs <baseline> <after>(check-diff). Exit 1 meansintroducedholds failures your batch caused: revise the diagnosis or undo only your batch and report the blocker. Reportmissingchecks as unverified; other fields:--help. Preserve existing edits and coverage floors.
| Candidate | Decision |
|---|---|
| Dead or duplicate code, checker suppressions, redundant types or dependencies | Check the candidate's removal bar and preserve supported consumer behavior. |
| Comments, instructions or configuration | Keep text and configuration with a parser, runtime or external consumer until its contract deliberately changes. For AI-writing tells, chat residue and placeholders, use writing tells. If cleaner wording changes agent behavior, use octocode-agentic. For skill packaging or activation, use octocode-skills. |
| Agent leftovers or defects | Report error masking, reachable stubs and unverified dependencies as SBAR blockers. Keep these out of removal batches. Redact exposed credentials and report them for rotation. |
| Weak tests or grader gaming, test debt or replacement tests | Report confirmed gaming as an SBAR blocker. Preserve the behavioral oracle and coverage floors. Never hide a failure by weakening a check or widening a mask. |
Keep defects requiring behavior changes separate from the cleanup. Use octocode-engineer for unresolved design choices.
Report removals, deferrals and checks, including baseline failures and unrun checks. Finish when the diff contains only authorized changes and the affected checks support preserved behavior, or identify what blocked verification. Run the renderer for requested HTML.
What ships with it
47 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.
- output.md 1.9 KB
- README.md 5.8 KB
- references/agent-blockers.md 2.8 KB
- references/agent-defects.md 3.9 KB
- references/checker-suppressions.md 1.8 KB
- references/code-smells.md 4.9 KB
- references/configuration.md 3.6 KB
- references/evidence.md 2.9 KB
- references/presentation.md 1.4 KB
- references/protocol-catalog.md 3.1 KB
- references/report-mermaid.md 4.5 KB
- references/report-output.md 5.8 KB
- references/report-render.md 2.6 KB
- references/report-widgets.md 1.4 KB
- references/test-debt.md 3.1 KB
- references/tests.md 2.8 KB
- references/text-config-hygiene.md 3.4 KB
- references/types-dependencies.md 2.5 KB
- references/writing-tells.md 5.4 KB
- scripts/check-diff.mjs 19 KB runs code
- scripts/coverage-diff.mjs 11 KB runs code
- scripts/deps-usage.mjs 15 KB runs code
- scripts/lib/entrypoint.mjs 552 B runs code
- scripts/lib/fail.mjs 594 B runs code
- scripts/lib/report/checks.mjs 10 KB runs code
- scripts/lib/report/client-diagrams.mjs 9.9 KB runs code
- scripts/lib/report/client-document.mjs 11 KB runs code
- scripts/lib/report/client-search.mjs 2.9 KB runs code
- scripts/lib/report/client-widgets.mjs 11 KB runs code
- scripts/lib/report/client.mjs 16 KB runs code
- scripts/lib/report/markdown.mjs 21 KB runs code
- scripts/lib/report/page.mjs 26 KB runs code
- scripts/lib/report/render.mjs 10 KB runs code
- scripts/lib/report/self-test.mjs 19 KB runs code
- scripts/lib/report/workspace.mjs 8.1 KB runs code
- scripts/render-report.mjs 8.2 KB runs code
- scripts/residue-scan.mjs 5.0 KB runs code
- scripts/scan-signals.mjs 29 KB runs code
- scripts/tests/check-diff.test.mjs 8.9 KB runs code
- scripts/tests/coverage-diff.test.mjs 4.1 KB runs code
- scripts/tests/deps-usage.test.mjs 5.4 KB runs code
- scripts/tests/fixtures/check-diff/after/junit.xml 745 B
- scripts/tests/fixtures/check-diff/before/junit.xml 739 B
- scripts/tests/fixtures/check-diff/node-test.tap 574 B
- scripts/tests/fixtures/coverage-diff/after.lcov 322 B
- scripts/tests/fixtures/coverage-diff/before.lcov 289 B
- scripts/tests/scan-signals.test.mjs 10 KB runs code
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.
- today First seen · 24 lines · 40 tokens per session scan A 466a9a2ff3e4
octocode-clean-agentic-code is a skill published in the GitHub repository bgauryy/octocode (971 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 799 once invoked, about $0.0002 per session on Opus 5.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-12-01.
octocode-clean-agentic-code compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| octocode-clean-agentic-codebgauryy/octocode | Skill | 971 | today | MIT | A | 40 | Claude Code, Codex |
| code-review-webrampstackco/claude-skills | Skill | 1.1k | 15d ago | MIT | A | 121 | Claude Code |
| review-rfcnurettincoban/ai-prd-workflow | Skill | 317 | 13d ago | MIT | A | 32 | Claude Code |
| logic-lensskillmds/skillmd | Skill | 142 | 22d ago | MIT | A | 37 | Claude Code |
| cli-audit-codeDestynova2/cli-code-skills | Skill | 6 | 7d ago | MIT | A | 92 | Claude Code |
| coding-assistantchinkan/RustFox | Skill | 15 | yesterday | MIT | A | 13 | Claude Code, Codex |
| reviewAcKeskin/contexture | Skill | 2 | today | MIT | A | 103 | Claude Code |