
reconcile
Use after /audit resolved the RV ledger and wrote the reconciliation brief — you are the sole explicit writer of reconciled truth. Consume the RV + brief, write changes through two surfaces (direct edit for per-slice artefacts, REV for governance/spec), and hand off a resolved outcome to /close. Routed to from /audit.
- Installs
- 140
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/davidlee/doctrine --skill reconcile- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads reconcile automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Reconcile
You are the sole explicit writer of reconciled truth — the writer half of the
audit → reconcile → close seam. Audit identifies what
changed and assembles the reconciliation brief; you consume it, write the changes,
and record what was done. Close confirms the outcome before the terminal transition.
You write to two surfaces with different mechanisms:
| Surface | Mechanism |
|---|---|
Per-slice artefacts (design.md, slice-NNN.md) | Direct edit with user agreement |
| Governance/spec truth (ADRs, specs, requirements, policies, standards) | REV kind (doctrine revision) — typed [[change]] rows, approval checkpoint, apply path |
Project-local documentation outside .doctrine/ is not a doctrine feature category — edit
it directly like any project file, same as per-slice artefacts.
A single reconcile pass may use both surfaces — e.g. update design.md directly
and author a REV for an ADR amendment. Where each change lands is driven by the
reconciliation brief, not guessed.
A brief item can name a surface you don't write.
plan.tomlcriteria (EN-/EX-/VT-,PHASE-NN) are immutable-append (boot rule) — not a reconcile surface. If a brief item asks you to edit a plan criterion, do not; hand it back to/auditor/consultas a design/plan escalation. And a conformance / "spurious undelivered" item is fixed by the selector registry (doctrine slice selector rm/add) — the load-bearing verb — not by adesign.md §6prose edit alone (§6 is only the mirror;slice conformancereads the registry inslice-NNN.toml). Edit prose only, and conformance stays red.
No CLI verb surface.
doctrine slice reconcileis not built yet (deferred). You drive existing verbs (doctrine revision *, direct file edits) as manual discipline — same posture as/audittoday.
Inspect, don't re-audit. You inspect target artefacts to validate applicability, locate edit points, and detect drift since audit — but you do not perform new issue discovery. If you discover a new gap not in the brief, do not open a new finding here; hand it back to
/auditor raise it with/consult. The seam stays intact: audit owns discovery, you own the write.
Inputs:
-
the RV ledger —
review-NNN.toml(finding status) +review-NNN.md(the review markdown, carrying the reconciliation brief) -
the
## Reconciliation Briefsection withinreview-NNN.md— the structured handoff from audit. It maps findings to target artefacts, split into per-slice (direct edit) and governance/spec (REV) items. Its shape:## Reconciliation Brief ### Per-slice (direct edit) - design.md §3: the eviction model changed … update prose ### Governance/spec (REV) - ADR-NNN: branch-point staleness description is wrong → REV modify - REQ-NNN: cordage scale target verified at 50k nodes → REV status active
The brief lives in a dedicated section, separate from ## Synthesis (the audit's
closure story).
Human-facing reconciliation
For a consequential proposed change, make the current passage, proposed
passage, and effect on future work legible before asking for the existing
confirmation or REV approval. Give enough context to judge the change and the
exact doctrine <kind> show <ID> command for consequential Doctrine sources.
Offer /walkthrough of the passages and their implications when it would help;
an answer about remaining risk or intent may improve the proposal, so carry it
into the write. This composes with the confirmation below: do not add a second
acceptance act or require the human to prove understanding. Respect the
project's engagement default and the human's verbal changes.
Process
1. Read inputs
Read review-NNN.md for the ## Reconciliation Brief section. Read finding
status with doctrine review show RV-NNN --open — confirm every finding is
terminal (verified / withdrawn; the index reads findings: 0 of N) and
the pass concluded (doctrine review status RV-NNN reads done · await=none).
A finding still open / answered /
contested, or an unconcluded pass, is an incomplete audit — stop and hand back
to /audit.
Findings stay verified — remediation is recorded separately by you, never by
mutating the finding disposition. Record the RV id and the brief items you will act
on.
2. No-op gate
If the reconciliation brief is empty — every finding was withdrawn or tolerated
with no writes needed — append a ## Reconciliation Outcome section to
review-NNN.md confirming the no-op, then hand off to /close:
## Reconciliation Outcome
All findings were withdrawn or tolerated with rationale. No writes needed.
Reconcile pass complete — handoff to /close.
3. Per-slice edits
For each direct-edit item in the brief:
- Present the proposed edit to the user. Show the exact location, the old text, and the new text. Get confirmation before writing.
- Write the edit to
design.mdand/orslice-NNN.md(if scope changed during implementation). - Record what was edited — and which finding drove it — in a running reconciliation outcome. You will append this to the RV markdown in step 6.
4. REV authoring
For each governance/spec item in the brief, author a REV change. Multiple
governance items may be collated into a single REV per slice by default (one
reconcile SL-NNN REV with multiple [[change]] rows), or into separate REVs
when items need independent debate (see the split rule below).
4a. Discover or create the REV
If the brief records a REV id, use it:
doctrine revision show REV-N
Otherwise, create one by convention:
doctrine revision new "reconcile SL-NNN" --slug reconcile-sl-NNN
The REV starts proposed with no change rows. Transition it to started before
adding rows:
doctrine revision status REV-N started
4b. Collision guard
If reconcile-sl-NNN slug already exists, inspect before reuse:
doctrine revision show REV-N
- If related (same slice, same class of change) → reuse it; append new
[[change]]rows. - If unrelated (different slice or intent collided on slug) → create a distinct slug or ask the user for a decision. Do not silently mix unrelated changes in one REV.
4c. Add [[change]] rows
For each governance/spec item, append a typed row:
doctrine revision change add REV-N --action <action> [--target <T>] [--to-status <S>] [--new-label <L> --member-of <SPEC>] [--primary]
See doctrine revision change add --help for the --action values and their
flags.
See doctrine revision apply --help for which --action values auto-land vs.
surface for manual landing.
4d. Record the reconcile narrative
Write the reconciliation rationale into revision-NNN.md — what changed, why, and
a link back to the RV finding that drove it. Example:
## Reconcile narrative
- [RV-NNN finding F-3]: the branch-point staleness description was wrong.
Updated to match the CAS row semantics from the coordination slice.
- [RV-NNN finding F-5]: the scale requirement verified at 50k nodes. Status moved to `active`.
4e. Split rule
If any row is known to require separate debate or will not land in this pass,
split it into its own REV before approval/apply. Do not create a half-applied
omnibus REV that blocks close because one row is stuck. A REV stays started until
all rows land — a stuck row in an omnibus REV blocks the whole slice.
5. Approve & apply
When all [[change]] rows are written and the narrative is complete:
doctrine revision approve REV-N
doctrine revision apply REV-N
approverecords the orthogonal approval —applyrefuses without it (invoker-blind: a solo dev self-approves).applyauto-landsstatusrows and surfacesmodify/create/introduce/move/retire/proserows for manual landing. A pre-flight from-guard aborts the whole apply if any target moved since the change was drafted — if this fires, re-inspect the affected targets and retry.- Note which rows were auto-landed and which are surfaced-for-manual.
6. Manual prose landing
For surfaced-for-manual rows, perform the edits by hand under the authored-truth honour model. The REV tells you what to change; you make the actual file edit.
When all surfaced rows are landed:
doctrine revision status REV-N done
Then record the reconciliation outcome on the RV. Append a ## Reconciliation Outcome section to review-NNN.md:
## Reconciliation Outcome
### Direct edits applied
- design.md §3: updated eviction model prose → matches implementation (finding F-2)
### REVs completed
- REV-NNN (`reconcile-<slug>`): done — the staleness description amended, REQ-NNN → active
(covers findings F-3, F-5). Rationale in revision-nnn.md.
### Withdrawn / tolerated
- Finding F-4: tolerated — drift in error message wording; rationale in finding disposition.
7. Escalation gate
If while reconciling you discover that the model itself is inadequate — not mere instance drift, but a design flaw that the change cannot be expressed within — escalate back to design:
doctrine slice status <id> design
This is the design back-edge: reconcile → design. Describe the inadequacy in
a note (the --note flag), and what the design needs to resolve. Do not improvise
a fix that the governing design does not support.
When all items are resolved and the outcome is recorded, hand off to /close.
Outcomes
- Every governance/spec item from the reconciliation brief is resolved: covered by
a
doneREV, withdrawn with rationale in the RV, tolerated with rationale in the RV, or escalated to design. - Every per-slice direct-edit item is applied to its target file.
- The RV carries a
## Reconciliation Outcomesection recording what was done and why. - Each REV carries a reconciliation narrative in its
revision-NNN.md. - The slice is ready for
/close— every item is resolved; no half-applied REVs block the close-gate.
FAQ
What does the reconcile skill do?
Use after /audit resolved the RV ledger and wrote the reconciliation brief — you are the sole explicit writer of reconciled truth. Consume the RV + brief, write changes through two surfaces (direct edit for per-slice artefacts, REV for governance/spec), and hand off a resolved outcome to /close. Routed to from /audit.
How do I install reconcile?
Run npx skills add https://github.com/davidlee/doctrine --skill reconcile in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/reconcile/ (personal) or .claude/skills/reconcile/ (project).
Which AI agents can use reconcile?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is reconcile safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains reconcile?
It is published by davidlee in davidlee/doctrine. It has 140 recorded installs.
More from davidlee/doctrine
code-review
davidlee/doctrine
Use whenever reviewing code for quality and correctness — a diff, PR, module, or subsystem — producing verified, severity-ranked findings on the RV ledger. Not for comprehension tours (walkthrough) or doctrine-conformance hunts (inquisition, user-invoked only).
pair
davidlee/doctrine
Agentic pair programming — drive a change together with a human partner in the loop, narrating intent and pausing at decision points. Use when the user wants to work side-by-side rather than hand off a whole task. Calibrated by three dials (role, detail, autonomy) and an always-on challenge mandate.
consult
davidlee/doctrine
Use the moment you hit an unanticipated obstacle, a decision with competing tradeoffs, or emergent complexity mid-task — before adapting planned scope, adding a dependency, taking a shortcut, or making any impactful concession on your own.
handover
davidlee/doctrine
Use when handing work to a fresh context — first bring the durable harvest current, then emit a continuation at one of two weights — a printed continuation prompt (light) or a handover.md context packet (full). Use whenever a fresh agent would more efficiently continue.
canon
davidlee/doctrine
Use before making architectural or workflow choices, when correctness depends on project governance, or when entering an unfamiliar subsystem — to load the project's authoritative rules before you act on assumptions.
retrieve-memory
davidlee/doctrine
Use before making non-trivial assumptions — before touching a subsystem you have not this session, before running or changing a command pipeline, when code and docs conflict, when asked "what is the right way here?", when debugging a recurring failure, or when about to answer with "probably/usually/likely".
Popular security skills
azure-compliance
microsoft/azure-skills
Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.
minimal-run-and-audit
lllllllama/rigorpilot-skills
Rigor Run skill for README-first deep learning repo reproduction. Use when the task is specifically to capture or normalize evidence from the selected smoke test or documented inference or evaluation command and write standardized reprooutputs/ files, including patch notes when repository files changed. Do not use for training execution, initial repo intake, generic environment setup, paper lookup, target selection, hidden scientific-meaning changes, or end-to-end orchestration by itself.
seo-audit
coreyhaines31/marketingskills
When the user wants to audit, review, or diagnose SEO issues on their site. Also use when the user mentions "SEO audit," "technical SEO," "why am I not ranking," "SEO issues," "on-page SEO," "meta tags review," "SEO health check," "my traffic dropped," "lost rankings," "not showing up in Google," "site isn't ranking," "Google update hit me," "page speed," "core web vitals," "crawl errors," "indexing issues," "stuck on page 2," "striking distance keywords," "title tag rewrite," "low CTR," "local SEO," "Google Business Profile," or "map pack." Use this even if the user just says something vague like "my SEO is bad" or "help with SEO" — start with an audit. For building pages at scale to target keywords, see programmatic-seo. For adding structured data, see schema. For AI search optimization, see ai-seo.
firebase-security-rules-auditor
firebase/agent-skills
Audits Firebase (Firestore, Cloud Storage) security rules for vulnerabilities, privilege escalation, role bypasses, create vs update inconsistencies, resource exhaustion, type safety, size limits, and hasOnly ownership checks. Use when auditing/reviewing rules, running red-team rule assessments, or scoring against auditor checklists. Don't use for Firebase CLI (login, deploy), Auth, Crashlytics, Remote Config, or database queries.
security-audit
cloudflare/security-audit-skill
Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.
competitors
coreyhaines31/marketingskills
When the user wants to create competitor comparison or alternative pages for SEO and buyer-facing use. Also use when the user mentions 'alternative page,' 'vs page,' 'competitor comparison,' 'comparison page,' '[Product] vs [Product],' '[Product] alternative,' 'competitive landing pages,' 'how do we compare to X,' 'competitor teardown,' 'audit our competitor pages,' 'are our comparison pages out of date,' or 'competitive asset audit.' Use this for any content that positions your product against competitors. Covers four formats: singular alternative, plural alternatives, you vs competitor, and competitor vs competitor. For auditing existing claims (not researching competitors from scratch, which is competitor-profiling; not technical SEO on these pages, which is seo-audit), use the asset audit here. For internal battle cards and sales-specific competitor docs, see sales-enablement.