Draft Auto Mode Rules
Interview user to draft a paste-ready autoMode classifier block (what should/should not be auto-approved, each entry shaped well, every section keeping…
от melodic-software★ 34 звезды на GitHub
Установить Draft Auto Mode Rules в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Draft auto mode rules
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.
- Pointer: when deciding how the classifier reads entries, fetch auto mode config: override the block and allow rules and, for the critique command, auto mode config: inspect the defaults and your effective config live.
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 byaudit-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.
Native suggestions are on unless native_suggestions resolves off: the native_suggestions key of <home>/harness-config.local.yaml wins over the same key of <home>/harness-config.yaml (<home> is what bash "${CLAUDE_PLUGIN_ROOT}/lib/resolve-convention-home.sh" prints, else docs/conventions), which wins over the per-user value ${user_config.native_suggestions} (a literal unexpanded token means unset); with none set they are on. A value other than on or off is named and that layer dropped: a valid higher layer still wins, otherwise on, never a lower layer's value. When off, skip the offer below and write nothing in its place, not even a note that it was skipped or why.
Routing. At the start of the run, offer it to the person:
If /auto-mode-setup is available in your session (gate basis: its row of the commands reference;
records in reference/native-auto-mode-setup.md) and native
suggestions are on (native_suggestions, Configuration), you can
run it instead of or alongside this skill to have the environment section drafted from your sessions
and saved for you; this interview then covers the allow and deny sections. It can also offer allow
rules drawn from your recent auto mode denials (version in the records). Those rules are input to
the allow section here: paste the ones you accepted, or the allow list claude auto-mode config
prints, and the interview asks for each one's exclusions and transcript-visible condition instead of
drafting it from recall. If they take it, run Phase 1 again after it saves so the draft builds on
what it wrote. When the caller passes
--unattended, omit the offer, write Withheld suggestion (unattended): /auto-mode-setup in the
output, and do not ask; without that flag it asks.
Mutation gate. We treat /auto-mode-setup as writing user settings once the person accepts its
draft. This skill writes nothing and never chains into /auto-mode-setup on the person's behalf.
Availability is never assumed. Offer the command when it resolves in this session, never assume it is present. Read what gates it from its row of commands: all commands live. The four-part records live in reference/native-auto-mode-setup.md.
Inputs, and one deliberate omission
The draft is built from the interview plus the effective merge (audit-permission-state), and
nothing else. An optional argument, `enviro
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- evals/evals.json
- reference/native-auto-mode-setup.md
- scripts/draft-automode-block.sh
- scripts/draft-automode-block.test.sh
FAQ
Что делает скилл Draft Auto Mode Rules?
Interview user to draft a paste-ready autoMode classifier block (what should/should not be auto-approved, each entry shaped well, every section keeping $defaults); prints only, never writes settings. Use when: 'help me write auto mode rules', 'draft an autoMode block', 'set up auto mode', add a classifier rule, or rewrite vague/dropped entries.
Как установить скилл Draft Auto Mode Rules?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Draft Auto Mode Rules запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…