AgentSkillsCN

Components

组件

SKILL.md

Components Reference

Complete reference for all PCB elements in tscircuit

Overview

tscircuit provides 48+ component elements for designing circuit boards. This skill organizes them by category for easy reference.

Component Categories

Core Components

ComponentDescription
boardRoot element containing all chips and traces
chipGeneric component for any electronic part
subcircuitReusable circuit blocks

Passive Components

ComponentDescription
resistorResists current flow
capacitorStores electrical energy
inductorStores energy in magnetic field
crystalPrecision timing component
resonatorCeramic resonator
fuseOvercurrent protection

Active Components

ComponentDescription
transistorSemiconductor switch/amplifier
mosfetField-effect transistor
diodeSingle-direction current flow
ledLight-emitting diode
batteryPower source
switchMechanical switch
pushbuttonMomentary push button
potentiometerVariable resistor

Connectors

ComponentDescription
pinheaderMale header pins
breakoutNet breakout container
breakoutpointExplicit breakout location

PCB Elements

ComponentDescription
footprintCustom footprint definition
traceCopper connection
viaLayer-to-layer connection
holeMounting hole
platedholePlated through-hole

Silkscreen & Notes

ComponentDescription
silkscreentextText on silkscreen layer
silkscreenrectRectangle on silkscreen
silkscreenlineLine on silkscreen
silkscreenpathPath on silkscreen
silkscreencircleCircle on silkscreen
pcbnotetextText on PCB
pcbnoterectRectangle on PCB
pcbnotelineLine on PCB
pcbnotepathPath on PCB
pcbnotedimensionDimension marker
fabricationnotetextManufacturing notes
fabricationnoterectManufacturing rectangle

Schematic Elements

ComponentDescription
schematictextSchematic text
schematiclineSchematic line
schematiccircleSchematic circle
schematicrectSchematic rectangle
schematicarcSchematic arc
schematicpathSchematic path

Simulation

ComponentDescription
analogsimulationSPICE simulation config
voltagesourceVoltage source for simulation
voltageprobeVoltage measurement point
netlabelNet name label

Grouping & Organization

ComponentDescription
groupGroup components for layout
cadassembly3D model assembly
cadmodel3D model reference
cutoutBoard cutout
groundplaneCopper pour/ground plane
solderjumperSolder bridge
testpointTest point

Common Patterns

Basic Chip with Footprint

tsx
<chip
  name="U1"
  footprint="soic8"
  pinLabels={{
    pin1: "VCC",
    pin2: "GND",
    pin3: "INPUT",
    pin4: "OUTPUT"
  }}
  connections={{
    VCC: "net.VCC",
    GND: "net.GND"
  }}
/>

Resistor with Value

tsx
<resistor
  resistance="1k"
  footprint="0402"
  name="R1"
  schX={3}
  pcbX={3}
/>

Capacitor with Polarity

tsx
<capacitor
  capacitance="10uF"
  footprint="0805"
  polarized
  name="C1"
/>

Related Skills

SkillDescription
FootprintsFootprint specifications
GuidesIn-depth usage guides
CLIBuild and export commands

Quick Reference

Component Names

  • R1, R2, ... for resistors
  • C1, C2, ... for capacitors
  • U1, U2, ... for ICs/chips
  • D1, D2, ... for diodes
  • LED1, LED2, ... for LEDs
  • J1, J2, ... for connectors

Common Footprints

  • 0402, 0603, 0805, 1206 for passive components
  • soic8, qfn32, dip8 for ICs
  • usb-c for USB-C connectors
  • pushbutton for buttons