agentleFS
marconaemarconae/speq-skill/.claude/skills/speq-plan-pr/SKILL.md

speq-plan-pr

Skill56 starsChanged 14 days agoMITView on GitHub

Plans a feature through the same clarifying interview as /speq-plan, then creates the feat/plan-name branch, commits the plan, and opens a draft pull request. Arg: feature intent text, plan name, PR number, or branch name.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the argument is a plan name, PR number, or branch, check it out:

    line 25
  2. Very specific:

    Run /speq-plan steps 1 to 5: discovery, the clarifying interview, the plan name, plan authoring, and the one review with its fix pass.

    line 37
  3. Distinctive:

    Create the branch. The plan files are uncommitted, so they carry over:

    line 38
  4. Distinctive:

    Run this when step 1 found a PR for the target.

    line 47
  5. Distinctive:

    If no comment is new, report that and stop.

    line 54
  6. Very specific:

    Treat every comment as user feedback on the files the PR changed, with its file and line when it has them.

    line 55
  7. Very specific:

    Run /speq-plan step 5 (the plan review) again only when the revision changed a spec delta or the plan's scope.

    line 56
  8. Distinctive:

    Commit and push, and answer on the PR:

    line 57
  9. Distinctive:

    Commit the plan and open the draft PR with one composite call:

    line 71

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Spec Planner, PR flow

User Arguments

$ARGUMENTS

This skill runs /speq-plan and ships the result as a draft PR.

Required Skills

Invoke before starting:

  • /speq-cli: spec discovery
  • /speq-writing-guardrails: prose style for artifacts and GitHub text
  • /speq-git-operations: the git/gh operation-to-command mapping, safety rules, and return formats.

Workflow

1. Resolve Target

If the argument is a plan name, PR number, or branch, check it out:

Run — operation: checkout (per /speq-git-operations)
  target: <a PR number or branch; for a bare plan name, feat/<plan-name>>
  • Found, with a PR: go to step 3 (revise).
  • Not found, or the argument is feature intent text: go to step 2 (new plan).

2. New Plan

  1. Run /speq-plan steps 1 to 5: discovery, the clarifying interview, the plan name, plan authoring, and the one review with its fix pass. Skip its step 6.
  2. Create the branch. The plan files are uncommitted, so they carry over:
    Run — operation: create-branch (per /speq-git-operations)
      branch: feat/<plan-name>
  3. Ship the draft, per Ship.

3. Revise from PR Comments

Run this when step 1 found a PR for the target.

  1. Read the feedback:
    Run — operation: read-comments (per /speq-git-operations)
      since: <timestamp of the last `spec(plan)` commit on this branch>
  2. If no comment is new, report that and stop.
  3. Treat every comment as user feedback on the files the PR changed, with its file and line when it has them. Revise the plan per /speq-plan's references/revision-mode.md. If a comment is ambiguous, ask the user.
  4. Run /speq-plan step 5 (the plan review) again only when the revision changed a spec delta or the plan's scope.
  5. Commit and push, and answer on the PR:
    Run — operation: commit (per /speq-git-operations)
      paths: the plan directory
      message: spec(plan): address PR feedback for <plan-name>
    
    Run — operation: push (per /speq-git-operations)
    
    Run — operation: comment-pr (per /speq-git-operations)
      body: one line per comment, `Resolved` or `Could not resolve` with the reason

Ship

Commit the plan and open the draft PR with one composite call:

Run — operation: ship-draft (per /speq-git-operations)
  paths: the plan directory
  message: spec(plan): <plan-name>
  title: <type>(<scope>): <slug>, derived per /speq-git-operations § PR title and version bump
  body: per references/pr-body-template.md, ending "Draft pending implementation."

Derive the PR title from <plan-name> per /speq-git-operations § PR title and version bump.

The PR stays a draft. speq-implement-pr is the only skill that marks it ready.

Report

Give the PR link. Print plan.md's ## Impact section, the ADR candidates: line, and the Architecture: line from the PR body. Mention the non-blocking findings from specs/_plans/<plan-name>/plan-review.md, read from the file, not from memory. If the fix pass ran, name it in one line ("N review findings fixed"). Tell the user to review the PR, comment on it, and run /speq-plan-pr <PR number> again to apply the comments, or /speq-implement-pr <plan-name> to build.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.