agentleFS
SDSLeonSDSLeon/lightcode/.agents/skills/pull-request/SKILL.md

pull-request

Skill121 starsChanged 4 days agoApache-2.0View on GitHub

Opens or updates a Poracode pull request against master with a conventional title, the repo template body, verification evidence, and screenshots where they help review a UI change. Use when asked to "open a PR", "create a pull request", "publish this", "push and open a PR", or "update the PR description". Not for committing (use commit) or responding to review comments (use address-pr-feedback).

  • Commits and pushes

53 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use issue-campaign, contracts and 8 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.
  • samchonSkill

    issue-campaign

    Defines the default solo repository-wide issue campaign for typia: exhaustive discovery, lead-vetted issue publication, one unified CI-validated implementation pull request per cycle, solo Self-Review, and repeated rediscovery until a full clean round. Use for broad audits, many issue candidates, or repeated issue-to-pull-request campaigns unless the user explicitly requests parallel or multi-agent execution; do not use for one already-defined issue or an ordinary pull request.

    Also in 3 projects that use this

  • AnthropicSkill

    contracts

    Answer a question across a corpus of contract documents with verified citations. Use when the user asks what a contract says, which contracts have a clause, what changed between amendments, or any question that needs reading and citing across a set of contract files. The corpus must be on the local filesystem (see README).

    Also in 3 projects that use this

  • mfang0126Skill

    development

    Full-stack development workflow skill. Guides the complete cycle from understanding requirements to shipping code via PR with Preview validation.

    Also in 3 projects that use this

  • dragonflydbSkill

    benchmark

    Benchmark Dragonfly (and compare against Valkey/Redis) on local or remote cloud instances, then produce a performance + memory report with charts and a raw-data appendix. Use this whenever the user runs /benchmark, or asks to benchmark / load-test / measure throughput, QPS, latency, or memory efficiency of Dragonfly or another Redis-compatible server, to compare Dragonfly vs Valkey or Redis, or to generate a benchmark report. Trigger it even when the user just describes the goal ("see how fast Dragonfly is on this box", "compare memory per key vs Valkey") without saying the word "benchmark".

    Also in 4 projects that use this

  • VercelSkill

    gh-stack

    Manages stacked PRs and splits multi-part work into reviewable branches with gh-stack. Use for stack creation, viewing, edits, push, submit, sync, rebase, merge, or checkout; when asked to split or isolate work for review; whenever a user mentions a stack, branch layers, dependent PRs, or gh stack; or when a stack is checked out.

    Also in 3 projects that use this

  • carapace-shSkill

    git

    Use when working with Git — object model, references, index, branching, merging, rebasing, remotes, diffs, config, hooks, worktrees, submodules, and plumbing commands. Triggers on: "git", "git branch", "git commit", "git merge", "git rebase", "git checkout", "git stash", "git reset", "git submodule", "git worktree", "git blame", "git bisect", "git reflog", "git hooks", "git config".

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 47 edited versions we read keep these.

  • 3

    Distinctive

    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
  1. Very specific:

    Prefer Poracode's git_sync (push) and gh_create_pr when available, using the current thread's project and exact worktree path.

    line 12
  2. Very specific:

    Run the verify skill. Use the full gate if the PR will be marked ready.

    line 18
  3. Very specific:

    If src/renderer strings changed, confirm they are localized and all 12 non-English catalogs are filled (.agents/docs/i18n.md).

    line 19
  4. Very specific:

    Write the body to tmp/pr-body.md following .github/PULL_REQUEST_TEMPLATE.md, then create the PR:

    line 22
  5. Very specific:

    Read it back with gh pr view --json url,title,baseRefName,headRefName,isDraft,body and fix anything wrong with gh pr edit.

    line 28
  6. Distinctive:

    Use the template sections in order.

    line 37
  7. Very specific:

    None: no visible effect, or one sentence conveys it completely, such as copy or translation edits, ARIA or keyboard-only changes, or a fix …

    line 53
  8. Distinctive:

    If the chosen level needs images but capture is impossible (requires real credentials, a device, or a locked desktop), say why in the …

    line 71
  9. Distinctive:

    Before / After matches the screenshot level: rendered uploaded images, a stated reason they could not be captured, or the level None text.

    line 78

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

Pull request

Get committed work into a draft PR that a reviewer can understand without reading every line of the diff. This is the repo-specific form of the in-app publish-changes skill (resources/plugins/github/skills/publish-changes/SKILL.md); its rules still apply: publish only when asked, ask only when the branch, included changes, base, or content is materially ambiguous, and never describe a check as passing unless you ran it.

Steps

Prefer Poracode's git_sync (push) and gh_create_pr when available, using the current thread's project and exact worktree path. Read back with gh_get_pr to synchronize the UI. Use CLI for operations the tools do not expose, including title/body edits and attachment upload, then refresh with gh_get_pr and git_status. Inspect schemas on older hosts. Reuse an existing PR for this branch/base. A syncWarning requires a readback, not repeating publication.

  1. Confirm the work is committed on a non-master branch (see the commit skill) and the tree has nothing that belongs in this PR left unstaged.
  2. Run the verify skill. Use the full gate if the PR will be marked ready. Reuse a completed gate only when it covered the exact unchanged final tree.
  3. If src/renderer strings changed, confirm they are localized and all 12 non-English catalogs are filled (.agents/docs/i18n.md). If persisted state, caches, manifests, protocols, or deployed helpers changed, complete the audit in .agents/docs/versioning.md.
  4. Choose the screenshot level and capture only what it calls for (below).
  5. Push: git push -u origin HEAD.
  6. Write the body to tmp/pr-body.md following .github/PULL_REQUEST_TEMPLATE.md, then create the PR:
    gh pr create --draft --base master --title "<title>" --body-file tmp/pr-body.md \
      --attach './tmp/pr-shots/after.png#After: <state>'
    Drop --draft when the user says ready or invokes finalize through merge. Attach each image the screenshot level calls for: add --attach './tmp/pr-shots/before.png#Before: <state>' for a before / after pair, and drop --attach at level None. Check that the installed gh advertises --attach; older versions may need another supported upload tool.
  7. Read it back with gh pr view --json url,title,baseRefName,headRefName,isDraft,body and fix anything wrong with gh pr edit. Check that images rendered as uploaded user-attachments URLs, not local paths.
  8. Report the PR URL, branch, draft state, and anything left unverified.

Title

Same format as the commit subject, including the leading issue number when there is one (see the commit skill). For a single-commit PR the title usually equals the commit subject.

Body

Use the template sections in order. Remove its HTML comments. Summary, Why, How verified, Before / After, and Risk & rollback are required; drop Benefits when it would only restate Why.

  • First line: Closes #123, or Refs #123 when the PR only partly resolves the issue. Omit when there is no issue.
  • Summary: what changed, in user-visible terms.
  • Why: the problem or motivation.
  • Benefits: concrete outcomes for users or maintainers. Optional; skip it when it would only restate Why.
  • How verified: the commands actually run and their results, with counts. Name checks you did not run and why.
  • Before / After: what the screenshot level calls for (below): the two-column table, one After image with its sentence, or the level None text.
  • Risk & rollback: compatibility and versioned-state impact, and how to revert (usually reverting the merge commit; say so if a migration makes that unsafe).

Also note deliberate omissions, follow-ups, and anything that needs an owner decision.

Screenshots

Screenshots are for reviewers: add one only when it shows what the diff and a sentence cannot. Choose the level from the final diff before launching anything, and take the cheaper level when an extra image would add little.

  • None: no visible effect, or one sentence conveys it completely, such as copy or translation edits, ARIA or keyboard-only changes, or a fix that makes existing UI work without changing how it looks. Write No visible UI change. or that sentence.
  • After only: new UI whose before state is just its absence, such as a new control, dialog, setting, section, or state. Capture the changed region once and describe the old state in a sentence.
  • Before / after: the appearance of existing UI changes and the comparison is the point, such as layout, spacing, alignment, sizing, styling, theming, or a visual bug like clipping or overflow.

To capture:

  • Drive the app with the managed launcher and CDP helper from .agents/skills/interactive-testing/SKILL.md (run-poracode-smoke.mjs --launch-only --mode mock, then poracode-cdp.mjs nav|click|shot), or reuse a QA session already running on the final tree. Do not start the app with raw bun run dev; the helper needs a managed session. After the shots are in tmp/pr-shots/, stop the session and delete that smoke root. A before session and an after session are two roots; delete both.
  • Shoot the smallest region that shows the change (shot '<selector>') rather than the whole window. Add a state (empty, loading, error) or the other theme only when the change alters it.
  • Only the before / after level needs "before", captured from the merge-base (git merge-base origin/master HEAD). The simplest "before" is one taken before you edit. Otherwise use a temporary detached worktree outside this checkout with its own bun install --frozen-lockfile, and remove it with git worktree remove afterwards. Use the same window size, theme, data, and navigation state on both sides.
  • Save captures under tmp/pr-shots/ (gitignored). Never commit screenshots.
  • Upload with gh pr create --attach or gh pr edit <n> --attach; the #text suffix becomes the alt text. If the body already contains ![Before](./tmp/pr-shots/before.png) with the same path, gh rewrites it to the uploaded URL; otherwise the image is appended to the end of the body. Present a before / after pair as below, and an after-only shot as ![After](./tmp/pr-shots/after.png) followed by its sentence:

    | Before                               | After                              |
    | ------------------------------------ | ---------------------------------- |
    | ![Before](./tmp/pr-shots/before.png) | ![After](./tmp/pr-shots/after.png) |
  • If the chosen level needs images but capture is impossible (requires real credentials, a device, or a locked desktop), say why in the Before / After section instead of omitting it.

Done when

  • A draft PR (or ready, if asked) targets master from the intended branch.
  • Title and body follow the rules above, and gh pr view confirms them.
  • How verified lists only checks that actually ran.
  • Before / After matches the screenshot level: rendered uploaded images, a stated reason they could not be captured, or the level None text.
  • The PR URL is reported.

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.

Reviews can't be read right now.

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.