aggregate-logs
Generate LEARNINGS.md from skill execution logs over a configurable time window.
Review classification system and scope mode details.
> /plugin marketplace add athola/claude-night-marketHow it fires
How this command gets triggered: by you, by Claude, or both.
/review-frameworkContext preview
What this command does when you run it.
Review classification system and scope mode details.
Review classification system and scope mode details.
> **See Also**: [Main Command](../../pr-review.md) | [Workflow](review-workflow.md) | [Configuration](review-configuration.md)
Must fix before merge:
Should address in this PR:
Nice improvements:
Create GitHub issues (primary storage):
**Important**: GitHub issues are the source of truth for backlog items. Reference existing `docs/backlog/*.md` files for context (e.g., `docs/backlog/queue.md`, `docs/backlog/technical-debt.md`) to avoid duplicates.
/pr-review 42 --scope-mode standard --create-backlog-issues
## PR #42: Add user authentication system ### Scope Compliance Analysis **Source:** docs/plans/2025-12-01-auth-design.md **Requirements:** 1. [x] JWT token generation - Implemented in auth.py 2. [x] Password hashing with bcrypt - Implemented in utils.py 3. [x] Login endpoint - Implemented in routes/auth.py 4. [x] Token validation middleware - Partially implemented 5. [ ] Password reset flow - **Missing** ### Superpowers Code Analysis **Files Changed:** 12 files, +542/-89 lines **Coverage:** New code 85% covered ### Blocking Issues (2) > Must fix before merge 1. **[B1] Missing token validation** - Location: middleware/auth.py:45 - Issue: Always returns True, validation not implemented - Superpowers finding: Critical security gap - Fix: Implement JWT signature verification 2. **[B2] SQL injection vulnerability** - Location: models/user.py:123 - Issue: String interpolation in query - Superpowers finding: High severity security issue - Fix: Use parameterized queries ### In-Scope Issues (3) > Related to requirements 1. **[S1] Password reset flow missing** - Requirement: "Users must be able to reset passwords" - Status: Not implemented - Fix: Add password reset endpoints and email handling 2. **[S2] Error handling incomplete** - Location: auth.py:78 - Issue: No error handling for invalid tokens - Fix: Add try/catch with proper error responses ### Suggestions (4) > Author's discretion 1. **[G1] Add rate limiting to login endpoint** - Superpowers recommendation: Prevent brute force attacks - Location: routes/auth.py:23 2. **[G2] Consider using refresh tokens** - Superpowers finding: Better security pattern - Location: auth.py:45 ### Backlog → GitHub Issues Created (5) > Out of scope for this PR 1. #247 - Add two-factor authentication support 2. #248 - Implement user roles and permissions 3. #249 - Add audit logging for authentication events 4. #250 - Social login integration (OAuth2) 5. #251 - Session management dashboard ### Recommendation **REQUEST CHANGES** Address blocking issues B1-B2 and in-scope issue S1 before merge. Implementation looks promising once core requirements are complete.
In addition to scope and code quality, every review evaluates four hygiene principles. See `plugins/sanctum/skills/pr-review/modules/pr-hygiene.md` for detection heuristics and classification tables.
| Principle | Phase | Typical Severity | |-----------|-------|-----------------| | Self-review before sending | Phase 1 | SUGGESTION | | One PR = one logical change | Phase 1 | SUGGESTION / IN-SCOPE | | Agent code needs curation | Phase 2.5 | IN-SCOPE | | Tests should test your code | Phase 2.5 | IN-SCOPE / BLOCKING |
The gold standard: if someone reverts the fix, at least one test should fail. Tests that pass on revert are documentation, not regression protection. These are classified as BLOCKING when no other test covers the changed code path, or IN-SCOPE when coverage exists but is incomplete.
AI tools produce code fast, but the output needs review for: redundant implementations, unnecessary complexity, incomplete refactors, and scope drift. Formatting commits and mixed-concern refactors are telltale signs of iterative AI generation without a cleanup pass. These are classified as IN-SCOPE.
All requirements must be fully implemented:
Core functionality required:
MVP acceptable:
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Generate LEARNINGS.md from skill execution logs over a configurable time window.
Analyze skill file complexity metrics and generate modularization recommendations for splitting or progressive loading.
Scaffold new Claude Code skills with brainstorming, TDD methodology, and proper frontmatter and module structure.