agentic-rules-writer

agentic-rules-writer is a skill for Claude Code from krzysztofsurdy/code-virtuoso. It costs 144 tokens per session (7,115 once invoked), scanned C, original, MIT.

An interactive tool for creating instruction files that tell an AI coding assistant how to work. It supports agents such as Claude Code, Cursor, Windsurf, Copilot, and Codex, using the format and location each one expects.

In plain words
What is it for?
Use it to create project or personal rules for an AI coding agent, configure a new agent, or keep shared instructions aligned with the tools in use.
Why use it?
It helps teams and individual developers turn coding standards into consistent, reusable rules. It also updates those rules when installed skills change.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the tools-virtuoso plugin — 11 skills shipped together

Good fit Use it to create project or personal rules for an AI coding agent, configure a new agent, or keep shared instructions aligned with the tools in use.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/krzysztofsurdy/code-virtuoso/agentic-rules-writer
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.

Any agent
npx skills add krzysztofsurdy/code-virtuoso --skill agentic-rules-writer
Clone the repo
git clone --depth 1 https://github.com/krzysztofsurdy/code-virtuoso

Made for: Claude Code.

Or install tools-virtuoso, the plugin that ships this one along with the rest of its 11 skills.

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 agentic-rules-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/krzysztofsurdy/code-virtuoso/agentic-rules-writer/github.svg)](https://agentmods.dev/skills/krzysztofsurdy/code-virtuoso/agentic-rules-writer)
Your own site
<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.

agentmods 80×15 button for agentic-rules-writer

Your own site · 80×15
<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>
Per session 144 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,115 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00144 $0.07115
Opus 5 $0.00072 $0.03557
Sonnet 5 $0.00029 $0.01423
Haiku 4.5 $0.00014 $0.00711

Measured 9d ago against content hash 3906ee025514, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

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 9d 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.

- NEVER run destructive commands (rm -rf, DROP TABLE, etc.) without explicit approval
skills/tools/agentic-rules-writer/SKILL.md · 730 lines

How it starts

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

Agentic Rules Writer

Generate a tailored rules/instruction file for any AI coding agent. Runs an interactive questionnaire, pulls the installed-skill and agent inventory from the using-ecosystem meta-skill, and writes the output in the correct format and location for the chosen agent and scope.

When to Use

  • Setting up a new AI coding agent for the first time
  • Creating team-shared project rules for consistent behavior across developers
  • Adding personal dev-specific rules to a project (gitignored)
  • After installing new skills to update the rules file with skill references

Quick Start

/agentic-rules-writer claude
/agentic-rules-writer cursor
/agentic-rules-writer codex
/agentic-rules-writer              # asks which agent

Phase 1: Agent Selection

If $ARGUMENTS is provided, map it to an agent from the table below (case-insensitive, partial match OK — e.g. "wind" matches Windsurf). If no argument or no match, present a selectable menu using AskUserQuestion (or the agent's equivalent interactive prompt tool).

Tier 1 — Full support with dedicated format/paths

Agent Format Notes
Claude Code Plain Markdown, keep under 200 lines
Cursor Requires YAML frontmatter: alwaysApply: true, .mdc extension
Windsurf Plain Markdown, enforce under 12,000 characters
GitHub Copilot Plain Markdown, .github/copilot-instructions.md
Gemini CLI Plain Markdown
Roo Code Plain Markdown
Amp Same format as Claude Code
Codex (OpenAI) Plain Markdown, uses AGENTS.md convention
Cline Plain Markdown
OpenCode Plain Markdown
Continue Plain Markdown
Trae Plain Markdown

Tier 2 — Supported with generic Markdown format

Agent Format Notes
Goose Plain Markdown
Augment Plain Markdown
Kilo Code Plain Markdown

Other / Universal

For any agent not listed: write plain Markdown to a user-specified path. Ask the user for the output path.

Read the full file on GitHub · 730 lines

Files

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.

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. 9d ago First seen · 730 lines · 144 tokens per session scan C 3906ee025514

Subscribe to this mod's changes

agentic-rules-writer is a skill published in the GitHub repository krzysztofsurdy/code-virtuoso (21 stars, last pushed 3mo ago), licensed MIT. It adds 144 tokens to every session and 7,115 once invoked, about $0.0007 per session on Opus 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.

Related

Other skills, from other repositories

hermes-diagnostic-review

Use when running a read-only diagnostic review of recent Hermes sessions to find recurring mistakes, failed tool calls, and repeated fixes, then propose suggestion-only improvements and reusable skills. Human-gated; never auto-applies.

AtlasOmnia/hermes-custom-pack · 49 tokens

instruction-eval

Change one condition an agent runs under (instruction text, the reference material instructions point at, MCP tools and permissions, hooks, skill files), then run the same prompts before and after, several times each, to see what actually changes. Produces an HTML report showing both arms' answers side by side. Use…

2ykwang/agent-skills · 179 tokens

worth-building

Decide how elaborate to build something (simple vs. robust) and return a concrete, PoC-shaped proposal at that level — not over- or under-engineered, but right-sized. Use whenever someone is building something and the investment level is unclear: "quick or proper?", "MVP vs. real product", "is this over-engineering?"…

2ykwang/agent-skills · 128 tokens

django-ticket-triage

Analyze a Django Trac ticket and produce a triage recommendation report — duplicate search, related PRs, forum threads, and the affected source code. Use when the user gives a Django ticket number, or asks whether a ticket is valid, a duplicate, or ready for a triage stage.

2ykwang/agent-skills · 65 tokens

gh-issues

Fetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5]…

SafeAI-Lab-X/ClawKeeper · 116 tokens

healthcheck

Host security hardening and risk-tolerance configuration for OpenClaw deployments. Use when a user asks for security audits, firewall/SSH/update hardening, risk posture, exposure review, OpenClaw cron scheduling for periodic checks, or version status checks on a machine running OpenClaw (laptop, workstation, Pi, VPS).

SafeAI-Lab-X/ClawKeeper · 70 tokens