/oh-my-fpga:lint-triagefrom oh-my-fpga
Runs RTL lint and methodology checks on Verilog/VHDL designs, triaging each violation into fix, justified waiver, or ask-human. For FPGA design quality before synthesis sign-off.
Ships in oh-my-fpga. 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.
None: SKILL.md is the whole skill.
A playbook for driving SynthPilot's lint/methodology tools to find real RTL problems, then sorting every violation into one of three buckets: fix it, waive it (with a stated justification), or ask the human. The deliverable is a triaged report, not a green number. A lint run that is "clean" because real violations were silenced is a failure of this skill.
This skill follows one discipline above all: measure → classify → fix the smallest safe thing → re-measure. It never invents a tool, never downgrades a severity to hide a problem, and never claims "lint clean" without fresh tool output proving it on the current source.
check_async_reset here surfaces reset-path
methodology issues, not slack.check_cdc_lint / report_cdc are a first screen only; deep CDC analysis is a
separate playbook. Lint-triage flags CDC violations and hands them off.sim_*), not lint. Lint cannot tell you a correct-looking design
is functionally wrong.report_drc on a placed/routed design). Different
stage, different tool.Do not run any check until these pass. If one fails, stop and report it — do not guess.
test_connection. If it fails, the Tcl
server inside Vivado is not connected on TCP:9999 — report and stop.get_project_info and
list_source_files. If no project or no RTL sources, stop and ask the user to
open the project / point at the files.get_project_info shows no top, call set_top_module only with a name the
user gave or that is unambiguous from list_source_files; otherwise ask.run_full_lint_check, report_methodology,
get_lint_violations, check_latches, check_fsm, check_coding_style,
check_cdc_lint, check_simulation_mismatch) require an open synthesized
design. Plan to reach that stage in Step 3 — do not call those tools before
the design is open or they will error.Work the stages in order. Each stage is cheaper/earlier than the next; do not skip ahead, because a syntax error makes every later check meaningless.
list_source_files and (if useful) check_compile_order. A wrong compile
order produces phantom "undefined module" / black-box noise downstream;
fix ordering before trusting any later result.Run the checks that work directly on source. These are fast and catch the errors that would otherwise abort synthesis:
check_syntax (all sources) — must be clean before anything else is trustworthy.check_compile_order — ordering / include problems.check_black_box — undefined modules (missing files, typo'd module names, or a
genuinely intended black box / external IP).check_port_width_mismatch — connection width mismatches at instantiation.check_unconnected_ports — dangling/unconnected ports.If check_syntax reports errors, STOP the lint flow here. Classify and
surface the syntax errors (Step 5 table) and do not pretend later stages are
clean — you cannot run them on broken source.
Most high-value RTL lint (latches, FSM health, coding style, CDC, sim/synth mismatch) requires an elaborated/synthesized netlist.
run_synthesis_async, then poll
get_run_status until complete (multi-minute operations must not block).open_synthesized_design. (An already-open open_implemented_design also
satisfies the prerequisite.)get_synthesis_warnings — synthesis warnings frequently are the
lint findings (inferred latch, truncation, dropped logic) and corroborate the
dedicated checks.If synthesis fails, the failure itself is the top-priority violation: capture it, classify it (Step 5), and stop — there is nothing to lint on a netlist that doesn't exist.
Run the methodology suite and the targeted RTL checks:
run_full_lint_check — full syntax + methodology pass; the broad sweep.report_methodology then get_lint_violations — the structured violation list
you will triage (each item has a check name / ID).check_latches — inferred latches, the single most important RTL lint
signal; an unintended latch is almost always a real bug.check_fsm — FSM encoding / unreachable-state / dead-state health.check_coding_style — synthesis-relevant coding issues.check_cdc_lint — first-screen clock-domain-crossing flags (hand deep CDC off).check_simulation_mismatch — constructs that simulate differently than they
synthesize (the worst class: it works in sim, fails in hardware).For any violation you do not understand, pull detail with
report_lint_violation_detail(violation_id=...) before deciding what to do with
it. Never triage blind.
For each violation, read its detail and place it in exactly one bucket using the table below. Do not batch-waive. Do not batch-ignore. One verdict per item, each with a one-line reason.
update_file /
replace_in_file. Use read_file_lines to ground the recommendation in the
real code.waive_lint_violation(check_name=..., reason="<why this is safe and intended>", objects=...).
The reason string is mandatory and must be a real justification, not "waived".After each change class, re-run the relevant check on the current source/ netlist (re-synthesize if RTL changed) and diff the violation list. A fix is only "done" when the violation it targeted is gone from fresh tool output and no new violation appeared. Record before/after counts.
Map each violation to a cause and the smallest safe response. The default verdict is FIX; WAIVE is allowed only with an explicit, true justification; ASK when intent is unknown.
| Symptom / check | Likely cause | Smallest safe response | Default verdict |
|---|---|---|---|
check_latches finds inferred latch | Incomplete if/case or missing default in comb logic | Recommend full assignment (default value / else / default:); confirm with read_file_lines | FIX (RTL) |
check_port_width_mismatch | Instantiation port width ≠ signal width | Recommend resizing the signal/port; never widen blindly — verify intent | FIX (RTL) / ASK |
check_unconnected_ports | Dangling port | If functionally required → FIX (connect); if intentionally unused → tie-off/objects waiver with reason | FIX / WAIVE |
check_black_box | Missing file, typo'd name, OR intended external IP/stub | If missing → add file / fix check_compile_order; if intended → WAIVE with reason | FIX / WAIVE |
check_simulation_mismatch | Init values, #delay, sensitivity-list, X-pessimism gaps | RTL fix — these are silent hardware bugs | FIX (RTL) |
check_fsm unreachable/dead state | Unhandled case / wrong reset / dead code | Recommend handling or removing the state; do not waive a reachable hole | FIX (RTL) |
check_coding_style violation | Blocking/non-blocking misuse, mixed assigns, style rule | If functional risk → FIX; if cosmetic & team-approved → WAIVE with reason | FIX / WAIVE |
check_cdc_lint flag | Unsynchronized crossing / missing handshake | Hand to CDC sign-off; never waive a real crossing to clear lint | ASK / FIX |
report_methodology / get_lint_violations generic item | Vivado methodology rule (e.g. SYNTH-/TIMING- family) | Read report_lint_violation_detail; fix or justify per the item | depends → triage |
| Rule is a known false positive for this design | Tool over-reports a safe pattern | WAIVE the specific check_name/objects with a reason naming why it's safe | WAIVE |
| Intent genuinely unknown | Can't tell if the construct is deliberate | Present the finding + options; hand back to human | ASK |
LOOP:
1. Run the relevant check(s) (Step 2 / Step 4)
2. get_lint_violations -> list
3. For each item: report_lint_violation_detail -> classify (table)
4. Apply ONE change class:
- FIX (recommend RTL edit, get approval, then update_file/replace_in_file)
- WAIVE (waive_lint_violation with a real reason) [reviewed items only]
5. Re-synthesize if RTL changed; re-run the check (Step 7)
6. Diff before/after violation list
-> repeat
STOP the loop when any of these is true:
list_waivers. This is
the only "lint clean" you may claim — and only with the fresh output in hand.set_lint_severity to downgrade a check, disable_lint_rule, or
waive_lint_violation on an item that could be a genuine bug just to clear it.
A latch, width mismatch, CDC crossing, or sim/synth mismatch is presumed real
until proven intentional.waive_lint_violation
call carries a reason that explains why the construct is safe and intended —
scoped with objects to the specific cell/net where possible, never a blanket
waiver of an entire check. If you cannot articulate the justification, you may
not waive it; ask the user.read_file_lines, before/after) and get approval before
update_file / replace_in_file. Latch and mismatch fixes especially must be
reviewed.Deliver a triage report, not a verdict-by-assertion:
list_source_files) + top module + the stage reached
(syntax-only vs synthesized). Every claim is bounded to this.get_lint_violations / get_synthesis_warnings (fresh output, quoted/cited).check / ID | location | cause | verdict (FIX / WAIVE / ASK) | action taken or recommended.read_file_lines) and the re-measured result proving the violation cleared.list_waivers output, each with its justification.
Flag any waiver whose reason is weak so the human can revisit it.get_lint_violations output
attached)." Never state "clean" without that fresh evidence; if blocked, say
exactly what blocks it and what decision you need from the user.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lnc0831/oh-my-fpga --plugin oh-my-fpga13 skills in this plugin
/bitstream-programGenerate a bitstream and program a Xilinx FPGA over JTAG, or build an MCS image and burn it into SPI/BPI configuration flash for power-on boot. Invoke when the user says "program the board", "generate bitstream", "flash the device", "download to FPGA", "burn the flash", "load my design onto the board", "make a .mcs / .bit", or "why won't my board come up after power cycle". Covers the full hand-off from a routed implementation to live silicon: DRC + route + timing sign-off gating, .bit generation, hardware-server / JTAG connect, volatile JTAG download, and non-volatile flash programming (generate_mcs + add_flash_configuration + program_flash). Requires the SynthPilot MCP server with Vivado running and the Tcl server connected; flash / JTAG steps additionally require a physical board cabled to the host (or reachable through a remote hw_server).
/cdc-auditAudit and resolve clock-domain-crossing (CDC) risks on a design: enumerate every clock crossing, classify each by structure (synchronizer present/absent, single-bit vs bus, async reset, reconvergence), and apply the smallest safe fix (synchronizer RTL, set_clock_groups / set_max_delay -datapath_only / set_bus_skew constraints) without ever waiving a real crossing. Invoke when the user says "cdc analysis", "check clock domain crossings", "metastability review", "are my async crossings safe", "audit clock crossings", "fix CDC violations", "report_cdc is showing critical", "do I need a synchronizer here", or asks about gray-code, handshake, async FIFO, or reset-domain-crossing (RDC) safety. Requires the SynthPilot MCP server with Vivado open and the Tcl server running (TCP:9999); CDC reporting needs an elaborated or synthesized design.Other plugins' skills for the same job