skills/cygnusfear/create-pr/SKILL.md
Create a PR for this branch. ALWAYS links related issues and uses closing keywords to auto-close them on merge.
npx skillsauth add aiskillstore/marketplace create-prInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Every PR MUST link to related issues and use closing keywords.
Closes #X or Fixes #X to auto-close issues on merge# Check current branch name for issue hints
git branch --show-current
# Search for related issues
gh issue list --search "relevant keywords"
# View specific issue
gh issue view <number>
Find ALL issues this PR addresses:
# See what changed
git log main..HEAD --oneline
git diff main..HEAD --stat
# Get commit messages for context
git log main..HEAD --format="%s%n%b"
Use the writing-clearly-and-concisely skill for clear writing, then follow pr_guide.
gh pr create --title "[type]: [emoji] [description]" --body "$(cat <<'EOF'
[Two-sentence summary of what and why]
## Key Changes
- [Change 1]
- [Change 2]
## Related Issues
**Closes:**
- Closes #X - [brief description of what's fixed]
- Closes #Y - [brief description]
**Related (not closing):**
- Related to #Z - [why related]
- See also #W - [context]
## Testing
- [How it was tested]
## Files Changed
- [List key files]
EOF
)"
GitHub recognizes these keywords to auto-close issues on merge:
| Keyword | Example | Effect |
|---------|---------|--------|
| Closes | Closes #123 | Closes issue when PR merges |
| Fixes | Fixes #123 | Closes issue when PR merges |
| Resolves | Resolves #123 | Closes issue when PR merges |
Use format: Closes #X - brief description
After creating PR:
# Verify the PR shows linked issues
gh pr view <number> --json closingIssuesReferences
# Check the issue shows the PR link
gh issue view <number>
[Two-sentence summary: what changed and why it was needed]
## Key Changes
- [Most important change]
- [Second important change]
- [Third important change]
## Related Issues
**Closes:**
- Closes #X - [what requirement this addresses]
- Fixes #Y - [what bug this fixes]
**Related:**
- Related to #Z - [provides context but doesn't close]
## Testing
- [Manual testing performed]
- [Automated tests added/passing]
## Architectural Impact
[If significant: explain system-wide effects]
## Files Changed
- `path/to/file1.ts` - [what changed]
- `path/to/file2.ts` - [what changed]
❌ WRONG:
gh pr create --title "Fix bug" --body "Fixed the thing"
❌ WRONG:
"Related: #123" (no closing keyword, issue won't close)
❌ WRONG:
No mention of any issues at all
✅ CORRECT:
gh pr create --title "fix: 🔧 Resolve auth token expiration" --body "
Fixes session timeout by implementing token refresh.
## Related Issues
- Closes #123 - Auth token expires incorrectly
- Closes #124 - Users logged out unexpectedly
- Related to #100 - Auth system overhaul (partial)
"
Use Mermaid diagrams to visualize changes, flows, and architectural impacts.
GitHub renders Mermaid natively. Include diagrams when:
| PR Type | Diagram Use | |---------|-------------| | Bug fix | Before/after flow showing fix | | New feature | User journey or data flow | | Refactor | Component dependency changes | | API changes | Request/response sequence |
## Key Changes
Added token refresh flow when session expires.
### New Authentication Flow
```mermaid
sequenceDiagram
participant C as Client
participant A as Auth Service
participant D as Database
C->>A: Request with expired token
A-->>C: 401 Token Expired
C->>A: POST /refresh with refresh_token
A->>D: Validate refresh token
D-->>A: Token valid
A-->>C: New access token
C->>A: Retry original request
A-->>C: 200 Success
```
## Related Issues
- Closes #123 - Token expiration handling
## Flow changes: flowchart
## API interactions: sequenceDiagram
## State machines: stateDiagram-v2
## Data models: erDiagram
Tips:
gh issue list --search "keywords"Closes #X, Fixes #Xgh pr view --json closingIssuesReferencesdevelopment
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.