github-pr
Skill18 starsChanged 6 months agoMITView on GitHub
Use when creating a GitHub pull request for the langchain-dynamic-workflow project. Triggers: user asks to "create PR", "open PR", "submit PR", "raise a pull request", or any variant involving GitHub pull request creation. Also use when finishing a development branch and the user wants to merge via PR.
- Commits and pushes
9 other projects use a version of this.
Adopted by
Most recently taken up by
- swaroopsm/skillstheir own version, first seen Sep 17, 2026
- giulio333/ClaudeLenstheir own version, first seen Sep 9, 2026
- DeRuiChen258/RL_Infra_skills-openAItheir own version, first seen Aug 14, 2026
- enkr1/claude-code-skillstheir own version, first seen Jul 14, 2026
- forjd/agent-skillstheir own version, first seen May 21, 2026
- damacus/agent-skillstheir own version, first seen May 20, 2026
Used with
Projects with it also use github-issue and skill-creator.
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.
devstefanchoSkillgithub-issue
Unified GitHub issue workflow via the gh CLI — fetch an issue (body, labels, comments, image/video attachments) into the session, create a new issue from a template, or update an existing one (body, labels, state, comments). Handles the 404 that plain curl/WebFetch hits on GitHub attachment URLs by downloading with an auth token, and extracts viewable frames from video attachments. Use whenever the user mentions GitHub issues — 이슈 가져와, 이슈 조회, 이슈 등록, 이슈 생성, 이슈 만들어줘, 이슈 업데이트, 이슈 수정, 이슈 코멘트, 이슈 작업, fetch issue N, work on issue N, create an issue, update issue N, file a bug, /github-issue.
Also in 3 projects that use this
MicrosoftSkillskill-creator
Guide for creating effective GitHub Copilot skills (.github/skills/) in this repository. Use when creating a new skill, updating an existing skill, or when asked about skill structure, format, or best practices for the vscode-documentdb project.
Also in 3 projects that use this
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- giulio333/ClaudeLens★ 64same name
- dhruvanbhalara/skills★ 30same name
- yantrikos/yantrikclaw★ 9same name
- Cogni-AI-OU/cogni-ai-agent-skills★ 4same name
- DeRuiChen258/RL_Infra_skills-openAI★ 3same name
- damacus/agent-skills★ 2same name
- forjd/agent-skills★ 2same name
- enkr1/claude-code-skills★ 1same name
- swaroopsm/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- examples/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- examples/CLAUDE.mdCLAUDE.md
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 6 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
6
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
- Distinctive: line 12
Create well-structured GitHub pull requests with theme-organized descriptions, an inline visual review surface (Mermaid + PNG + …
- Distinctive: line 43
Run these in parallel:
- Distinctive: line 69
When in doubt, ask the user.
- Very specific: line 81
If the public API surface changed, note the version bump.
- Distinctive: line 89
Only include this when the version actually changed.
- Distinctive: line 154
Follow conventional commit format, under 70 characters:
- Distinctive: line 280
Test plan is mandatory: Every PR must have a test plan section.
- Very specific: line 283
Resolves/Closes: Add Resolves #N on its own line if applicable.
- Very specific: line 284
Signature: Always end with 🤖 Generated with Claude Code.
- Very specific: line 285
Cleanup marker: If Layer A was uploaded, include <!-- pr-artifact-gist: <id> --> at the very bottom.
- Very specific: line 308
Use a HEREDOC for --body to preserve Markdown formatting.
- Very specific: line 322
Before the first PR that uses Layer A on a given machine, the user must grant the gist scope to their gh token:
“Common” is measured: kept by at least 6 in 10 of the 8 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.
Files
GitHub Pull Request
Create well-structured GitHub pull requests with theme-organized descriptions, an inline visual review surface (Mermaid + PNG + collapsibles), and an optional full-fidelity HTML explainer hosted on a secret gist.
Why a visual review surface matters
AI-authored PRs are often large or technically deep, and the human reviewer cannot fully absorb them from a flat markdown bullet list. The skill enforces two layers of visual scaffolding:
- Layer C — inline in the PR body: Mermaid diagrams, drag-dropped PNGs,
<details>folded file tours, severity-chipped risk tables. Renders natively on github.com — zero friction. - Layer A — full HTML explainer (optional): A self-contained
.htmlpage with margin-pinned diff annotations, inline SVG module map, and side-by-side before/after. Stored locally (gitignored), uploaded to a secret gist, linked from the PR body viahtmlpreview.github.io.
Layer C is mandatory for non-trivial PRs. Layer A is recommended for the same. Neither layer touches git history.
Workflow
digraph pr_flow {
rankdir=TB;
node [shape=box];
gather [label="1. Gather: diff against base,\nlist all commits, check remote"];
analyze [label="2. Analyze: classify changes\nby theme, identify version bump"];
visual [label="3. Visual: prepare Layer C body content\n+ optional Layer A gist"];
draft [label="4. Draft: write PR title + body\n(embed C; link A; embed cleanup marker)"];
push [label="5. Push branch (ask user first)"];
create [label="6. Create PR via gh pr create"];
gather -> analyze -> visual -> draft -> push -> create;
}Step 1 — Gather
Run these in parallel:
# Untracked files
git status
# Full diff against base branch
git diff <base-branch>...HEAD --stat
git diff <base-branch>...HEAD
# All commits on this branch
git log <base-branch>..HEAD --oneline --no-merges
# Check remote tracking
git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null || echo "NO_UPSTREAM"Determining the base branch
This is a single-package library. PRs target main unless a release branch is in play.
| Scenario | Base branch |
| Feature / fix / docs branch | main |
| Work targeting a release line | the release branch (e.g. release/0.1.x) |
When in doubt, ask the user.
Step 2 — Analyze
Classify changes by theme
Group commits by module / area of the codebase (e.g. orchestration runtime, journal, determinism guard, meta layer, deepagents integration), not by change type.
For large PRs (10+ commits, 3+ modules), create themed sections with ### headings. For small PRs (1-5 commits, 1-2 modules), use a flat bullet list under Summary.
Identify version bump
If the public API surface changed, note the version bump. This package's version lives in pyproject.toml ([project] version) and is exposed at runtime via __version__.
### Version Bump
`langchain-dynamic-workflow`: 0.1.0 → 0.2.0 (new public API)Only include this when the version actually changed.
Step 3 — Visual review surface
When to attach
| PR shape | Layer C (body) | Layer A (gist) |
| ≥ 200 LOC, OR ≥ 3 files non-trivial, OR architectural, OR new subsystem | Mandatory | Recommended |
| Cross-cutting (≥ 2 modules) | Mandatory | Recommended |
| New ADR introduced or existing ADR superseded | Mandatory | Recommended |
| 50–200 LOC, single module | Recommended | Optional |
| < 50 LOC, docs-only, config bump, single-file mechanical refactor | Skip | Skip |
Layer C — inline body content (mandatory when triggered)
Compose these elements into the PR body. Each element renders natively on github.com:
- One-line TL;DR below the Summary heading — a sentence a non-expert can parse.
- Risk table — every changed file with a severity chip (🟥 needs careful review · 🟨 worth a look · 🟩 safe). Markdown table with emoji chips.
- Mermaid module map / data flow — required when ≥ 3 files touched or architecture changed. Use a
```mermaidfenced block. Highlight the hot path withstyle nodeName fill:#b03a2e,color:#fff. - Before / After PNGs — drag-drop into the PR body. Hosted on
user-attachments, not in repo. For behavior/API/perf: rendered diff or numbers table screenshot. - Collapsible file tour grouped by role of change —
<details><summary>per group: Plumbing, Core logic, Tests, Docs, Cleanup. One sentence of why per file, withpath:lineanchors. - Where to focus — a top-of-body call-out with 1–3 numbered priorities pointing at specific files, ordered by review urgency.
- Test plan — checklist with actual counts (
42 passed). - Open questions — explicit questions for the reviewer; empty list is acceptable.
Bullets must be skim-friendly. No prose paragraphs longer than 3 sentences.
Layer A — full HTML explainer (recommended)
Higher fidelity for the 20% of reviewers who want margin-pinned annotations, inline SVG, and the full eight-section explainer.
- Generate locally — copy
references/visual-explainer-template.htmlto.claude/pr-artifacts/pr-<slug>.html(slug = kebab-case PR title, ≤ 40 chars). The path is gitignored — the file never enters history. - Fill in all eight sections per
references/visual-explainer.md: motivation → risk map → before/after → module map (inline SVG) → file tour → annotated diff for high-risk files → test plan → open questions. - Honour the 5-second rule in the first viewport: title, TL;DR, stats bar, "Where to focus", jump-link nav. No hero, no gradient.
- Self-contained — inline
<style>+<script>+<svg>. Zero external assets. Must render opened fromfile://with no network. Upload as a secret gist (
gh gist createdefaults to secret/unlisted; use--publiconly to opt out):GIST_URL=$(gh gist create \ --desc "[PR-artifact] <PR title>" \ .claude/pr-artifacts/pr-<slug>.html | tail -1) GIST_ID=$(basename "$GIST_URL") GH_USER=$(gh api user --jq .login) PREVIEW_URL="https://htmlpreview.github.io/?https://gist.githubusercontent.com/${GH_USER}/${GIST_ID}/raw/pr-<slug>.html" echo "Gist ID: $GIST_ID" echo "Preview: $PREVIEW_URL"Requires
gistscope on the gh token; runscripts/setup-pr-artifacts.shonce if it's missing.Embed the cleanup marker — add this exact line in the PR body (anywhere, even at the very bottom) so
.github/workflows/pr-artifact-cleanup.ymlcan find and delete the gist when the PR closes:<!-- pr-artifact-gist: <GIST_ID> -->Note: auto-cleanup is handled by
.github/workflows/pr-artifact-cleanup.ymlwhen the PR closes. It requires theGIST_DELETE_TOKENrepo secret (a PAT withgistscope) — runscripts/setup-pr-artifacts.shfor the setup steps. Without the secret the workflow no-ops harmlessly; clean up gists manually withgh gist delete <id>.
For the full Layer A spec — eight required sections, severity chip palette, forbidden styling, mobile rules — read references/visual-explainer.md. Do not skip it on a complex PR.
Step 4 — Draft
PR Title
Follow conventional commit format, under 70 characters:
<type>(<scope>): <short description>| Type | When |
feat | New feature or capability |
fix | Bug fix |
refactor | Code restructuring without behavior change |
chore | Build, deps, config, tooling |
docs | Documentation only |
Scope rules:
- Single module: use its short name —
feat(runtime): ...,fix(journal): ... - Multiple modules: use the primary one or omit scope —
feat: ... - Compound scope for closely related areas:
feat(runtime+journal): ...
PR Body — Small PR (sub-50 LOC, single concept)
## Summary
- Bullet point describing change 1
- Bullet point describing change 2
## Test plan
- [x] Verified test or check (already done)
- [ ] Pending manual verification step
🤖 Generated with [Claude Code](https://claude.com/claude-code)PR Body — Medium / Large PR (Layer C mandatory)
## Summary
1-3 sentence high-level overview.
**TL;DR.** <one line a non-expert can parse>.
## Where to focus
1. **<file:line>** — <why this is the highest-priority read>
2. **<file:line>** — <next priority>
3. **<file:line>** — <next priority>
## Visual review
> Full interactive explainer (Layer A — optional):
> <PREVIEW_URL from Step 3.A.5>

```mermaid
flowchart LR
A[script] -->|hot path| B[agent task]
B -->|hot path| C[journal]
style B fill:#b03a2e,color:#fffRisk map
| File | Severity | Why |
src/langchain_dynamic_workflow/runtime.py | 🟥 careful | new public API; check determinism guard |
src/langchain_dynamic_workflow/journal.py | 🟨 worth a look | refactor, behavior preserved |
tests/test_runtime.py | 🟩 safe | mechanical |
Changes by Theme
1. Theme Name
- module: Description of change
2. Another Theme
- Description with technical detail
File tour
<details><summary><strong>Plumbing</strong> (2 files)</summary>path/to/wiring.py— registers the new component.path/to/config.py— exposes the new option.
</details><details><summary><strong>Core logic</strong> (3 files)</summary>path/to/core.py:120— the actual behavior change; see Layer A diff annotations.
</details><details><summary><strong>Tests</strong> (4 files)</summary>- ...
</details>Version Bump
langchain-dynamic-workflow: 0.1.0 → 0.2.0
Test plan
- Unit tests — 42 passed
uv run ruff check+uv run pyright— clean- Manual E2E:
<describe>
Open questions
- <question for reviewer, or "None — ready for review">
🤖 Generated with Claude Code
<!-- pr-artifact-gist: <GIST_ID if Layer A was uploaded; omit line otherwise> -->
### Writing rules
- **Language**: English for PR title and body. Chinese acceptable in body for very large PRs when the author prefers it.
- **Theme-first**: Organize by module/area in large PRs, not by change type.
- **Test plan is mandatory**: Every PR must have a test plan section.
- **Checkbox convention**: `[x]` = already verified before PR creation. `[ ]` = pending.
- **Test results**: Include actual test counts — `42 passed`, not `tests pass`.
- **Resolves/Closes**: Add `Resolves #N` on its own line if applicable.
- **Signature**: Always end with `🤖 Generated with [Claude Code](https://claude.com/claude-code)`.
- **Cleanup marker**: If Layer A was uploaded, include `<!-- pr-artifact-gist: <id> -->` at the very bottom.
- **No labels by default**: Unless the user specifies labels.
## Step 5 — Push Branch
Confirm with the user before pushing. Use `-u` to set upstream:
```bash
git push -u origin <branch-name>Step 6 — Create PR
gh pr create \
--base <base-branch> \
--title "<title>" \
--body "$(cat <<'EOF'
<full PR body here, including <!-- pr-artifact-gist: <id> --> marker if Layer A used>
EOF
)"Use a HEREDOC for --body to preserve Markdown formatting. Return the PR URL to the user when done.
Flags reference
| Flag | When |
--base <branch> | Always specify explicitly |
--draft | When work is incomplete or seeking early feedback |
--assignee @me | When user wants self-assignment |
--reviewer <user> | When user specifies reviewers |
--label <label> | When user specifies labels |
One-time setup
Before the first PR that uses Layer A on a given machine, the user must grant the gist scope to their gh token:
bash .claude/skills/github-pr/scripts/setup-pr-artifacts.shThis script:
- Verifies
ghis installed and authenticated. - Runs
gh auth refresh -s gistif the scope is missing. - Tests that
gh gist createworks. - Prints the steps to create the
GIST_DELETE_TOKENrepo secret that.github/workflows/pr-artifact-cleanup.ymlneeds for auto-cleanup when a PR closes.
Quick Reference
| Task | Command |
| Diff against base | git diff <base>...HEAD --stat |
| Commits on branch | git log <base>..HEAD --oneline --no-merges |
| Push with upstream | git push -u origin <branch> |
| Create PR | gh pr create --base <base> --title "..." --body "..." |
| Create draft PR | gh pr create --draft --base <base> --title "..." --body "..." |
| View PR | gh pr view <N> |
| Edit PR body | gh pr edit <N> --body "..." |
| Add reviewer | gh pr edit <N> --add-reviewer <user> |
| List my PRs | gh pr list --author @me |
| Upload explainer gist | gh gist create --desc "[PR-artifact] <title>" <file> |
| List my PR-artifact gists | gh gist list --limit 100 | grep "[PR-artifact]" |
| Delete a gist manually | gh gist delete <id> |
Common Mistakes
| Mistake | Fix |
| Title too long (80+ chars) | Keep under 70 chars; details go in the body |
| Missing test plan | Always include, even if just - [x] ruff + pyright pass |
| Test plan says "tests pass" without counts | Include actual counts: 42 passed |
| Organizing body by feat/fix/chore | Organize by theme/module for large PRs |
| Not checking for uncommitted changes | Run git status first |
| Pushing without confirming | Always ask the user before push |
| Skipping Layer C on a 500-LOC, 4-file PR | Always attach for mandatory shapes (see Step 3 table) |
Committing .claude/pr-artifacts/ files | They are gitignored — git status should never list them |
Pasting raw <script>/<style> into PR body | GitHub strips them — use Mermaid + PNG + <details> instead |
Uploading the .html as a drag-drop attachment | GitHub serves .html as download, not rendered — must go via secret gist + htmlpreview |
| HTML explainer pulls in remote CSS/JS/fonts | Single self-contained file: inline <style> + <script> + <svg>, zero external assets |
| File tour ordered alphabetically or by directory | Group by role of change — Plumbing / Core logic / Tests / Docs / Cleanup |
Branch Naming Conventions
| Pattern | When | Example |
feat/<short-name> | Standalone feature branch | feat/pipeline-scheduler |
fix/<short-name> | Standalone bugfix branch | fix/journal-hash-collision |
docs/<short-name> | Documentation branch | docs/quickstart-guide |
refactor/<short-name> | Refactoring branch | refactor/runtime-host-bindings |
References
references/visual-explainer.md— full spec for Layer A: when to attach, 5-second rule, eight required sections, severity chip palette, forbidden styling. Read before producing the artifact.references/visual-explainer-template.html— starter HTML template with all eight sections wired up (inline CSS, inline SVG module-map example, annotated-diff layout, dark-mode palette). Copy and fill in.scripts/setup-pr-artifacts.sh— one-timeghtoken / scope setup for Layer A..github/workflows/pr-artifact-cleanup.yml— auto-deletes the secret gist when the PR closes, by reading the<!-- pr-artifact-gist: <id> -->marker.- Thariq Shihipar, The Unreasonable Effectiveness of HTML — https://thariqs.github.io/html-effectiveness/ (canonical source; see
17-pr-writeup.htmland03-code-review-pr.html).
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
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.

