Skip to content
Code Generation
Command

/gf-fix

Fix lint

BOOST
From plugin
gateflow-plugin
11821 skills20 agents21 commands
Install
> /plugin marketplace add codejunkie99/gateflow-plugin
> /plugin install gateflow@gateflow

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/gf-fix

Context preview

What this command does when you run it.

Fix lint

Command definition

gf-fix.md
name: gf-fix
description: Fix lint
argument-hint: "<file>"
allowed-tools:
  - Bash
  - Read
  - Edit
  - Write

GateFlow Fix Command

Automatically fix lint errors in a SystemVerilog file using iterative lint-fix cycles.

Instructions

1. **Initial lint**: Run Verilator on the specified file:

   verilator --lint-only -Wall <file> 2>&1

2. **Parse errors**: Extract all errors and warnings from output

3. **Fix loop** (max 5 iterations):

  • Read the file content
  • For each error, apply the appropriate fix:
  • `UNUSED`: Remove unused signals or add `/* verilator lint_off UNUSED */`
  • `UNDRIVEN`: Initialize the signal or connect it properly
  • `WIDTH`: Adjust bit widths to match
  • `CASEINCOMPLETE`: Add missing case items or default
  • `BLKSEQ`: Change `=` to `<=` in always_ff blocks
  • Use Edit tool to apply fixes
  • Re-run lint to verify

4. **Report results**:

  • Show before/after error counts
  • List all fixes applied
  • Note any remaining issues that need manual review

5. **Safety**: Always show diffs before applying changes. Never auto-approve destructive changes.

Ships withgateflow-plugin

AI-powered hardware development platform — design, verify, synthesize, and deploy working RTL with natural language. Supports SystemVerilog, Verilog, and VHDL across the full open-source FPGA toolchain. Loving hardware doesn't have to be gatekept.

Get the whole plugin

Other commands on gateflow-plugin.