feat(delivery): add delivery-repo-doc skill #210

Merged
Defame1297 merged 2 commits from feat/delivery-repo-doc into main 2026-11-23 07:26:22 +00:00
Owner

Adds delivery-repo-doc, the first skill in the delivery package. It owns the format of a consuming repo's docs/agents/delivery.md, and it drafts that file, plus a one-line pointer in the repo's AGENTS.md, as a PR in the consuming repo.

Closes #189. Part of #166.

What's in it

  • SKILL.md: five steps (Locate, Gather repo facts, Ask for human facts, Write, Propose) and a Gotchas section.
  • references/format.md: the format, kept in one place.
    • The six fixed ## sections.
    • A strict, parseable item syntax for sections 1–4 (Contents → skills, CI checks, Test paths, Human allowlist).
    • Check roles, with exactly one dry-run; consumers treat a skipped check as passing.
    • The rule for placing the AGENTS.md pointer line, a skeleton and a validation checklist.
  • references/gathering.md: where each fact comes from.
    • Check names come from the workflow files, verified against a recent PR's statuses.
    • Facts only a human can supply are taken from the human or from a source they name, never invented.

The other delivery skills cite the format as "delivery-repo-doc's references/format.md" instead of linking to it by path, because a path out of a skill's own folder breaks once it is installed.

Verification

  • factory-audit passes with no findings: validate.sh, validate-provenance.sh and Vale are clean. The body is 563 words.
  • Dogfood run: a fresh session followed the skill to draft defame1297/ansible-homelab-mono's file on branch docs/delivery-md. The second commit folds in that run's feedback:
    • path-filtered checks
    • pointer placement under ### subsections
    • one markdown link form
    • forge-cased user names
    • caller overrides
    • no --no-verify

🤖 Generated with Claude Code

https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN

Adds `delivery-repo-doc`, the first skill in the `delivery` package. It owns the format of a consuming repo's `docs/agents/delivery.md`, and it drafts that file, plus a one-line pointer in the repo's AGENTS.md, as a PR in the consuming repo. Closes #189. Part of #166. ## What's in it - `SKILL.md`: five steps (Locate, Gather repo facts, Ask for human facts, Write, Propose) and a Gotchas section. - `references/format.md`: the format, kept in one place. - The six fixed `##` sections. - A strict, parseable item syntax for sections 1–4 (Contents → skills, CI checks, Test paths, Human allowlist). - Check roles, with exactly one `dry-run`; consumers treat a `skipped` check as passing. - The rule for placing the AGENTS.md pointer line, a skeleton and a validation checklist. - `references/gathering.md`: where each fact comes from. - Check names come from the workflow files, verified against a recent PR's statuses. - Facts only a human can supply are taken from the human or from a source they name, never invented. The other delivery skills cite the format as "`delivery-repo-doc`'s `references/format.md`" instead of linking to it by path, because a path out of a skill's own folder breaks once it is installed. ## Verification - `factory-audit` passes with no findings: `validate.sh`, `validate-provenance.sh` and Vale are clean. The body is 563 words. - **Dogfood run:** a fresh session followed the skill to draft defame1297/ansible-homelab-mono's file on branch `docs/delivery-md`. The second commit folds in that run's feedback: - path-filtered checks - pointer placement under `###` subsections - one markdown link form - forge-cased user names - caller overrides - no `--no-verify` 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
Claude added 2 commits 2026-11-23 07:13:21 +00:00
Why: the delivery team needs each consuming repo's specific facts (tool
skills per path, CI check names, test paths, human allowlist, credential
boundary) in one place it can read mechanically (ADR-0031, ADR-0032).

Implementation Notes: the skill owns the docs/agents/delivery.md format in
references/format.md, the single source the other delivery skills cite. It
drafts or updates that file plus a one-line AGENTS.md pointer as one PR,
taking repo facts from the repo and human facts only from the human.

Impact: first .apm/ content in the delivery package; Read and Propose
tiers only, never merges.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
Why: the first drafting run against a real Ansible repo surfaced gaps the
skill left to guesswork: pointer placement in a sectioned AGENTS.md,
path-filtered and push-only workflows, link syntax, and caller-supplied
facts.

Implementation Notes: format.md pins the AGENTS.md placement rules
without changing the exact line, notes that "skipped" checks pass, uses
markdown links throughout section 5, and states the hard-stop consequence
of an uninstalled skill. gathering.md covers mixed repos, which workflows
count, the exact status-read tool calls and caller-supplied convention
pointers. SKILL.md adds the fast-forward and dirty-tree rule, caller
overrides, hook-failure handling and the remote-casing gotcha.

Impact: delivery-repo-doc 0.1.0 -> 0.1.1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
Defame1297 merged commit 6edd66432c into main 2026-11-23 07:26:22 +00:00
Defame1297 deleted branch feat/delivery-repo-doc 2026-11-23 07:26:22 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Holocron#210