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 krzysztofsurdy/code-virtuoso --skill agentic-rules-writergit clone --depth 1 https://github.com/krzysztofsurdy/code-virtuosoWrote 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/krzysztofsurdy/code-virtuoso/agentic-rules-writer)<a href="https://agentmods.dev/skills/krzysztofsurdy/code-virtuoso/agentic-rules-writer"><img src="https://agentmods.dev/badge/skills/krzysztofsurdy/code-virtuoso/agentic-rules-writer/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/krzysztofsurdy/code-virtuoso/agentic-rules-writer"><img src="https://agentmods.dev/badge/skills/krzysztofsurdy/code-virtuoso/agentic-rules-writer.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.00080 | $0.03083 |
| Opus 5.5 | $0.00032 | $0.01233 |
| Sonnet 5.5 | $0.00016 | $0.00617 |
| Haiku 4.5 | $0.00008 | $0.00308 |
Grade C, and why
agentic-rules-writer scanned grade C with 1 finding 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 1mo 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
| No `rm -rf` or other destructive commands | A deny rule on the command, with the sandbox for what a deny rule cannot see | How it starts
The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agentic rules writer
A rules file is read on every turn. Filler such as "write clean code" costs tokens, buries the few lines that matter, and changes nothing, because the model already does it. Research on repository context files found that they did not generally raise task success and cost over 20% more to run, while specific instructions were followed well. This skill writes the short file: commands, conventions that differ from the defaults, the user's real preferences. It sends rules that must always hold to deny rules and hooks, where they are enforced instead of requested.
It has two modes. Pick one from the request, and ask only if it is unclear.
| Mode | Triggers | Does |
|---|---|---|
| Generate | "set up agent rules", "write CLAUDE.md", "create Cursor rules" | Infers from the repo, asks about eight things, writes a short file |
| Trim | "trim my CLAUDE.md", "my rules file is too long", "clean up AGENTS.md" | Audits an existing file, classifies each line, shows a diff, applies it after approval. See trim-mode |
Argument trim <path> starts trim mode on that file. Any other argument names the target tool.
What a rules file may hold
Every line must prevent a mistake the agent would make without it.
| Keep | Example |
|---|---|
| Commands the agent cannot guess | Test one file: pnpm test -- path/to/file.spec.ts |
| Conventions that differ from defaults | Money is integer cents, never floats. Do not edit generated/ (rebuilt by make gen) |
| The user's real preferences | Commit and branch format, what to ask before doing, reply language |
| Environment quirks | Tests need docker compose up db first |
| Pointers, one line each | Read docs/payments.md before touching src/payments/ |
What not to write
Leave these out, and tell the user a line was dropped when they ask for one. The model follows them already, the repo shows them, or a tool enforces them.
| Do not write | Example lines |
|---|---|
| Generic engineering principles | Write clean, maintainable code. Simplicity first. Root causes only. Minimal blast radius. Follow SOLID |
| Habits the model already has | Read before editing. Follow existing patterns. Prefer editing over creating files. Remove dead code. Minimal diffs |
| Honesty and care slogans | Don't guess. Prove it works. Ask when stuck. Handle edge cases. Validate inputs at boundaries |
| Generic testing, security and quality lectures | Write tests for everything. Follow OWASP. Sanitize all input. Maintain high code quality |
| What the repo shows | Directory trees, stack lists, a README summary, dependency lists |
| What a formatter or linter enforces | Indentation, quote style, import order |
| Knowledge-source habits | Prefer official docs over blog posts. Search the web when unsure |
| Skill routing tables and agent rosters | When X, use /skill. A list of agents. Every description already reaches the model |
| Rules that must always hold, as prose | Never force push to main. Never commit secrets. Never read .env. These go to Phase 4 |
What ships with it
3 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.
- 1mo ago Changed · -287 lines · +3 tokens per session scan A → C 632d764ce3a1
- 1mo ago Changed · -275 lines · -67 tokens per session scan C → A 5039869c84df
- 3mo ago First seen · 730 lines · 144 tokens per session scan C 3906ee025514
agentic-rules-writer is a skill published in the GitHub repository krzysztofsurdy/code-virtuoso (26 stars, last pushed 1mo ago), licensed MIT. It adds 80 tokens to every session and 3,083 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
agentic-rules-writer compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| agentic-rules-writerkrzysztofsurdy/code-virtuoso | Skill | 26 | 1mo ago | MIT | C | 80 | Claude Code |
| hermes-diagnostic-reviewAtlasOmnia/hermes-custom-pack | Skill | 88 | 18d ago | MIT | A | 49 | Claude Code, Codex |
| worth-building2ykwang/agent-skills | Skill | 19 | 2d ago | MIT | A | 128 | Claude Code |
| django-ticket-triage2ykwang/agent-skills | Skill | 19 | 2d ago | MIT | A | 65 | Claude Code |
| gh-issuesSafeAI-Lab-X/ClawKeeper | Skill | 1.0k | 4d ago | none | A | 116 | Claude Code |
| healthcheckSafeAI-Lab-X/ClawKeeper | Skill | 1.0k | 4d ago | none | A | 70 | Claude Code, Codex |
| clawkeeperSafeAI-Lab-X/ClawKeeper | Skill | 1.0k | 4d ago | none | A | 98 | Claude Code, Codex |