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

speq-patch-pr

Skill56 starsChanged 14 days agoMITView on GitHub

Ships a bug fix, small feature, or tweak as one ready PR: runs /speq-patch on the patch/patch-name branch, bumps the version, commits, and opens a ready pull request. Run again to resume. Arg: change intent text.

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

7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Run /speq-patch steps 1 to 3: prerequisites, discovery, the patch name, and the first size check.

    line 27
  2. Very specific:

    Run checkout with patch/<patch-name>.

    line 32
  3. Very specific:

    Not found: run create-branch with patch/<patch-name> and base: origin/<default-branch>.

    line 34
  4. Very specific:

    Run /speq-patch steps 4 to 8, but keep the patch folder: step 8 deletes it.

    line 38
  5. Very specific:

    Run the suites and the lint command once more per /speq-patch step 4, so the PR reports the tree it ships.

    line 46
  6. Very specific:

    Delete the patch folder specs/_plans/<patch-name>/.

    line 58
  7. Distinctive:

    Never merge the PR.

    line 60

≈ “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

Patch, PR flow (Orchestrator)

User Arguments

$ARGUMENTS

This skill runs /speq-patch on its own branch and ships the result as a ready PR. /speq-patch writes the code, tests, specs, and docs. You run every git/gh action yourself, per /speq-git-operations. Stop on the first failed step and report it. Running it again resumes the work.

Required Skills

Invoke before starting:

  • /speq-writing-guardrails: prose style for GitHub text
  • /speq-git-operations: git/gh writes, PR title, version bump

/speq-patch invokes its own required skills.

Workflow

1. Check Prerequisites and Name

  1. The GitHub CLI is not authenticated, or the repository has no origin remote → stop before any edit and name the missing piece.
  2. Run /speq-patch steps 1 to 3: prerequisites, discovery, the patch name, and the first size check.
  3. Derive the PR title from <patch-name> per /speq-git-operations § PR title and version bump.

2. Branch

Run checkout with patch/<patch-name>.

  • Found: the latest commit HEAD is not on origin/<default-branch>, has the PR title as subject, and git status --porcelain lists nothing outside the patch folder, new files included → go to step 5. Otherwise go to step 3.
  • Not found: run create-branch with patch/<patch-name> and base: origin/<default-branch>. Uncommitted changes the user assigned to the patch carry over.

3. Patch

Run /speq-patch steps 4 to 8, but keep the patch folder: step 8 deletes it. Keep the report for the PR body. Skip its closing line.

4. Bump Version

Bump the version file and sync the lockfile per /speq-implement-pr step 3, at the level /speq-git-operations § PR title and version bump gives.

5. Ship

  1. Run the suites and the lint command once more per /speq-patch step 4, so the PR reports the tree it ships. Red → stop and report as in /speq-patch step 4.
  2. A run that resumed here reads the ADR and architecture lines from the commit's diff, and the affected plans from speq plan list.
  3. Ship:
Run operation: ship-ready (per /speq-git-operations)
  paths: every file /speq-patch changed, the version file, and the lockfile; never the patch folder
  message: <the PR title>
  title: <the PR title>
  body: per references/pr-body-template.md
  1. Delete the patch folder specs/_plans/<patch-name>/.

Never merge the PR.

6. Report

Give the PR link, the new version, and the /speq-patch report.

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.