AgentSkillsCN

sync-skill

在任务状态发生变动,或怀疑同步出现偏差时,将本地合约与Linear及GitHub的状态进行对齐,修复映射与状态漂移,并更新注册文件。

SKILL.md
--- frontmatter
name: sync-skill
description: Reconcile local contracts with Linear and GitHub state, repair mapping and status drift, and update registry files. Use when task state changes or sync drift is suspected.

sync-skill

Trigger context

  • active tasks changed
  • status or dependency drift suspected

Required inputs

  • project_slug
  • local_registry
  • task_files

Output schema

  • updated_registry
  • drift_report

Quality checks

  • active tasks mapped
  • no duplicate mapping
  • dependency parity pass

Failure behavior

  • dry-run when uncertainty detected
  • emit conflict resolution actions

Allowed side effects

  • update .project/registry/linear-map.json
  • update local IDs/links in task contracts

Script hooks

  • bash .claude/scripts/pm/status.sh
  • bash .claude/scripts/pm/validate.sh

Execution assets

  • references/runbook.md
  • templates/drift-report.md
  • templates/conflict-resolution-actions.md