npx skills add https://github.com/renatoasse/opensquad --skill 'Best-Practice Creator'在 _opensquad/core/best-practices/ 库中创建新的最佳实践文件时,请使用此工作流程。
_opensquad/core/best-practices/_catalog.yaml。从每个条目中提取 id、name、whenToUse、file。whenToUse 范围重复。如果存在重叠,请在继续之前明确区分点。skills/*/SKILL.md 文件。从每个文件中提取 、、 — 这些信息可能为最佳实践文件的内容提供参考。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
namedescriptiontype对于每个新的最佳实践文件,确保满足以下所有要求:
id: 小写短横线命名法 (例如 copywriting)name: 目录列表的显示名称 (例如 "Copywriting & Persuasive Writing")whenToUse: 多行描述,包含正向范围 AND 引用其他最佳实践 ID 的 "NOT for: ..." 负向范围version: 新最佳实践文件使用 "1.0.0"- [ ] 列表,用于评估输出| 部分 | 最低要求 |
|---|---|
| 文件总行数 | 200 行以上 |
| 核心原则 | 6 条以上带编号的规则 |
| 技术与框架 | 3 条以上具体技术 |
| 词汇 (务必使用) | 5 条以上术语 |
| 词汇 (切勿使用) | 3 条以上术语 |
| 输出示例 | 2 个完整示例,每个 15 行以上 |
| 反面模式 (切勿做) | 4 条以上 |
| 反面模式 (务必做) | 3 条以上 |
| 质量标准 | 4 条以上可检查项 |
whenToUse对于每个与新文件范围重叠的现有最佳实践文件:
whenToUse 中添加一行 "NOT for: {重叠范围} → See {新最佳实践-id}"_catalog.yaml在 _opensquad/core/best-practices/_catalog.yaml 中添加一个新条目,包含:
id: 与前置元数据 id 匹配name: 与前置元数据 name 匹配whenToUse: 范围的单行摘要 (仅正向范围,不含 "NOT for")file: {id}.md将其放在适当的章节注释下 (学科最佳实践或平台最佳实践)。
保存到 _opensquad/core/best-practices/{id}.md。
重新读取创建的文件并验证:
whenToUse 仅引用现有的最佳实践 ID_catalog.yaml 中存在对应的条目在更新 _opensquad/core/best-practices/ 库中的最佳实践文件时,请使用此工作流程。
| 变更类型 | 版本提升 | 示例 |
|---|---|---|
| 补丁 (x.x.X) | 修复拼写错误,调整措辞,细微改进 | 修正反面模式措辞,纠正词汇术语 |
| 次版本 (x.X.0) | 添加新内容,扩展能力 | 添加新原则、新输出示例、新技术 |
| 主版本 (X.0.0) | 重大重写或重构 | 重写核心原则,根本性改变范围 |
任何更改后,务必更新 YAML 前置元数据中的 version 字段。
id_opensquad/core/best-practices/_catalog.yaml 中移除其条目_opensquad/core/best-practices/*.md 中所有剩余的最佳实践文件whenToUse 中是否引用了被移除的 ID
* 查找模式:"NOT for: ... → See {被移除-id}"最佳实践创建者工作流程 (上文) 在创建过程中处理初始的 whenToUse 交叉引用。此部分仅在交叉引用被遗漏或事后需要调整时才需要。
whenToUse — 确定其范围_catalog.yaml 中存在新条目whenToUse 范围发生更改,请更新其他最佳实践文件和 _catalog.yaml 中的交叉引用whenToUse 范围时这是影响最大的更改 — 它会影响架构师在创建小队期间如何选择最佳实践。
whenToUse 字段whenToUse,查找对此 ID 的引用_catalog.yaml 中的 whenToUse 摘要任何更新后,请验证:
whenToUse 交叉引用在所有最佳实践文件中保持一致_catalog.yaml 条目与前置元数据保持同步 (id、name、whenToUse)Read _opensquad/core/best-practices/_catalog.yaml
For each entry in catalog:
1. Verify _opensquad/core/best-practices/{entry.file} exists
2. Read the file's frontmatter
3. Verify entry.id matches frontmatter id
4. Verify entry.name matches frontmatter name
5. Flag any mismatches
For each .md file in _opensquad/core/best-practices/ (excluding _catalog.yaml):
1. Verify a corresponding entry exists in _catalog.yaml
2. Flag any orphaned files with no catalog entry
For each best-practice file A in _opensquad/core/best-practices/*.md:
For each "NOT for: ... → See {id}" in A.whenToUse:
1. Verify _opensquad/core/best-practices/{id}.md exists
2. Verify {id}'s whenToUse covers the referenced scope
3. Flag inconsistencies
每周安装次数
–
代码仓库
GitHub 星标数
776
首次出现时间
–
安全审计
Use this workflow when creating a new best-practice file for the _opensquad/core/best-practices/ library.
_opensquad/core/best-practices/_catalog.yaml. Extract id, name, whenToUse, file from each entry.whenToUse scope. If there's overlap, clarify the differentiation before proceeding.skills/*/SKILL.md files. Extract name, description, type from each — these may inform the best-practice file's content.For each new best-practice file, ensure ALL of the following:
id: lowercase kebab-case (e.g., copywriting)name: Display name for catalog listing (e.g., "Copywriting & Persuasive Writing")whenToUse: Multi-line with positive scope AND "NOT for: ..." negative scope referencing other best-practice IDsversion: "1.0.0" for new best-practice files- [ ] list that can be used to evaluate output| Section | Minimum |
|---|---|
| Total file lines | 200+ |
| Core Principles | 6+ numbered rules |
| Techniques & Frameworks | 3+ concrete techniques |
| Vocabulary Always Use | 5+ terms |
| Vocabulary Never Use | 3+ terms |
| Output Examples | 2 complete, 15+ lines each |
| Anti-Patterns (Never Do) | 4+ |
| Anti-Patterns (Always Do) | 3+ |
| Quality Criteria | 4+ checkable items |
whenToUseFor each existing best-practice file whose scope overlaps with the new one:
whenToUse_catalog.yamlAdd a new entry to _opensquad/core/best-practices/_catalog.yaml with:
id: matching the frontmatter idname: matching the frontmatter namewhenToUse: single-line summary of the scope (positive only, no "NOT for")file: {id}.mdPlace it under the appropriate section comment (Discipline or Platform best practices).
Save to _opensquad/core/best-practices/{id}.md.
Re-read the created file and verify:
whenToUse references only existing best-practice IDs_catalog.yamlUse this workflow when updating best-practice files in the _opensquad/core/best-practices/ library.
| Change Type | Version Bump | Examples |
|---|---|---|
| Patch (x.x.X) | Fix typos, adjust wording, minor refinements | Fix anti-pattern phrasing, correct a vocabulary term |
| Minor (x.X.0) | Add new content, extend capabilities | Add new principle, new output example, new technique |
| Major (X.0.0) | Rewrite or restructure significantly | Rewrite core principles, fundamentally change scope |
Always update the version field in the YAML frontmatter after any change.
id_opensquad/core/best-practices/_catalog.yaml_opensquad/core/best-practices/*.mdwhenToUse
The Best-Practice Creator workflow (above) handles the initial whenToUse cross-references during creation. This section is only needed if cross-references were missed or need adjustment after the fact.
whenToUse — identify its scope_catalog.yamlwhenToUse scope changed, update cross-references in other best-practice files and in _catalog.yamlwhenToUse scopeThis is the most impactful change — it affects how the Architect selects best practices during squad creation.
whenToUse fieldwhenToUse for references to this IDwhenToUse summary in _catalog.yamlAfter ANY update, verify:
whenToUse cross-references are consistent across ALL best-practice files_catalog.yaml entry is in sync with frontmatter (id, name, whenToUse)Read _opensquad/core/best-practices/_catalog.yaml
For each entry in catalog:
1. Verify _opensquad/core/best-practices/{entry.file} exists
2. Read the file's frontmatter
3. Verify entry.id matches frontmatter id
4. Verify entry.name matches frontmatter name
5. Flag any mismatches
For each .md file in _opensquad/core/best-practices/ (excluding _catalog.yaml):
1. Verify a corresponding entry exists in _catalog.yaml
2. Flag any orphaned files with no catalog entry
For each best-practice file A in _opensquad/core/best-practices/*.md:
For each "NOT for: ... → See {id}" in A.whenToUse:
1. Verify _opensquad/core/best-practices/{id}.md exists
2. Verify {id}'s whenToUse covers the referenced scope
3. Flag inconsistencies
Weekly Installs
–
Repository
GitHub Stars
776
First Seen
–
Security Audits
新闻稿撰写工具:使用 inference.sh CLI 进行事实核查与专业新闻稿创作
7,400 周安装