Skip to content
Skills Library
Other · Building & coding

tscircuit

/tscircuit

Use this skill when creating, editing, or debugging electronic circuits, schematics, or PCB layouts with tscircuit, including React/TypeScript circuit code. Invoke for component and footprint selection, electrical connections, schematic organization, PCB placement, trace routing, routing failures, design checks, and fabrication exports—even when the user does not mention the CLI. Use tscircuit's built-in autorouting and documented APIs; do not implement a custom router unless the user explicitly requests one.

Repository
skill ↗
Licence
MIT
Last repository change
09.10.2026

Assessment and security

95/ 100Class: good
Format20 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
106
Scripts
7
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 09.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 7 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/export_svgs.sh, scripts/fetch_ai_txt.sh, scripts/smoke_test.sh, templates/arduino-shield-led.tsx, templates/chip-with-pinouts.tsx, templates/group-layout.tsx, templates/minimal-board.tsx

What it does and when to use it

Use this skill when creating, editing, or debugging electronic circuits, schematics, or PCB layouts with tscircuit, including React/TypeScript circuit code. Invoke for component and footprint selection, electrical connections, schematic organization, PCB placement, trace routing, routing failures, design checks, and fabrication exports—even when the user does not mention the CLI. Use tscircuit's built-in autorouting and documented APIs; do not implement a custom router unless the user explicitly requests one.

Original author description

Use this skill when creating, editing, or debugging electronic circuits, schematics, or PCB layouts with tscircuit, including React/TypeScript circuit code. Invoke for component and footprint selection, electrical connections, schematic organization, PCB placement, trace routing, routing failures, design checks, and fabrication exports—even when the user does not mention the CLI. Use tscircuit's built-in autorouting and documented APIs; do not implement a custom router unless the user explicitly requests one.

How it works

  1. Default workflow
  2. Safety and non-goals
  3. Local references bundled with this Skill
  4. Builtin Elements
Original SKILL.md headings · 185 lines, 1,416 words
SKILL.md preview
---
name: tscircuit
description: Use this skill when creating, editing, or debugging electronic circuits, schematics, or PCB layouts with tscircuit, including React/TypeScript circuit code. Invoke for component and footprint selection, electrical connections, schematic organization, PCB placement, trace routing, routing failures, design checks, and fabrication exports—even when the user does not mention the CLI. Use tscircuit's built-in autorouting and documented APIs; do not implement a custom router unless the user explicitly requests one.
allowed-tools: Read, Write, Grep, Glob, Bash
---

# tscircuit

You are helping the user design electronics using tscircuit (React/TypeScript) and the `tsci` CLI.

When this Skill is active:

- Prefer tscircuit’s documented primitives and CLI behavior. If something is unclear, confirm by:
  - Reading local files in the repo (e.g., `tscircuit.config.json`, `index.circuit.tsx`, `package.json`)
  - Running `tsci --help` or the specific subcommand’s `--help`
- Avoid “inventing” JSX props or CLI flags.

## Default workflow

1) Clarify requirements (if not already given)
- Board form factor / size constraints
- Power sources and voltage rails
- I/O: connectors, headers, mounting holes, mechanical constraints
- Target manufacturer constraints (trace/space, assembly, supplier)

2) Choose a starting point
- If the repo is not a tscircuit project, recommend:
  - Install CLI, then `tsci init` to bootstrap a project.
- If a form-factor template is appropriate (Arduino Shield, Raspberry Pi HAT, etc.), prefer `@tscircuit/common` templates.

3) Find and install components
- Use `tsci search "<query>"` to discover footprints and tscircuit registry packages.
- Use `tsci search --digikey "<query>"` or `tsci search --mouser "<query>"` when distributor stock and supplier part numbers matter. Both flags can be combined, and `--json` provides machine-readable results.
- For USB-C receptacles/connectors, prefer builtin syntax with `<connector standard="usb_c" />` instead of importing from JLCPCB.
- Use one of:
  - `tsci add <author/pkg>` for registry packages (installs `@tsci/*` packages)
  - `tsci import <query>` when you need to import a component from JLCPCB or the registry.
- DigiKey and Mouser search results are for part discovery; `tsci import` does not directly import from those distributors.

4) Write/modify TSX circuit code
- Keep circuits as a default-exported function that returns JSX.
- Nearly every schematic should be broken up using `<schematicsheet>` and `<schematicsection>` to organize related circuitry into clear, readable sheets and sections.
- Read `FOOTPRINTS.md` before writing custom footprint TSX; prefer a footprinter string when one matches the package.
- Use layout props intentionally:
  - PCB: `pcbX`, `pcbY`, `pcbRotation`, `layer`
  - Schematic: `schX`, `schY`, `schRotation`, `schOrientation`
- On large projects (5+ components), use `<schematicsection />` to group components by function (e.g. "Power", "MCU", "IO"). This is one of the most important things for schematic readability. Assign each component a `schSectionName` and manually position all members of a section in close proximity using `schX`/`schY`.
- When one large chip needs to appear on multiple schematic sheets, declare the `<chip />` once before the sheets, then use one `<schematicbox chipRef=".U1" />` per sheet. Either nest each box inside its `<schematicsheet />`, or keep the elements as siblings and assign the box with `schSheetName`. Pass only that sheet's labels to the box and keep connections addressed to the original chip, such as `U1.VCC`. See the [`<schematicbox />` reference](./elements/schematicbox.md#split-one-chip-across-multiple-schematic-sheets).
- Use `<antenna />` for a placed, open-ended PCB antenna. Give it a one-pad footprint, define its local copper geometry with `pcbPath`, and connect the circuit to its `.feed` port with a separate `<trace />`. See the [`<antenna />` reference](./elements/antenna.md).
- For fixed-layer bus interconnects, use `<autoroutingphase autorouter="bus_lanes" connections={[...]} />`. Read [Bus-lanes routing](./BUS_LANES.md) for endpoint selectors, fanout handoffs, length matching, and unsupported cases. Keep width and skew settings on `<bus />`; preserve the phase output for later global routing.
- Use `<fanout autorouter="dogbone" fanoutRoutingLayers={["inner2"]}>` for local BGA pad-to-via escapes, including connected VCC/GND pads. [Details](https://docs.tscircuit.com/elements/fanout#local-dogbones).
- For pre-generated fanout routes, use `<fanout pcbTracePaths={savedPaths}>` (or `<breakout>`). Read [Saved fanout trace paths](./SAVED_FANOUT_PATHS.md) for JSON imports, local coordinates, complete coverage, and via endpoints with `allowViaInPad`.
- Use `<board routeRemaining={false}>` to skip implicit routing of remaining connections while keeping explicit routing phases and breakouts. Unrouted connections still produce DRC errors; `true` or omission keeps normal remaining routing. Nested subcircuits inherit the setting.
- Use `<trace />` for connectivity; prefer net connections (`net.GND`, `net.VCC`, etc.) for power/ground.

5) Build and iterate
- Use `tsci check source [file]` for source diagnostics and `tsci check pin_specification [file]` for pin requirements before layout.
- Run `tsci check netlist` before `tsci check schematic-placement`, `tsci check placement`, and `tsci build` to catch connectivity issues early.
- Use `tsci check schematic-placement` to validate schematic-side placement before checking PCB placement.
- Do not finalize unless both `tsci check schematic-placement` and `tsci check placement` pass with no actionable placement violations; if violations exist, fix layout and rerun until clean.
- Use `tsci check trace-length <pinOrNetRef> [file]` to inspect lengths for a pin or net, such as `R1.pin1` or `net.GND`. Source inputs are routed before analysis; prebuilt Circuit JSON is also accepted.
- Run `tsci build --pcb-png [file]` to inspect placement before checking routing.
- Run `tsci check routing-difficulty` after placement to identify potential areas of congestion.
- Run `tsci build` to compile and validate the circuit.
- When routing looks suspicious, run
  `tsci build [file] --autorouter-debug --autorouter-debug-dir dist/autorouter-debug`
  and inspect `placement-unrouted.png` plus each cumulative
  `phase-N-routed.png`. Add `--autorouter-dump-srj all` when the
  SimpleRouteJson input and output for every stage is also needed.
- After routing, run `tsci check shorts [file]` to detect unintended shorts between separate PCB copper groups. Omit `[file]` to use the project entrypoint; a prebuilt `*.circuit.json` file is also accepted.
- A detected short makes `tsci check shorts` exit nonzero. Inspect `checks/check-shorts/bitmap.png` and `checks/check-shorts/pcb.svg`, fix the implicated copper, then rerun the check. Do not dismiss this failure as a generic DRC warning.
- After routing, run `tsci check pcb-style [file]` for long odd-angle runs and unnecessary stair stepping. Use the default rules, inspect the counted overview in `checks/check-pcb-style/pcb.svg`, and fix the routing; subdividing trace points does not resolve a style issue.
- The default shorts check analyzes Gerber-derived copper on all available copper layers. Use `--mode pcb` for PCB geometry, `--layer top` or `--layer bottom` to narrow the scope, and `--pixels-per-mm <number>` only when a different bitmap resolution is needed.
- DRC (Design Rule Check) errors can often be ignored during development—focus on getting the circuit correct first.
- If routing struggles, reduce density, use `<group />` for sub-layouts, or change autorouter settings.
- Use `tsci dev` only when you need interactive visual feedback (not typical for AI-driven iteration).

6) Validate and export
- Run `tsci check netlist` before `tsci check schematic-placement`, `tsci check placement`, and `tsci build` when preparing to share/publish.
- Run `tsci check shorts` after routing and before sharing, publishing, or producing fabrication outputs. Resolve every reported short before proceeding.
- Run `tsci check pcb-style` and review the highlighted routing issues before sharing or exporting. See `CLI.md` for the check commands and output options.
- Run `tsci build` (and optionally `tsci snapshot`) before sharing/publishing.
- Use `tsci export` for SVG/netlist/DSN/3D/library outputs.
- For manufacturing, obtain fabrication outputs (Gerbers/BOM/PnP) from the export UI after `tsci dev`.

## Safety and non-goals

- Treat electrical safety, regulatory compliance, and manufacturability as user-owned responsibilities.
- Do not publish (`tsci push`) or place orders unless the user explicitly requests it.

## Local references bundled with this Skill

- CLI primer: `CLI.md`
- Syntax primer: `SYNTAX.md`
- Workflow patterns: `WORKFLOW.md`
- Pre-export checklist: `CHECKLIST.md`
- Ready-to-copy templates: `templates/`
- Helper scripts: `scripts/`

## Builtin Elements

- [`<analogsimulation />`](./elements/analogsimulation.md)
- [`<antenna />`](./elements/antenna.md)
- [`<assembly.device />`](./elements/assemblydevice.md)
- [`<battery />`](./elements/battery.md)
- [`<board />`](./elements/board.md)
- [`<breakout />`](./elements/breakout.md)
- [`<breakoutpoint />`](./elements/breakoutpoint.md)
- [`<cadassembly />`](./elements/cadassembly.md)
- [`<cadmodel />`](./elements/cadmodel.md)
- [`<capacitor />`](./elements/capacitor.md)
- [`<chip />`](./elements/chip.md)
- [`<connector />`](./elements/connector.md)
- [`<constraint />`](./elements/constraint.md)
- [`<copperpour />`](./elements/copperpour.md)
- [`<coppertext />`](./elements/coppertext.md)
- [`<courtyardcircle />`](./elements/courtyardcircle.md)
- [`<courtyardoutline />`](./elements/courtyardoutline.md)
- [`<courtyardpill />`](./elements/courtyardpill.md)
- [`<courtyardrect />`](./elements/courtyardrect.md)
- [`<crystal />`](./elements/crystal.md)
- [`<currentsource />`](./elements/currentsource.md)
- [`<cutout />`](./elements/cutout.md)
- [`<diode />`](./elements/diode.md)
- [`<enclosure.cutoutaperture />`](./elements/enclosurecutoutaperture.md)
- [`<enclosure.fdm.box />`](./elements/enclosurefdmbox.md)
- [`<fabricationnotedimension />`](./elements/fabricationnotedimension.md)
- [`<fabricationnotepath />`](./elements/fabricationnotepath.md)
- [`<fabricationnoterect />`](./elements/fabricationnoterect.md)
- [`<fabricationnotetext />`](./elements/fabricationnotetext.md)
- [`<fiducial />`](./elements/fiducial.md)
- [`<footprint />`](./elements/footprint.md)
- [`<fuse />`](./elements/fuse.md)
- [`<group />`](./elements/group.md)
- [`<hole />`](./elements/hole.md)
- [`<inductor />`](./elements/inductor.md)
- [`<jumper />`](./elements/jumper.md)
- [`<keepout />`](./elements/keepout.md)
- [`<led />`](./elements/led.md)
- [`<mosfet />`](./elements/mosfet.md)
- [`<mountedboard />`](./elements/mountedboard.md)
- [`<net />`](./elements/net.md)
- [`<netalias />`](./elements/netalias.md)
- [`<netlabel />`](./elements/netlabel.md)
- [`<opamp />`](./elements/opamp.md)
- [`<panel />`](./elements/panel.md)
- [`<pcbnotedimension />`](./elements/pcbnotedimension.md)
- [`<pcbnoteline />`](./elements/pcbnoteline.md)
- [`<pcbnotepath />`](./elements/pcbnotepath.md)
- [`<pcbnoterect />`](./elements/pcbnoterect.md)
- [`<pcbnotetext />`](./elements/pcbnotetext.md)
- [`<pcbtrace />`](./elements/pcbtrace.md)
- [`<pinheader />`](./elements/pinheader.md)
- [`<pinout />`](./elements/pinout.md)
- [`<platedhole />`](./elements/platedhole.md)
- [`<port />`](./elements/port.md)
- [`<potentiometer />`](./elements/potentiometer.md)
- [`<pushbutton />`](./elements/pushbutton.md)
- [`<resistor />`](./elements/resistor.md)
- [`<resonator />`](./elements/resonator.md)
- [`<schematicarc />`](./elements/schematicarc.md)
- [`<schematicbox />`](./elements/schematicbox.md)
- [`<schematiccell />`](./elements/schematiccell.md)
- [`<schematiccircle />`](./elements/schematiccircle.md)
- [`<schematicline />`](./elements/schematicline.md)
- [`<schematicpath />`](./elements/schematicpath.md)
- [`<schematicrect />`](./elements/schematicrect.md)
- [`<schematicrow />`](./elements/schematicrow.md)
- [`<schematicsection />`](./elements/schematicsection.md)
- [`<schematictable />`](./elements/schematictable.md)
- [`<schematictext />`](./elements/schematictext.md)
- [`<silkscreencircle />`](./elements/silkscreencircle.md)
- [`<silkscreenline />`](./elements/silkscreenline.md)
- [`<silkscreenpath />`](./elements/silkscreenpath.md)
- [`<silkscreenrect />`](./elements/silkscreenrect.md)
- [`<silkscreentext />`](./elements/silkscreentext.md)
- [`<smtpad />`](./elements/smtpad.md)
- [`<solderjumper />`](./elements/solderjumper.md)
- [`<subcircuit />`](./elements/subcircuit.md)
- [`<subpanel />`](./elements/subpanel.md)
- [`<switch />`](./elements/switch.md)
- [`<symbol />`](./elements/symbol.md)
- [`<testpoint />`](./elements/testpoint.md)
- [`<trace />`](./elements/trace.md)
- [`<tracehint />`](./elements/tracehint.md)
- [`<transistor />`](./elements/transistor.md)
- [`<via />`](./elements/via.md)
- [`<voltageprobe />`](./elements/voltageprobe.md)
- [`<voltagesource />`](./elements/voltagesource.md)
Files in this package (106)
  • .gitignore 1 KB
  • BUS_LANES.md 3 KB
  • CHECKLIST.md 1 KB
  • CLI.md 9 KB
  • FOOTPRINTS.md 3 KB
  • LICENSE 1 KB
  • README.md 1 KB
  • SAVED_FANOUT_PATHS.md 5 KB
  • SKILL.md 13 KB
  • SYNTAX.md 6 KB
  • WORKFLOW.md 5 KB
  • elements/analogsimulation.md 1 KB
  • elements/antenna.md 3 KB
  • elements/assemblydevice.md 1 KB
  • elements/battery.md 1 KB
  • elements/board.md 1 KB
  • elements/breakout.md 3 KB
  • elements/breakoutpoint.md 1 KB
  • elements/cadassembly.md 1 KB
  • elements/cadmodel.md 3 KB
  • elements/capacitor.md 1 KB
  • elements/chip.md 1 KB
  • elements/connector.md 4 KB
  • elements/constraint.md 2 KB
  • elements/copperpour.md 1 KB
  • elements/coppertext.md 1 KB
  • elements/courtyardcircle.md 1 KB
  • elements/courtyardoutline.md 1 KB
  • elements/courtyardpill.md 1 KB
  • elements/courtyardrect.md 1 KB
  • elements/crystal.md 1 KB
  • elements/currentsource.md 1 KB
  • elements/cutout.md 1 KB
  • elements/diode.md 1 KB
  • elements/enclosurecutoutaperture.md 5 KB
  • elements/enclosurefdmbox.md 2 KB
  • elements/fabricationnotedimension.md 1 KB
  • elements/fabricationnotepath.md 1 KB
  • elements/fabricationnoterect.md 1 KB
  • elements/fabricationnotetext.md 1 KB
  • elements/fiducial.md 1 KB
  • elements/footprint.md 4 KB
  • elements/fuse.md 1 KB
  • elements/group.md 1 KB
  • elements/hole.md 1 KB
  • elements/inductor.md 1 KB
  • elements/jumper.md 1 KB
  • elements/keepout.md 1 KB
  • elements/led.md 1 KB
  • elements/mosfet.md 1 KB
  • elements/mountedboard.md 1 KB
  • elements/net.md 1 KB
  • elements/netalias.md 1 KB
  • elements/netlabel.md 1 KB
  • elements/opamp.md 1 KB
  • elements/panel.md 1 KB
  • elements/pcbnotedimension.md 1 KB
  • elements/pcbnoteline.md 1 KB
  • elements/pcbnotepath.md 1 KB
  • elements/pcbnoterect.md 1 KB
  • elements/pcbnotetext.md 1 KB
  • elements/pcbtrace.md 1 KB
  • elements/pinheader.md 1 KB
  • elements/pinout.md 1 KB
  • elements/platedhole.md 1 KB
  • elements/port.md 1 KB
  • elements/potentiometer.md 1 KB
  • elements/pushbutton.md 1 KB
  • elements/resistor.md 1 KB
  • elements/resonator.md 1 KB
  • elements/schematicarc.md 1 KB
  • elements/schematicbox.md 5 KB
  • elements/schematiccell.md 1 KB
  • elements/schematiccircle.md 1 KB
  • elements/schematicline.md 1 KB
  • elements/schematicpath.md 1 KB
  • elements/schematicrect.md 1 KB
  • elements/schematicrow.md 1 KB
  • elements/schematicsection.md 3 KB
  • elements/schematictable.md 1 KB
  • elements/schematictext.md 1 KB
  • elements/silkscreencircle.md 1 KB
  • elements/silkscreenline.md 1 KB
  • elements/silkscreenpath.md 2 KB
  • elements/silkscreenrect.md 1 KB
  • elements/silkscreentext.md 1 KB
  • elements/smtpad.md 1 KB
  • elements/solderjumper.md 1 KB
  • elements/subcircuit.md 1 KB
  • elements/subpanel.md 1 KB
  • elements/switch.md 1 KB
  • elements/symbol.md 2 KB
  • elements/testpoint.md 1 KB
  • elements/trace.md 1 KB
  • elements/tracehint.md 1 KB
  • elements/transistor.md 1 KB
  • elements/via.md 1 KB
  • elements/voltageprobe.md 1 KB
  • elements/voltagesource.md 1 KB
  • scripts/export_svgs.sh 1 KB
  • scripts/fetch_ai_txt.sh 1 KB
  • scripts/smoke_test.sh 1 KB
  • templates/arduino-shield-led.tsx 1 KB
  • templates/chip-with-pinouts.tsx 2 KB
  • templates/group-layout.tsx 1 KB
  • templates/minimal-board.tsx 1 KB

Versions

The database has no other skills named tscircuit.

Database snapshot: 13.11.2026 · package version e20b51a5325d (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90schematic-deep-review
    Explain complete electronic schematics through verified connections, component interactions, power paths, calculations, and manufacturer evidence; collect datasheets and produce readable annotated PDFs. Use for schematic learning, detailed circuit reviews, and evidence-backed…
  • 100using-kicad
    Use when starting any conversation involving electronics, KiCad, PCB design, schematic capture, circuit design, or EDA tasks.
  • 100schematic-review-audit
    Comprehensive pre-layout electrical audit checklist for electronic schematics. Use this skill when reviewing, validating, or auditing an electronic schematic, inspecting net connectivity, checking floating pins, verifying pull-up/pull-down resistors, or preparing a schematic for…
  • 95kicad
    Analyze KiCad projects and PDF schematics: schematics, PCB layouts, Gerbers, footprints, symbols, netlists, and design rules. Reviews designs for bugs, traces nets, cross-references schematic to PCB, extracts BOM data, checks DRC/ERC, DFM, power trees, and regulator circuits.…
  • 100pcb-engineer
    Designs the product's PCBs in KiCad from one JSON spec, scripted and reproducible. Covers the outline from the enclosure, footprints from KiCad libraries or datasheets, nets, legalized placement with keepouts, schematic, ERC/DRC, optional autorouting and exports (GLB/STEP,…
  • 100schematic-generator
    Generates schematics, netlists, or HDL from approved, baselined requirements for hardware/PCB projects. Validates physical constraints. Use when building PCB, HDL, or hardware designs after Gate 1 approval and baseline capture.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.