Plecs Skill — Development skill for Claude Code
PLECS skill for WorkBuddy/Claude Code: cold-start setup (RPC/MCP), component catalog with verified terminal numbers, runnable .plecs builder, C-Script patterns and troubleshooting.
How to install Plecs Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open alembrt-cmyk/plecs-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Plecs Skill does
PLECS skill for WorkBuddy/Claude Code: cold-start setup (RPC/MCP), component catalog with verified terminal numbers, runnable .plecs builder, C-Script patterns and troubleshooting. All conclusions live-verified on PLECS 4.7.5.
Alternatives in Development
- Troubleshooting Guide — Common issues and solutions when using Skill Seeker 12.9k ★
- Claude Code Rev — Runnable ClaudeCode source code 3k ★
- Claudekit Debugging Tools — Debugging and troubleshooting tools 1.9k ★
README
PLECS Skill for WorkBuddy / Claude Code
一个「能让模型真正驱动 PLECS」的技能包:**从全新环境接入 → 从零建模 → 跑仿真 → 取波形 → 排错**, 全部结论来自 PLECS 4.7.5 实测,不是文档转述。
[]() []() []()
它解决什么问题
通用大模型谈 PLECS 只能"照着帮助文档复述",一到动手就卡在三处:
- 接不上 —— RPC 默认关闭、MCP 没配、连不上时只会说"检查网络"
- 建不出 —— 元件参数名/端子号全靠猜,写出的
.plecs打不开 - 查不出 —— 报错信息误导(
Unconnected terminals overlapped其实是线型混用)
这个技能把这三处全填上了,并且**每条结论都有实测数字背书**。
覆盖内容
| 主题 | 说明 |
|---|---|
| 冷启动接入 | 开 XML-RPC(默认关闭/1080)、从 GitHub 装 MCP、mcp.json 模板、raw xmlrpc 兜底、8 条失败对照表 |
| 从零建模 | 元件图鉴(约 60 类:参数名 + 端子号 + 语义)、可跑的生成器骨架、真机验证过的最小模型全文 |
| C-Script | 代码窗口调用时序、Sample time、五种标准写法、数字 PI / PWM 状态机 / DSOGI-PLL 完整模板 |
.plecs 格式 |
私有语法、base64 通道、归属法扫描、Subsystem 五铁律、静默失败自检清单 |
| 编译缓存 | 只哈希 Declarations 字符串 ⇒ 改 .h 不重编;三个连锁现象 + 唯一可靠重编法 |
| 波形分析 | .trace 二进制格式、Values 布局、自适应步长重采样、相位参考修正 |
| 排错 | 症状表 40+ 条、分层剥洋葱定位法、错误诊断表 11 条 |
已验证的关键数字
| 结论 | 实测值 |
|---|---|
| 最小模型幅值 | 实测 9.5403 V vs 理论 9.5403 V(误差 0.000 %) |
| 最小模型相位 | 实测 17.44° vs 理论 17.44°(误差 0.00°) |
Branch 是扇出语法 |
官方 32324 条 Connection 中 6232 条是多目的地 Branch |
| 矢量限幅 vs 逐轴削顶 | 削顶占比 50.2%→0.2%,畸变 13.4%→0.000% |
| LOCK 双施密特 | 修前整段故障窗为 0;修后全程 1、真失压 10.1 ms 掉锁 |
安装
方式 1:直接拷进技能目录(推荐)
git clone https://github.com/alembrt-cmyk/plecs-skill.git
cp -r plecs-skill ~/.workbuddy/skills/plecs-cscript
Windows:
git clone https://github.com/alembrt-cmyk/plecs-skill.git
Copy-Item -Recurse plecs-skill "$env:USERPROFILE\.workbuddy\skills\plecs-cscript"
放好后重开一个会话,技能即生效(`~/.workbuddy/skills/` 是全局用户级目录,跨项目可用)。
方式 2:项目级
cp -r plecs-skill <你的项目>/.workbuddy/skills/plecs-cscript
快速自证(30 秒)
# 1) 造一个最小可跑模型
python scripts/plecs_builder.py --demo -o mini.plecs
# 2) 静态自检(应 rc=0)
python scripts
Related Skills
The Cold Loop
Claude Code skill: the cold lane end to end. 50 named companies in one town, 3 touches with the legal footer,
Claude Sbox
Claude Code skill for s&box game development. Schema-verified API reference, 10 runnable examples, zero Unity
Openscad Skill
Claude skill for OpenSCAD: parametric parts and multi-part assemblies, verified with numbers instead of pictur
Viral Scout Skill
Claude Code skill: sourcing viral evidence for short-video topics — ledger-first lookups, verified-commands-on
Google Maps Scraper Skill
A Claude Code, Codex, and OpenClaw skill for Google Maps lead generation. Find and scrape local businesses, en
Research Paper Assistant
Claude Code skill for writing and reviewing academic papers and theses (Arabic + English) with integrity enfor
Related Agents
Room Steward
Read the last N room messages and flag breaches of the room rules - overlong posts, method detail that belongs
Metrics Steward
Owns metric and KPI definitions, the metrics catalog, data dictionary, and measurement governance. Use when de
Makebox Horoshop Manager
Store assistant for a seller's own Horoshop online store - processes orders, statuses, payment flags and track