skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
zihad550/skills49 installs

work-pr-info

Draft a pull request title and body for a work repo, ready to paste into Forgejo.

How do I install this agent skill?

npx skills add https://github.com/zihad550/skills --skill work-pr-info
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill drafts pull request content by executing local commands to read git history and issue tracker information. While functional for repository management, it lacks sanitization for data ingested from these external sources and performs file writes based on that data, creating a minor surface for indirect prompt injection.

  • Socketpass

    No alerts

  • Snykwarn

    Risk: MEDIUM · 1 issue

What does this agent skill do?

Work PR title and description

Draft one title and one body for a pull request the user opens themselves. Drafting is the whole job: creating the PR, pushing, and setting review state stay with the user.

  1. Collect the change: the current branch name, git log <default-branch>..HEAD --oneline, and the diff behind those commits. Read every issue the branch name or the commit messages reference:

    df-ti <issue-number>
    

    Run it once per issue number. When no issue number appears anywhere, ask which issues this PR relates to. Done when the problem, the solution, and the full issue list are known.

  2. Settle whether the PR is ready for review, asking the user when the conversation has not already said. Done when ready or not-ready is decided.

  3. Draft the title: one line naming the change from the reader's side, specific enough to tell it apart from the other open PRs. Prefix WIP: when step 2 landed on not ready. Done when the title names the actual change, and carries the prefix only in the not-ready case.

  4. Draft the body by reading ~/.agents/skills/pr/SKILL.md (the pr skill from mattpocock/skills) and following its template: Summary, Evidence, Merge Danger. Label each piece of evidence as live, mocked or not run, naming what was mocked. Known gaps and bugs left unfixed go under Merge Danger. Follow-up work and anything a product owner still has to confirm have no section in the template, so they travel to step 7. Done when every template section is filled from the change, and a reviewer who has not read the diff can say what was wrong and what the change does about it.

  5. Close the body, after Merge Danger, with one reference line per issue from step 1, each on its own line. An issue this PR addresses gets a lowercase resolves: line with a colon; an issue mentioned only for context, which this PR does not address, gets a Related to line instead:

    resolves: #871
    resolves: #872
    Related to #850
    

    CI reads the resolves: lines to move each issue's label with the PR's state: approved sets ready to merge, request changes sets ready for dev, and merged sets ready for qa. Related to keeps a context issue out of that automation, so its label stays where it is. Never use Refs, and never put two issues on one line. When it is unclear whether the PR addresses an issue or only relates to it, ask. Done when every issue appears exactly once, every addressed issue matches resolves: #<n>, and every context issue matches Related to #<n>.

  6. Write the body alone to <root>/tmp/draft-pr-<n>.md, where <root> is the session's project root: where the session started, or where /cd or a worktree move took it, and <n> is the first issue on a resolves: line (the first Related to issue when none resolves). Create tmp/ when it is missing, and use it even when the session names a scratchpad directory: the user reads and copies the draft through the /drafts panel, which reads only <root>/tmp. Write Markdown that Forgejo renders as is, so the file pastes in unchanged and --body-file takes it unchanged. In the chat reply, give the file's absolute path and the title in one line, and keep the body in the file. Done when the file exists, its first line is the ## Summary heading, and the reply names its path and the title.

  7. Hand over what sits outside the body, in your own words rather than as draft text:

    • The Forgejo UI jobs, with the branch name and issue numbers filled in: link the PR branch to each issue from step 1, and request a new review after any push that follows an approval.
    • Each item step 4 sent here, named in one line, with where it would live instead, such as a review comment or a comment on the issue. Offer to write the ones the user wants.

    Done when both parts are stated concretely and every item step 4 sent here appears.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/zihad550/skills/work-pr-info">View work-pr-info on skillZs</a>