/murnana-agent-config:rule-create [topic or intent, e.g. testing, api conventions]from murnana-agent-config
Create or update a Claude Code rule file in .claude/rules/ (project) or ~/.claude/rules/ (user)
Ships in murnana-agent-config. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Create (or update) one rule file that Claude Code loads from .claude/rules/ or ~/.claude/rules/, following the official format and best practices.
Run these first to find the repo root, the existing project rules and the instruction files:
git rev-parse --show-toplevel 2>/dev/null || pwd
ls -R .claude/rules 2>/dev/null || true
ls CLAUDE.md .claude/CLAUDE.md CLAUDE.local.md AGENTS.md 2>/dev/null || true
Treat $ARGUMENTS (if any) as a hint about the rule's topic — it does not skip the steps below.
paths is the only one Claude Code reads.AskUserQuestion tool, never as a plain-text question at the end of a reply. This includes every "wait for approval" and every "ask how to proceed": show the plan or the failure in the reply, then call AskUserQuestion with options such as 「この内容で進める」 and 「修正する」. The dialog can hide the reply, so say in the question itself, in one line, what is being approved.$ARGUMENTS, the conversation, the files or command output already answer. Where a step gives a default, use it and state it in the plan instead of asking.AskUserQuestion is unavailable (a non-interactive run), don't guess: stop before changing anything and list the questions in the reply.~/.claude/rules/**/*.md) — not ls, which a sandboxed Bash may be denied outside the project.CLAUDE.md / .claude/CLAUDE.md (and AGENTS.md if there is no CLAUDE.md).CLAUDE.local.md, or nothing at all, say so with the reason and ask the user (AskUserQuestion) whether to proceed with a rule anyway or stop. Do not build the alternative in this skill.Ask with AskUserQuestion only for what $ARGUMENTS, the conversation, and Step 1 haven't already answered:
<repo>/.claude/rules/, committed) or user (~/.claude/rules/, all projects)paths.md; use a subdirectory if the rules dir already groups by area.paths only when the rule is relevant to almost every session.Before showing the draft, check and fix:
paths (or none); patterns quoted and matching real filesIMPORTANT/context → Memory files (or /memory)./context.claude --debug to look for a frontmatter parse error (a broken frontmatter silently turns the rule unconditional).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/agent-createCreate or update a Claude Code subagent (agents/<name>.md) in .claude/agents/ (project), ~/.claude/agents/ (personal), or a plugin's agents/ directory/project-instructions-createCreate or revise the "Instructions" text of a claude.ai Project. Interviews the user, then produces paste-ready instructions/skill-createCreates or updates a Claude Code skill and scaffolds its evals.npx claudepluginhub murnana/murnana-claude-code-plugin --plugin murnana-agent-config