Skip to content

docs(contributing): teach authors to run apm-review-panel + pr-description-skill locally#1057

Merged
danielmeppiel merged 3 commits intomainfrom
docs/contributing-author-with-skills
Apr 29, 2026
Merged

docs(contributing): teach authors to run apm-review-panel + pr-description-skill locally#1057
danielmeppiel merged 3 commits intomainfrom
docs/contributing-author-with-skills

Conversation

@danielmeppiel
Copy link
Copy Markdown
Collaborator

TL;DR

Teach external contributors to run the same review skills CI runs, before pushing. Two skills get a top-level section in CONTRIBUTING.md:

Why

Context: #1039 is an excellent contribution from an external author. They saw the panel verdict (10 required findings) for the first time after opening the PR, which reads as gatekeeping. The skills already encapsulate the rubric the panel applies — but they're invisible from CONTRIBUTING.md. Once a contributor knows they exist and how to run them, the panel becomes a self-service checklist instead of a surprise.

What changed

One new subsection under "How to Contribute":

  • Names the two skills with a "when to use" table.
  • Documents the typical 4-step local flow: implement → run panel → run pr-description-skill → push.
  • Notes that any single .github/agents/*.agent.md persona can also be summoned standalone for a focused review.
  • Notes the bundle is harness-agnostic (Claude Code, Copilot CLI, Cursor, OpenCode, Codex, Gemini) — no extra install, just clone.

Trade-offs

  • Adds ~40 lines to CONTRIBUTING.md — worth it; this is the first thing an external contributor reads.
  • Doesn't make the skills required. Forcing them via CI gate would punish drive-by typo PRs. Soft guidance + an unchanged CI panel is the right balance.

How to test

  1. Read the new section in CONTRIBUTING.md — does the 4-step flow make sense to someone who has never seen .github/skills/ before?
  2. Optional: run the two referenced skills against a local branch and confirm the SKILL.md files behave as the section promises.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

…ption-skill locally

External contributors hit the panel verdict on PR for the first time
and treat 'required' findings as a surprise instead of a checklist they
could have run pre-push. Document the two highest-leverage skills
(.github/skills/pr-description-skill for the body, .github/skills/apm-review-panel
for the verdict), the typical 4-step local flow, and that single personas
under .github/agents/ can be summoned for focused reviews. Skill bundles
work in any SKILL-compatible harness (Claude Code, Copilot CLI, Cursor,
OpenCode, Codex, Gemini), so this is harness-agnostic guidance.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 29, 2026 22:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates contributor guidance to encourage running the repo-shipped review/authoring skills locally (the same rubric CI applies) before opening a PR, to reduce back-and-forth after CI verdicts.

Changes:

  • Adds a new CONTRIBUTING section describing when/how to run apm-review-panel and pr-description-skill.
  • Documents a suggested local authoring flow (implement -> panel -> PR body draft -> push/PR).
  • Points contributors to .github/agents/ personas for focused, single-expert reviews.
Show a summary per file
File Description
CONTRIBUTING.md Adds a new section teaching contributors to run the repo’s review/PR-authoring skills locally before pushing/opening PRs.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 4

Comment thread CONTRIBUTING.md Outdated
| Skill | When to use it |
|---|---|
| [`.github/skills/pr-description-skill`](.github/skills/pr-description-skill/SKILL.md) | **Every PR.** Drafts a self-sufficient PR body (TL;DR, Problem / Approach / Implementation, mermaid diagrams, validation evidence, How-to-test) that anchors every WHY-claim to PROSE / Agent Skills. Avoids the "what does this PR even do?" round-trip. |
| [`.github/skills/apm-review-panel`](.github/skills/apm-review-panel/SKILL.md) | **Non-trivial PRs** (new behaviour, security-relevant code, CLI UX changes, manifest/schema changes). Runs the same multi-persona panel CI runs in `pr-review-panel.yml` -- locally, before you push. Surfaces the `required` findings while the cost of fixing is still cheap. |
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pr-review-panel.yml does not appear to exist in .github/workflows/ (the panel workflow is pr-review-panel.md with a generated pr-review-panel.lock.yml). Update this reference so contributors can find the CI workflow you mean.

Suggested change
| [`.github/skills/apm-review-panel`](.github/skills/apm-review-panel/SKILL.md) | **Non-trivial PRs** (new behaviour, security-relevant code, CLI UX changes, manifest/schema changes). Runs the same multi-persona panel CI runs in `pr-review-panel.yml` -- locally, before you push. Surfaces the `required` findings while the cost of fixing is still cheap. |
| [`.github/skills/apm-review-panel`](.github/skills/apm-review-panel/SKILL.md) | **Non-trivial PRs** (new behaviour, security-relevant code, CLI UX changes, manifest/schema changes). Runs the same multi-persona panel CI runs in `pr-review-panel.lock.yml` -- locally, before you push. Surfaces the `required` findings while the cost of fixing is still cheap. |

Copilot uses AI. Check for mistakes.
Comment thread CONTRIBUTING.md Outdated
items in-place.
3. Ask your agent: *"Use the pr-description-skill to draft the PR body
for this branch."* Review the draft, paste it into `gh pr create
--body-file`.
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gh pr create --body-file requires a file path argument; as written, the command is incomplete and will confuse first-time contributors. Consider showing a concrete example (or a placeholder like <path-to-body.md>) so it's copy/pasteable.

Suggested change
--body-file`.
--body-file <path-to-body.md>`.

Copilot uses AI. Check for mistakes.
Comment thread CONTRIBUTING.md Outdated
Comment on lines +33 to +34
### Author your PR with the agent skills shipped in this repo

Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section replaced the previous ### Development Process heading, but the generic contribution steps (starting with "1. Fork the repository.") now immediately follow without any heading. Reintroduce a ### Development Process (or similar) header before the fork/branch/test steps so the document structure stays clear.

Copilot uses AI. Check for mistakes.
Comment thread CONTRIBUTING.md Outdated
Comment on lines +33 to +40
### Author your PR with the agent skills shipped in this repo

This repo ships its own review and authoring skills under `.github/skills/`
and the personas they call under `.github/agents/`. They run in any
SKILL-compatible coding agent harness (Claude Code, GitHub Copilot CLI,
Cursor, OpenCode, Codex, Gemini, etc.) -- no extra install, just clone
this repo and let your harness discover the bundle.

Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This content appears to be duplicated in the Starlight docs page docs/src/content/docs/contributing/development-guide.md (which still has a ### Development Process section and does not mention these skills). To avoid contributor guidance drifting, update that docs page (or link it to CONTRIBUTING.md) to reflect this new "author your PR" workflow.

Copilot uses AI. Check for mistakes.
Copilot AI added 2 commits April 30, 2026 00:51
…t the skills

Previous wording said 'no extra install, just clone' -- wrong. The skills
live under .apm/ (canonical primitive layout); .github/skills/ etc. are
deployment outputs. Contributors must run apm install after checkout to
have their harness pick up the bundle. Rewrite the section to lead with
'APM dogfoods APM', show the install + apm install commands, and update
all skill links to point at the canonical .apm/ paths.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add a 'When to summon which persona during design and implementation'
subsection so contributors consult the right specialist while building
instead of discovering the gap from the panel verdict. Hard rules:

- devx-ux-expert validates UX of new features BEFORE implementation
- cli-logging-expert is always included for any terminal output
- python-architect for refactors / non-trivial architecture
- supply-chain-security-expert is MANDATORY for anything touching
  apm install / fetching / scanning / locking -- non-negotiable, this
  is a core promise of APM
- auth-expert for any auth / token / credential change
- apm-primitives-architect for primitive or manifest schema changes
- doc-writer / oss-growth-hacker for public-facing copy

Pattern: critique the plan with the persona, then review the diff with
the same persona. Two cheap focused passes beat one panel rejection.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@danielmeppiel danielmeppiel merged commit 4a00b37 into main Apr 29, 2026
9 checks passed
@danielmeppiel danielmeppiel deleted the docs/contributing-author-with-skills branch April 29, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants