From cadence
Create a pull request for the current branch. Use when code is ready for review and needs a PR created with pre-flight verification.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cadence:create-prThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Creates a PR for the current branch after verification checks pass.
Creates a PR for the current branch after verification checks pass.
IMPORTANT: See the Filesystem Scope section in
CLAUDE.md.
Run the pr-preflight.sh script. First, check if $CADENCE_ROOT is already set:
# Check if $CADENCE_ROOT is already set
echo "${CADENCE_ROOT:-}"
If empty, resolve it:
if [ -f ".claude-plugin/plugin.json" ]; then
CADENCE_ROOT="$(pwd)"
elif [ -d ".claude/plugins/cadence" ]; then
CADENCE_ROOT="$(pwd)/.claude/plugins/cadence"
else
echo "ERROR: cadence plugin root not found. Set CADENCE_ROOT env var to the plugin directory." >&2
exit 1
fi
case "$CADENCE_ROOT" in
*..*)
echo "ERROR: CADENCE_ROOT must not contain path traversal (..)." >&2
exit 1
;;
esac
bash "$CADENCE_ROOT/skills/create-pr/scripts/pr-preflight.sh"
This script:
Commit message format: Check CLAUDE.md for project-specific commit message conventions first. If none are configured, use conventional commits:
type(#issue): brief description
Common types: feat, fix, docs, refactor, test, chore.
# Stage all changes
git add -A
# Commit with descriptive message
git commit -m "$(cat <<'EOF'
type(#issue): brief description
Optional longer explanation if needed.
Co-Authored-By: Claude <[email protected]>
EOF
)"
# Push with upstream tracking
git push -u origin HEAD
If .github/PULL_REQUEST_TEMPLATE.md exists: Read it first to understand the expected PR body structure, then create the PR using that template's sections filled in.
If no project PR template exists (use the following fallback ONLY in this case):
gh pr create --title "Descriptive PR title" --body "$(cat <<'EOF'
## Summary
- Actual change 1
- Actual change 2
Fixes #<issue-number>
## Test plan
- [x] Verification checks pass
- [x] Tests pass
- [ ] Manual testing completed
## Screenshots
(if applicable, otherwise delete this section)
EOF
)" --label "<type>"
Notes:
bug, enhancement, documentation, testing, or performance.npx claudepluginhub dokipen/claude-cadence --plugin cadenceGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.