review-vhdl
ALWAYS invoke this skill when reviewing VHDL code for idiomatic style, synthesizability, or best practices. NEVER review VHDL without this skill.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- review-vhdl
- description
- ALWAYS invoke this skill when reviewing VHDL code for idiomatic style, synthesizability, or best practices. NEVER review VHDL without this skill.
02 资源文件 2
- 参考文档references/vhdl-idioms.md14.0 KB
- 参考文档workflows/vhdl-review.md6.0 KB
03 SKILL.md 正文
<objective> Prioritized VHDL-2008 review findings covering library usage, type discipline, process patterns, naming conventions, and synthesizability.
</objective>
<quick_start>
Invoke: /review-vhdl
Provide the VHDL files to review (design files, packages, testbenches, or any combination). The skill walks through a structured review:
- Library & Type Review - IEEE library usage, type discipline, package organization
- Process & Structural Review - Process patterns, FSMs, entity/architecture idioms
- Synthesizability & Style Review - Latch detection, naming, readability
- Findings Report - Prioritized improvements with idiomatic alternatives
</quick_start>
<essential_principles>
ieee.numeric_std is the only arithmetic library. std_logic_arith, std_logic_unsigned, and std_logic_signed are Synopsys packages, not IEEE standard. Their presence is always a finding.
std_ulogic over std_logic for single-driver signals. std_logic is resolved (supports multiple drivers). Most signals have one driver. Use std_ulogic / std_ulogic_vector unless multi-driver resolution is required.
Named association, always. Positional port maps and generic maps are fragile and unreadable. Named association is non-negotiable.
Complete assignments prevent latches. Every branch of an if or case must assign every signal that any branch assigns. Missing assignments infer latches in synthesis.
rising_edge() over 'event. clk'event and clk = '1' fails on transitions from 'X' to '1'. rising_edge(clk) is correct.
Synchronous reset in the clocked process. Asynchronous resets require careful CDC handling and complicate timing analysis. Prefer synchronous unless the target fabric demands otherwise.
</essential_principles>
<intake> What would you like reviewed?
Provide any combination of:
- Design files (.vhd) - Entities, architectures, component declarations
- Package files (.vhd) - Type definitions, constants, functions
- Testbench files (.vhd) - Stimulus generation, checking logic
- Constraint files (.xdc, .sdc) - Timing and placement constraints (for context)
You can provide file paths, paste code, or point to a directory.
Wait for the user to provide files before proceeding.
</intake>
<routing> After the user provides files, execute the review workflow:
Read ${CLAUDE_SKILL_DIR}/references/vhdl-idioms.md first, then follow ${CLAUDE_SKILL_DIR}/workflows/vhdl-review.md exactly.
| User Provides | Reference to Read | Additional Context |
|---|---|---|
| Design files | ${CLAUDE_SKILL_DIR}/references/vhdl-idioms.md |
Full review against all idiom categories |
| Package files | ${CLAUDE_SKILL_DIR}/references/vhdl-idioms.md |
Focus on type discipline, naming |
| Testbench files | ${CLAUDE_SKILL_DIR}/references/vhdl-idioms.md |
Testbench-specific idioms apply |
| Mixed | ${CLAUDE_SKILL_DIR}/references/vhdl-idioms.md |
Review each file in its appropriate mode |
</routing>
<reference_index>
| File | Purpose |
|---|---|
${CLAUDE_SKILL_DIR}/references/vhdl-idioms.md |
Comprehensive idiomatic VHDL-2008 reference |
${CLAUDE_SKILL_DIR}/workflows/vhdl-review.md |
Step-by-step review procedure with finding format |
</reference_index>
<success_criteria> Review is complete when:
- [ ] Every file reviewed against idiomatic VHDL standards
- [ ] Findings are specific: file, line, what, why, idiomatic alternative
- [ ] Findings are prioritized: P0 (incorrect hardware), P1 (quality/maintainability), P2 (style)
- [ ] Non-standard library usage flagged
- [ ] Latch and sensitivity-list issues identified
- [ ] Naming convention deviations noted
- [ ] Summary table of all findings delivered
</success_criteria>
04 同仓库更多 Skills
plugin
暂无简介
sanitize-powerpoint
ALWAYS invoke this skill when sanitizing, cleaning up, auditing, or aligning a PowerPoint (.pptx) deck — slide-master and layout structure, layout type attributes, stray fonts, non-theme colors, or layout naming. NEVER hand-edit pptx XML without this skill.
draw-excalidraw
ALWAYS invoke this skill when creating Excalidraw diagrams, visualizing workflows, architectures, or concepts. NEVER generate Excalidraw JSON without this skill.
typescript-test-standards
TypeScript test standards enforced across all skills. Loaded by other skills, not invoked directly.
typescript-code-standards
TypeScript code standards enforced across all skills. Loaded by other skills, not invoked directly.
typescript-architecture-standards
TypeScript ADR conventions enforced across architect and auditor skills. Loaded by other skills, not invoked directly.