tscircuit
Build, modify, and debug tscircuit (React/TypeScript) PCB designs. Use when working with tsci CLI (init/dev/search/add/import/build/export/snapshot/push), choosing footprints, placing parts, wiring nets/traces, or preparing fabrication outputs (Gerbers/BOM/PnP).
What this skill does
# 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. - 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. 4) Write/modify TSX circuit code - Keep circuits as a default-exported function that returns JSX. - 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`. - Use `<trace />` for connectivity; prefer net connections (`net.GND`, `net.VCC`, etc.) for power/ground. 5) Build and iterate - 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` to check for long straight line distances (before routing) or long routes (after routing) - 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. - 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 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) - [`<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) - [`<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) - [`<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) - [`<pcbkeepout />`](./elements/pcbkeepout.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/
Related in Web Dev
generating-lwc-components
IncludedLightning Web Components with PICKLES methodology and 165-point scoring. Use this skill when the user creates or edits LWC components, builds wire service patterns, or writes Jest tests for LWC. TRIGGER when: user creates/edits LWC components, touches lwc/**/*.js, .html, .css, .js-meta.xml files, or asks about wire service, SLDS, or Jest LWC tests. DO NOT TRIGGER when: Apex classes (use generating-apex), Aura components, or Visualforce.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Set up queries with useQuery, mutations with useMutation, configure QueryClient caching strategies, implement optimistic updates, and handle infinite scroll with useInfiniteQuery. Use when: setting up data fetching in React projects, migrating from v4 to v5, or fixing object syntax required errors, query callbacks removed issues, cacheTime renamed to gcTime, isPending vs isLoading confusion, keepPreviousData removed problems.
document-processor-api
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
nutrient-document-processing
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Covers useMutationState, simplified optimistic updates, throwOnError, network mode (offline/PWA), and infiniteQueryOptions. Use when setting up data fetching, fixing v4→v5 migration errors (object syntax, gcTime, isPending, keepPreviousData), or debugging SSR/hydration issues with streaming server components.
accelint-nextjs-best-practices
IncludedNext.js performance optimization and best practices. Use when writing Next.js code (App Router or Pages Router); implementing Server Components, Server Actions, or API routes; optimizing RSC serialization, data fetching, or server-side rendering; reviewing Next.js code for performance issues; fixing authentication in Server Actions; or implementing Suspense boundaries, parallel data fetching, or request deduplication.