ワンクリックで
create-pr
Create pull requests following project standards. Use when opening a PR, preparing changes for review, or running gh pr create.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Create pull requests following project standards. Use when opening a PR, preparing changes for review, or running gh pr create.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Add new GraphQL lint rules following project patterns. Use when implementing a lint rule, adding validation logic, or extending the linter with new checks.
Debug LSP server issues including hangs, incorrect responses, performance problems, or crashes. Use when troubleshooting the language server.
Add new IDE/LSP features like hover, goto definition, find references, or completion. Use when implementing editor features, LSP handlers, or IDE functionality.
Audit test organization and patterns. Use PROACTIVELY after writing new tests to self-review, or when reviewing test changes in PRs. Checks unit vs integration test placement, TestDatabase patterns, and caching verification.
Fix bugs using the two-commit structure with failing test first. Use when fixing bugs, addressing issues, or correcting incorrect behavior.
Review pull requests against project standards. Use when reviewing PRs, checking code quality, or providing feedback on changes.
| name | create-pr |
| description | Create pull requests following project standards. Use when opening a PR, preparing changes for review, or running gh pr create. |
| user-invocable | true |
| allowed-tools | Bash(gh *), Bash(git *), Bash(cargo fmt *), Bash(cargo clippy *), Bash(cargo test *), Bash(npm *), Bash(cd docs *), Bash(knope *), Read, Edit, Write, Grep, Glob |
Follow these standards when creating PRs for this project.
Rust checks:
cargo fmt --check
cargo clippy
cargo test
npm checks (from repo root):
npm run lint
npm run fmt:check
npm run typecheck
Docs site (if any docs/ files changed):
cd docs && npm run build
Fix any issues before proceeding. All of these are enforced by CI — catching them locally avoids failed checks on the PR.
Before creating the PR, review whether your changes require documentation updates. Check the diff (git diff main...HEAD) and apply the rules below.
Docs site (docs/src/content/docs/):
| What changed | What to update |
|---|---|
| New lint rule | Create docs/src/content/docs/rules/<rule-name>.mdx and add it to the sidebar in docs/astro.config.mjs. Update docs/src/content/docs/rules/catalog.mdx. |
| Changed lint rule behavior/options | Update the rule's .mdx in docs/src/content/docs/rules/ |
| New/changed CLI command or flag | Update the relevant page in docs/src/content/docs/cli/ |
| New/changed IDE feature | Update the relevant page in docs/src/content/docs/ide-features/ |
| New/changed configuration option | Update the relevant page in docs/src/content/docs/configuration/ |
| New/changed editor setup | Update the relevant page in docs/src/content/docs/editors/ |
Crate READMEs (crates/*/README.md):
Update a crate's README when you change its public API, add/remove major functionality, or change how it's intended to be used. Internal refactoring doesn't need README updates.
Root README (README.md):
Update when adding new top-level features, changing installation instructions, or modifying the project's public-facing description.
Skip documentation updates for: internal refactoring, test-only changes, CI changes, dependency bumps.
For user-facing changes (features, bug fixes, breaking changes), create a changeset:
knope document-change
Important: After creating the changeset file, edit it to include a PR link at the end of the first line. Since you're creating a PR, use the PR number you expect (or update after PR is created):
---
graphql-analyzer-cli: patch
---
Fix argument parsing bug ([#123](https://github.com/trevor-scheer/graphql-analyzer/pull/123))
The PR link helps users trace changelog entries back to implementation details.
Skip changesets for: internal refactoring, CI changes, test-only changes, documentation updates.
git status
git diff main...HEAD
git log main..HEAD --oneline
feat: - New featurefix: - Bug fixrefactor: - Code restructuringdocs: - Documentation onlytest: - Test additions/changeschore: - Maintenance tasksDo:
feat: add goto definition for fragmentsDon't:
Read the PR template from .github/PULL_REQUEST_TEMPLATE.md and fill in each section based on the changes being made. The template is the single source of truth for PR structure.
Summary: 1-3 bullet points explaining what changed and why
Changes: Specific list of changes made
Consulted SME Agents: List which agents from .claude/agents/ were consulted and key guidance received. Write "N/A" if none were consulted.
Manual Testing Plan: Steps a reviewer can follow to manually verify. Write "N/A" if no manual testing needed.
Related Issues: Link issues with Fixes #123 or Closes #456. Leave empty if none.
Never mention in PR descriptions:
These are enforced by CI and mentioning them adds zero value.
.github/PULL_REQUEST_TEMPLATE.md to get the current template structuregh pr create with the filled-in body:gh pr create \
--repo trevor-scheer/graphql-analyzer \
--head your-branch-name \
--title "feat: your feature description" \
--body "$(cat <<'EOF'
<filled-in template content here>
EOF
)"
cargo fmt --check, cargo clippy, cargo test)npm run lint, npm run fmt:check, npm run typecheck)cd docs && npm run build) — if docs/ files changed.github/PULL_REQUEST_TEMPLATE.md structure