kukucaicndy/embedded_ai_skills/placement
Claude Code and agent skill by kukucaicndy/embedded_ai_skills
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Component placement techniques for EasyEDA Pro schematics. Invoke when placing components, assigning designators, rotating/mirroring parts, or adjusting layout spacing.
Install
npx vskill@latest install kukucaicndy/embedded_ai_skills/placementSKILL.md
器件摆放
元器件放置、位号分配、旋转镜像、间距控制的完整指南。
1. 基本放置
⚠️ 坐标注意: (x, y) 是符号原点/锚点,不是器件中心。引脚实际位置由符号定义决定。
2. 位号分配
手动设置
批量分配
位号规范
| 元件类型 | 前缀 | 示例 | |
|---|---|---|---|
| 电阻 | R | R1, R2 | |
| 电容 | C | C1, C5 | |
| 二极管 | D | D1, D5 | |
| IC | U | U1, U3 | |
| 连接器 | J | J1, P2 | |
| 开关 | SW | SW1, SW2 | |
| 编码器 | SW | SW7 (带开关) | |
| OLED | DS | DS1 | |
| 测试点 | TP | TP1 |
3. 旋转和镜像
放置时旋转
放置后旋转
镜像
⚠️ 如果 API 无法旋转(某些符号不支持),需要人工在 EasyEDA 中手动旋转。
4. 间距控制
实测器件引脚范围
| 器件类型 | 引脚范围 (宽x高) | 建议最小列距 | 建议行距 | |
|---|---|---|---|---|
| 轻触开关 | 40x20 单位 | 150 单位 (1.5 inch) | 130 单位 | |
| 二极管 | 40x0 (水平线) | 100 单位 | 40 单位 | |
| 电阻 0402 | 40x0 (水平线) | 100 单位 | 40 单位 | |
| 旋转编码器 | 60x60 单位 | 150 单位 | 130 单位 | |
| 4P Header | 0x30 (垂直线) | 80 单位 | 60 单位 | |
| OLED 显示屏 | 视具体符号 | 100 单位 | 80 单位 |
电阻符号实测数据
以 0402WGF3301TCE (0402 3.3K 电阻) 为例:
- 放置坐标 (anchor): (585, 412)
- 实际 anchor: (585, 410) — Y 有 2 单位微小偏差
- 引脚位置: 左 (565, 410), 右 (605, 410)
- 引脚间距: 40 单位 (0.4 inch = 10.16 mm)
- anchor 在引脚中点,引脚水平对称分布
⚠️ 器件 anchor 偏差: 某些符号的放置坐标与实际 anchor 可能有微小偏差(1-2 单位),这是符号内部 origin 定义导致的。放置时以 anchor 为参考即可。
推荐布局区域
5. 获取器件实际位置
6. 移动器件
7. 删除器件
⚠️ 图纸边框和表头保护图纸边框(Border)和标题块(Title Block)不是通过sch_PrimitiveComponent管理的图元,而是文档级别的属性。使用delete()删除元器件不会影响它们。但是,如果titleBlockData被清空,标题块会显示为空白。可通过以下方式恢复:```javascriptawait eda.dmt_Schematic.modifySchematicPageTitleBlock(true, {'@Project Name': {showTitle: true, showValue: true, value: '项目名称'},Version: {showTitle: true, showValue: true, value: 'V1.0'},});```
8. 文本标注
字号参考:
- 功能区域标题: 8-10
- 引脚标注: 5-6
- 注释说明: 4-5
9. 矩形绘制
10. 常见错误
| 错误 | 原因 | 解决方案 | |
|---|---|---|---|
Request timed out | 一次创建太多器件 | 分批创建,减少单次批量 | |
无法创建矩形图元 | 参数顺序错误 | 检查 create() 签名 | |
comp.getState_X is not a function | get() 返回数组 | 取 comps[0] | |
comp.toAsync is not a function | 同步对象无此方法 | 直接访问属性 | |
位号显示 ? | API 不自动分配 | 使用 modify() 设置 | |
| 位号文字与引脚重叠 | 默认位号位置在符号左上角 | 需在 EasyEDA UI 中手动拖拽调整 | |
名称显示 ={Manufacturer Part} | 属性未设置 | 正常行为 | |
| 器件重叠 | 间距太小 | 参考间距表调整 | |
| 自定义符号无法放置 | 符号源码格式错误 | 检查 updateDocumentSource 格式 |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingtools/easyeda-draw/placement/skill.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kukucaicndy/embedded_ai_skills/placement)