Verifying modules

From telagod/code-abyss · View interactive version

Verifying modules is an AI agent skill from the GitHub repository telagod/code-abyss. Scans directory structure, detects missing documentation, and verifies code-doc synchronization. Use when checking module completeness, README presence, or DESIGN.md alignment. Automatically triggered after creating new modules.

How to use this skill

Skill file

模块完整性校验关卡

文档不齐不算交付。模块是否能被外人独立理解,是「完成」的最低门槛。

何时使用

| 场景 | 跑 | 理由 |

|------|------|------|

| 新建模块 | ✅ 必跑 | 阻断「无文档落地」 |

| 模块重构(边界变化) | ✅ | 文档随边界更新 |

| 接收他人模块 | ✅ | 检查可理解性 |

| 提交前(涉及模块新增) | ✅ | 最后闸 |

| 仅函数级修改 | ❌ | 走 analyzing-changes 即可 |

必备文件

| 文件 | 缺失后果 | 备注 |

|------|----------|------|

| README.md | 阻断交付 | 用户视角 |

| DESIGN.md | 阻断交付 | 维护者视角 |

| tests/ | 警告 | 单文件模块或纯类型声明可豁免 |

| __init__.py | 提示(仅 Python) | 视项目布局而定 |

文档要求

README(外部视角,回答「这是什么、怎么用」)

DESIGN(内部视角,回答「为什么这样设计」)

何时豁免

与其他 skill 联动

使用

node scripts/module_scanner.js <模块路径>
node scripts/module_scanner.js <模块路径> -v       # 详细
node scripts/module_scanner.js <模块路径> --json   # CI 用

收口

阻断项必修。警告项可在 DESIGN 留「不写测试的理由」(如纯接口声明、纯常量)。「以后补」不算理由。

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.