/chipdev-method:auditfrom chipdev-method
Routes a methodology compliance review of the user's current changes to Codex via the codex-plugin-cc adversarial-review command. Activate when the user explicitly invokes /chipdev-method:audit, or asks "audit my diff", "审一下我这版改动", "review my methodology compliance", "did I violate any of the principles", or wants an independent adversarial check that their work follows the plugin's six invariants and contract-first discipline.
Ships in chipdev-method. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill when the user wants an adversarial methodology review of
a code change. The skill builds a structured prompt from the plugin's
methodology and routes it to Codex through codex-plugin-cc.
This skill does not run the audit itself. It assembles context, then hands off to Codex. Codex does the actual review.
Do not autoload — only respond when the user invokes
/chipdev-method:audit or matches the trigger phrases in the description.
The user must have:
codex CLI installed and on PATH.codex-plugin-cc installed (see https://github.com/openai/codex-plugin-cc).If any prerequisite is missing, surface a clear remediation step before proceeding.
When triggered, perform the following steps in order:
command -v codex >/dev/null || echo "MISSING: codex CLI"
git rev-parse --is-inside-work-tree >/dev/null 2>&1 || echo "MISSING: not a git repo"
If codex is missing, instruct the user to install
codex-plugin-cc and ensure
codex is on PATH. Stop.
If not in a git repo, tell the user to invoke audit from the project's
git working tree. Stop.
Default target: the current diff against main (or master).
If the user passed an argument:
HEAD~3) → audit the diff between that ref and HEAD.main..feature/foo) → audit that range.Ask the user to confirm the resolved target before proceeding.
Gather, in order:
git diff <range>) — capped at ~2000 lines; if
larger, summarize per-file change counts and ask the user to narrow.Use the checklist in references/audit-checklist.md as the audit rubric.
Build a structured prompt for Codex with:
INDEX.md).define-contracts).Save the prompt to a temporary file in .humanize/skill/<id>/audit-prompt.md
or pipe directly. Either way, do not put a multi-thousand-line diff into a
single shell argument.
Recommended invocation, via the codex-plugin-cc shipped command:
# Through the codex-plugin-cc /codex:adversarial-review command,
# which the user must have installed.
# Equivalent direct codex call:
codex exec -m gpt-5.4 \
-c model_reasoning_effort=high \
--full-auto \
-C "$(git rev-parse --show-toplevel)" \
- < "$AUDIT_PROMPT_FILE"
If codex-plugin-cc exposes a slash command (e.g.,
/codex:adversarial-review), prefer using it through the parent Claude
Code session rather than calling codex exec directly — that gives the
user the standard codex result-handling UX.
When Codex returns:
Do not restate the entire Codex output verbatim. Compress.
If Codex returned a clean review (no violations), say so plainly with the review's confidence note.
[abstract]The audit covers, in order of priority:
The full rubric is in references/audit-checklist.md.
[abstract]build/ or generator outputs out before invoking.diagnose — the sister skill, for build / sim / test failure triage.define-contracts — the contracts the audit checks against.references/audit-checklist.md — the full audit rubric.references/audit-prompt-template.md — the Codex prompt template.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub curryfromuestc/dev-guide --plugin chipdev-method8 skills in this plugin
/align-and-difftestGuides behavior model ↔ RTL equivalence checking — sampling point selection (commit/retire vs transaction-edge vs cycle), drive direction (DUT pushes ref), DPI-C probe interface, async event alignment, snapshot-based debugging, and DSL-driven probe generation. Activate when the user explicitly invokes /chipdev-method:align-and-difftest, or asks "怎么 diff cmodel 和 RTL", "behavior 对不上 RTL", "difftest 怎么搭", "what should I sample", "RVVI vs DPI", or "snapshot for difftest", or sets up a difftest infrastructure./build-behavior-modelGuides the construction of a functional behavior model that decouples timing but preserves architectural state for RTL difftest — what to keep, what to drop, where to embed probes, how to package the cross-language interface, and how to coordinate memory with the DUT. Activate when the user explicitly invokes /chipdev-method:build-behavior-model, or asks "什么是行为模型", "behavior model 边界", "difftest 用什么 ref 模型", "怎么做 functional simulator", or designs the reference half of a difftest setup./build-perf-modelGuides the construction of a cycle-accurate performance model — scheduler model, module lifecycle, idle/advance contract, pipeline primitives, sparse memory, transaction memory pool, configuration system, and dump infrastructure. Activate when the user explicitly invokes /chipdev-method:build-perf-model, or asks "怎么写 cycle-accurate 模拟器", "性能模拟器怎么写", "how to model timing", "should I use SC_THREAD or advance loop", or is implementing a microarchitecture timing model./build-rtlGuides RTL frontend design discipline — module boundary rules, synthesizability constraints, observability instrumentation, lint cleanliness as a hard gate, reset strategy, and clock-domain crossing. Activate when the user explicitly invokes /chipdev-method:build-rtl, or asks "RTL 怎么分层", "should I use always_ff or always", "怎么做 lint clean", "reset strategy", "CDC how to handle", or starts writing SystemVerilog for a new module./choose-artifactHelps the user decide whether to build a performance model, a behavior model, or RTL for a chip frontend task, and in what order. Activate when the user explicitly invokes /chipdev-method:choose-artifact, or asks variants like "should I write cmodel or RTL first", "怎么选模型", "what artifact do I need", or stands at the start of a new chip / module / subsystem and has not yet committed to an artifact path./define-contractsDesigns the contracts that hold across performance model, behavior model, and RTL — single-source-of-truth interface DSL, hierarchy DSL, global constants, protocol annotations, state contracts, observability hooks, and alignment points. Activate when the user explicitly invokes /chipdev-method:define-contracts, or when they describe defining new module boundaries, designing an interface DSL, planning difftest probes, asking "怎么定义接口", "interface DSL", "single source of truth", or starting any chip frontend project that will have more than one artifact.