Borrowing it
Nothing to install: this file belongs to circuit-synth/kicad-sch-api. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/circuit-synth/kicad-sch-api/main/.claude/commands/user/troubleshoot-library.mdgit clone --depth 1 https://github.com/circuit-synth/kicad-sch-apiWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/circuit-synth/kicad-sch-api/troubleshoot-library)<a href="https://agentmods.dev/commands/circuit-synth/kicad-sch-api/troubleshoot-library"><img src="https://agentmods.dev/badge/commands/circuit-synth/kicad-sch-api/troubleshoot-library/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/circuit-synth/kicad-sch-api/troubleshoot-library"><img src="https://agentmods.dev/badge/commands/circuit-synth/kicad-sch-api/troubleshoot-library.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00015 | $0.01034 |
| Opus 5 | $0.00008 | $0.00517 |
| Sonnet 5 | $0.00003 | $0.00207 |
| Haiku 4.5 | $0.00002 | $0.00103 |
Grade A, and why
troubleshoot-library scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 173 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Troubleshoot KiCAD Symbol Library Issues
Common Symptom
User reports errors like:
- "Library not found"
- "Symbol X:Y not found"
- "Cannot load component from library"
- Components fail to create with library errors
Root Cause
The kicad-sch-api library cannot find KiCAD symbol libraries (.kicad_sym files).
Solution: Configure Library Paths
Step 1: Find Your KiCAD Installation
✨ NEW: Automatic Library Finder
The easiest way to find your KiCAD libraries:
ksa-find-libraries
This command automatically searches your system and provides setup instructions.
Manual Search (if needed):
macOS:
ls /Applications/KiCad*.app/Contents/SharedSupport/symbols/
Linux:
ls /usr/share/kicad/symbols/
ls ~/.local/share/kicad/*/symbols/
Windows:
dir "C:\Program Files\KiCad\*\share\kicad\symbols"
Step 2: Set Environment Variable
macOS/Linux:
# Generic (works for any version)
export KICAD_SYMBOL_DIR=/Applications/KiCad/KiCad.app/Contents/SharedSupport/symbols
# Version-specific (if you have KiCAD 8)
export KICAD8_SYMBOL_DIR=/Applications/KiCad806/KiCad.app/Contents/SharedSupport/symbols/
# Add to ~/.bashrc or ~/.zshrc to make permanent
echo 'export KICAD8_SYMBOL_DIR=/Applications/KiCad806/KiCad.app/Contents/SharedSupport/symbols/' >> ~/.zshrc
Windows PowerShell:
$env:KICAD8_SYMBOL_DIR="C:\Program Files\KiCad\8.0\share\kicad\symbols"
# Make permanent:
[System.Environment]::SetEnvironmentVariable('KICAD8_SYMBOL_DIR', 'C:\Program Files\KiCad\8.0\share\kicad\symbols', 'User')
Step 3: Verify Configuration
Create a test script:
#!/usr/bin/env python3
import kicad_sch_api as ksa
# Test library discovery
cache = ksa.SymbolLibraryCache(enable_persistence=False)
lib_count = cache.discover_libraries()
print(f"Discovered {lib_count} libraries")
# Test loading a symbol
symbol = cache.get_symbol("Device:R")
if symbol:
print("✓ Successfully loaded Device:R")
else:
print("✗ Failed to load symbol")
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 173 lines · 15 tokens per session scan A f0af965a0968
troubleshoot-library is a command published in the GitHub repository circuit-synth/kicad-sch-api (52 stars, last pushed 9mo ago), licensed MIT. It adds 15 tokens to every session and 1,034 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
isolate-emi-culprit
Localise the device or sub-system causing an emissions failure or radio-receiver interference. Uses a structured bisection (swap-out + proximity + spectral signature) rather than free-form swap-everything debugging.
ingest-scan
Pull the OBD-II diagnostic feed into the ledger as structured evidence nodes — before clearing anything.
perf-profile.template
This prompt was authored for Claude-style slash workflows. In Codex runtime, adapt tool calls as follows.
gpu
Diagnose GPU health, discover bounded recipes, and collect typed numeric evidence without guessing from screenshots.
fix-issues
Pick up one approved task, implement the fix, and close it.
security-audit
Full security review — GitHub alerts, static code analysis, live app check — then a task per finding.