agentleFS
ryanilanoryanilano/ilano-skills/skills/file-pr/SKILL.md

file-pr

Skill0 starsChanged 2 months agoMITView on GitHub

File a concise pull request. Use when the user asks to file or open a PR.

  • Commits and pushes

35 other projects use a version of this, 24 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use leaving-pr-comments, docs-loop and 10 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.
  • cogine-aiSkill

    leaving-pr-comments

    Use whenever leaving comments on GitHub.

    Also in 14 projects that use this

  • GeiserXSkill

    docs-loop

    Use when the user asks to audit docs, check documentation for stale claims, or verify docs against the code.

    Also in 3 projects that use this

  • GeiserXSkill

    full-loop

    Drive a repository to done with sergio-loop, then keep improving it with refine-loop at a descending theta. Use only when the user explicitly invokes full-loop.

    Also in 3 projects that use this

  • PostHogSkill

    full-stop

    Also in 12 projects that use this

  • +8 more from GeiserX

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 35 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Before filing, check whether a PR for this branch already exists (gh pr list --repo <owner>/<repo> --head <branch>, or tea pr list --repo …

    line 15
  2. Very specific:

    Before pushing, check for secrets and private details in everything that will leave the machine: the commits being pushed (git log -p …

    line 48
  3. Distinctive:

    Do not post a follow-up PR comment unless it serves the user's request.

    line 72

“Common” is measured: kept by at least 6 in 10 of the 35 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

File PR

Name two remotes. The push remote is where the branch goes. The base remote is the repo the PR opens on. They are the same remote unless the branch goes to a fork, where the push remote is the fork and the base remote is upstream. Read the base remote with git remote get-url <base-remote> and take its <owner>/<repo>; that picks the host CLI. A GitHub base uses gh. A Forgejo or Gitea base uses tea; check tea logins list has a login for that host.

Before filing, check whether a PR for this branch already exists (gh pr list --repo <owner>/<repo> --head <branch>, or tea pr list --repo <owner>/<repo> --fields index,head,url and match the head). Review the diff locally against the base branch (usually origin/main) to make sure its contents match the goal.

PR titles usually become commit messages, so follow the repository's title conventions. Look at recently merged PRs and Git history for examples. Prefer a concise, human-readable title that explains why the change matters:

BAD

❌ perf(server): negotiate permessage-deflate on the websocket

GOOD

✅ perf(server): cut websocket frame size by 70%+ with gzipping

Open the description with a simple explanation of the problem based on the user's original prompt, then briefly explain the solution. Do not lead with an implementation inventory:

BAD

❌ Removed implicit workspace carry-over from every "new thread" entry point (cmd+n / cmd+shift+o, sidebar v1/v2 buttons, command palette). New threads inherit only the project from context; branch, worktree, and env mode always come from the configured defaults. Deleted buildContextualThreadOptions, startNewThreadInProjectFromContext, and the v1 sidebar's seed-context machinery.

GOOD

✅ My "new worktree" default was ignored when starting new threads on existing worktrees. Super unintuitive. Now your preferences always apply.

The description ends with the solution. It carries no model, harness, or session footer.

Before pushing, check for secrets and private details in everything that will leave the machine: the commits being pushed (git log -p <base>..HEAD, diffs and messages) and the title, description, quotes, and attachments. A secret that reaches the remote counts as leaked even if the PR is never opened.

Push the branch before creating the PR: every create command below needs it on the remote, and if the user declines the push, stop. Pushing stays the user's call. State the exact command, git push <push-remote> HEAD:<branch>, with what it sends (commit count and range, from git log --oneline <base>..HEAD), and wait for a yes, unless the user already said to push in this request.

Creating the PR on the remote is the action the user asked for. Open a real PR rather than a draft so review bots run. On GitHub, run gh pr create --repo <owner>/<repo> --head <head> --base <base> --title <title> --body-file <file>. On Forgejo or Gitea, run tea pr create --repo <owner>/<repo> --remote <base-remote> --head <head> --base <base> --title <title> --description-file <file>. <owner>/<repo> is the base remote's. <head> is the branch name, or <fork-owner>:<branch> when the branch was pushed to a fork. On GitHub, if gh pr create fails because the GraphQL rate limit is used up, open it through REST on the base repo with gh api repos/<owner>/<repo>/pulls -f title=... -f head=<head> -f base=... -F body=@<file>. If the user also asked to watch it through review and CI, use a PR watcher or review skill if one is available.

Do not post a follow-up PR comment unless it serves the user's request. When a comment is needed and a PR comment skill is available, use it.

Credit: Theo Browne, from t3dotgg/tstack (MIT).

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.