ai-toolkit-rules

ai-toolkit-rules is a skill for Claude Code from softspark/ai-toolkit. It costs 56 tokens per session (5,272 once invoked), scanned A, original, Apache-2.0.

A set of mandatory engineering rules for coding-agent work, covering security, testing, version control, performance, quality, planning, and safe file handling.

In plain words
What is it for?
Use it across coding, debugging, reviews, architecture, DevOps, data work, and file edits, including single-agent and multi-agent workflows.
Why use it?
It gives the agent shared boundaries and working practices for technical tasks instead of leaving each command to make its own assumptions.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions CLAUDE.md.

Part of the ai-toolkit plugin — 115 skills, 44 agents, 14 hooks shipped together

Good fit Use it across coding, debugging, reviews, architecture, DevOps, data work, and file edits, including single-agent and multi-agent workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/softspark/ai-toolkit/ai-toolkit-rules
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 softspark/ai-toolkit --skill ai-toolkit-rules
Clone the repo
git clone --depth 1 https://github.com/softspark/ai-toolkit

Made for: Claude Code.

Or install ai-toolkit, the plugin that ships this one along with the rest of its 115 skills, 44 agents, 14 hooks.

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 ai-toolkit-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/softspark/ai-toolkit/ai-toolkit-rules/github.svg)](https://agentmods.dev/skills/softspark/ai-toolkit/ai-toolkit-rules)
Your own site
<a href="https://agentmods.dev/skills/softspark/ai-toolkit/ai-toolkit-rules"><img src="https://agentmods.dev/badge/skills/softspark/ai-toolkit/ai-toolkit-rules/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 ai-toolkit-rules

Your own site · 80×15
<a href="https://agentmods.dev/skills/softspark/ai-toolkit/ai-toolkit-rules"><img src="https://agentmods.dev/badge/skills/softspark/ai-toolkit/ai-toolkit-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,272 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 263
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
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.00056 $0.05272
Opus 5.5 $0.00022 $0.02109
Sonnet 5.5 $0.00011 $0.01054
Haiku 4.5 $0.00006 $0.00527

Measured 1mo ago against content hash ddf3664d682d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-toolkit-rules 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 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.

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.

app/claude-app/skills/ai-toolkit-rules/SKILL.md · 436 lines

How it starts

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

AI Toolkit Rules

Apply every relevant rule below before acting. Treat MUST/NEVER language as mandatory.

Source: app/rules/claude-toolkit-rules.md

Claude Toolkit

Shared AI development toolkit — lifecycle hooks, safety constitution, multi-platform support.

Skill Tiers

  • Tier 1 — single-agent: /debug, /review, /refactor, /analyze, /docs, /plan, /explain, /tdd, /triage-issue
  • Tier 1.5 — planning: /write-a-prd → /prd-to-plan → /prd-to-issues; design: /design-an-interface, /architecture-audit, /refactor-plan
  • Tier 2 — multi-agent: /workflow <type> (feature-development, backend-feature, frontend-feature, api-design, database-evolution, test-coverage, security-audit, debugging, incident-response, spike, codebase-onboarding, performance-optimization, infrastructure-change, application-deploy, proactive-troubleshooting)
  • Tier 3 — custom: /orchestrate <desc> (3–6 agents) | /swarm <mode> <desc> (map-reduce | consensus | relay)

Path Safety

  • NEVER guess or hallucinate user home directory paths
  • Use ~ or $HOME instead of a hardcoded /Users or /home prefix followed by a user name. The literal prefix is deliberately not written out here: the plugin export scans shipped files for exactly that pattern, so an example of the mistake would be indistinguishable from the mistake.
  • When an absolute path is needed, run echo $HOME first to get the correct value

User Preferences

  • Style: Direct & efficient. No pleasantries. Measurable results.
  • Methodology: Provide >=3 alternatives. Use Socratic questioning.
  • Review: Apply "Devil's Advocate" critique to decisions.

Source: app/rules/edit-discipline.md

Edit Discipline & Reviewable Changes

Edit files with the editing tools, not the shell

Use the edit and write tools to change a file. Do not rewrite tracked files through bash with sed, awk, tee, a heredoc, or > redirection.

This is not a style preference. A shell rewrite is opaque to the host: the session records a command, not a change. An edit call records which file changed and how, so the interface can render it, a reviewer can read it, and a later turn can cite it. A sed line records none of that, and the only way to find out what happened is to read the file again.

Read the full file on GitHub · 436 lines

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. 1mo ago Changed · +12 lines ddf3664d682d
  2. 1mo ago Changed · +7 lines 7db7f4af52cf
  3. 1mo ago Changed · +14 lines b23d3d939e80
  4. 1mo ago Changed · +43 lines 7c5a104bd584
  5. 1mo ago First seen · 360 lines · 56 tokens per session scan A 2698d543669c

Subscribe to this mod's changes

ai-toolkit-rules is a skill published in the GitHub repository softspark/ai-toolkit (180 stars, last pushed 9d ago), licensed Apache-2.0. It adds 56 tokens to every session and 5,272 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-08-30.