Files
skills/skills/reconcile-docs/SKILL.md
T
kiskaadee b606e9c037 feat(reconcile-docs,gitea-plan,implement-slice): wire read-only Gitea ingestion and drift hooks
- reconcile-docs: ingest merged PRs, published code-review comments,
  milestones, and Project Board column placement (Completed vs.
  Backlog/Ready) read-only via gt; include active design specs
  (docs/designs/*.md) and Mid-Slice Spec Drift resolution; hand off to
  gitea-plan when reconciled docs require tracker updates.
- gitea-plan: hand off to reconcile-docs at milestone boundaries or when
  canonical docs lag behind Completed board cards.
- implement-slice: check for upstream design spec drift in Step 1
  preflight and prompt to run reconcile-docs at Step 7 when Scope Drift
  evolves a contract in docs/designs/*.md or ARCHITECTURE.md.
- tests: add test_reconcile_docs_gitea_ingestion_and_hooks.
2026-11-15 15:52:56 -05:00

3.9 KiB

name, description
name description
reconcile-docs Audit, reconcile, and generate canonical repository documentation (README.md, ARCHITECTURE.md, docs/adr/, ROADMAP.md, docs/designs/*.md) against commit history, code reality, Gitea delivery state, and active plans. Use when updating a repository's official documentation. For capturing session notes or personal insights into the vault, use document.

Reconcile Docs

Use when

  • /reconcile-docs [history-path]: audit or reconcile repository documentation against history, Gitea state, and active plans.
  • Closing a milestone or resolving mid-milestone design spec drift flagged by code-review or implement-slice.
  • Not for capturing a single session's insight (use /document).
  • Not for triaging inbox notes into vault directories (use draft-curation).

Steps

  1. Discover Present State. Inspect working-tree status, repository source, tests, configuration, AGENTS.md, and existing docs. Build a present-state inventory of components, responsibilities, boundaries, and dependencies.
  2. Reconstruct History. Read chronological notes and commit history from the provided history source (vault records, discussions, previous ADRs) and, when a Gitea remote exists, read merged PRs and published code-review PR comments/reviews via gt (using gt-usage read-only queries). Extract decisions, accepted trade-offs, mid-slice contract pivots, rejected alternatives, migrations, and incidents.
  3. Extract Future Intent. Identify active plans, roadmaps (ROADMAP.md, docs/designs/*.md), and, when a Gitea remote exists, read open/closed Gitea milestones, issues, and Project Board column placement (Completed vs. Backlog, Ready, Work in Progress, Review) read-only via gt. Classify each item as committed, planned, exploratory, or superseded. Never mutate Gitea issues, PRs, or board cards.
  4. Reconcile and Detect Conflicts. Correlate past claims, present code reality, and future plans using references/reconciliation-matrix.md. Flag contradictions (historical claims contradicted by code, mid-slice spec drift in docs/designs/*.md, or Backlog plans masquerading as current implementation).
  5. Human Checkpoint. Present a Reconciliation Report following references/checkpoint-format.md listing present architecture, recovered decisions, resolved and unresolved conflicts, and proposed document mutations. Stop for user approval.
  6. Draft or Update Canonical Docs. Once approved, generate or update target artifacts following references/doc-contracts.md in order:
    • README.md (identity, purpose, high-level navigation)
    • ARCHITECTURE.md (canonical present-state system model only)
    • docs/adr/ (accepted or superseded decision records with context)
    • ROADMAP.md (intentional future direction and completed milestones)
    • docs/designs/*.md (when an active multi-slice design spec has drifted behind merged slices)
  7. Verify Consistency. Run cross-document consistency checks: verify no future claims in ARCHITECTURE, no obsolete claims in README or active design specs, consistent terminology, and valid links.

Your call

  • History source location if not specified or ambiguous.
  • Reconciliation conflict resolutions: whether to supersede, document migration, or drop stale claims.
  • Approval of the Reconciliation Report before writing any documentation file.
  • Which suggested ADR candidates warrant writing.

Done when

  • The Reconciliation Report is approved by the user, canonical documentation files are written or updated, and consistency validation passes cleanly.

Hands off to

  • git-manager: for branch setup or committing updated documentation files.
  • gitea-plan: when reconciled ROADMAP.md or docs/designs/*.md require new or updated Gitea milestones, issues, or board reconciliation.