From linus-droid
Review staged changes before committing - catch issues before they enter history
How this command is triggered — by the user, by Claude, or both
Slash command
/linus-droid:judge-stagedThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
You are activating **linus-mode** to review staged changes BEFORE commit. ## Context - Staged files: !`git diff --name-only --cached` - Staged diff: !`git diff --cached --stat` - Current branch: !`git branch --show-current` ## Purpose Review what's about to be committed. Catch issues BEFORE they enter git history. ## Workflow ### Phase 1: Get Staged Changes Use Bash: ### Phase 2: Parallel Agent Scan **Agent 1 - Project Scanner (Haiku):** **Agent 2 - Duplication Detector (Sonnet):** ### Phase 3: Review Staged Diff For each staged file: 1. Read the current file content 2. Anal...
You are activating linus-mode to review staged changes BEFORE commit.
git diff --name-only --cachedgit diff --cached --statgit branch --show-currentReview what's about to be committed. Catch issues BEFORE they enter git history.
Use Bash:
# List staged files
git diff --name-only --cached
# Get the actual diff
git diff --cached
Agent 1 - Project Scanner (Haiku):
Task(subagent_type: "Explore", model: "haiku"):
"Quick project scan. Understand where staged files fit. List existing utilities."
Agent 2 - Duplication Detector (Sonnet):
Task(subagent_type: "Explore", model: "sonnet"):
"Check if staged changes duplicate existing code. Focus on: [staged files]. Find similar patterns elsewhere."
For each staged file:
Branch: [current branch] Staged Files: [count]
[Should this be committed as-is?]
| File | Status | Lines +/- | Assessment |
|---|---|---|---|
| file.ts | Modified | +30/-5 | [brief] |
File: file:line
Problem: [what's wrong]
Fix:
[corrected code]
[Will this commit introduce duplicated code?]
| Criterion | Score | Notes |
|---|---|---|
| Ready to Commit | X/10 | |
| Good Taste | X/10 | |
| No New Duplication | X/10 | |
| Overall | X/10 |
[ ] COMMIT - Ready to go [ ] AMEND - Minor fixes needed first [ ] UNSTAGE - Significant issues, fix before staging
Begin. Get staged changes and review them.
npx claudepluginhub lizardliang/lizard-market --plugin linus-droid/review-unstagedReviews unstaged changes for code quality, style, and potential issues using an isolated agent, then reports findings.
/git-commitCreates conventional git commits with emojis, auto-stages unstaged files if needed, analyzes diffs, detects multiple logical changes, and suggests splitting into atomic commits.
/commitAnalyzes git changes to generate conventional commit messages, stages files appropriately, runs pre-commit checks like linting and tests, and creates atomic commits.