agentleFS
davidscotttuftsdavidscotttufts/hyvemind/skills/open-pr/SKILL.md

open-pr

Skill0 starsChanged 18 days agoApache-2.0View on GitHub

Open a pull request only when the current working tree has green gate evidence: verifies with {{cli}} evidence, writes the title and body from the actual diff (what, why, how verified, risk), uses Conventional Commits and sign-off. Pushes the branch freely; asks the user before opening the PR or posting anything others see. Use whenever a change is ready to propose.

  • Commits and pushes

62 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use commit-push, implement-change and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • DataCoveySkill

    commit-push

    Commit and push the changes made on this chat session to the current branch. Use best practices from Conventional Commits.

    Also in 3 projects that use this

  • Codagent-AISkill

    implement-change

    Implements an approved change in one continuous session, with tiered test runs. Use when asked to implement a change from its approved definition, or to invoke codagent:implement-change.

    Also in 3 projects that use this

  • saffron-healthSkill

    address-review

    Address PR review comments systematically. Use when responding to code review feedback on a pull request.

    Also in 3 projects that use this

  • DockerSkill

    review-pr

    Review one or more incoming Docker documentation pull requests as a maintainer. Independently validate technical claims, assess editorial fit and information architecture, choose a verdict, and draft exact inline or PR-wide feedback behind a confirmation gate. Use for requests such as "review PR 123", "is this PR correct?", "does this information belong here?", "validate this PR", or "help review backlog PRs". Do not use to maintain or fix a PR you own; use maintain-pr for that.

    Also in 10 projects that use this

  • SentrySkill

    write-tests

    Write tests following project conventions. Use when adding new tests or modifying existing ones.

    Also in 4 projects that use this

  • SentrySkill

    commit

    Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.

    Also in 17 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 61 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    After committing, run {{cli}} evidence --post: it sets a hyvemind/gate status on HEAD, and refuses an uncommitted tree.

    line 23

“Common” is measured: kept by at least 6 in 10 of the 61 edited versions of this file we could read. “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

Open a PR

1. Preconditions (all mechanical)

  1. {{cli}} evidence exits 0; its output names the proof source (local gate record, or the project's own commit status when evidence.status is set). If not, run the gate: the project's own (AGENTS.md) or {{cli}} gate. With only externalGate and no status, its done rule decides.
  2. git status is clean. Uncommitted work means the evidence doesn't describe what you are about to push.
  3. You are on a feature branch, not the default branch. Check with git branch --show-current, because another session can move you.
  4. The branch is up to date with the base (git fetch and confirm it isn't behind). If you rebase, the tree changes: gate again.

2. Make the evidence visible

After committing, run {{cli}} evidence --post: it sets a hyvemind/gate status on HEAD, and refuses an uncommitted tree. When evidence.status is set, --post posts nothing: the project's own gate posts that status and --post only reports it, so run the project's gate (see AGENTS.md) to get the status onto HEAD.

3. Commit hygiene

  • Stage explicit paths; never git add -A in a shared checkout.
  • Review git diff --cached before committing.
  • Conventional Commits: feat(scope): …, fix(scope): …, docs: …. Cite the decision record if there is one ((ADR 0042 §3)).
  • Sign off (git commit -s) if the project uses DCO.

4. Write the PR from the diff

## What
<one paragraph: the change, in user terms>

## Why
<the problem; link the issue / spec / decision record>

## How it was verified
- `{{cli}} gate` green on tree <hash>
- <probes run, manual checks, screenshots — only what you actually did>

## Risk & rollback
<what could break, how to turn it off or revert>

Describe only what the diff does. Leave out anything that was planned but not built, and say which checks were skipped.

5. Push, then gate

  • Pushing your feature branch to the project's own remote preserves work: do it without asking (git push -u origin <branch>). Never push to the default branch, an upstream remote, or a branch you didn't create.
  • ⛔ Opening the PR and posting any comment are visible to others. Show the user the title, body and target branch, and wait for an explicit yes before gh pr create or any gh pr comment/review.

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.