用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/danshapiro/freshell --skill code-review命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use when auditing stale worktrees in Freshell to determine which contain novel unmerged work, which should be landed, which need finishing, and which can be safely deleted.
Use when preparing a Freshell release — before bumping versions, writing release notes, tagging, etc on GitHub.
Use when reviewing, triaging, or landing pull requests — especially batches of open PRs that need inspection, fixes, and merging. Also triages open issues after the PR queue is clear.
基于 SOC 职业分类
正在显示 SKILL.md
| name | code-review |
| description | Review changed code for reuse, quality, and efficiency, then fix any issues found. |
| context | fork |
| disable-model-invocation | true |
| user-invocable | true |
| argument-hint | <repo-path> [expected-branch] [focus notes] |
| model_role | critique |
Review all changed files for reuse, quality, and efficiency. Fix any issues found — but only after Phase 0 verifies you are targeting the right repository.
You may be running as a forked sub-session: you inherit NO conversation history, and your working directory is NOT guaranteed to be the repository you were meant to review.
$ARGUMENTS for a target repo path and (optionally) an expected
branch. If a path is given: cd there, and prefix every git command with
git -C <path>.git rev-parse --show-toplevel, git branch --show-current,
git status --porcelain=v1 | head -20.git status shows uncommitted changes. You cannot attribute those
changes (you have no conversation history); they belong to someone
else. Reviewing-and-fixing them is corruption, not cleanup.Run git diff (or git diff HEAD if there are staged changes) to see what changed. If there are no git changes and $ARGUMENTS names specific files, review those; otherwise report "nothing to review" and stop.
Use the delegate tool to launch all three agents concurrently in a single message. Pass each agent the full diff so it has the complete context.
For each change:
Review the same changes for hacky patterns:
Review the same changes for efficiency:
If $ARGUMENTS is provided, all three agents should also pay special attention to: $ARGUMENTS
Wait for all three agents to complete. Aggregate their findings.
Fix issues directly ONLY when Phase 0 established a verified target: an
explicit path was provided (or the tree's only changes are attributable to
this session) AND any expected branch matched. Otherwise run in
REPORT-ONLY mode: write the aggregated findings to
<repo>/.discovery/code-review-findings-<timestamp>.md (or return them
inline), and make ZERO edits. Never write into a dirty tree whose changes
you cannot attribute.
If a finding is a false positive or not worth addressing, note it and move on — do not argue with the finding, just skip it.
When done, briefly summarize what was fixed (or confirm the code was already clean).