audit-agents
Audit or rewrite AGENTS.md so it holds only lasting principles. Run it only when the user…
Use Claude Code as an independent `claude -p` subagent when the user explicitly asks for Claude, wants a second-agent opinion from Claude, or asks to delegate a well-scoped task to Claude. Supports selecting `--model` and thinking/effort level with defaults of `opus` and `high`.
$ npx -y skills add dzhng/skills --skill claude --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/claudeContext preview
The summary Claude sees to decide when to auto-load this skill.
Use Claude Code as an independent `claude -p` subagent when the user explicitly asks for Claude, wants a second-agent opinion from Claude, or asks to delegate a well-scoped task to Claude. Supports selecting `--model` and thinking/effort level with defaults of `opus` and `high`.
name: claude description: Use Claude Code as an independent `claude -p` subagent when the user explicitly asks for Claude, wants a second-agent opinion from Claude, or asks to delegate a well-scoped task to Claude. Supports selecting `--model` and thinking/effort level with defaults of `opus` and `high`.
Claude Code is an independent agent on PATH (`claude`), sharing this working tree and already authenticated. Use it as a second opinion or delegated worker, not as ground truth: verify its claims, own any changes, and keep its task contract narrow.
Use `claude -p --model opus --effort high` unless the user or task calls for a different model or thinking level.
model name. Default `opus`.
`low`, `medium`, `high`, `xhigh`, and `max`. Default `high`.
the user gives a budget or the task is likely to sprawl.
Example:
claude -p --model opus --effort high "<prompt>"
Prompt Claude like an operator: compact, block-structured, and explicit about the artifact you need. A sharper contract beats higher effort.
prompts.
write-docs for the doc" or "obey refactor-clean: no compatibility wrappers" instead of pasting those skills into the prompt.
stop only when a missing detail changes correctness, safety, or an irreversible action.
before finalizing.
inferences.
to "think harder" instead of tightening the task, and accepting its answer without checking the evidence.
Use Claude for consultation when the user asks for Claude's view or when a second-agent read would materially reduce risk. Keep it read-oriented unless the user explicitly asks it to edit.
1. Ask for evidence, not vibes: require file paths, observed behavior, command output, or labelled inferences. 2. Prefer a read-only tool surface for reviews: `--tools "Read,Grep,Glob,Bash" --permission-mode dontAsk`. 3. **Never grant fewer tools than your output contract requires.** Read your own prompt and ask which tool produces each claim you demanded. A judge that cannot run a command will still answer a question posed in numbers — with numbers, self-consistent and measured from nothing, and with the artifacts it says it wrote. Trimming the tool surface does not make the answer cautious; it makes the fabrication harder to spot. Either grant the tool or stop asking for the claim. 4. Require the receipt with the number: any quantity in the response must arrive with the command that produced it and that command's output. Findings that fail this are struck, not discounted. 5. Triage every finding against the code before acting. Report what Claude flagged, what you accepted, and what you dismissed.
Delegate implementation to Claude only when the user names Claude for the task. Never hand it work on your own initiative, and never re-delegate follow-up work without a fresh ask.
1. Slice the task sharply: goal, constraints, allowed scope, and verification. An underspecified task stays with you until a fresh agent could not misread it. 2. Start from a clean tree or record the baseline commit so Claude's diff is separable from yours. Tell Claude to keep scratch files (probes, dumps, notes) out of the tree — its diff must contain only the deliverable. 3. Choose permissions by what the task must do:
dedicated worktree, with a self-authored prompt and a mandatory diff review after. 4. Capture the response with `--output-format text` by default. Use `--output-format json` only when the caller needs structured metadata. 5. You own the result: inspect the diff, run the relevant tests, and only then report it. "Claude says it's done" is not done.
`claude -p` is a networked, authenticated non-interactive run. If it fails, classify the failure before retrying.
blocker. If sandboxed `claude -p` says `Not logged in`, retry once with the required approval because local auth can depend on keychain/session access.
important to the task.
effort.
a repo or worktree you intentionally trust.
`--model` and `--effort`.
-
AI skills for building software factories. My personal library of domain-agnostic agent skills, reused across every project.
Repo: dzhng/skills
Audit or rewrite AGENTS.md so it holds only lasting principles. Run it only when the user…
Eval and improve a skill against golden cases — run the target skill blind in a fresh,…
Create or revise agent skills. Use when adding a new skill file, renaming a skill,…
Audit the choices an implementing agent made, not its diff — a pure decision audit that…
Audit and prioritize performance work through bounded-work and forward-progress checks. Use…
Audit whether tests earn their maintenance cost and which suite owns each contract. Use when…