一键导入
sdlc-review
Create PR for code review. Use this when the user is ready to submit their work, create a pull request, or send code for review.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create PR for code review. Use this when the user is ready to submit their work, create a pull request, or send code for review.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | sdlc:review |
| description | Create PR for code review. Use this when the user is ready to submit their work, create a pull request, or send code for review. |
| allowed-tools | ["Bash(git *)","Bash(gh *)","Bash(*get-base-branch.sh*)","Grep","Read","Edit"] |
Commit, push, and create a PR for code review.
In all bash steps below, substitute placeholder names (like BASE_BRANCH, CURRENT_BRANCH, etc.) with the actual values you stored earlier.
Follow Branch Verification.
If CURRENT_BRANCH equals BASE_BRANCH, stop with error: "Cannot create PR from default branch".
Check if a PR already exists for this branch:
gh pr view --json number,state --jq '.number,.state'
If a PR already exists, report its number and state. If it is open, ask the user whether to update the existing PR (just push new commits) or proceed with a new one.
Check for uncommitted changes:
git status --porcelain
If output is empty, check for unpushed commits:
git log @{u}..HEAD
If both are empty, stop: "No changes to submit."
The goal is to catch orphaned code before it lands in the PR. This matters because deleted imports, renamed functions, and removed type references often leave behind unreferenced code that reviewers have to flag.
Get the full diff against the base branch so you can see what was added and removed:
git diff BASE_BRANCH...HEAD
Analyze what was removed or renamed. Specifically:
Safety guardrails:
Report what was cleaned up (if anything) before proceeding.
Follow Commit and Push.
Get the commit log for the branch:
git log BASE_BRANCH..HEAD --pretty=format:"- %s%n%b"
Use the commits to write a clear PR title and body. The title should be concise (under 70 chars). The body should summarize what changed and why, plus a test plan.
Create the PR using a HEREDOC for the body to preserve formatting:
gh pr create --base BASE_BRANCH --title "PR title here" --body "$(cat <<'EOF'
## Summary
- bullet points summarizing the changes
## Test plan
- [ ] verification steps
EOF
)"
Report success with the PR URL from the gh pr create output.
Training plan scheduling, weekly retrospectives, and training adjacent constraint validation. Use this skill whenever the user mentions training, lifts, runs, climbs, the Friday long run, sauna timing, cold plunge timing, recovery days, cutback weeks, altitude weeks, race week, training restructure, Fitbod, asking to schedule a training session, or asking to look back / retrospect on a past training week. Also trigger for "/assist:plan-training", "schedule my long run", "what does training look like this week", "how did last week go", "training retro", or any request that touches the training plan in `Constitution/Fitness/`. Independently usable, and also called by `/assist:plan-week` during Monday planning.
Weekly planning, calendar management, and Monday morning task slotting. Use this skill whenever the user mentions weekly planning, the Monday planning session, slotting tasks, finding free time, checking what their week looks like, moving or swapping calendar events, or wants help fitting something into their week. Also trigger when the user asks about V2MOM measure coverage. Training plan scheduling lives in `assist:plan-training` and meal planning in `assist:plan-meals`; this skill calls into both during Monday planning.
Audit and redesign the context architecture (every CLAUDE.md, learned-rules.md, and tool doc that loads into Claude Code sessions) so load-bearing rules are surfaced and enforced at the point of use rather than scattered, duplicated, or buried. Use this skill whenever Forni says "groom context", "groom-context", "we forgot a basic again", "the context is sprawling", "the rules keep getting lost", "clean up the context", or invokes "/assist:groom-context". Also invoked as a closing step by the monthly path of assist:reflect. This is the cleanup counterpart to assist:codify-context, which writes knowledge into the same architecture.
Craft Business Development emails for RYLLC fractional CTO consultancy. Handles warm reconnects, job posting outreach, rejection follow-ups, VC intros, and custom BD scenarios. Uses established templates and project voice.
Codify knowledge from the current session into the appropriate location in the context architecture using progressive disclosure. Use this skill whenever the user says "codify" followed by a topic, wants to capture something they just figured out, asks to document a pattern or convention, or says something like "we should write this down" or "future me needs to know this." Also trigger when the user discovers a gotcha, foot-gun, or non-obvious behavior worth preserving. Works for both project directories (three-layer CLAUDE.md/README.md pattern) and skill directories (Learned Rules in SKILL.md). Named after the "plan, delegate, assess, codify" Level 4 compounding loop. This is the write-in counterpart to `assist:groom-context`, which audits and prunes the same context architecture.
Triage Gmail inbox by labeling, starring, and archiving emails. Also creates filters for recurring senders. Use this skill whenever the user mentions email triage, inbox cleanup, email labels, email filters, or wants to process their inbox. Default mode is triage.