Agent skill

Sync Architecture

by ayoubben18 in ayoubben18/ab-method

Post-implementation documentation-sync detector. An agent skill from ayoubben18/ab-method.

MITAuto-check passedDevelopment

Install Sync Architecture

skills CLI
$ npx skills add ayoubben18/ab-method --skill sync-architecture -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ayoubben18/ab-method sync-architecture --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ayoubben18/ab-method.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/sync-architecture .claude/skills/sync-architecture && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
sync-architecture
GitHub stars
192
Token cost
~2.4k tokens
SKILL.md length
1,218 words
Files
1
Skills in repo
26
Repo updated
First seen
Licence
MIT

At a glance

Post-implementation documentation-sync detector. An agent skill from ayoubben18/ab-method.

  • Works in 4 steps: Gather diff + context → Spin up ONE read-only detector subagent → Classify each finding → …
  • Tasks that involve Architecture decision records
  • SKILL.md covers Process, Key Principles and Remember
  • Calls git and npx

What it does

Sync Architecture is an agent skill from ayoubben18/ab-method. Post-implementation documentation-sync detector. Spins up ONE read-only subagent on a completed task's diff to find everything the change introduced that the architecture docs don't yet know about — new endpoints, patterns, dependencies, domain terms, ADR-worthy decisions — routed to the exact doc each belongs in. Autonomous runs apply only append-only safe additions and defer domain/ADR reshapes; interactive runs present the proposed doc deltas to pick. Use after a task's missions are done (from create-task /…

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Architecture decision records and Subagents. The repository describes itself as: A workflow system for Claude Code and Codex. It grills a problem into a domain-grounded plan, then either drives it through test-driven missions you review one at a time, or… The licence is MIT.

When your agent uses it

  • Tasks that involve Architecture decision records
  • Tasks that involve Subagents

Example prompts

  • “/sync-architecture”

Requirements

  • Node.js

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Gather diff + context
  2. Spin up ONE read-only detector subagent
  3. Classify each finding
  4. Act — by mode

What it can do on your machine

Read from SKILL.md and the folder at commit 85946e3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git and npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Sync Architecture loads about 2.4k tokens when it runs. Until then it costs about 147 tokens; SKILL.md has 1,218 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~147
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ayoubben18/ab-method at commit 85946e3, republished under its MIT licence (© ayoubben18). 1,218 words, ~2,405 tokens.

Download SKILL.mdSave it as .claude/skills/sync-architecture/SKILL.md (or your agent's skills folder).
name
sync-architecture
description
Post-implementation documentation-sync detector. Spins up ONE read-only subagent on a completed task's diff to find everything the change introduced that the architecture docs don't yet know about — new endpoints, patterns, dependencies, domain terms, ADR-worthy decisions — routed to the exact doc each belongs in. Autonomous runs apply only append-only safe additions and defer domain/ADR reshapes; interactive runs present the proposed doc deltas to pick. Use after a task's missions are done (from create-task / start-task / start-roadmap) or standalone on a diff.

Sync Architecture (post-implementation)

Keep docs/architecture/* and the domain docs live by detecting, from a completed task's diff, what the change introduced that the docs haven't caught up with — then proposing the exact doc deltas. It runs in the same post-implementation phase as ../review-implementation/SKILL.md, but asks a different question:

review-implementation asks "is this diff good code?" — this skill asks "does this diff introduce anything the docs don't yet know about?" The first is code debt; this is documentation drift.

It is the automated detection half of the manual /update-architecture workflow. Where /update-architecture is a heavy, human-invoked pass (and also runs the improve-codebase-architecture deepening loop), this skill is a lightweight detector that runs automatically after each task so the docs stop silently drifting. It reuses /update-architecture's routing table — it does not invent its own.

Silence is the default output. A task that introduced nothing doc-worthy (a bug fix, styling, a trivial CRUD following existing patterns) produces no deltas — that is the normal case. A finding survives only if the docs are genuinely now wrong or incomplete. Never invent doc churn to look thorough.

ALWAYS check .ab-method/structure/index.yaml FIRST for where the architecture and domain docs live — paths are user-configurable. Sweep only what this task changed — the cohesive diff across its missions (git diff for the commit range) plus its progress-tracker.md mission summaries. This is not a whole-repo doc audit.

Look for it under the project root (the current working directory) first — a project's own copy is how it customises its paths, so it always wins. Only if the project has none (AB Method installed as a plugin rather than with npx ab-method), read the bundled default: ../../../.ab-method/structure/index.yaml relative to this SKILL.md. Either way, every path the index names is relative to the project root, never to the folder the bundled file lives in.

Process

1. Gather diff + context
  • The changed files and their git diff for the task's commit range.
  • The task's progress-tracker.md Mission Summaries — the per-mission Files / Built / Integrates with bullets already enumerate most of what's new.
  • The current architecture + domain docs, so the detector proposes only what's genuinely missing (skip files that don't exist): docs/architecture/tech-stack.md, frontend-patterns.md, backend-patterns.md, UBIQUITOUS_LANGUAGE.md, CONTEXT.md, docs/adr/.
2. Spin up ONE read-only detector subagent

Spawn a single subagent — architecture-sync — with the diff, the mission summaries, the current docs, and the task's unresolved-questions.md if it has one. It is read-only: it returns a routed findings list (often empty) and edits nothing. Isolating it keeps the doc analysis out of the orchestrator's context. On Codex (spawn_agent is one level deep) spawn it at the orchestrator's own level; on Claude it may nest. One detector is enough — the whole point is a single sweep of the change.

Its brief — detect only what the docs don't already capture, routed with /update-architecture's table:

FindingRoutes to (update-architecture step)
New / renamed / moved endpoint, CLI command, cron, webhook, queue consumertech-stack.md Entry Points (2a) — and backend-patterns.md § API if a convention shifted
New component / service / state / auth pattern, or a pattern swappedfrontend-patterns.md / backend-patterns.md (2b)
New dependency, third-party API/queue, new limit/budget, test-framework shifttech-stack.md Stack / External Services / Constraints / Testing (2c)
New domain term used in code, or a term whose meaning shiftedUBIQUITOUS_LANGUAGE.md (+ CONTEXT.md if meaning shifted) (2d)
A hard-to-reverse, surprising, trade-off-carrying decisionADR candidate (2e) — never written inline; defer to /domain-model

For each finding return: What (the concrete thing the diff introduced, citing the file/mission), Doc (the exact target file + section), Proposed delta (the append-only line or short section to add), Class (see Step 3).

Example: "New endpoint POST /charges (src/api/charges.ts, mission 2) — not in tech-stack.md Entry Points. Proposed delta: add POST /charges — create a charge (auth: bearer) under Entry Points. Class: safe-add."

Never document a black box as established practice. If the diff contains TODO(UQ-n) seams recorded in the task's unresolved-questions.md, the placeholder behind them is provisional by construction — do not write it into tech-stack.md as a constraint, into a patterns doc as "the way we do this", or into UBIQUITOUS_LANGUAGE.md as a term. A parked question is also never an ADR candidate: an ADR records a decision that was made, and this one wasn't. The real thing the docs may be missing is what the change built around the black box (the new endpoint, the new dependency, the seam's existence) — route that normally, and describe the placeholder only as what it is, e.g. "currency is fixed to USD pending UQ-1". When the question is later answered via /extend-task, the resulting decision syncs like any other.

Out of scope — do not raise: code-quality issues (that's review-implementation), whole-repo deepening opportunities (that's /improve-codebase-architecture), or rewrites of existing prose. With nothing the docs are missing, return exactly: Docs in sync — no architecture updates needed.

Show full SKILL.md (441 more words)Show less
3. Classify each finding
  • safe-add — an append-only addition that follows /update-architecture's "add, don't rewrite" rule: a new Entry Points line, a new dependency, a new pattern subsection, a new glossary term. Purely additive, no existing prose touched.
  • needs-judgment — anything that would change or deprecate existing prose (a pattern was swapped, a term's meaning shifted, an endpoint convention moved), a new bounded context, or an ADR candidate. These reshape the docs and belong to a human — route them to /domain-model (domain / ADR) or /update-architecture (prose deprecation), don't apply them here.
4. Act — by mode

Interactive (manual create-task tail, or standalone): present the proposed deltas grouped by target doc, each marked safe-add / needs-judgment. Apply the safe-adds the user approves; for needs-judgment findings, point at the right workflow (/domain-model, /update-architecture) rather than editing. Report what landed.

Autonomous (start-task / start-roadmap — afk): the orchestrator (not the detector) applies:

  1. Apply every safe-add to its target doc — append-only, preserving format and tone, with a ### Recent Updates (YYYY-MM-DD) block for a notable shift (per /update-architecture Step 3). Docs are prose, not code, so there is no test to re-run — but never rewrite or delete existing content; if a finding can't be expressed as a pure addition, it isn't a safe-add — leave it open.
  2. Commit the doc additions as one docs(<task>): sync architecture docs (repo convention). Nothing to add → no commit.
  3. Leave every needs-judgment finding for the user — record them in the task's review.md (the review-implementation skill's file, if it ran) under an Architecture sync heading, or in a short note in the run report. Never write an ADR and never deprecate prose autonomously — those need /domain-model / /update-architecture.

Never prompt in autonomous mode — anything that isn't a pure safe-add stays open for the user.

Key Principles

  • Documentation drift, not code quality — a distinct lens from review-implementation; the two run side by side in the post-impl phase.
  • Detection half of /update-architecture — reuses its routing table (2a–2e) and its "add, don't rewrite" rule; the full manual workflow still owns prose deprecation + the deepening loop.
  • Silent by default — most tasks introduce nothing doc-worthy; produce no deltas then.
  • Autonomous stays conservative — append-only safe-adds only; domain reshapes and ADRs are always deferred to a human, so the docs never fill with noise.
  • Scoped to the task's diff — never a whole-repo doc audit.

Remember

  • Check .ab-method/structure/index.yaml for paths.
  • The task's mission summaries already list Files / Built — start there, confirm against the diff.
  • Always check Entry Points for API drift, even when the diff didn't obviously touch routing — the most common stale-doc victim (inherited from /update-architecture).
  • Defer anything that rewrites prose, reshapes the domain, or is ADR-worthy to /domain-model / /update-architecture — this skill only adds.

© ayoubben18, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/sync-architecture of ayoubben18/ab-method.

Open the folder on GitHubat commit 85946e3

Compare with similar skills

Sync Architecture next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Sync Architecture compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Sync Architecture this skillayoubben18/ab-method192—~2.4kAutomated safety check: PassMIT
Ad ReviewCorridorTech/PoseCap224—~2.4kAutomated safety check: NotesApache-2.0
Go Spec Reviewerinference-gateway/inference-gateway214—~1.2kAutomated safety check: PassApache-2.0
Agentic System Designooiyeefei/ccc494—~7.3kAutomated safety check: PassMIT
Agentic OrchestratorPackmindHub/packmind317—~3.7kAutomated safety check: PassApache-2.0
Friction ReviewThibautBaissac/rails_ai_agents665—~1.7kAutomated safety check: NotesMIT

Similar skills

  • Ad Review

    CorridorTech/PoseCap

    Two-axis fresh-context code review per WORKFLOW §10. An agent skill from CorridorTech/PoseCap.

    224 GitHub stars~2.4k tokensUpdated yesterday
    DevelopmentAuto-check: notes
  • Go Spec Reviewer

    inference-gateway/inference-gateway

    Review a Go design spec before implementation begins - dispatch a subagent that checks a design doc for completeness, consistency, and idiomatic Go (simplicity, small consumer-defined interfaces…

    214 GitHub stars~1.2k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Prescriptive Q&A workflow for designing agentic pipelines, multi-model councils, sub-agent hierarchies, and tool-loop hardening for any domain.

    494 GitHub stars~7.3k tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check passed
  • Agentic Orchestrator

    PackmindHub/packmind

    Run the implementation loop for a framed and decided feature: pick the next unit, retrieve just enough context, write an inline spec, dispatch one subagent, gate the result, route on which gate…

    317 GitHub stars~3.7k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Friction Review

    ThibautBaissac/rails_ai_agents

    Multi-axis adversarial review using friction engineering. An agent skill from ThibautBaissac/rails_ai_agents.

    665 GitHub stars~1.7k tokensUpdated 4 mo ago
    DevelopmentAuto-check: notes
  • Implement

    open-octo/octo-agent

    Implement a technical design by decomposing it into dependency-ordered vertical slices, executing each with TDD red-green, reviewing each via an isolated sub-agent, and persisting progress to a…

    125 GitHub stars~2.3k tokensUpdated today
    Testing & QAAuto-check passed

More from ayoubben18/ab-method

All 26 skills in this repo
  • Codebase Design

    ayoubben18/ab-method

    Shared vocabulary and principles for designing deep modules — small interfaces, clean seams, testable through the interface.

    192 GitHub stars~1.7k tokensUpdated 7 days ago
    Auto-check passed
  • Grill With Docs

    ayoubben18/ab-method

    Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise.

    192 GitHub stars~2.1k tokensUpdated 7 days ago
    Auto-check passed
  • Change Map

    ayoubben18/ab-method

    Draw a task's blast radius twice. An agent skill from ayoubben18/ab-method.

    192 GitHub stars~2.9k tokensUpdated 7 days ago
    Auto-check passed
  • Handoff

    ayoubben18/ab-method

    Compact the current conversation (or a side-topic that surfaced mid-grill) into a handoff document another agent can pick up.

    192 GitHub stars~696 tokensUpdated 7 days ago
    Auto-check passed
  • Improve Codebase Architecture

    ayoubben18/ab-method

    Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

    192 GitHub stars~1.9k tokensUpdated 7 days ago
    Auto-check passed
  • Reconcile Roadmap

    ayoubben18/ab-method

    Cross-plan coherence critic for a whole roadmap. An agent skill from ayoubben18/ab-method.

    192 GitHub stars~2.8k tokensUpdated 7 days ago
    Auto-check passed

Questions about Sync Architecture

What does Sync Architecture do?

Post-implementation documentation-sync detector. An agent skill from ayoubben18/ab-method. Sync Architecture is an agent skill from ayoubben18/ab-method. Post-implementation documentation-sync detector.

When should I use Sync Architecture?

Sync Architecture fits situations like: tasks that involve Architecture decision records; tasks that involve Subagents.

How do I install Sync Architecture in Claude Code?

Run `npx skills add ayoubben18/ab-method --skill sync-architecture -a claude-code`. Or copy the skill folder (.agents/skills/sync-architecture in ayoubben18/ab-method) into .claude/skills/sync-architecture in your project. Claude Code loads it when a task matches its description.

How do I install Sync Architecture in Codex?

Run `npx skills add ayoubben18/ab-method --skill sync-architecture -a codex`. Or copy the skill folder (.agents/skills/sync-architecture in ayoubben18/ab-method) into .agents/skills/sync-architecture in your project. Codex loads it when a task matches its description.

Can I use Sync Architecture in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ayoubben18/ab-method --skill sync-architecture -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sync-architecture, .gemini/skills/sync-architecture, .github/skills/sync-architecture and .opencode/skills/sync-architecture in your project.

What does Sync Architecture need to run?

Going by SKILL.md and its folder, Sync Architecture needs the command-line tools its instructions call (git and npx). Our summary lists: Node.js.

Does Sync Architecture access the network?

SKILL.md contains no URLs. Its commands use git and npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Sync Architecture safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Sync Architecture use?

Sync Architecture is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Sync Architecture use?

About 2.4k tokens (SKILL.md is roughly 9.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Sync Architecture?

Skills that share tags, products or a category with Sync Architecture: Ad Review (CorridorTech/PoseCap, 224 stars), Go Spec Reviewer (inference-gateway/inference-gateway, 214 stars), Agentic System Design (ooiyeefei/ccc, 494 stars) and Agentic Orchestrator (PackmindHub/packmind, 317 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Sync Architecture?

ayoubben18 (a GitHub user) maintains it in ayoubben18/ab-method, which has 192 GitHub stars. The repository holds 26 skills in this directory. The repository was last updated on October 1, 2026.

Source: ayoubben18/ab-method on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.