AgentSkillsCN

project-sync-lint

项目中心的同步与校验工具。可用于扫描整个仓库(包括多个 dev-docs 根目录),依据 .ai/project/CONTRACT.md 对仓库进行校验,对项目/任务元数据进行静态检查,并通过生成缺失的任务身份元数据(.ai-task.yaml)以及在 .ai/project/<项目>/ 下重新生成衍生视图,修复配置漂移。此工具既适用于 CI 门禁(仅作检查),也适合手动修复(执行修正)。关键词:同步、静态检查、校验、回写、注册表、仪表盘、变更日志、衍生视图。

SKILL.md
--- frontmatter
name: project-sync-lint
description: Project hub synchronizer and validator. Use to scan the entire repo (including multiple dev-docs roots), validate the repo against .ai/project/CONTRACT.md, lint project/task metadata, and fix drift by generating missing task identity meta (.ai-task.yaml) and regenerating derived views under .ai/project/<project>/. Suitable for CI gate (check-only) and manual repair (apply). Keywords: sync, lint, validate, writeback, registry, dashboard, changelog, derived views.
category: workflows/planning
ssot_path: .ai/skills/workflows/planning/project-sync-lint

project-sync-lint (entry)

Canonical source: .ai/skills/workflows/planning/project-sync-lint/

Open .ai/skills/workflows/planning/project-sync-lint/SKILL.md and any supporting files referenced there (for example reference.md, examples.md, scripts/, templates/).

Note: The frontmatter above is identical to the canonical source except for ssot_path and category which are added for navigation. After opening the source file, skip re-reading the description to avoid redundant token usage.