Files
skills/skills/reconcile-docs/SKILL.md
T
kiskaadee c0f6e92935 refactor(skills): align retained skills and docs with GitHub delivery loop
- skills/reconcile-docs/: preserve local-only doc reconciliation, scope optional read-only PR/milestone/Projects v2 board reads to GitHub via `gh repo view --json url`, replace `gt pr`/`implement-slice` references, and route handoffs to `projects` and `implement`
- skills/git-manager/SKILL.md: update `gitea-pr` references to `implement` (Draft PRs) and `verify` (promotion and merge) while keeping `git-manager` unchanged
- skills/tdd/SKILL.md: update `verify-slice` references and `Suggested Next Step` routing to `verify`
- skills/gt-usage/SKILL.md: document standalone ad-hoc Gitea CLI role outside the GitHub core delivery loop and remove legacy `gitea-plan`/`gitea-pr` handoffs
- README.md: update architecture overview, active skill table, canonical flows, CLI prerequisites (`gh` primary, `gt` optional standalone), and regression test summary for the 4-skill GitHub loop
- profile/AGENTS.md: update homogeneous operational checkpoint wording from Gitea issues to GitHub issues
2026-11-25 15:02:46 -05:00

4.3 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, GitHub delivery state, and active plans. Use when updating a repository's official documentation. For capturing a single session's decision, debug record, or insight into repo docs, use document.

Reconcile Docs

Use when

  • /reconcile-docs [history-path]: audit or reconcile repository documentation against history, optional GitHub state, and active plans.
  • Closing a milestone or resolving mid-milestone design spec drift flagged by code-review, implement, or verify.
  • Not for capturing a single session's insight or incident record (use /document).

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. Local git/doc reconciliation runs on any repository without requiring a GitHub remote.
  2. Reconstruct History. Read chronological notes and commit history (git log, docs/discussions/, docs/debug/, docs/adr/, or an optional history path). When gh repo view --json url succeeds, also read merged PRs (gh pr list --state merged) and published code-review PR comments/reviews read-only via gh api. Extract decisions, mid-slice contract pivots, rejected alternatives, migrations, and incidents.
  3. Extract Future Intent. Identify active plans and roadmaps (ROADMAP.md, docs/designs/*.md). When gh repo view --json url succeeds, also read open/closed GitHub milestones (gh api repos/{owner}/{repo}/milestones), issues, and Projects v2 Project Board column placement (Completed vs. Backlog, Ready, Work in Progress, Review) read-only via gh. Classify each item as committed, planned, exploratory, or superseded. Never mutate GitHub 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 (Suggested Next Step: /git-manager).
  • projects: when reconciled ROADMAP.md or docs/designs/*.md require new or updated GitHub milestones, issues, or board reconciliation (Suggested Next Step: /projects).
  • implement: when reconciled design specs unblock the next ready vertical slice (Suggested Next Step: /implement #<issue>).
  • Emit one outcome-matched Suggested Next Step: on standalone turns; suppress when delegated per skeleton.