npx skills add https://github.com/0xbigboss/claude-code --skill specalign当规范文件及其对应的实现代码同时处于上下文中时,以下原则适用:
阅读代码时,检查是否存在规范并注意差异。阅读规范时,检查实现是否匹配并注意差异。这种感知应该是被动的——在你的回应中指出偏离,但不要打断用户的主要任务,除非该偏离直接相关。
需要一个规范文件。搜索以下模式:
*.spec.md、*-spec.md、SPEC.mdThese apply whenever a spec file and its corresponding implementation are both in context:
When reading code, check if a spec exists and note divergences. When reading a spec, check if the implementation matches and note divergences. This awareness should be passive - flag drift in your responses without interrupting the user's primary task, unless the drift is directly relevant.
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
spec/*.md、docs/*.spec.md如果存在多个规范文件,询问对齐哪一个。如果不存在,则停止——此工作流程需要一个已存在的规范文件。 完整阅读规范文件。
对于每个规范章节,识别对应的实现:
| 规范章节 | 源文件 | 状态 |
|---|---|---|
## Types | src/types.ts:10-40 | 已对齐 / 已偏离 / 缺失实现 / 缺失规范 |
在评估之前,阅读每个映射的源文件。
对于每个差异:
### DRIFT-01: <简短描述>
**规范说明** (spec-file.md:L42):
> <引用的规范文本>
**代码行为** (src/module.ts:L87):
> <总结的代码行为>
**影响**: <什么会出错或不一致>
使用稳定的 ID 编号 (DRIFT-NN)。将具有相同根本原因的相关差异进行批处理。
对于每个差异,询问:
规范更新:
代码更新:
## 规范对齐: <文件>
**发现的差异**: N
**已解决**: X (规范: A, 代码: B, 跳过: C)
### 剩余差异
- DRIFT-04: <描述> (已跳过)
每周安装量
44
仓库
GitHub 星标数
36
首次出现
2026年2月13日
安全审计
安装于
codex38
opencode36
claude-code36
gemini-cli36
cursor36
github-copilot35
A spec file is required. Search for:
*.spec.md, *-spec.md, SPEC.mdspec/*.md, docs/*.spec.mdIf multiple specs exist, ask which to align. If none exist, stop - this workflow requires an existing spec.
Read the spec file completely.
For each spec section, identify the corresponding implementation:
| Spec Section | Source File(s) | Status |
|---|---|---|
## Types | src/types.ts:10-40 | aligned / drifted / missing-impl / missing-spec |
Read each mapped source file before assessing.
For each discrepancy:
### DRIFT-01: <short description>
**Spec says** (spec-file.md:L42):
> <quoted spec text>
**Code does** (src/module.ts:L87):
> <summarized code behavior>
**Impact**: <what breaks or is inconsistent>
Number with stable IDs (DRIFT-NN). Batch related discrepancies that share a root cause.
For each discrepancy, ask:
Spec updates:
Code updates:
## Spec Alignment: <file>
**Discrepancies found**: N
**Resolved**: X (spec: A, code: B, skipped: C)
### Remaining
- DRIFT-04: <description> (skipped)
Weekly Installs
44
Repository
GitHub Stars
36
First Seen
Feb 13, 2026
Security Audits
Installed on
codex38
opencode36
claude-code36
gemini-cli36
cursor36
github-copilot35
AI新闻播客制作技能:实时新闻转对话式播客脚本与音频生成
1,200 周安装