tscircuit
帮助用户使用tscircuit (React/TypeScript) 和tsci CLI设计电子产品,遵循其原生行为。
npx skills add tscircuit/skill --skill tscircuitBefore / After 效果对比
1 组传统电子产品设计流程复杂,难以直观地模拟和验证电路行为,设计效率低且容易出现兼容性问题。
使用tscircuit工具,通过React/TypeScript直观设计电子产品,精确模拟电路原生行为,加速产品开发。
description SKILL.md
tscircuit
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 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) 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. Find and install components Use tsci search "" to discover footprints and tscircuit registry packages. Use one of: tsci add <author/pkg> for registry packages (installs @tsci/* packages) tsci import when you need to import a component from JLCPCB or the registry. 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 Use for connectivity; prefer net connections (net.GND, net.VCC, etc.) for power/ground. Build and iterate Run tsci check netlist before tsci check placement and tsci build to catch connectivity issues early. Run tsci snapshot to inspect placement before checking routing. 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 for sub-layouts, or change autorouter settings. Use tsci dev only when you need interactive visual feedback (not typical for AI-driven iteration). Validate and export Run tsci check netlist before 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/ Weekly Installs184Repositorytscircuit/skillGitHub Stars2First SeenJan 23, 2026Security AuditsGen Agent Trust HubPassSocketPassSnykWarnInstalled onopencode175codex173gemini-cli168cursor165github-copilot163amp158
forum用户评价 (0)
发表评价
暂无评价,来写第一条吧
统计数据
用户评分
为此 Skill 评分