giuseppe-trisciuoglio/create-pr-from-spec
Create GitHub Pull Request from specification using pull_request_template.md. Use when: spec needs to be converted to PR, spec is ready for review/merge, need to automate PR creation from specification file with template-based body and title.
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill create-pr-from-spec
Create a GitHub Pull Request for a specification using the pull_request_template.md template located at ${workspaceFolder}/.github/pull_request_template.md.
This skill automates the creation of GitHub Pull Requests directly from specifications. It follows a structured process:
Key Benefits:
Use this skill when:
Trigger phrases:
Before using this skill, ensure:
main, develop).github/pull_request_template.md exists in the repository1. Analyze specification template
${workspaceFolder}/.github/pull_request_template.md2. Create pull request draft
create_pull_request tool to create draft PR to target branchget_pull_request to prevent duplicates3. Get pull request changes
get_pull_request_diff tool to analyze differences4. Update pull request
update_pull_request tool to populate PR body and title5. Mark ready for review
update_pull_request tool to change state from draft to ready for review6. Assign pull request
get_me to retrieve current user informationupdate_issue tool to assign PR to creator7. Return pull request URL
Input: Create PR from spec to main branch
Process:
1. Analyze pull_request_template.md
2. Create draft PR to main
3. Check for existing PRs
4. Update PR title: "feat: [Feature Name from Spec]"
5. Update PR body with template sections
6. Mark as ready for review
7. Assign to creator
Output: https://github.com/user/repo/pull/123
PR Title: feat: Implement user authentication system
PR Body:
## Description
Implements JWT-based authentication with token refresh mechanism
## Related Issue
Closes #456
## Changes
- Added JWT middleware
- Implemented token validation
- Added refresh token endpoint
## Testing
- Unit tests for auth middleware
- Integration tests for token endpoints
## Checklist
- [x] Tests pass
- [x] Documentation updated
- [x] No breaking changes
Input: Create PR from spec
Check: PR for current branch already exists?
→ Yes: Report error, don't create duplicate
→ No: Proceed with PR creation
Output: "PR already exists at https://github.com/user/repo/pull/789"
⚠️ Important:
.github/pull_request_template.md🚫 Limitations:
search - Analyze specification template requirementscreate_pull_request - Create new PR in draft modeget_pull_request - Check for existing PRs before creationget_pull_request_diff - Analyze PR changesupdate_pull_request - Update PR title, body, and stateupdate_issue - Assign PR to creatorget_me - Retrieve current user informationTake giuseppe-trisciuoglio/create-pr-from-spec from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.