From chipdev-method
Routes a build, simulation, test, or difftest failure to Codex via the codex-plugin-cc rescue command for root-cause investigation. Activate when the user explicitly invokes /chipdev-method:diagnose, or describes a failure ("build failed", "sim hangs", "difftest mismatch on cycle X", "loss went NaN", "OOM at step Y", "为什么挂了", "为什么对不上") and wants an independent investigation, or has been staring at a stack trace / log / waveform without progress.
npx claudepluginhub curryfromuestc/dev-guide --plugin chipdev-methodThis skill is limited to using the following tools:
Use this skill when the user faces a build / sim / test / difftest failure
Monitors deployed URLs for regressions after deploys, merges, or upgrades by checking HTTP status, console errors, network failures, performance (LCP/CLS/INP), content, and API health.
Share bugs, ideas, or general feedback.
Use this skill when the user faces a build / sim / test / difftest failure
and wants an external investigation. The skill packages the failure context
and routes to Codex through codex-plugin-cc's rescue command.
This skill does not solve the failure itself. It assembles context and hands off. Codex investigates and proposes a root cause and a fix plan.
Do not autoload — only respond when the user invokes
/chipdev-method:diagnose or matches the trigger phrases in the description.
Same as audit:
codex CLI on PATH.codex-plugin-cc installed.Surface remediation steps if any are missing.
When triggered, perform the following steps:
Pick one (ask the user if not obvious):
The classification drives what context to collect.
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 anything is missing, instruct the user to install
codex-plugin-cc or
re-invoke from a git repo. Stop.
Always collect:
git log -1 --stat).By failure class, additionally:
| Class | Extra context |
|---|---|
| Build failure | Full compiler / linker / codegen output, last 200 lines. |
| Sim crash | Stack trace if available, last 200 lines of sim log, the test command. |
| Sim hang | The last 100 lines before hang; the test command; estimated where it hung (cycle / module). |
| Test mismatch | The diff / mismatch report (e.g., CompTool output); the test name and inputs. |
| Difftest mismatch | The exact instruction / transaction at mismatch; ref state vs DUT state at the boundary; mask configuration in use. |
| Performance regression | Before / after timing; profiling output if available; commit ranges that bracket the regression. |
| Numerical degradation | The threshold violated; the data type; the workload / test name. |
Cap log excerpts at ~500 lines. If the log is longer, take the first 100
and last 200, plus any line containing error, fail, assert, nan,
or the test name.
Read the user's argument:
Use references/diagnose-prompt-template.md as the template. Fill in:
references/failure-taxonomy.md.Prefer the codex-plugin-cc slash command (/codex:rescue or whichever
that plugin exposes). Direct fallback:
codex exec -m gpt-5.4 \
-c model_reasoning_effort=high \
--full-auto \
-C "$(git rev-parse --show-toplevel)" \
- < "$DIAGNOSE_PROMPT_FILE"
When Codex returns:
Do not echo Codex's full output verbatim — compress.
[abstract]Quick patterns to surface to the user before invoking Codex, when classification is clear.
proc_* callback signatures.Conn — module was renamed but the factory
was not regenerated.idle() returned false but queue had
already been drained.idle() returns false while no input remains — stale flag.valid+ready deadlock: both sides waiting on each other.align-and-difftest triage flow before invoking diagnose. Often
the right initial step is align-and-difftest's "Debugging a mismatch"
section, not diagnose directly.[abstract]audit — the sister skill, for methodology compliance review.align-and-difftest — the difftest-specific triage flow that may resolve
the issue without invoking Codex.references/failure-taxonomy.md — common failure causes by class.references/diagnose-prompt-template.md — the Codex prompt template.