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
This commit is contained in:
1 parent
8c5172eeaf
commit
c0f6e92935
8 files changed
+64
-52
No files matched your search
@@ -22,7 +22,7 @@ These skills exist to enforce four core principles:
|
||||
|
||||
1. **Defeating the Comprehension Illusion**: Having an AI generate code is not the same as understanding how a system behaves. When code velocity outpaces comprehension, you end up with systems you cannot debug when production breaks. Skills like `practice` make the learner write the code and drive analysis, ensuring mental models develop alongside the codebase.
|
||||
|
||||
2. **Intentional Epistemic Friction ("Your call")**: Great engineering requires deliberate checkpoints. Instead of letting agents make unilateral architectural choices, these skills pause at critical state transitions: requiring proven root causes before patching (`diagnose`), gating branch integration and merge readiness (`git-manager` / `gitea-pr`), or identifying learning opportunities that should be preserved as durable knowledge (`document`).
|
||||
2. **Intentional Epistemic Friction ("Your call")**: Great engineering requires deliberate checkpoints. Instead of letting agents make unilateral architectural choices, these skills pause at critical state transitions: requiring proven root causes before patching (`diagnose`), gating branch integration and merge readiness (`git-manager` / `verify`), or identifying learning opportunities that should be preserved as durable knowledge (`document`).
|
||||
|
||||
3. **Operational Ownership**: An agent should investigate, measure, and propose concrete options, but the human engineer must own the trade-offs, failure domains, and repository history. You cannot own what you did not decide.
|
||||
|
||||
@@ -34,7 +34,7 @@ These skills exist to enforce four core principles:
|
||||
|
||||
The system is under active testing and continuous improvement. Currently, the skills form an orchestrated pair-programming workflow. `build-skill` governs meta-level skill design.
|
||||
|
||||
Three core operational skills (`practice`, `diagnose`, `git-manager`) structure day-to-day engineering. `document` evaluates whether insights produced during work warrant durable preservation.
|
||||
Three core operational skills (`practice`, `diagnose`, `git-manager`) structure day-to-day engineering, while a 4-skill GitHub-native delivery loop (`projects` -> `implement` -> `code-review` -> `verify`) handles planning, slice execution, static review, and merge closeout. `document` evaluates whether insights produced during work warrant durable preservation, and `reconcile-docs` keeps canonical repository docs aligned with code and optional GitHub state.
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
@@ -44,12 +44,20 @@ flowchart TD
|
||||
DIAG["diagnose<br/>find out: evidence-first RCA"]
|
||||
GIT["git-manager<br/>branches, commits & recovery"]
|
||||
end
|
||||
subgraph Delivery["GitHub Delivery Loop"]
|
||||
PROJ["projects<br/>milestones, issues & board"]
|
||||
IMPL["implement<br/>preflight, workers & Draft PR"]
|
||||
CR["code-review<br/>4-axis audit & CR-XX reviews"]
|
||||
VER["verify<br/>QA, CI, promote & merge"]
|
||||
PROJ --> IMPL --> CR --> VER
|
||||
end
|
||||
DOC["document<br/>classify & author: 5 epistemic types"]
|
||||
REC["reconcile-docs<br/>reconcile: history, code, Gitea, roadmap"]
|
||||
REC["reconcile-docs<br/>reconcile: history, code, GitHub, roadmap"]
|
||||
Storage["Repo docs/ & .internal/"]
|
||||
|
||||
SB --> Core
|
||||
Core --> DOC
|
||||
Delivery --> REC
|
||||
DOC --> Storage
|
||||
Storage --> REC
|
||||
REC --> Storage
|
||||
@@ -67,20 +75,19 @@ Every skill features an explicit **"Your call"** checkpoint where the agent paus
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **[`practice`](skills/practice/SKILL.md)** | `/practice [topic]`, `/practice review` | Socratic tutoring and delayed retrieval. Learner writes all code; uses graduated assistance, rubric calibration, and recall-before-reveal in gitignored `.internal/practice/`. | 51 lines |
|
||||
| **[`diagnose`](skills/diagnose/SKILL.md)** | `/diagnose [symptom]` | Evidence-first troubleshooting. Progresses from raw logs to proven root cause and minimal, reversible fixes. | 49 lines |
|
||||
| **[`git-manager`](skills/git-manager/SKILL.md)** | `/git-manager` | Repository hygiene, branch and worktree lifecycle, incremental Conventional Commits (autonomous on working branches in delivery mode; user-authored in learning mode), integration, conflict stops, and evidence-first reflog recovery. | 65 lines |
|
||||
| **[`gitea-plan`](skills/gitea-plan/SKILL.md)** | `/gitea-plan` | Translates technical goals and plans into Gitea milestones, 5-column Kanban boards, and issues with tiered sizing and falsifiable acceptance criteria. | 75 lines |
|
||||
| **[`implement-slice`](skills/implement-slice/SKILL.md)** | `/implement-slice` | Orchestrates end-to-end delivery of an issue or vertical slice across worker and QA subagents, pre-committed rubrics, Kanban card transitions, and final-HEAD gates without editing code directly. | 45 lines |
|
||||
| **[`gitea-pr`](skills/gitea-pr/SKILL.md)** | `/gitea-pr` | Manages Gitea pull request lifecycle: branch readiness, review/verification synthesis, PR review comment publishing, issue closing, and merge readiness. | 73 lines |
|
||||
| **[`gt-usage`](skills/gt-usage/SKILL.md)** | `/gt-usage` | Work with Gitea repositories, issues, milestones, projects, and pull requests via the official gt CLI. Verified JSON recipes and anti-hallucination rules. | 45 lines |
|
||||
| **[`git-manager`](skills/git-manager/SKILL.md)** | `/git-manager` | Repository hygiene, branch and worktree lifecycle, incremental Conventional Commits (autonomous on working branches in delivery mode; user-authored in learning mode), integration, conflict stops, and evidence-first reflog recovery. | 67 lines |
|
||||
| **[`projects`](skills/projects/SKILL.md)** | `/projects` | Outer-loop GitHub planning: translates goals and specs into GitHub Milestones, Issues, and the canonical 5-column Projects v2 board with tiered sizing and zero-context reproducibility audits. | 75 lines |
|
||||
| **[`implement`](skills/implement/SKILL.md)** | `/implement` | Orchestrates a ready GitHub vertical-slice issue via preflight checks, Step 1 delta-test decomposition, branch-scoped checkpointing, adaptive `test-writer`/`code-writer` workers, 1:1 commits, and Draft PR publishing. | 78 lines |
|
||||
| **[`code-review`](skills/code-review/SKILL.md)** | `/code-review` | Inspects diffs and open GitHub PRs across four isolated axes (Spec & Scope, Standards & Smells, Seam & Test Integrity, Defensive Invariants), publishing monotonic `CR-XX` reviews and `RV-*` runtime checks via `build_review.py`. | 78 lines |
|
||||
| **[`verify`](skills/verify/SKILL.md)** | `/verify` | Runs black-box runtime QA and remote CI inspection against `verdict=ready` PRs, posts the verification ledger, promotes Draft PRs (`gh pr ready`, `Work in Progress -> Review`), and executes human-gated merge closeout (`Review -> Completed`). | 75 lines |
|
||||
| **[`gt-usage`](skills/gt-usage/SKILL.md)** | `/gt-usage` | Standalone ad-hoc Gitea CLI (`gt`) utility outside the GitHub core delivery loop for querying or mutating Gitea entities and configuring sovereign Gitea remotes. | 45 lines |
|
||||
| **[`document`](skills/document/SKILL.md)** | `/document` | Second-order knowledge classifier (Discussion, ADR, Plan, Debug Record, Knowledge) scoped to the active repository's `docs/` (or `.internal/`). User confirms type and provides core insight. | 55 lines |
|
||||
| **[`reconcile-docs`](skills/reconcile-docs/SKILL.md)** | `/reconcile-docs [path]` | Reconciles historical evidence, present code reality, Gitea delivery state, and future plans into canonical repo docs (`README`, `ARCHITECTURE`, `docs/adr/`, `ROADMAP`, `docs/designs/*.md`). | 44 lines |
|
||||
| **[`reconcile-docs`](skills/reconcile-docs/SKILL.md)** | `/reconcile-docs [path]` | Reconciles historical evidence, present code reality, optional read-only GitHub delivery state, and future plans into canonical repo docs (`README`, `ARCHITECTURE`, `docs/adr/`, `ROADMAP`, `docs/designs/*.md`). | 45 lines |
|
||||
| **[`build-skill`](skills/build-skill/SKILL.md)** | `/build-skill [topic]` | Interactive design, sizing, authoring, and empirical dogfooding of agent skills. Enforces design review gate before file creation. | 50 lines |
|
||||
| **[`derive-skill`](skills/derive-skill/SKILL.md)** | `/derive-skill <url-or-path>` | Evaluates an external skill (source, license, scripts), sorts material into preserve/adapt/reject, and decides new skill, merge, or reject. Hands an approved derivation brief to `build-skill`. | 58 lines |
|
||||
| **[`inspect-flake-update`](skills/inspect-flake-update/SKILL.md)** | `/inspect-flake-update` | Inspects updated flake.lock inputs, reviews upstream revisions, runs nix flake check, and drafts commit messages. | 46 lines |
|
||||
| **[`nix-devshell`](skills/nix-devshell/SKILL.md)** | `/nix-devshell` | Authors, extends, validates, and troubleshoots project Nix development shells from repository evidence. | 76 lines |
|
||||
| **[`verify-slice`](skills/verify-slice/SKILL.md)** | `/verify-slice` | Runs risk-proportional verification and PR review across behavioral, state, security, ergonomic, and regression perspectives using falsifiable assertions. | 37 lines |
|
||||
| **[`code-review`](skills/code-review/SKILL.md)** | `/code-review` | Inspects diffs across four isolated axes: Spec & Scope (including strategic project alignment), Standards & Smells, Seam & Test Integrity, and Defensive Invariants, plus drafting PR comment blocks. | 45 lines |
|
||||
| **[`tdd`](skills/tdd/SKILL.md)** | `/tdd` | Guides red-green test-driven development through public interface seams, boundary-only mocking, and non-tautological assertions. | 40 lines |
|
||||
| **[`tdd`](skills/tdd/SKILL.md)** | `/tdd` | Guides red-green test-driven development (Mode A) and test-suite hardening (Mode B) through public interface seams, boundary-only mocking, and non-tautological assertions. | 42 lines |
|
||||
|
||||
---
|
||||
|
||||
@@ -100,15 +107,20 @@ Every skill features an explicit **"Your call"** checkpoint where the agent paus
|
||||
|
||||
1. **Investigation to History**: `diagnose` (verify root cause) -> `git-manager` (checkpoint commit) -> `document` (optional Debug Record / ADR in `docs/`).
|
||||
2. **Deliberate Practice to Knowledge**: `practice` (solve transfer challenge, log in `.internal/practice/`) -> `document` (optional durable knowledge article in `docs/knowledge/`).
|
||||
3. **Documentation Reconciliation**: `reconcile-docs` (audit repo history, code reality, Gitea state, roadmap) -> propose updates to `README` / `ARCHITECTURE` / `docs/adr/` / `ROADMAP` / `docs/designs/*.md` -> user approves.
|
||||
3. **Documentation Reconciliation**: `reconcile-docs` (audit repo history, code reality, optional read-only GitHub state, roadmap) -> propose updates to `README` / `ARCHITECTURE` / `docs/adr/` / `ROADMAP` / `docs/designs/*.md` -> user approves.
|
||||
4. **Skill Design Loop**: `build-skill` (approve spec) -> dogfood run -> minimal mechanism refinement.
|
||||
5. **Branch Lifecycle & Integration**: `git-manager` (branch-before-edits or isolated worktree) -> implementation & incremental checkpoint commits -> `code-review` / `verify-slice` -> `git-manager` (rebase or integration).
|
||||
6. **Issue Planning to PR Delivery**: `gitea-plan` (tiered sizing, 5-column Kanban reconciliation, & falsifiable acceptance criteria) -> `implement-slice` (orchestrates `git-manager` workspace isolation, worker `tdd` checkpoints, pre-committed `verify-slice` QA rubrics, Kanban card transitions, and final-HEAD `code-review`) -> `gitea-pr` (PR synthesis, review comment publishing, feedback triage, merge & `Review -> Completed`).
|
||||
5. **Branch Lifecycle & Integration**: `git-manager` (branch-before-edits or isolated worktree) -> implementation & incremental checkpoint commits -> `code-review` / `verify` -> `git-manager` (rebase or integration).
|
||||
6. **GitHub Delivery Loop**: `projects` (tiered sizing, 5-column Projects v2 board, milestones, & falsifiable acceptance criteria) -> `implement` (preflight, Step 1 delta-test decomposition, branch-scoped checkpointing, adaptive `test-writer`/`code-writer` workers, & Draft PR) -> `code-review` (4-axis static audit, monotonic `CR-XX` PR reviews via `build_review.py`, & `RV-*` runtime checks) -> `verify` (black-box runtime QA, remote CI inspection, `gh pr ready` + `Work in Progress -> Review`, human-gated merge, & `Review -> Completed`).
|
||||
|
||||
---
|
||||
|
||||
## Installation & Portability
|
||||
|
||||
### CLI Prerequisites
|
||||
- **`git`**: required for all repository, branch, and worktree workflows.
|
||||
- **`gh` (GitHub CLI)**: primary forge CLI for the 4-skill GitHub delivery loop (`projects`, `implement`, `code-review`, `verify`) and optional read-only GitHub ingestion in `reconcile-docs` (authenticated with `repo` and `project` scopes).
|
||||
- **`gt` (Gitea CLI)**: optional standalone CLI required only if using `gt-usage` for ad-hoc Gitea operations outside the GitHub delivery loop.
|
||||
|
||||
The repository includes an idempotent install script (`install.sh`) supporting both symlink and copy modes:
|
||||
|
||||
```bash
|
||||
@@ -124,14 +136,14 @@ The repository includes an idempotent install script (`install.sh`) supporting b
|
||||
|
||||
When run:
|
||||
- Portable skills and active extensions are linked/copied to the target directory.
|
||||
- Deprecated or superseded skills are safely relocated to a dated backup directory (`skills.backup-<date>`).
|
||||
- Retired legacy Gitea skills (`gitea-plan`, `implement-slice`, `verify-slice`, `gitea-pr`) and other obsolete skills are safely relocated to a dated backup directory (`skills.backup-<date>`).
|
||||
- The global profile `profile/AGENTS.md` is installed as the user's base agent instruction.
|
||||
|
||||
---
|
||||
|
||||
## Behavioral Regression Testing
|
||||
|
||||
To ensure portable skills and Gitea integrations maintain behavioral invariants across updates, run the deterministic regression test harness:
|
||||
To ensure portable skills and GitHub delivery integrations maintain behavioral invariants across updates, run the deterministic regression test harness:
|
||||
|
||||
```bash
|
||||
# Run full behavioral contract and invariant test suite
|
||||
@@ -139,15 +151,12 @@ To ensure portable skills and Gitea integrations maintain behavioral invariants
|
||||
```
|
||||
|
||||
Validates:
|
||||
- Prerequisite verification and actionable `gt` CLI setup guidance.
|
||||
- Anti-hallucination querying rules (preventing hardcoded milestone/issue sequence numbers).
|
||||
- Adaptive proportionality scaling (lightweight docs vs full test ceremony).
|
||||
- Canonical 5-tuple workflow node schema and dynamic Mermaid projections.
|
||||
- Security invariant verification seams.
|
||||
- State-preserving failure/rework routing.
|
||||
- Execution deviation logging.
|
||||
- Strict dry-run zero-mutation invariants.
|
||||
- Skill line caps (≤80 lines), em-dash absence, and path portability.
|
||||
- Dynamic GitHub Projects v2 and milestone ID resolution rules (forbidding hardcoded Node IDs or guessed milestone numbers).
|
||||
- Single-owner 5-column board state machine (`Backlog -> Ready -> Work in Progress -> Review -> Completed`) across `projects`, `implement`, and `verify`.
|
||||
- `implement` preflight classifications, `--dry-run` zero-mutation contract, branch-scoped checkpointing, and OS-level non-interactive worker timeouts.
|
||||
- `code-review` `build_review.py` monotonic `CR-XX` publishing, `cr-review-meta` stamping, diff-hunk validation, and exit codes.
|
||||
- `verify` 3-phase QA/CI/promotion/merge closeout and `reconcile-docs` read-only GitHub ingestion.
|
||||
- Skill line caps (≤80 lines), em-dash absence, valid relative markdown links, and path portability.
|
||||
|
||||
---
|
||||
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ whether I really understood something), don't make it for me:
|
||||
- **Independent architectural decisions** (system boundaries, trade-offs, merge vs rework,
|
||||
schema or model changes, doc destinations): Frame the choice clearly with 2-3 concrete options,
|
||||
your recommendation listed first and marked "(Recommended)", one decision at a time.
|
||||
- **Homogeneous operational checkpoints** (creating a batch of Gitea issues, approving
|
||||
- **Homogeneous operational checkpoints** (creating a batch of GitHub issues, approving
|
||||
multi-item curation or routine task batches): Orchestrators may structure multi-choice
|
||||
prompts for batch approval, provided each option exposes both the concrete action and its
|
||||
consequence, consequential or destructive actions are never collapsed into a blanket
|
||||
|
||||
@@ -5,7 +5,8 @@ description: >-
|
||||
history integration (rebase, squash, cherry-pick, merge), conflict stops, and
|
||||
evidence-first reflog recovery. Use when creating branches or worktrees, committing
|
||||
completed task checkpoints, integrating branches, or recovering lost commits. Not for
|
||||
pull request lifecycle: use gitea-pr. Not for diff code inspection: use code-review.
|
||||
pull request lifecycle: use implement (Draft PRs) or verify (promotion and merge). Not for
|
||||
diff code inspection: use code-review.
|
||||
---
|
||||
|
||||
# Git Manager
|
||||
@@ -15,7 +16,7 @@ description: >-
|
||||
- Recording clean, atomic Conventional Commits as coherent tasks finish, or slicing a dirty tree.
|
||||
- Integrating branches (rebase, squash, merge, cherry-pick) or stopping cleanly on conflicts.
|
||||
- Recovering lost commits, dangling refs, or broken working-tree state via reflog.
|
||||
- Not for pull request creation or review threads: use `gitea-pr`.
|
||||
- Not for Draft PR creation (`implement`) or PR promotion and merge closeout (`verify`).
|
||||
- Not for multi-axis static diff evaluation: use `code-review`.
|
||||
|
||||
## Steps
|
||||
@@ -61,5 +62,6 @@ description: >-
|
||||
|
||||
## Hands off to
|
||||
- `code-review`: when a branch or commit range is ready for multi-axis static diff review.
|
||||
- `gitea-pr`: when verified commits are pushed and ready for pull request creation or update.
|
||||
- `implement`: when a slice branch is ready for Draft PR creation or rework sync.
|
||||
- `verify`: when a reviewed PR is ready for runtime QA, promotion, and merge closeout.
|
||||
- `document`: when a commit or recovery surfaces a decision or insight worth recording separately.
|
||||
@@ -1,19 +1,19 @@
|
||||
---
|
||||
name: gt-usage
|
||||
description: >-
|
||||
Work with Gitea repositories, issues, milestones, projects, and pull requests
|
||||
using the official gt CLI. Use when querying or mutating Gitea entities,
|
||||
extracting resource identifiers, or configuring instance remotes.
|
||||
Standalone ad-hoc utility for working with Gitea repositories, issues,
|
||||
milestones, projects, and pull requests using the official gt CLI outside the
|
||||
GitHub core delivery loop. Use when querying or mutating Gitea entities,
|
||||
extracting resource identifiers, or configuring Gitea instance remotes.
|
||||
---
|
||||
|
||||
# Gitea CLI Usage
|
||||
|
||||
## Use when
|
||||
- Querying, creating, or editing Gitea issues, milestones, project boards, or PRs.
|
||||
- Ad-hoc querying, creating, or editing Gitea issues, milestones, project boards, or PRs on Gitea-hosted repos or mirrors.
|
||||
- Extracting exact server identifiers and URLs via JSON output.
|
||||
- Configuring instance remotes or SSH port mappings for sovereign instances.
|
||||
- Not for planning or issue decomposition: use `gitea-plan`.
|
||||
- Not for pull request review synthesis: use `gitea-pr`.
|
||||
- Configuring instance remotes or SSH port mappings for sovereign Gitea instances.
|
||||
- Standalone utility outside the GitHub core delivery loop (`projects`, `implement`, `code-review`, `verify`).
|
||||
|
||||
## Steps
|
||||
1. **Verify CLI availability and auth.** Run `gt auth status`. If unauthenticated,
|
||||
@@ -41,5 +41,5 @@ description: >-
|
||||
- Target Gitea entity is created, queried, or updated with confirmed server JSON output.
|
||||
|
||||
## Hands off to
|
||||
- `gitea-plan`: to decompose technical work into milestones and issues.
|
||||
- `gitea-pr`: to manage pull request review and merge readiness.
|
||||
- `git-manager`: for local branch, commit, or remote configuration work.
|
||||
- `projects`: when planning active delivery workflows on GitHub instead of ad-hoc Gitea usage.
|
||||
@@ -3,7 +3,7 @@ name: reconcile-docs
|
||||
description: >-
|
||||
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
|
||||
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.
|
||||
---
|
||||
@@ -11,14 +11,14 @@ description: >-
|
||||
# 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`.
|
||||
- `/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.
|
||||
2. **Reconstruct History.** Read chronological notes and commit history from the repository (`git log`, `docs/discussions/`, `docs/debug/`, `docs/adr/`, or an optional history path) 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.
|
||||
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](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](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](references/doc-contracts.md) in order:
|
||||
@@ -40,5 +40,6 @@ description: >-
|
||||
|
||||
## Hands off to
|
||||
- `git-manager`: for branch setup or committing updated documentation (`Suggested Next Step: /git-manager`).
|
||||
- `gitea-plan`: when reconciled `ROADMAP.md` or `docs/designs/*.md` require new or updated Gitea milestones, issues, or board reconciliation (`Suggested Next Step: /gitea-plan`).
|
||||
- Emit one outcome-matched `Suggested Next Step` on standalone turns per [skeleton](../build-skill/references/skeleton.md).
|
||||
- `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](../build-skill/references/skeleton.md).
|
||||
@@ -108,5 +108,5 @@ Only items that represent intentional, validated future trajectory belong here.
|
||||
**Core Question**: What is the approved technical specification for an active multi-slice feature or epic?
|
||||
|
||||
### Contract Invariants
|
||||
- When an earlier slice in a multi-slice milestone intentionally evolves a shared interface, config schema, or error taxonomy on `main` (and codifies it in `AGENTS.md` or PR review comments), update the affected sections of `docs/designs/*.md` so subsequent slices (`implement-slice` Step 1) do not build against stale contracts.
|
||||
- When an earlier slice in a multi-slice milestone intentionally evolves a shared interface, config schema, or error taxonomy on `main` (and codifies it in `AGENTS.md` or PR review comments), update the affected sections of `docs/designs/*.md` so subsequent slices (`implement` preflight) do not build against stale contracts.
|
||||
- Never modify read-only historical proof-of-concept directories (`docs/poc/`).
|
||||
@@ -9,10 +9,10 @@ Treat each source according to its temporal role and authority:
|
||||
| Source | Temporal role | Epistemic authority |
|
||||
| :--- | :--- | :--- |
|
||||
| Chronological records (`git log`, `docs/discussions/`, `docs/debug/`) | Past | Historical evidence. Explains how the system arrived here. |
|
||||
| Merged PRs & published `code-review` comments (`gt pr`) | Past -> Present | Primary record of slice-level contract evolutions, accepted trade-offs, and deferred nits. |
|
||||
| Merged PRs & published `code-review` comments (`gh pr list --state merged`, `gh api` PR reviews/comments) | Past -> Present | Optional read-only record (when `gh repo view --json url` succeeds) of slice-level contract evolutions, resolved findings, and deferred issues. |
|
||||
| Repository implementation (code, tests, configuration, `AGENTS.md`) | Present | Canonical technical truth. Determines what the system is right now. |
|
||||
| Existing repository documentation (`ARCHITECTURE.md`, `docs/designs/*.md`) | Present | Canonical unless contradicted by current implementation. |
|
||||
| Gitea Milestones & Project Board (`Completed` vs. `Backlog`/`Ready`) | Present -> Future | Read-only delivery state: `Completed` cards are present truth; `Backlog`/`Ready` cards are future intent. |
|
||||
| GitHub Milestones & Projects v2 Board (`gh api` milestones, `Completed` vs. `Backlog`/`Ready`) | Present -> Future | Optional read-only delivery state (when `gh repo view --json url` succeeds): `Completed` cards are present truth; `Backlog`/`Ready` cards are future intent. |
|
||||
| Active plans (roadmaps, proposals, pending designs) | Future | Planned intent. Describes where the system may go next. |
|
||||
| ADRs | Past -> Present | Historical decision record that remains valid until superseded. |
|
||||
| ROADMAP | Future | Intended technical trajectory. |
|
||||
|
||||
+2
-2
@@ -15,7 +15,7 @@ description: >-
|
||||
- `/tdd` for Mode A (test-first implementation, red-green vertical slices, or failing bug reproduction).
|
||||
- `/tdd <test-path|branch|PR>` for Mode B (active audit and hardening of existing tests against [seams-and-mocking](references/seams-and-mocking.md) and [test-quality](references/test-quality.md)).
|
||||
- Not for trivial two-line fixes, copy, styling, declarative config, or pure wiring: edit directly instead.
|
||||
- Not for read-only pre-merge multi-axis diff inspection (`code-review`) or live runtime/browser QA (`verify-slice`).
|
||||
- Not for read-only pre-merge multi-axis diff inspection (`code-review`) or live runtime/browser QA (`verify`).
|
||||
|
||||
## Steps
|
||||
1. **Check applicability and select mode.** Confirm the task tests observable logic at a testable boundary (skip and edit directly for trivial config/copy when `/tdd` was not requested). Read project domain docs (`GLOSSARY.md` or local ADRs) if present. Select **Mode A** when adding new behavior, reproducing a bug, or writing a new test; select **Mode B** when asked to audit/harden existing tests or fix `code-review` Axis 3 findings, and follow the Mode B checklist in [test-quality](references/test-quality.md).
|
||||
@@ -36,7 +36,7 @@ description: >-
|
||||
|
||||
## Hands off to
|
||||
- `code-review`: to inspect the resulting diff, smells, invariants, and Axis 3 test integrity (`Suggested Next Step: /code-review <base>..HEAD`).
|
||||
- `verify-slice`: when the slice also needs live runtime, browser DOM, or multi-service verification (`Suggested Next Step: /verify-slice`).
|
||||
- `verify`: when the slice also needs live runtime, browser DOM, or multi-service verification (`Suggested Next Step: /verify`).
|
||||
- `diagnose`: when an unexpected test or fixture failure needs root-cause investigation (`Suggested Next Step: /diagnose <failing-test>`).
|
||||
- `git-manager`: for branch isolation or committing cohesive vertical slices.
|
||||
- Emit one outcome-matched `Suggested Next Step` on standalone turns; suppress when delegated (per [skeleton](../build-skill/references/skeleton.md)).
|
||||
Reference in new issue
Block a user