/full-stack-hq:previewfrom full-stack-hq
Runs a structured pre-commit review checklist covering git diff review, code quality scan, test verification, type checking, linting, build validation, security checks, and commit message drafting.
Ships in full-stack-hq. Installing the plugin adds it to Claude Code.
Use /preview before committing or opening a PR to catch issues before they reach review. This is a structured self-review that ensures:
# See all modified files
git status
# Review unstaged changes
git diff
# Review staged changes
git diff --staged
# See what's changed vs main
git diff main...HEAD --stat
git log --oneline main..HEAD
Check each file for:
.env files accidentally staged?.next/, dist/, coverage/)?Read through each changed file and verify:
□ No console.log, console.debug, or debugger statements
□ No TODO/FIXME comments without an issue number
□ No hardcoded credentials, API keys, or tokens
□ No commented-out blocks of code
□ All new functions have typed parameters and return types
□ No `any` type used as a shortcut
□ Imports are clean (no unused imports)
# Run all tests
pnpm test
# Run only tests related to changed files (faster)
pnpm test -- --changed
# Verify coverage hasn't dropped
pnpm test:cov
Verify:
□ All tests pass (no red)
□ Coverage >= 80% for changed modules
□ No tests marked `.skip` that weren't skipped before
□ New code has tests
pnpm run type-check
pnpm run lint
pnpm run build
□ TypeScript: 0 errors
□ Lint: 0 errors (warnings OK if pre-existing)
□ Build: successful
□ No hardcoded secrets (grep for: password, secret, api_key, token)
□ New endpoints have authentication guards
□ User input is validated (DTOs with class-validator)
□ No raw SQL strings with user input
□ File uploads validate MIME type
Draft before committing to ensure it's meaningful:
feat(auth): add JWT refresh token rotation
Rotates the refresh token on each use to prevent token reuse attacks.
Old refresh token is invalidated when a new one is issued.
Fixes #87
Commit message checklist:
□ Type prefix: feat / fix / refactor / test / docs / chore
□ Scope in parentheses: (auth) / (users) / (api)
□ Description is present-tense, imperative mood ("add", not "added")
□ Body explains WHY if not obvious
□ Issue reference if applicable (Fixes #XX)
## What
[What does this change do?]
## Why
[Why is it needed? Link to issue.]
## How
[Approach taken — any non-obvious decisions?]
## Testing
- [ ] Unit tests added
- [ ] Tested locally
- [ ] Migration tested (if applicable)
## Breaking Changes
[None / list them]
## Preview Results
### Changed Files
- src/auth/auth.service.ts ✓
- src/auth/strategies/jwt-refresh.strategy.ts ✓ (new file)
- src/auth/auth.service.spec.ts ✓
### Staging Area
- All files are intentional
- No accidental env files or build artifacts
### Tests
- 18 passing, 0 failing
- Coverage: 86% (was 84%)
### Build
- TypeScript: clean
- Lint: clean
- Build: OK
### Security
- No hardcoded secrets found
- New endpoints have JwtAuthGuard
- Input validation present on all DTOs
### Commit Ready
Yes — commit message drafted:
`feat(auth): add JWT refresh token rotation`
### Notes
- src/auth/auth.module.ts has an unused import warning — fixed
□ git diff reviewed — no surprises
□ No debug/console statements
□ No hardcoded credentials
□ Tests pass, coverage maintained
□ TypeScript and lint clean
□ Build succeeds
□ Commit message drafted
□ PR description drafted (if needed)
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub sabahattink/antigravity-fullstack-hq --plugin full-stack-hq10 commands in this plugin
/brainstormExplore ideas and options before implementation. Use for requirement discovery and creative exploration./createCreate new features, components, or modules from scratch. Use when building something new./debugSystematic debugging process for finding and fixing issues. Use when troubleshooting bugs./enhanceImprove existing code through refactoring, optimization, or cleanup. Use when improving code quality./orchestrateMulti-agent coordination workflow — assign specialists, coordinate parallel work, track handoffs between agents or developers for complex features./planCreate detailed task breakdown and implementation plan. Use before starting complex work.Other plugins' commands for the same job