# Erc Rules

> >-

- **Type:** Skill
- **Install:** `agentstack add skill-nickkraakman-skidl-skills-erc-rules`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [nickkraakman](https://agentstack.voostack.com/s/nickkraakman)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [nickkraakman](https://github.com/nickkraakman)
- **Source:** https://github.com/nickkraakman/skidl-skills/tree/master/skills/erc-rules

## Install

```sh
agentstack add skill-nickkraakman-skidl-skills-erc-rules
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# SKiDL ERC Rules

## When to use
- Before exporting any netlist
- After any circuit code change
- During design review (errors must be 0 before proceeding)

## Procedure

**Drive strength order** (PWR > OUT > BIDIR > TRI > OC > IN > NC)

**Must-fix errors — treat as blockers:**
- Output-to-output conflict (two OUT pins on same net)
- Floating input on active IC
- Power pin conflict
- Unconnected pin on IC (unless `NC`)

**Warnings — investigate, suppress only with justification:**
- Open-drain needs external pull-up → add resistor or `erc_assert()`
- Multi-driver bus (I2C, SPI) → expected; suppress with `erc_assert()`

**Mandatory decoupling:**
Every IC VCC pin → 100 nF minimum, named `C_DECOUP_*`

**Intentional NC:**
```python
U1['NC1', 'NC2'] += NC
```

**Warning suppression:**
```python
erc_assert("expected open-drain", net)
```

**ERC run pattern:**
```python
if __name__ == "__main__":
    # ... circuit ...
    ERC()
```

## Output

Produce this summary line after every ERC run:
```
"X errors, Y warnings, Z notes. Circuit is [PASS/FAIL]."
```

## Validation

- Never declare a circuit ready until errors == 0
- Suppressed warnings must have a comment explaining why

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [nickkraakman](https://github.com/nickkraakman)
- **Source:** [nickkraakman/skidl-skills](https://github.com/nickkraakman/skidl-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-nickkraakman-skidl-skills-erc-rules
- Seller: https://agentstack.voostack.com/s/nickkraakman
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
