draft-auto-mode-rules

draft-auto-mode-rules is a skill for Claude Code from melodic-software/claude-code-plugins. It costs 75 tokens per session (2,811 once invoked), scanned A, original, MIT.

A guided drafting tool for Claude Code’s autoMode classifier block, which is natural-language guidance for deciding what actions to approve automatically. It asks about allowed and disallowed work and prints a JSON block for you to paste.

In plain words
What is it for?
Use it to create an auto-approval policy, record its boundaries and reasons, and produce a paste-ready block without changing your settings.
Why use it?
Conditions buried in long prose can be missed by a language-model classifier. This organizes the rules into clearly labeled covered and not-covered cases.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the harness-config plugin — 8 skills shipped together

Good fit Use it to create an auto-approval policy, record its boundaries and reasons, and produce a paste-ready block without changing your settings.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add melodic-software/claude-code-plugins
Claude Code
/plugin install harness-config

Made for: Claude Code.

Or install harness-config, the plugin that ships this one along with the rest of its 8 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 draft-auto-mode-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/draft-auto-mode-rules/github.svg)](https://agentmods.dev/skills/melodic-software/claude-code-plugins/draft-auto-mode-rules)
Your own site
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/draft-auto-mode-rules"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/draft-auto-mode-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 draft-auto-mode-rules

Your own site · 80×15
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/draft-auto-mode-rules"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/draft-auto-mode-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,811 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.
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.00075 $0.02811
Opus 5.5 $0.00030 $0.01124
Sonnet 5.5 $0.00015 $0.00562
Haiku 4.5 $0.00007 $0.00281

Measured yesterday against content hash 779f774b251e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

draft-auto-mode-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 yesterday.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/draft-automode-block.sh, scripts/draft-automode-block.test.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/harness-config/skills/draft-auto-mode-rules/SKILL.md · 202 lines

How it starts

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

Purpose

The autoMode block is a natural-language prompt for a classifier, not a rule list the harness matches, so it fails in ways a config file does not. We write each condition as its own short entry the classifier can see, never buried in a long paragraph, because a condition deep in prose is the one a single classifier pass is likeliest to miss.

This skill applies that at authoring time instead of reporting it afterwards, the job claude auto-mode critique does after the fact.

Report-only, permanently

This skill writes nothing, in any scope, under any flag. It prints a block; you paste it. Editing a consumer's settings file would be making a permission decision on their behalf, which is the one thing this plugin exists not to do.

Scope boundary (route out)

  • What is in effect now, what auto mode drops, what a section discards → harness-config:audit-permission-state. Run it first. Drafting against rules you have not read is how a block ends up contradicting itself.
  • Grant portability and auto-mode durability → harness-config:audit-permission-grants.
  • Whether an existing block is any good → claude auto-mode critique, surfaced by audit-permission-state --critique. It owns the semantic judgment; this skill owns composition.

Boundary, the built-in /auto-mode-setup command

Both surfaces help a person write auto mode classifier content, so a request to "set up auto mode" can mean either.

  • /auto-mode-setup (built-in command): the person runs it; this skill never invokes it. What it drafts, reads and saves is read from auto mode config: generate environment entries live.
  • This skill (marketplace plugin). Interviews for entries in every section (environment, allow, soft_deny, hard_deny), each with stated exclusions and a transcript-visible condition, and prints the block without writing anything.

Read the full file on GitHub · 202 lines

Files

What ships with it

4 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. yesterday Changed · -31 tokens per session 779f774b251e
  2. 5d ago Changed 4dd46f35e487
  3. 6d ago Changed · +6 lines 5970ddd195b7
  4. 8d ago Changed · +6 lines 9ac1e7b686cd
  5. 10d ago Changed · +5 lines c6b58e1591cd
  6. 11d ago Changed · -1 lines 6e5e1aedecad
  7. 14d ago Changed · +1 lines 26b9d3af50f0
  8. 17d ago Changed · +4 lines aeac8162e046
  9. 26d ago Changed · +5 lines 8435628f333e
  10. 28d ago First seen · 176 lines · 106 tokens per session scan A 68e909e15fd2

Subscribe to this mod's changes

draft-auto-mode-rules is a skill published in the GitHub repository melodic-software/claude-code-plugins (33 stars, last pushed today), licensed MIT. It adds 75 tokens to every session and 2,811 once invoked, about $0.0003 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.

Related

draft-auto-mode-rules compared with skills from other repositories

draft-auto-mode-rules next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
draft-auto-mode-rulesmelodic-software/claude-code-pluginsSkill33todayMITA75Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code