ワンクリックで
update
Update an existing .claudeignore file by adding, removing, or revising entries based on current repository state.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Update an existing .claudeignore file by adding, removing, or revising entries based on current repository state.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
This skill should be used when the user asks to "check clean code", "review code cleanliness", "find code smells", "is this function too long", "are these names clear", "review my error handling", "check my tests", or "clean up this code". Also triggers when the user mentions Clean Code, Uncle Bob, Robert Martin, meaningful names, function length, comment rot, F.I.R.S.T. tests, or names a dimension directly ("naming", "boundaries", "concurrency"). Supports auditing all nine dimensions at once or focusing on a single dimension.
Scan Claude Code chat session logs for recurring agent anti-patterns (hedging, stalling, skipping, false completions, preference-asking, dismissing, cosmetic, caveats, flagging) and produce a ranked report with frequency counts, example excerpts, and suggested guardrail rules. Use when user asks to "analyze sessions for anti-patterns", "find bad patterns in logs", "what anti-patterns am I seeing", "agent-guardrails analyze", or wants data-driven guardrail recommendations.
Install agent behavioral guardrail rules into a project's .claude/ directory. Generates a Stop hook bash script and configures settings.local.json. Includes nine battle-tested rules (no-guessing, no-stalling, no-preference-asking, no-false-completion, no-skipping, no-dismissing, no-cosmetic, no-caveats, no-flagging). Use when user asks to "install guardrails", "set up agent guardrails", "add behavioral hooks", "agent-guardrails install", or wants to enforce assistant discipline.
Test installed agent guardrail hooks by sending trigger phrases through the stop hook script. Checks hook installation first, then runs two test phrases per rule. Use when user asks to "test guardrails", "verify hooks", "check guardrail patterns", "agent-guardrails test", or wants to confirm hooks are working.
Re-analyze Claude Code session logs against existing agent guardrail rules to measure effectiveness, catch false positives, identify missed anti-patterns, and refine regex patterns. Use when user asks to "update guardrails", "refine guardrail rules", "check guardrail effectiveness", "agent-guardrails update", "tune guardrails", or wants to improve existing behavioral rules based on real usage data.
Use when the user wants to write a "product spec" or "product specification", frame a "product bet", or define a falsifiable hypothesis before building. Also triggers on "replace the PRD", "retire the PRD", "the PRD is too long / too vague", "tighten this spec for an engineer or agent", "what's the bet", "what problem are we solving", "acceptance criteria", "success criteria", "kill / scale / graduate thresholds", "measurement plan", or when scoping a feature's problem, bet, success behaviors, and evaluation before any behavioral spec. Part of the spec-dd workflow; precedes /spec-dd:spec.
| name | update |
| description | Update an existing .claudeignore file by adding, removing, or revising entries based on current repository state. |
| argument-hint | Optional — what to add, remove, or change (e.g., "add data/", "remove debug/"). |
| disable-model-invocation | true |
Modify an existing .claudeignore file based on the user's request or
a fresh analysis of the repository.
Read .claudeignore from the project root.
If the file does not exist, tell the user:
"No
.claudeignorefound in this project. Useclaudeignore:createto generate one from scratch."
Do not fall through to creation logic.
There are three update modes:
The user asks to add or remove specific entries (e.g., "add data/", "remove debug/", "stop ignoring reports/").
The user asks to "review" or "refresh" the claudeignore, or simply
invokes claudeignore:update without specifics.
.claudeignore:
.env, .env.*, *.pem, *.key,
or credential files that aren't ignored yet..claudeignore that no longer
exist in the repo.pyproject.toml, package.json), or key docs (README.md,
CLAUDE.md) that are being ignored — likely a mistake.If arguments are provided, parse them as directives:
update data/ logs/)- or ! → remove them (e.g., update -debug/ !reports/)--refresh or --check → trigger drift check (Mode B)Show the user what will change using a before/after or diff format:
Changes to .claudeignore:
+ data/ # add — 450 MB data files, not source code
+ logs/ # add — log output, not useful for context
- debug/ # remove — user wants debug scripts indexed
~ stubs/ → stubs/py # modify — narrow the scope
Ask:
"Here are the proposed changes. Apply them? (yes / edit / no)"
After confirmation:
.claudeignore content.After writing, report:
src/, lib/, tests/, or scripts/, flag it:
"Warning:
src/contains source code. Ignoring it means I won't see your application code. Are you sure?"
pyproject.toml, package.json, tsconfig.json, or similar, flag it:
"Warning: this is a project manifest. Ignoring it means I won't understand your project's dependencies and tooling. Are you sure?"
.env,
.env.*, *.pem, *.key, or credential files exist and aren't
ignored, flag them as recommended additions — defense in depth
against sensitive content entering context.Arguments are parsed as directives (see Mode C above). If no arguments are provided and the user's message doesn't specify what to change, default to Mode B (drift check).