Skill Skeleton Generator(技能骨架生成器)
One-command generator for LGD-compliant AI skill skeletons (SKILL.md + AGENTS.md + dirs) with full frontmatter scaffolding. 一键生成符合 LGD 三律/四角度合规的新技能骨架(SKILL.md + AGENTS.md),规范化 frontmatter 起步。
Latest: v1.0.7
安全面加固:permissions 声明改为与包内脚本实际能力一致;新增「数据处理边界」段,明确默认不外发、需人指定目的地并逐次确认。业务逻辑未改动。
凡自治之物 · LGD 治理学 · 创造术家族 | 评测协议:skill-quality-gate
English
Capabilities
- Generates SKILL.md with full frontmatter (name/description/license/version).
- Creates a machine-readable AGENTS.md entry and target directories.
- Four-angle (REG / TRUST / SAFE / MACH) compliant by construction.
When to use
- Generate a new LGD-compliant skill skeleton from scratch (SKILL.md + AGENTS.md).
- Start a new skill with standardized frontmatter.
Usage
python scripts/skeleton.py --name my-skill --description "..." [--out dir]
Flow
- Run
skeleton.py --name <skill> --description <desc> [--cat AI工程] [--out <dir>]. - The script emits a SKILL.md with full frontmatter from an in-built TEMPLATE plus a machine-readable AGENTS.md.
- Human edits the placeholder content (core capability / verification / usage) before entering the next quality gate.
Evidence & safety
- Evidence: TBD. Version: 1.0.1. Security: no independent scan (TBD).
中文
功能
- 生成含完整 frontmatter 的 SKILL.md。
- 创建 AGENTS.md 机器可读入口与目录。
- 天然满足四角度合规(有籍/有证/有门禁/可机器读)。
何时用
- 当需要从零一键生成符合 LGD 三律/四角度合规的新技能骨架(SKILL.md + AGENTS.md)时使用本技能。
- 当需要规范化 frontmatter(name/description/license/version/category/tags/slug/risk_tier)起步一个新技能时使用本技能。
用法
python scripts/skeleton.py --name my-skill --description "..." [--out dir]
流程
- 运行
python scripts/skeleton.py --name <技能名> --description <描述> [--cat AI工程] [--out <输出目录>]。 - 脚本按内建 TEMPLATE 生成含完整 frontmatter 的 SKILL.md,并生成机器可读 AGENTS.md。
- 人工编辑生成件中的占位内容(核心能力/验证/用法)后再进入后续质量门。
证据与安全声明
- 证据:TBD(暂无评测/徽章链接;产生后在此更新实际链接)
- 版本:1.0.1
- 安全:未做独立安全扫描(TBD),结论待补;补全前不作推荐背书。
Triggers / 触发词
这些是用户真实会说的话(中 / 英对照),命中任一即应加载本技能:
- 「新建一个技能,目录结构怎么搭」 / "Starting a new skill, how should the folders be laid out"
- 「帮我生成SKILL.md的骨架」 / "Generate a SKILL.md skeleton for me"
- 「技能的前置元数据老是写错」 / "I keep getting the skill frontmatter wrong"
- 「从零起一个技能要建哪些文件」 / "Which files does a skill need from scratch"
- 「有没有现成的技能模板可以直接改」 / "Is there a skill template I can just edit"
- 「骨架能按我们的规范生成吗」 / "Can the skeleton follow our internal conventions"
Trigger when the user says any of the above, in Chinese or English.
Ecosystem / 生态入口
This skill is one door of the LGD ecosystem — every entry below is publicly reachable. 本技能是 LGD 生态 的一个入口,下列地址均对公网可达。
- Ecosystem hub / 生态总入口: https://zhaoxinghua09-cell.github.io/lgd-hub/
- LGD theory (canonical) / 理论正本: https://github.com/zhaoxinghua09-cell/LGD
- Formal paper (DOI) / 形式化论文: https://doi.org/10.5281/zenodo.22456647
- Protocol & reference implementation / 协议与参考实现: https://github.com/zhaoxinghua09-cell/uibc-core
- Source of this skill / 本包源码: https://github.com/zhaoxinghua09-cell/agent-skills/tree/main/skills/skill-skeleton-generator
- All published skills / 全部已发布技能: https://github.com/zhaoxinghua09-cell/agent-skills
- AI-readable index / AI 说明书: https://github.com/zhaoxinghua09-cell/agent-skills/tree/main/skills/skill-skeleton-generator/llms.txt
Looking for something else? / 还想要别的?
Tell your AI assistant: "Find me an LGD skill that can " — the hub lists every published skill with a one-line purpose. 跟你的 AI 助手说一句「去 LGD 生态超市找能……的技能」,总入口按用途列全了所有已发布技能。
Data handling / 数据处理边界
- 默认不向任何外部地址发送数据:扫描结果、报告、命中明细一律只写本地或只打印到当前会话。
- 如需外发(告警、工单、邮件、IM),必须由人先明确指定接收方,并在每次发送前逐次确认;本技能不预设、也不硬编码任何接收端。
- 只处理调用者明确指定的目标路径,不遍历无关目录,不跟随符号链接,不读取目标之外的凭据文件。
- 命中内容在输出时按需脱敏,避免把敏感原值写进日志或对话记录。
