/amlei-skills:amlei-agents-authoringfrom amlei-skills
用"哲学式引导"写 AGENTS.md / CLAUDE.md / SKILL.md:把清单式规则提炼成可迁移的判断原则,区分价值与事实,先给对照方案再写入。触发:写 AGENTS / 改 AGENTS / 全局约定 / 项目约定 / 原则化 / 哲学式描述 / 把规则改成原则 / 精简 AGENTS / 写 SKILL / 新建 skill / 优化提示词规则 / CLAUDE.md 怎么写 / conventions。
Ships in amlei-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
把给 AI 的规则写成判断方式而不是答案清单:清单让 AI 停在名单上,原则让它延伸到作者没想到的维度。适用对象:AGENTS.md、CLAUDE.md、项目约定、SKILL.md 正文。
逐条审读现有规则,只问一个问题——它在传递判断方式(价值、取舍、边界),还是环境事实(工具名、路径、命令、格式、触发词)?
| 性质 | 处理 | 例 |
|---|---|---|
| 判断方式 | 原则化:一句话说清判断标准与边界 | 「方案要在最坏情况下成立」 |
| 环境事实 | 原样保留,可合并不可抽象 | 「git 写操作用 but」「单测与被测文件同目录」 |
事实是 AI 推不出来的(它无法从原则里猜出该用 ego-browser),原则化只会让它猜错;价值藏在流程里,不提炼就会被当成逐项打勾。
一条原则 = 判断句 + 边界 + 否定式。
写的时候盯住三个精度:
写 SKILL.md 时同一把尺子:frontmatter 的 description 是触发机制,属于事实——具体、可"推一把"(列出触发短语,宁可多触发);正文写工作流与判断,细节方法放 references/,触发条件与"何时做什么"只在 SKILL.md 写一次。
改前(清单式)
- 做开发方案设计时,必须考虑算法设计:需评估最坏情况下的时间复杂度,而非仅实现功能。
- 做开发方案设计时,必须评估硬件资源开销:CPU、内存、磁盘/存储、网络带宽与 IO、GPU 等,给出各方案在典型与最坏负载下的量级估算,并说明选型的取舍理由;不能只谈功能正确性。
改后(原则式)
- 方案要在最坏情况下成立。设计是选择:列出候选做法,用最坏情况当尺子逐个量、据此选路并说清放弃了什么,选定后再证明;这把尺子适用于方案触碰到的每一维,不限于算得出来的那些——凡是答不出"最坏会怎样、接不接受"的地方,就是漏洞。只谈功能正确性、或没量过最坏就选路,都不算设计。
两条合为一条,枚举消失而覆盖面变大:算法、资源、输入、依赖、并发、误操作都由 AI 自己追问。
写完一条原则,用三个问题检验:
What SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: skills: Invalid input
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
14 skills in this plugin
/amlei-academic-ref-retrieval学术论文参考文献检索与格式输出。根据论文主题拆解核心技术,编写脚从权威期刊/数据库(知网、维普、arXiv等)爬取或提取真实论文信息,按标准参考文献格式输出。触发:写论文 / 参考文献 / 查文献 / 检索论文 / 论文参考 / reference retrieval / academic reference。/amlei-csdn-postCSDN 发文(md → CSDN 博客)csdn-post skill 更新/amlei-git-ghGuide for git commit, push, and PR using gh CLI (GitHub). Use when committing code, pushing to remote, creating pull requests, managing branches, or any git workflow. Covers commit message conventions, push strategies, and PR creation with confirmation gates.Other plugins' skills for the same job