/codely-skills:create-pull-requestfrom codely-skills
Writes pull request titles and descriptions following team templates with before/after evidence. Use before creating or editing a PR, and after pushing commits to an open PR branch.
Ships in codely-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Write the title and the body in ASD-STE100 Simplified Technical English. Follow the rules in references/ste100.md. Also apply these rules when you update the pull request.
commit-messages.md: type(scope): summary.If the repository has agent:* labels, an agent that creates the pull request adds exactly one, with its own name. Automations such as a cross-agent review can read it.
| Agent | Label |
|---|---|
| Claude Code | agent:claude |
| Codex | agent:codex |
| Cursor | agent:cursor |
gh pr create --label agent:<name>.agent:* label.gh pr create fails because the label does not exist, create the pull request without the label and tell the user.Assign the pull request to the person who directed the agent (the person who wrote the prompt):
gh uses that person's credentials (local CLI, desktop), add --assignee @me.gh uses a bot or app account (cloud agents) and you know the GitHub username of the person who gave the task, add --assignee <username>.gh pr create --body ignores the GitHub template. Build the body from a template explicitly:
.github/pull_request_template.md. If it does not exist, use references/pull-request-template.md."$TMPDIR/pr-body.md".--body-file.Rules for each section of the bundled template. With the template of the repository, apply the rules of the sections it shares:
**Level:** low / medium / high · <what makes it so>, for example **Level:** medium · a new endpoint, use case and table. The level is how hard the change is to review, not a verdict. If the repository has a REVIEW.md file that defines the complexity levels, use its definition to choose the level, and name the criterion that applies in <what makes it so>.1. [ ] …) so whoever runs it can check it. Start each step with when to run it in bold (Before merging:, After deploying:…), then where to run it and the exact command, query or flag in a code block. Never check a box yourself unless you ran that step.agent:* label, name the same agent.If your tool adds an attribution footer (for example "🤖 Generated with Claude Code"), keep it as the last line.
Never write "the user" and never guess a name. Pick the first case that applies:
| How the agent runs | End of the Authorship sentence, after "Claude Code with Claude Opus 5.5," |
|---|---|
With the person's own gh credentials (local CLI, desktop) | "guided by Jane Doe (@janedoe)." Get it with gh api user --jq '"\(.name) (@\(.login))"'. |
Started by a comment, an issue or a mention (@claude, @codex…) | "guided by @janedoe from this comment." Use the author of the comment or the person who assigned the issue. |
| Started by a scheduled task or a routine | "triggered by the scheduled task , owned by @janedoe." |
| Started by an automatic event with no person behind it | "triggered automatically by (link). No human directed it." |
With a bot or app account (cloud agents, GitHub Actions), gh api user returns the bot: take the person from the event instead. Ask who it is only in an interactive session. If the agent runs unattended and the event does not name a person, use the last row.
The evidence proves the change that "🎯 Why" describes. A reviewer must see that change without running the code.
main at a3d91f2 and after is this branch, both on the local dev server at /pricing with the same seed data."### heading and one sentence that tells the reviewer what to look at. Then the evidence.| Layout | Use it for |
|---|---|
| Before/after table | The main change. |
| Close-up crop | A defect of a few pixels. Use the same crop and zoom on both sides. |
| State grid | One column for each state that the reviewer cannot infer from the main case (empty, error, long). |
| Variant matrix | One row for each variant (width, theme, language) and one column for each side. |
| One subsection per platform | The same check on several platforms, browsers or environments. |
| Inline GIF and linked video | A short flow as a GIF, and the full walkthrough as a video. |
| Pair of diagrams | An architecture change, with Before above After. |
Read references/video-recording.md before you record.
Read references/architecture-diagrams.md before you draw.
flowchart TD with decision nodes.sequenceDiagram.flowchart LR.mkdir -p "$TMPDIR/pr-evidence". Never commit the screenshots or the videos.Sources for each type of change:
git show origin/<base>:<path> for the "before") and draw the components that the diff touches.Use the --attach flag of gh pr create, gh pr edit or gh pr comment. It needs gh v2.99.0 or later (gh --version) and works on GitHub.com only.
--attach. Run gh from the repository root.# suffix of the flag (--attach "<file>#<alt text>") applies only to appended images. A video has no alt text.references/video-recording.md.Example with TMPDIR=/var/folders/ab/T:
| | Before | After |
| ----------- | -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| **Desktop** |  |  |
| **Mobile** |  |  |
gh pr create \
--title "fix(courses): align course card price" \
--body-file "$TMPDIR/pr-body.md" \
--label agent:claude \
--assignee @me \
--attach "$TMPDIR/pr-evidence/before-desktop.png" \
--attach "$TMPDIR/pr-evidence/after-desktop.png" \
--attach "$TMPDIR/pr-evidence/before-mobile.png" \
--attach "$TMPDIR/pr-evidence/after-mobile.png"
If some uploads fail, gh creates the pull request, prints its URL and exits with a non-zero status. Then run gh pr edit --body-file … --attach … again with the missing files. Open the pull request and make sure that no local path stays in the body and that each diagram renders.
After each push, run gh pr view --json number,body. If the branch has an open pull request, update its description:
"$TMPDIR/pr-body.md".git diff origin/<base>...HEAD).gh pr edit --body-file "$TMPDIR/pr-body.md". If the body references new local images or videos, add one --attach flag for each file, as in "5. Attach the images and the videos". Then make sure that no local path stays in the body.The description always describes the current state of the whole pull request. Do not append a commit log or a "changes since last review" list. Do not change the agent:* label or the assignees.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub codelytv/agent-harness --plugin codely-skills13 skills in this plugin
/create-docDeprecated: use create-rule instead. Create new documentation based on the current conversation context./create-planCreate a plan for the specified task./create-plan-githubCreate a plan for the specified task and store it as GitHub issues in the repository of the current working directory. Given the URL of a GitHub issue, it turns that issue into the parent "plan" issue (Goal, Context and a checklist of phases) and creates one child issue per phase, linking every phase as a native GitHub sub-issue of the parent. Stops for user approval before creating any issue. After creation, the plan is meant to be implemented with the implement-plan-phase-github skill.Other plugins' skills for the same job