From a787947acde8d9b3882f6f342c167ccae7dc7318 Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Sun, 15 Nov 2026 11:14:26 -0500 Subject: [PATCH] chore(skills): enforce explicit commit bodies, tuxedo CLI, and planning contracts - profile/AGENTS.md: require structured '-' bullet bodies for multi-file or non-trivial commits, and mandate non-interactive tuxedo subcommands for todo.txt - skills/git-manager/references/commits.md: align depth-matching rules to require per-area what/why bullets on multi-file or non-trivial slices - skills/gitea-plan/SKILL.md: add step 8 and approval/done gates to record state-free planning sync contracts in repository AGENTS.md for Medium/Large plans --- profile/AGENTS.md | 4 ++++ skills/git-manager/references/commits.md | 6 +++--- skills/gitea-plan/SKILL.md | 19 ++++++++++++++++--- 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/profile/AGENTS.md b/profile/AGENTS.md index ec657ff..bcfef2d 100644 --- a/profile/AGENTS.md +++ b/profile/AGENTS.md @@ -38,6 +38,9 @@ whether I really understood something), don't make it for me: Pause for approval only on `main`/`master`, in `learning` mode, or when hitting conflicts, reverts, cherry-picks, shared-history rewrites, failing checks, unfamiliar working-tree changes, or destructive git. +- Commit messages must be explicit for reviewers: for any commit touching multiple files or + non-trivial behavior, always include a structured body with `-` bullets stating what changed + and why per area (never a subject-only commit). - Never run destructive git (`reset --hard`, `restore `, `clean -fd`, force-push) without my explicit yes. - Redact secrets (tokens, keys, passwords, connection strings) from anything you print or save. @@ -58,6 +61,7 @@ whether I really understood something), don't make it for me: - My skills live in `~/Projects/active/skills`. Edit them there, never in an installed copy. - Durable notes default to `~/Brain/00-inbox/`. Use `document` to decide if one is warranted. +- For `todo.txt` task files, use non-interactive `tuxedo` CLI subcommands (`tuxedo ls --json`, `tuxedo lsp`, `tuxedo do `, `tuxedo add ...`); never invoke bare `tuxedo`, `tuxedo n`, or the interactive shell alias `todo` in agent subshells (they launch the full-screen TUI or fail to resolve). ## Workspaces and resolution diff --git a/skills/git-manager/references/commits.md b/skills/git-manager/references/commits.md index d802552..5255546 100644 --- a/skills/git-manager/references/commits.md +++ b/skills/git-manager/references/commits.md @@ -16,9 +16,9 @@ Reference for `git-manager`. Conventions for slicing changes, formatting Convent ## 3. Message Conventions and Depth Matching - Use the repository's `AGENTS.md` commit types and scopes when defined; otherwise use Conventional Commits (`feat`, `fix`, `refactor`, `docs`, `test`, `build`, `ci`, `chore`, `perf`, `security`). - Match message depth to change significance: - - **Trivial or mechanical**: concise imperative subject line only (`<= 72` characters). - - **Multi-part slice**: subject line + concise bullet list of concrete behavioral changes. - - **Non-obvious constraint or trade-off**: subject line + bullets + `Rationale:` line explaining why this approach was chosen over alternatives. + - **Trivial or mechanical** (single-file typo, formatting, or one-line fix): concise imperative subject line (`<= 72` characters). + - **Multi-file or non-trivial slice**: subject line + explicit `-` bullet list detailing what changed and why per area/file so reviewers can understand the slice without opening every diff. + - **Non-obvious constraint or trade-off**: subject line + explicit bullets + `Rationale:` line explaining why this approach was chosen over alternatives. - Link issues (`Closes #` or `Refs #`) only when the commit or branch genuinely satisfies those criteria. - Trust the staged diff over conversation claims; never overclaim untested behavior. diff --git a/skills/gitea-plan/SKILL.md b/skills/gitea-plan/SKILL.md index 436e44d..aeaaeca 100644 --- a/skills/gitea-plan/SKILL.md +++ b/skills/gitea-plan/SKILL.md @@ -29,8 +29,9 @@ description: >- 4. **Run independent reproducibility audit.** Spawn clean-room subagent with raw input manifest (commit SHA, specs, proposed issue markdown). Review 5-section evaluation to resolve material ambiguities before human gate. -5. **Present decomposition for approval.** Present proposed milestone, board, and - issues with audit disposition. Stop for approval before creating Gitea entities. +5. **Present decomposition for approval.** Present proposed milestone, board, + issues, and any proposed repository `AGENTS.md` planning-contract diff with + audit disposition. Stop for approval before mutating Gitea entities or `AGENTS.md`. 6. **Execute Gitea operations via `gt` CLI.** Use verified commands from `gt-usage`: - Milestones: `gt milestone create "" -d "<desc>" --json id,url`. - Projects: `gt project create "<title>" --template basic_kanban --json id,url` @@ -40,15 +41,27 @@ description: >- Extract server IDs directly; never guess sequence numbers or construct `/milestone/1`. 7. **Verify created state.** Inspect `gt issue list` and `gt milestone list` to confirm server IDs, board cards, and non-hallucinated canonical URLs. +8. **Formalize repo planning contract in `AGENTS.md`.** When establishing or changing + `Medium`/`Large` planning structure, record or reconcile a concise sync rule in the + repository's `AGENTS.md` so day-to-day coding agents keep trackers updated without + reloading `gitea-plan`: + - Pin **stable structural coordinates only**: canonical roadmap/checklist paths + (e.g., `docs/roadmap.md`, `todo.txt`), authoritative Gitea repo + Project Board ID, + remote mirror policy (e.g., GitHub code-only), and the escalation trigger to + re-run `gitea-plan` on scope shifts or epic Readiness Gates. + - **Never** hardcode rotating sprint state (active milestone numbers or open issue + lists) inside `AGENTS.md`; let `docs/roadmap.md`, `todo.txt`, and `gt` hold state. ## Your call - **Planning tier selection**: confirm Small vs. Medium vs. Large ceremony level. - **Issue decomposition boundaries**: approve or revise proposed issue slices. -- **Batch entity creation**: approve structured batch creation per `profile/AGENTS.md`. +- **Batch entity creation**: approve structured batch creation and `AGENTS.md` contract edits per `profile/AGENTS.md`. ## Done when - Target milestone, board, and issues exist on Gitea with verified server IDs, canonical URLs, and falsifiable acceptance criteria. +- Repository `AGENTS.md` contains an accurate, state-free planning sync contract + whenever `Medium`/`Large` planning structure is created or updated. ## Hands off to - `implement-slice`: to orchestrate end-to-end delivery of an approved issue or slice.