sync

Reconciles AGENTS.md files, feature scopes, and spec statuses with repository changes after a merge.

Updated Aug 2, 2026
One-click install
npx skills add https://github.com/JabezJesudasonJena/hack-ag --skill sync-jabezjesudasonjena
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sync
Source: https://github.com/JabezJesudasonJena/hack-ag/tree/main/.agents/skills/sync
Command: npx skills add https://github.com/JabezJesudasonJena/hack-ag --skill sync-jabezjesudasonjena

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? After a code change lands, durable project knowledge (AGENTS.md context files, feature scope checklists, and spec status lines) drifts out of sync with what the repository actually shows. This Skill closes that loop by surgically updating documentation to match the diff, without rewriting curated prose or sprawling beyond its mandate. ## Core Features & Use Cases - Surgical AGENTS.md maintenance: Edits existing root and nested AGENTS.md files line by line, creates nested docs only for areas net new in the change, and cleans up orphaned docs after deletions. - Scope and spec reconciliation: Ticks completed scope sub tasks based on repository evidence, advances feature statuses, and reconciles spec Status lines (Proposed, In Progress, Accepted) to match their linked features. - Tool discovery with consent: Detects newly added dependencies from manifest diffs and, only after explicit approval, searches for relevant Agent Skills and MCP servers to install. - Use Case: After merging a feature branch that adds a new payments module, run /sync to create a nested payments/AGENTS.md, tick the completed scope sub tasks, flip the spec status to Accepted, and flag any stale specs for /architect review. ## Quick Start Run the sync skill after merging my latest change to update AGENTS.md files, the feature scope, and spec statuses to match the repository.

Frequently Asked Questions about sync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I keep AGENTS.md files up to date after a code change?

Run /sync as the last step after a change completes or merges. It diffs the change set against the base branch, then surgically updates root and nested AGENTS.md files, reconciles the feature scope, and adjusts spec status lines to match what the repository now shows.

What does the sync skill actually edit in a repository?

It edits existing AGENTS.md files line by line, creates nested AGENTS.md only for areas net new in the change, ticks verified scope sub tasks, and reconciles spec Status lines. It never rewrites curated prose, never edits spec content, and never creates the root AGENTS.md.

When should I use /sync versus /audit or /architect?

Use /sync for post-change reconciliation of docs it owns. It flags rather than handles three cases: /audit for creating root AGENTS.md or documenting pre-existing areas, and /architect for stale spec content or ratifying Assumed specs.

Does the sync skill work in monorepos with multiple workspaces?

Yes. A changed file's workspace path selects the matching scope file under docs/scope/<workspace>/, and /sync only reconciles the workspaces the diff actually touches. It never edits another workspace's scope or ticks features across workspace boundaries.

Will sync install Agent Skills or MCP servers automatically?

No. When dependency manifests change, it identifies newly added tools and asks for explicit consent first. Searching, installing skills via npx skills add, or recommending MCP servers only happens after you approve, and declines are recorded in AGENTS.md.

What happens if sync runs twice on the same change?

Nothing changes the second time. The skill is idempotent: it re-reads target files before writing, skips facts already present even if worded differently, and leaves already ticked scope boxes untouched.