spec-linter

majiayu000 的头像作者 majiayu000

验证规范是否具有所需的前言、链接和合规性。在提交之前或代码审查期间使用。

📖 中文导读:验证规范是否具有所需的前言、链接和合规性。在提交之前或代码审查期间使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

Spec Linter Skill

Purpose

Validate:

  • Frontmatter completeness
  • Test-to-spec traceability
  • ADR requirements for architectural changes
  • PR template compliance

Validation Rules

  1. Frontmatter required fields by type
  2. Test IDs (TC-XXX) present near Swift test methods
  3. ADR required when key components/frameworks change
  4. Acceptance criteria present for new features
  5. PR template sections completed

Usage

  • Pre-commit: python3 scripts/lint-specs.py
  • CI: see .github/workflows/spec-lint.yml