Skip to content
SprecherEast
Issue 155

process: Require native stacked PRs and make agent guidance tool-agnostic (open standards)

Back to our plan
Done
ciprocesstoolingpriority: high

Type

process

Problem

  1. Merge order is written down, not enforced. Dependent PRs have been opened as separate PRs, with the order spelled out in prose ("merge #139, then #142, then…"). Nothing stops a PR from being merged out of order. GitHub's native stacked pull requests enforce the order. A PR in a stack can only merge together with every PR below it, and CI runs on every layer as if it targeted main. Stack #154 (#149 → #152 → #139 → #142 → #143 → #150 → #151) now does this for today's work, but no repo rule or skill requires it.

  2. The repo's agent guidance is tied to one tool. AGENTS.md and .agents/skills/ follow open standards, and GitHub Copilot reads both: AGENTS.md, plus Agent Skills from .agents/skills/, .github/skills/ or .claude/skills/. But most of the real guidance lives only in Claude-specific places:

    • CLAUDE.md: stack, hosting, env vars, known gotchas;
    • 11 files in .claude/rules/: security, development, Payload, Next.js and Tailwind, UI/UX, frontend patterns, content;
    • Claude Code-only tips mixed into the rules (/simplify, run_in_background, the qa-reviewer agent).

    Copilot, Codex, Cursor or Gemini working in this repo would miss those, or would read Claude-specific instructions as if they applied to them.

The owner's decisions (2026-10-20):

  • always use native stacked PRs;
  • keep the repo not tightly coupled with any specific model or tool, following open standards (Agent Skills, AGENTS.md);
  • keep durable knowledge as skills and references in the repo, not as loose notes or a tool's private memory.

Proposed fix

One PR, on top of stack #154:

  1. New skill .agents/skills/stacked-prs/SKILL.md (Agent Skills format). It covers:
    • when to stack;
    • how to create and extend a stack (website, gh stack, or the REST Stacks API);
    • how to keep it linear (cascading rebase);
    • the stack note in each PR body;
    • that a hand-written merge order is never acceptable.
  2. AGENTS.md becomes the single entry point:
    • adds the stacking rule to the workflow;
    • indexes the skills and the tool-neutral references;
    • says that tool-specific files are thin adapters only.
  3. Move .claude/rules/*.md to docs/guidelines/ (tool-neutral, with an index). Model- and tool-specific wording comes out of them, and the Claude Code-only tips go to the Claude adapter.
  4. Move project facts out of CLAUDE.md (stack, hosting, env vars, gotchas) into a tool-neutral reference. CLAUDE.md becomes a thin adapter: it imports AGENTS.md and the references, plus Claude Code-only tips.
  5. Thin adapters for other tools: .github/copilot-instructions.md pointing at AGENTS.md. .claude/skills/* stay as pointers to .agents/skills/*.
  6. Update the change-workflow and pr-review skills:
    • stacking step;
    • the reviewer checks that dependent PRs are on a stack;
    • tool-neutral wording.

Rollback: revert the PR.

Acceptance criteria

  • Not done: .agents/skills/stacked-prs/SKILL.md exists, valid Agent Skills frontmatter (name, description), referenced from AGENTS.md and the change-workflow skill.
  • Not done: No durable rule lives only in a tool-specific file (CLAUDE.md, .claude/**, .github/copilot-instructions.md); those files only point to or import tool-neutral ones.
  • Not done: All links to the moved files are updated; no references to .claude/rules/ remain.
  • Not done: Every doc stays under 250 lines.
  • Not done: The owner signs off on the policy change (AGENTS.md, .agents/, .claude/, .github/, CLAUDE.md).

Area

tooling, ci

Priority

high


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab