首页/ AI 技能 / @skilllib/skill-2117939930272416319
Skill站外收录 @skilllib/skill-2117939930272416319

coding-guidelines-verify

验证代码变更是否符合就近作用域的编码规范,自动识别各文件所属的 AGENTS.md 规则范围,执行格式化修复、静态检查与单元测试,并报告违规项及修复结果,确保多模块项目中每个子模块都遵循其专属规范。

0.0 (0) 13 次安装 原作者 编程导航
收录于 2026-01-22

Skills.MD

# Coding guidelines verifier ## Goal Validate that changes follow the **nearest nested** `AGENTS.md`: - default: **changed files only** - default: **auto-fix formatting** before lint/tests - monorepo-aware: each module’s `AGENTS.md` is the source of truth for that scope ## Workflow (checklist) 1) Collect changed files (staged + unstaged + untracked). 2) For each changed file, find the nearest parent `AGENTS.md`. - If a file has no scoped `AGENTS.md`, report it (suggest running `coding-guidelines-gen`). 3) Parse the `codex-guidelines` block (schema: `references/verifiable-block.md`). 4) Run, per scope: - format (auto-fix) -> lint -> tests - apply simple forbid rules (globs/regex) from the block 5) Produce a short compliance report (template: `references/report-template.md`). ## Automation Use `scripts/verify_guidelines.py` to group scopes, run commands, and report results. - If `python` is not available or the script fails, tell the user and ask whether to install Python or proceed with a manual per-scope verification. ## Deliverable Provide: - The per-scope compliance report (use `references/report-template.md`). - Any auto-fix formatting changes applied. - Lint/test commands run and their results, plus any violations.

评论 0

还没有评论,来抢沙发。