reconcile
Skill0 starsChanged 9 months agoMITView on GitHub
Reverse-update an HLD or LLD doc to match the real code — reads the git diff and spikes since the doc was last reconciled, updates API/Data Model sections to reality, checks off satisfied Requirements, and writes an ADR when the code intentionally diverged from the design. Use to eliminate architectural drift between docs and code.
11 other projects use a version of this.
Adopted by
Most recently taken up by
- localoy-ai/localstacktheir own version, first seen Oct 2, 2026
- hazlijohar95/skillstheir own version, first seen Sep 25, 2026
- AlexCunliffe/helmtheir own version, first seen Sep 10, 2026
- jbaruch/nanoclaw-hosttheir own version, first seen Aug 28, 2026
- conorbronsdon/agent-skillstheir own version, first seen Aug 3, 2026
- jovesun-lab/arcgramtheir own version, first seen Jul 20, 2026
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- wrg32786/aigent-os★ 19same name
- evist0/okf-matt-skills★ 13same name
- jovesun-lab/arcgram★ 13same name
- conorbronsdon/agent-skills★ 10same name
- EvildoerXiaoyy/reasonix-skills★ 4same name
- conorbronsdon/agent-workspace★ 2same name
- localoy-ai/localstack★ 2same name
- hazlijohar95/skills★ 1same name
- jbaruch/nanoclaw-host★ 1same name
- AlexCunliffe/helm★ 0same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository32 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- action-itemsSkill
- add-spikeSkill
- changelogSkill
- commitSkill
- create-branchSkill
- create-issue-branch-githubSkill
- create-issue-githubSkill
- create-mr-gitlab-gitSkill
- create-pr-github-gitSkill
- create-pr-githubSkill
- decisionSkill
- emailSkill
- fix-issue-github-autoSkill
- fix-issue-githubSkill
- hldSkill
- implement-lldSkill
- jira-ticket-gitSkill
- jira-ticketSkill
- lldSkill
- prSkill
- resolve-conflictsSkill
- resolve-open-questionsSkill
- reviewSkill
- spikeSkill
- standup-gitSkill
- standupSkill
- syncSkill
- tag-release-ansibleSkill
- tag-release-npmSkill
- tag-releaseSkill
- tldrSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 8 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
If $ARGUMENTS contains a path, use it.
- Distinctive: line 16
Check that the file at that path exists.
- Very specific: line 18
Read the file's frontmatter for Last Reconciled:.
- Very specific: line 19
If a sha is present, diff git diff <sha> (not <sha>..HEAD — a plain single-ref diff also picks up uncommitted working-tree changes, which a …
- Distinctive: line 20
If blank, find the actual base to diff against — not necessarily the default branch:
- Very specific: line 39
If exactly one branch is returned, that's the fork-point branch — compute git merge-base HEAD <that-branch> and diff from that commit: git …
- Distinctive: line 40
If multiple branches tie for closest ancestor (e.g.
- Distinctive: line 41
If no branches were returned at all, fall back to the default branch detected above.
- Distinctive: line 63
Never delete or silently overwrite an intentional design deviation — it must go through an ADR.
- Very specific: line 64
Never touch a Needs Review or Needs Spike row — resolving those belongs to a human or to /spike, not to this skill.
- Distinctive: line 65
Only update sections whose corresponding code actually changed.
- Distinctive: line 66
Do not commit or push — leave that to the user.
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Eliminate architectural drift by reading passing spike/feature code and reverse-updating the HLD/LLD doc to match reality.
$ARGUMENTS is the path to the HLD or LLD file (e.g. design/lld-user-auth-service.md). The path may be omitted if it's already clear from this conversation — see step 1.
Steps:
- Determine the target path:
- If $ARGUMENTS contains a path, use it.
- If not, look back through this conversation for an HLD or LLD path already established (created via
/hld//lld, or referenced by an earlier/spike,/add-spike,/resolve-open-questions,/implement-lld, or/reconcilecall in this session). If exactly one is found, confirm it with the user before proceeding rather than silently assuming. If more than one is found, list them and ask which to use. If none is found, ask the user to provide a path and stop. - Check that the file at that path exists. If it does not, tell the user and stop.
- Read the file's frontmatter for
**Last Reconciled:**. Determine scope:- If a sha is present, diff
git diff <sha>(not<sha>..HEAD— a plain single-ref diff also picks up uncommitted working-tree changes, which a commit-to-commit range would silently miss if nothing's been committed since the last reconcile). - If blank, find the actual base to diff against — not necessarily the default branch:
- Detect the current branch:
git branch --show-current. - Detect the repo's default branch:
git remote show origin 2>/dev/null | grep 'HEAD branch' | awk '{print $NF}'; if that fails (no remote configured), check which ofmain/masterexist locally. - If the current branch is the default branch, there's no parent branch to diff against — use
origin/<default>(the remote-tracking ref) if it exists, to catch local commits not yet pushed. If there's no remote either, there's nothing meaningful to diff — scope tospikes/only and say so in the final summary rather than failing. Otherwise, find the closest ancestor branch — the branch this one was actually created from, which is not always the default branch (e.g. a feature branch cut from
release/1.0). Score every other branch (local and remote) by how many commits HEAD is ahead of the merge-base with it — lower score means closer ancestor:scored=$(git for-each-ref --format='%(refname:short)' refs/heads/ refs/remotes/origin/ \ | grep -v 'origin/HEAD' \ | grep -vE "^(origin/)?$(git branch --show-current)$" \ | sed 's|^origin/||' | sort -u \ | while read branch; do base=$(git merge-base HEAD "$branch" 2>/dev/null) || continue echo "$(git rev-list --count "$base"..HEAD) $branch" done | sort -n) min=$(echo "$scored" | head -1 | awk '{print $1}') echo "$scored" | awk -v m="$min" '$1==m {print $2}'- If exactly one branch is returned, that's the fork-point branch — compute
git merge-base HEAD <that-branch>and diff from that commit:git diff <merge-base-sha>(single-ref, so it also picks up uncommitted changes). - If multiple branches tie for closest ancestor (e.g. several release branches diverged at the same point), tell the user which are tied and ask which to use.
- If no branches were returned at all, fall back to the default branch detected above.
- If exactly one branch is returned, that's the fork-point branch — compute
- Detect the current branch:
- Also include any files under
spikes/created or modified more recently thanLast Reconciled(or all ofspikes/if blank). git diffalone is blind to untracked files — a brand-new file/implement-lldjust created has no diff at all until it's staged, sincegit diffonly shows changes to files git is already tracking. Rungit status --porcelain(orgit ls-files --others --exclude-standard) and add any untracked file the doc's## Scopereferences to the changed-file set too. Treat an untracked file's entire current content as new — there's no prior version to diff against, just read it whole.
- If a sha is present, diff
- Confirm the doc's
## Scopesection (LLD) or## System Context/## Components(HLD) actually references the changed files. If the diff touches nothing the doc claims to cover, tell the user there's nothing to reconcile for this doc and stop. - Extract the actual exported signatures, types, and schemas from the changed code relevant to this doc.
- Compare against the doc's
## API / Interface Designand## Data Modelssections (LLD), or## Proposed Design/## Components(HLD). Two cases:- Code caught up to spec (matches what was designed, just needed the exact real signatures/types filled in) — quietly update the doc's sections to reflect reality. Also resolve any
[PENDING SPIKE VALIDATION]tags the code now confirms. - Code diverged from spec (implementation intentionally took a different approach) — make the same doc update, and create or append an ADR in
design/adr/(create the directory if it doesn't exist) using the/decisionskill's format (Context / Options Considered / Decision / Consequences). Never silently overwrite an intentional deviation without capturing why in the ADR.
- Code caught up to spec (matches what was designed, just needed the exact real signatures/types filled in) — quietly update the doc's sections to reflect reality. Also resolve any
- Check off any
## Requirementsrow whose behavior is now satisfied by the code (change- [ ]to- [x]). Do not touch, check off, or reinterpret any row already marked_(Needs Review — ...)_or_(Needs Spike — ...)_— leave those for a human (or for/spike, in theNeeds Spikecase) and list them in the final summary instead. - Roll up completed parent requirements. If the doc just reconciled is an LLD that links to an HLD: for each row just checked off that references a parent HLD requirement (
REQ-N.xreferencing HLDREQ-N), check every current row in this LLD referencing that sameREQ-N— ignore struck-through/superseded rows (only the latest successor counts), but treat any row still- [ ]— including any markedNeeds RevieworNeeds Spike— as blocking. If none are blocking, check offREQ-Nin the HLD file too. - Stamp
**Last Reconciled:** <today's date> @ <short-sha of HEAD>in the frontmatter. - Report a summary: files reconciled, which doc sections were updated, which Requirements rows were checked off (LLD and any rolled-up HLD rows, listed separately), any ADR created (with its path), and any
Needs RevieworNeeds Spikerows still outstanding.
Rules:
- Never delete or silently overwrite an intentional design deviation — it must go through an ADR.
- Never touch a
Needs RevieworNeeds Spikerow — resolving those belongs to a human or to/spike, not to this skill. - Only update sections whose corresponding code actually changed; do not regenerate untouched sections.
- Do not commit or push — leave that to the user.
$ARGUMENTS
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

