skills/coding/staged-code-review/SKILL.md
Comprehensive pre-commit review of git staged changes. Performs tech-stack-aware code quality checks and generates conventional commit messages. Should be used when the user is about to commit code and wants a quality gate — catching debug leftovers, sensitive data, missing error handling before they enter the repository. Distinguished from frontend-code-review which reviews general code quality, this skill focuses specifically on git staged changes pre-commit.
npx skillsauth add ImaginerLabs/skill-manager staged-code-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Before git commit, review all staged changes for quality issues and generate a conventional commit message. This is the last quality gate — catching problems here is far cheaper than finding them in production or during PR review.
git commitgit diff --staged
git diff --staged --name-only
Pre-check: If staging area is empty, prompt the user to run git add first.
Auto-detect based on changed file extensions and content:
| File signature | Tech stack | Applied rules |
| -------------------------------------------------- | ------------------ | --------------------------------------------- |
| *.tsx / *.jsx / *.ts / *.js + React import | React / TypeScript | Stale closures, Hook deps, render performance |
| *.vue | Vue | Reactive traps, lifecycle side effects |
| *.go | Go | Error handling, goroutine leaks |
| *.py | Python | Exception handling, type annotations |
| *.java / *.kt | Java / Kotlin | Null pointers, resource release |
| *.rs | Rust | Ownership, lifetimes |
console.log, debugger, print, unhandled TODO| Parameter format | Meaning | Message example |
| ------------------- | ----------------- | ----------------------------------------- |
| --story=STORY-123 | Link Story ID | feat: xxx\n\nStory: STORY-123 |
| --task=TASK-456 | Link Task ID | feat: xxx\n\nTask: TASK-456 |
| --fix=BUG-789 | Link Bug ID | fix: xxx\n\nFixes: BUG-789 |
| --review | Force review mode | No auto-commit, only output review report |
| Conclusion | Action | | ------------------------------------------- | --------------------------------------------------- | | ✅ Pass: No blocking issues | Generate commit message, ask user whether to commit | | ⚠️ Warning: Suggestions but no blockers | List suggestions, ask user whether to proceed | | ❌ Fail: Blocking issues exist | List must-fix issues, do not commit |
Blocking issues (must fix before commit):
debugger statementsFollows Conventional Commits:
<type>(<scope>): <subject>
[body]
[footer]
Type options:
| type | Use case | Example |
| ---------- | ---------------------------------- | ---------------------------------------------- |
| feat | New feature | feat(user): add avatar upload |
| fix | Bug fix | fix(cart): fix quantity calculation error |
| refactor | Refactoring | refactor(utils): refactor utility functions |
| perf | Performance optimization | perf(list): optimize list render performance |
| style | Code formatting | style: unify code indentation |
| test | Testing | test(user): add login unit tests |
| chore | Build/toolchain/dependency updates | chore: upgrade dependencies |
| docs | Documentation changes | docs: update API docs |
## Staged Code Review Report
### Review Overview
- **Changed files**: X
- **Tech stack**: [detected]
- **Conclusion**: ✅ Pass / ⚠️ Warning / ❌ Fail
### Universal Checks
| Check | Status | Notes |
| ------------------- | ----------------- | ---------------- |
| Debug code | ✅ PASS / ❌ FAIL | [specific issue] |
| Sensitive data | ✅ PASS / ❌ FAIL | [specific issue] |
| Error handling | ✅ PASS / ⚠️ WARN | [specific issue] |
| Boundary conditions | ✅ PASS / ⚠️ WARN | [specific issue] |
### Issue List
#### ❌ Blocking Issues (must fix)
- `filename:line`: [issue] → [fix suggestion]
#### ⚠️ Suggestions (optional)
- `filename:line`: [issue] → [optimization suggestion]
### Commit Message
type: [subject]
[body (if any)]
[footer (if any, including linked parameters)]
### Next Steps
- [ ] Commit directly (review passed)
- [ ] Fix and re-review
- [ ] Abort this commit
development
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.
devops
Create a new implementation plan file for new features, refactoring existing code or upgrading packages, design, architecture or infrastructure.
tools
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
documentation
Generates standardized porting documentation from completed feature changes. Analyzes commit diffs or file contents, extracts change intent, and outputs Markdown documentation for cross-team understanding. Should be used when the user needs to document a change for cross-team or cross-project consumption. Distinguished from cross-branch-fix-porter which actively re-implements fixes, this skill documents changes.