bobo-ai-cli 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +216 -0
- package/dist/agent.d.ts +9 -0
- package/dist/agent.js +144 -0
- package/dist/agent.js.map +1 -0
- package/dist/config.d.ts +15 -0
- package/dist/config.js +76 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +366 -0
- package/dist/index.js.map +1 -0
- package/dist/knowledge-commands.d.ts +2 -0
- package/dist/knowledge-commands.js +40 -0
- package/dist/knowledge-commands.js.map +1 -0
- package/dist/knowledge.d.ts +17 -0
- package/dist/knowledge.js +112 -0
- package/dist/knowledge.js.map +1 -0
- package/dist/memory.d.ts +17 -0
- package/dist/memory.js +215 -0
- package/dist/memory.js.map +1 -0
- package/dist/planner.d.ts +22 -0
- package/dist/planner.js +130 -0
- package/dist/planner.js.map +1 -0
- package/dist/project.d.ts +25 -0
- package/dist/project.js +117 -0
- package/dist/project.js.map +1 -0
- package/dist/rules-commands.d.ts +2 -0
- package/dist/rules-commands.js +51 -0
- package/dist/rules-commands.js.map +1 -0
- package/dist/skills.d.ts +28 -0
- package/dist/skills.js +349 -0
- package/dist/skills.js.map +1 -0
- package/dist/structured/loader.d.ts +19 -0
- package/dist/structured/loader.js +147 -0
- package/dist/structured/loader.js.map +1 -0
- package/dist/structured/paths.d.ts +2 -0
- package/dist/structured/paths.js +14 -0
- package/dist/structured/paths.js.map +1 -0
- package/dist/structured/project-scaffold.d.ts +7 -0
- package/dist/structured/project-scaffold.js +60 -0
- package/dist/structured/project-scaffold.js.map +1 -0
- package/dist/structured/render-markdown.d.ts +37 -0
- package/dist/structured/render-markdown.js +47 -0
- package/dist/structured/render-markdown.js.map +1 -0
- package/dist/structured/render-table.d.ts +1 -0
- package/dist/structured/render-table.js +15 -0
- package/dist/structured/render-table.js.map +1 -0
- package/dist/structured/search.d.ts +10 -0
- package/dist/structured/search.js +104 -0
- package/dist/structured/search.js.map +1 -0
- package/dist/structured/skill-runner.d.ts +15 -0
- package/dist/structured/skill-runner.js +60 -0
- package/dist/structured/skill-runner.js.map +1 -0
- package/dist/structured/types.d.ts +212 -0
- package/dist/structured/types.js +97 -0
- package/dist/structured/types.js.map +1 -0
- package/dist/structured-skills-commands.d.ts +3 -0
- package/dist/structured-skills-commands.js +126 -0
- package/dist/structured-skills-commands.js.map +1 -0
- package/dist/structured-template-commands.d.ts +2 -0
- package/dist/structured-template-commands.js +34 -0
- package/dist/structured-template-commands.js.map +1 -0
- package/dist/tools/index.d.ts +3 -0
- package/dist/tools/index.js +450 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/ui.d.ts +19 -0
- package/dist/ui.js +72 -0
- package/dist/ui.js.map +1 -0
- package/dist/web.d.ts +4 -0
- package/dist/web.js +124 -0
- package/dist/web.js.map +1 -0
- package/knowledge/advanced-patterns.md +70 -0
- package/knowledge/agent-directives.md +74 -0
- package/knowledge/dream.md +36 -0
- package/knowledge/engineering.md +46 -0
- package/knowledge/error-catalog.md +33 -0
- package/knowledge/index.json +170 -0
- package/knowledge/memory/cache-optimization-and-skill-integration.md +102 -0
- package/knowledge/memory/engineering-patterns.md +134 -0
- package/knowledge/memory/feedback_root_structure.md +16 -0
- package/knowledge/memory/project-contexts.md +69 -0
- package/knowledge/memory/tools-and-services.md +85 -0
- package/knowledge/rules/agents.md +62 -0
- package/knowledge/rules/blocking-rules.md +323 -0
- package/knowledge/rules/cache-management.md +379 -0
- package/knowledge/rules/capability-evolution.md +132 -0
- package/knowledge/rules/coding.md +126 -0
- package/knowledge/rules/engineering-workflows.md +225 -0
- package/knowledge/rules/evomap-content-guidelines.md +354 -0
- package/knowledge/rules/evomap-guide.md +224 -0
- package/knowledge/rules/git.md +31 -0
- package/knowledge/rules/hooks.md +106 -0
- package/knowledge/rules/performance.md +101 -0
- package/knowledge/rules/remotion-auto-production.md +1120 -0
- package/knowledge/rules/security.md +46 -0
- package/knowledge/rules/testing.md +32 -0
- package/knowledge/rules/work-mode.md +208 -0
- package/knowledge/rules.md +62 -0
- package/knowledge/skills/Skill_Seekers.md +1722 -0
- package/knowledge/skills/ab-test-setup.md +557 -0
- package/knowledge/skills/agent-sdk-dev.md +238 -0
- package/knowledge/skills/agent-tools.md +136 -0
- package/knowledge/skills/analytics-tracking.md +597 -0
- package/knowledge/skills/artifacts-builder.md +89 -0
- package/knowledge/skills/asana.md +13 -0
- package/knowledge/skills/backend-expert.md +97 -0
- package/knowledge/skills/brand-voice.md +481 -0
- package/knowledge/skills/browser-use.md +419 -0
- package/knowledge/skills/cache-optimization-skill.md +179 -0
- package/knowledge/skills/canvas-design.md +147 -0
- package/knowledge/skills/citation-validator.md +203 -0
- package/knowledge/skills/clangd-lsp.md +52 -0
- package/knowledge/skills/code-review-expert.md +85 -0
- package/knowledge/skills/code-review.md +280 -0
- package/knowledge/skills/code-simplifier.md +13 -0
- package/knowledge/skills/commit-commands.md +258 -0
- package/knowledge/skills/competitor-alternatives.md +795 -0
- package/knowledge/skills/content-atomizer.md +910 -0
- package/knowledge/skills/content-research-writer.md +605 -0
- package/knowledge/skills/context-optimization-suite.md +162 -0
- package/knowledge/skills/context7.md +13 -0
- package/knowledge/skills/copy-editing.md +494 -0
- package/knowledge/skills/copywriting.md +510 -0
- package/knowledge/skills/csharp-lsp.md +40 -0
- package/knowledge/skills/decision-making-framework.md +154 -0
- package/knowledge/skills/developer-growth-analysis.md +335 -0
- package/knowledge/skills/direct-response-copy.md +2336 -0
- package/knowledge/skills/docker-expert.md +229 -0
- package/knowledge/skills/document-skills.md +13 -0
- package/knowledge/skills/documentation-expert.md +126 -0
- package/knowledge/skills/email-sequence.md +1061 -0
- package/knowledge/skills/email-sequences.md +910 -0
- package/knowledge/skills/example-plugin.md +72 -0
- package/knowledge/skills/explanatory-output-style.md +82 -0
- package/knowledge/skills/feature-dev.md +458 -0
- package/knowledge/skills/file-organizer.md +466 -0
- package/knowledge/skills/firebase.disabled.md +13 -0
- package/knowledge/skills/form-cro.md +488 -0
- package/knowledge/skills/free-tool-strategy.md +636 -0
- package/knowledge/skills/frontend-design-offical.md +55 -0
- package/knowledge/skills/frontend-design.md +41 -0
- package/knowledge/skills/frontend-expert.md +93 -0
- package/knowledge/skills/github.md +13 -0
- package/knowledge/skills/gitlab.md +13 -0
- package/knowledge/skills/gopls-lsp.md +32 -0
- package/knowledge/skills/got-controller.md +218 -0
- package/knowledge/skills/greptile.md +72 -0
- package/knowledge/skills/hookify.md +376 -0
- package/knowledge/skills/image-editor.md +189 -0
- package/knowledge/skills/image-enhancer.md +109 -0
- package/knowledge/skills/jdtls-lsp.md +49 -0
- package/knowledge/skills/json-canvas.md +654 -0
- package/knowledge/skills/keyword-research.md +559 -0
- package/knowledge/skills/kotlin-lsp.md +28 -0
- package/knowledge/skills/laravel-boost.md +13 -0
- package/knowledge/skills/launch-strategy.md +394 -0
- package/knowledge/skills/lead-magnet.md +393 -0
- package/knowledge/skills/learning-output-style.md +106 -0
- package/knowledge/skills/linear.md +13 -0
- package/knowledge/skills/lua-lsp.md +47 -0
- package/knowledge/skills/marketing-ideas.md +720 -0
- package/knowledge/skills/marketing-psychology.md +534 -0
- package/knowledge/skills/mcp-builder.md +369 -0
- package/knowledge/skills/meeting-insights-analyzer.md +347 -0
- package/knowledge/skills/memory-evolution-system.md +172 -0
- package/knowledge/skills/multi-lens-thinking.md +407 -0
- package/knowledge/skills/nano-banana-pro.md +116 -0
- package/knowledge/skills/newsletter.md +736 -0
- package/knowledge/skills/notebooklm.md +296 -0
- package/knowledge/skills/obsidian-bases.md +634 -0
- package/knowledge/skills/obsidian-markdown.md +651 -0
- package/knowledge/skills/onboarding-cro.md +494 -0
- package/knowledge/skills/orchestrator.md +681 -0
- package/knowledge/skills/page-cro.md +379 -0
- package/knowledge/skills/paid-ads.md +624 -0
- package/knowledge/skills/paywall-upgrade-cro.md +651 -0
- package/knowledge/skills/php-lsp.md +36 -0
- package/knowledge/skills/planning-with-files.md +193 -0
- package/knowledge/skills/playwright.md +13 -0
- package/knowledge/skills/plugin-dev.md +434 -0
- package/knowledge/skills/popup-cro.md +520 -0
- package/knowledge/skills/positioning-angles.md +330 -0
- package/knowledge/skills/pr-review-toolkit.md +359 -0
- package/knowledge/skills/pricing-strategy.md +777 -0
- package/knowledge/skills/programmatic-seo.md +714 -0
- package/knowledge/skills/pyright-lsp.md +43 -0
- package/knowledge/skills/quality-assurance-framework.md +168 -0
- package/knowledge/skills/question-refiner.md +160 -0
- package/knowledge/skills/ralph-loop.md +205 -0
- package/knowledge/skills/refactoring-expert.md +103 -0
- package/knowledge/skills/referral-program.md +668 -0
- package/knowledge/skills/research-executor.md +164 -0
- package/knowledge/skills/review-with-security.md +12 -0
- package/knowledge/skills/rust-analyzer-lsp.md +50 -0
- package/knowledge/skills/schema-markup.md +647 -0
- package/knowledge/skills/security-audit-expert.md +124 -0
- package/knowledge/skills/security-expert.md +140 -0
- package/knowledge/skills/security-guidance.md +13 -0
- package/knowledge/skills/seedance-prompt.md +139 -0
- package/knowledge/skills/self-evolution.md +1160 -0
- package/knowledge/skills/seo-audit.md +432 -0
- package/knowledge/skills/seo-content.md +787 -0
- package/knowledge/skills/serena.md +13 -0
- package/knowledge/skills/signup-flow-cro.md +409 -0
- package/knowledge/skills/skill-creator.md +220 -0
- package/knowledge/skills/skill-manager.md +226 -0
- package/knowledge/skills/skill-share.md +98 -0
- package/knowledge/skills/slack.md +13 -0
- package/knowledge/skills/social-content.md +878 -0
- package/knowledge/skills/spec-flow-skill.md +124 -0
- package/knowledge/skills/stripe.md +13 -0
- package/knowledge/skills/supabase.md +13 -0
- package/knowledge/skills/swift-lsp.md +40 -0
- package/knowledge/skills/synthesizer.md +236 -0
- package/knowledge/skills/template-skill.md +16 -0
- package/knowledge/skills/testing-expert.md +99 -0
- package/knowledge/skills/theme-factory.md +72 -0
- package/knowledge/skills/tiktok-research.md +208 -0
- package/knowledge/skills/typescript-lsp.md +36 -0
- package/knowledge/skills/ui-ux-pro-max.md +247 -0
- package/knowledge/skills/verify.md +15 -0
- package/knowledge/skills/visual-prompt-engineer.md +102 -0
- package/knowledge/skills/webapp-testing.md +111 -0
- package/knowledge/skills/wide-research.md +191 -0
- package/knowledge/system.md +93 -0
- package/knowledge/task-router.md +37 -0
- package/knowledge/verification.md +38 -0
- package/knowledge/workflows/3d-viz.md +47 -0
- package/knowledge/workflows/data-pipeline.md +47 -0
- package/knowledge/workflows/db-migration.md +51 -0
- package/knowledge/workflows/feature-dev.md +41 -0
- package/knowledge/workflows/tdd-flow.md +52 -0
- package/knowledge/workflows/ui-verify.md +51 -0
- package/package.json +60 -0
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "code-review"
|
|
3
|
+
title: "Code Review Plugin"
|
|
4
|
+
category: "dev-tools"
|
|
5
|
+
tags: ["code review plugin", "overview", "commands", "code review", "installation", "best practices", "workflow integration", "create pr with changes"]
|
|
6
|
+
triggers: []
|
|
7
|
+
dependencies: []
|
|
8
|
+
source: "E:/Bobo's Coding cache/.claude/skills/code-review"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Code Review Plugin
|
|
12
|
+
|
|
13
|
+
Automated code review for pull requests using multiple specialized agents with confidence-based scoring to filter false positives.
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
The Code Review Plugin automates pull request review by launching multiple agents in parallel to independently audit changes from different perspectives. It uses confidence scoring to filter out false positives, ensuring only high-quality, actionable feedback is posted.
|
|
18
|
+
|
|
19
|
+
## Commands
|
|
20
|
+
|
|
21
|
+
### `/code-review`
|
|
22
|
+
|
|
23
|
+
Performs automated code review on a pull request using multiple specialized agents.
|
|
24
|
+
|
|
25
|
+
**What it does:**
|
|
26
|
+
|
|
27
|
+
1. Checks if review is needed (skips closed, draft, trivial, or already-reviewed PRs)
|
|
28
|
+
2. Gathers relevant CLAUDE.md guideline files from the repository
|
|
29
|
+
3. Summarizes the pull request changes
|
|
30
|
+
4. Launches 4 parallel agents to independently review:
|
|
31
|
+
- **Agents #1 & #2**: Audit for CLAUDE.md compliance
|
|
32
|
+
- **Agent #3**: Scan for obvious bugs in changes
|
|
33
|
+
- **Agent #4**: Analyze git blame/history for context-based issues
|
|
34
|
+
5. Scores each issue 0-100 for confidence level
|
|
35
|
+
6. Filters out issues below 80 confidence threshold
|
|
36
|
+
7. Posts review comment with high-confidence issues only
|
|
37
|
+
|
|
38
|
+
**Usage:**
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
/code-review
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
**Example workflow:**
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# On a PR branch, run:
|
|
48
|
+
/code-review
|
|
49
|
+
|
|
50
|
+
# Claude will:
|
|
51
|
+
# - Launch 4 review agents in parallel
|
|
52
|
+
# - Score each issue for confidence
|
|
53
|
+
# - Post comment with issues ≥80 confidence
|
|
54
|
+
# - Skip posting if no high-confidence issues found
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
**Features:**
|
|
58
|
+
|
|
59
|
+
- Multiple independent agents for comprehensive review
|
|
60
|
+
- Confidence-based scoring reduces false positives (threshold: 80)
|
|
61
|
+
- CLAUDE.md compliance checking with explicit guideline verification
|
|
62
|
+
- Bug detection focused on changes (not pre-existing issues)
|
|
63
|
+
- Historical context analysis via git blame
|
|
64
|
+
- Automatic skipping of closed, draft, or already-reviewed PRs
|
|
65
|
+
- Links directly to code with full SHA and line ranges
|
|
66
|
+
|
|
67
|
+
**Review comment format:**
|
|
68
|
+
|
|
69
|
+
```markdown
|
|
70
|
+
## Code review
|
|
71
|
+
|
|
72
|
+
Found 3 issues:
|
|
73
|
+
|
|
74
|
+
1. Missing error handling for OAuth callback (CLAUDE.md says "Always handle OAuth errors")
|
|
75
|
+
|
|
76
|
+
https://github.com/owner/repo/blob/abc123.../src/auth.ts#L67-L72
|
|
77
|
+
|
|
78
|
+
2. Memory leak: OAuth state not cleaned up (bug due to missing cleanup in finally block)
|
|
79
|
+
|
|
80
|
+
https://github.com/owner/repo/blob/abc123.../src/auth.ts#L88-L95
|
|
81
|
+
|
|
82
|
+
3. Inconsistent naming pattern (src/conventions/CLAUDE.md says "Use camelCase for functions")
|
|
83
|
+
|
|
84
|
+
https://github.com/owner/repo/blob/abc123.../src/utils.ts#L23-L28
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**Confidence scoring:**
|
|
88
|
+
|
|
89
|
+
- **0**: Not confident, false positive
|
|
90
|
+
- **25**: Somewhat confident, might be real
|
|
91
|
+
- **50**: Moderately confident, real but minor
|
|
92
|
+
- **75**: Highly confident, real and important
|
|
93
|
+
- **100**: Absolutely certain, definitely real
|
|
94
|
+
|
|
95
|
+
**False positives filtered:**
|
|
96
|
+
|
|
97
|
+
- Pre-existing issues not introduced in PR
|
|
98
|
+
- Code that looks like a bug but isn't
|
|
99
|
+
- Pedantic nitpicks
|
|
100
|
+
- Issues linters will catch
|
|
101
|
+
- General quality issues (unless in CLAUDE.md)
|
|
102
|
+
- Issues with lint ignore comments
|
|
103
|
+
|
|
104
|
+
## Installation
|
|
105
|
+
|
|
106
|
+
This plugin is included in the Claude Code repository. The command is automatically available when using Claude Code.
|
|
107
|
+
|
|
108
|
+
## Best Practices
|
|
109
|
+
|
|
110
|
+
### Using `/code-review`
|
|
111
|
+
|
|
112
|
+
- Maintain clear CLAUDE.md files for better compliance checking
|
|
113
|
+
- Trust the 80+ confidence threshold - false positives are filtered
|
|
114
|
+
- Run on all non-trivial pull requests
|
|
115
|
+
- Review agent findings as a starting point for human review
|
|
116
|
+
- Update CLAUDE.md based on recurring review patterns
|
|
117
|
+
|
|
118
|
+
### When to use
|
|
119
|
+
|
|
120
|
+
- All pull requests with meaningful changes
|
|
121
|
+
- PRs touching critical code paths
|
|
122
|
+
- PRs from multiple contributors
|
|
123
|
+
- PRs where guideline compliance matters
|
|
124
|
+
|
|
125
|
+
### When not to use
|
|
126
|
+
|
|
127
|
+
- Closed or draft PRs (automatically skipped anyway)
|
|
128
|
+
- Trivial automated PRs (automatically skipped)
|
|
129
|
+
- Urgent hotfixes requiring immediate merge
|
|
130
|
+
- PRs already reviewed (automatically skipped)
|
|
131
|
+
|
|
132
|
+
## Workflow Integration
|
|
133
|
+
|
|
134
|
+
### Standard PR review workflow:
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
# Create PR with changes
|
|
138
|
+
/code-review
|
|
139
|
+
|
|
140
|
+
# Review the automated feedback
|
|
141
|
+
# Make any necessary fixes
|
|
142
|
+
# Merge when ready
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### As part of CI/CD:
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
# Trigger on PR creation or update
|
|
149
|
+
# Automatically posts review comments
|
|
150
|
+
# Skip if review already exists
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## Requirements
|
|
154
|
+
|
|
155
|
+
- Git repository with GitHub integration
|
|
156
|
+
- GitHub CLI (`gh`) installed and authenticated
|
|
157
|
+
- CLAUDE.md files (optional but recommended for guideline checking)
|
|
158
|
+
|
|
159
|
+
## Troubleshooting
|
|
160
|
+
|
|
161
|
+
### Review takes too long
|
|
162
|
+
|
|
163
|
+
**Issue**: Agents are slow on large PRs
|
|
164
|
+
|
|
165
|
+
**Solution**:
|
|
166
|
+
|
|
167
|
+
- Normal for large changes - agents run in parallel
|
|
168
|
+
- 4 independent agents ensure thoroughness
|
|
169
|
+
- Consider splitting large PRs into smaller ones
|
|
170
|
+
|
|
171
|
+
### Too many false positives
|
|
172
|
+
|
|
173
|
+
**Issue**: Review flags issues that aren't real
|
|
174
|
+
|
|
175
|
+
**Solution**:
|
|
176
|
+
|
|
177
|
+
- Default threshold is 80 (already filters most false positives)
|
|
178
|
+
- Make CLAUDE.md more specific about what matters
|
|
179
|
+
- Consider if the flagged issue is actually valid
|
|
180
|
+
|
|
181
|
+
### No review comment posted
|
|
182
|
+
|
|
183
|
+
**Issue**: `/code-review` runs but no comment appears
|
|
184
|
+
|
|
185
|
+
**Solution**:
|
|
186
|
+
Check if:
|
|
187
|
+
|
|
188
|
+
- PR is closed (reviews skipped)
|
|
189
|
+
- PR is draft (reviews skipped)
|
|
190
|
+
- PR is trivial/automated (reviews skipped)
|
|
191
|
+
- PR already has review (reviews skipped)
|
|
192
|
+
- No issues scored ≥80 (no comment needed)
|
|
193
|
+
|
|
194
|
+
### Link formatting broken
|
|
195
|
+
|
|
196
|
+
**Issue**: Code links don't render correctly in GitHub
|
|
197
|
+
|
|
198
|
+
**Solution**:
|
|
199
|
+
Links must follow this exact format:
|
|
200
|
+
|
|
201
|
+
```
|
|
202
|
+
https://github.com/owner/repo/blob/[full-sha]/path/file.ext#L[start]-L[end]
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
- Must use full SHA (not abbreviated)
|
|
206
|
+
- Must use `#L` notation
|
|
207
|
+
- Must include line range with at least 1 line of context
|
|
208
|
+
|
|
209
|
+
### GitHub CLI not working
|
|
210
|
+
|
|
211
|
+
**Issue**: `gh` commands fail
|
|
212
|
+
|
|
213
|
+
**Solution**:
|
|
214
|
+
|
|
215
|
+
- Install GitHub CLI: `brew install gh` (macOS) or see [GitHub CLI installation](https://cli.github.com/)
|
|
216
|
+
- Authenticate: `gh auth login`
|
|
217
|
+
- Verify repository has GitHub remote
|
|
218
|
+
|
|
219
|
+
## Tips
|
|
220
|
+
|
|
221
|
+
- **Write specific CLAUDE.md files**: Clear guidelines = better reviews
|
|
222
|
+
- **Include context in PRs**: Helps agents understand intent
|
|
223
|
+
- **Use confidence scores**: Issues ≥80 are usually correct
|
|
224
|
+
- **Iterate on guidelines**: Update CLAUDE.md based on patterns
|
|
225
|
+
- **Review automatically**: Set up as part of PR workflow
|
|
226
|
+
- **Trust the filtering**: Threshold prevents noise
|
|
227
|
+
|
|
228
|
+
## Configuration
|
|
229
|
+
|
|
230
|
+
### Adjusting confidence threshold
|
|
231
|
+
|
|
232
|
+
The default threshold is 80. To adjust, modify the command file at `commands/code-review.md`:
|
|
233
|
+
|
|
234
|
+
```markdown
|
|
235
|
+
Filter out any issues with a score less than 80.
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
Change `80` to your preferred threshold (0-100).
|
|
239
|
+
|
|
240
|
+
### Customizing review focus
|
|
241
|
+
|
|
242
|
+
Edit `commands/code-review.md` to add or modify agent tasks:
|
|
243
|
+
|
|
244
|
+
- Add security-focused agents
|
|
245
|
+
- Add performance analysis agents
|
|
246
|
+
- Add accessibility checking agents
|
|
247
|
+
- Add documentation quality checks
|
|
248
|
+
|
|
249
|
+
## Technical Details
|
|
250
|
+
|
|
251
|
+
### Agent architecture
|
|
252
|
+
|
|
253
|
+
- **2x CLAUDE.md compliance agents**: Redundancy for guideline checks
|
|
254
|
+
- **1x bug detector**: Focused on obvious bugs in changes only
|
|
255
|
+
- **1x history analyzer**: Context from git blame and history
|
|
256
|
+
- **Nx confidence scorers**: One per issue for independent scoring
|
|
257
|
+
|
|
258
|
+
### Scoring system
|
|
259
|
+
|
|
260
|
+
- Each issue independently scored 0-100
|
|
261
|
+
- Scoring considers evidence strength and verification
|
|
262
|
+
- Threshold (default 80) filters low-confidence issues
|
|
263
|
+
- For CLAUDE.md issues: verifies guideline explicitly mentions it
|
|
264
|
+
|
|
265
|
+
### GitHub integration
|
|
266
|
+
|
|
267
|
+
Uses `gh` CLI for:
|
|
268
|
+
|
|
269
|
+
- Viewing PR details and diffs
|
|
270
|
+
- Fetching repository data
|
|
271
|
+
- Reading git blame and history
|
|
272
|
+
- Posting review comments
|
|
273
|
+
|
|
274
|
+
## Author
|
|
275
|
+
|
|
276
|
+
Boris Cherny (boris@anthropic.com)
|
|
277
|
+
|
|
278
|
+
## Version
|
|
279
|
+
|
|
280
|
+
1.0.0
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "code-simplifier"
|
|
3
|
+
title: "code-simplifier"
|
|
4
|
+
category: "dev-tools"
|
|
5
|
+
tags: ["code-simplifier"]
|
|
6
|
+
triggers: []
|
|
7
|
+
dependencies: []
|
|
8
|
+
source: "E:/Bobo's Coding cache/.claude/skills/code-simplifier"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# code-simplifier
|
|
12
|
+
|
|
13
|
+
Skill directory: code-simplifier
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "commit-commands"
|
|
3
|
+
title: "Commit Commands Plugin"
|
|
4
|
+
category: "dev-tools"
|
|
5
|
+
tags: ["commit commands plugin", "overview", "commands", "review your changes", "stage the files", "show you the commit status", "make your changes"]
|
|
6
|
+
triggers: []
|
|
7
|
+
dependencies: []
|
|
8
|
+
source: "E:/Bobo's Coding cache/.claude/skills/commit-commands"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Commit Commands Plugin
|
|
12
|
+
|
|
13
|
+
Streamline your git workflow with simple commands for committing, pushing, and creating pull requests.
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
The Commit Commands Plugin automates common git operations, reducing context switching and manual command execution. Instead of running multiple git commands, use a single slash command to handle your entire workflow.
|
|
18
|
+
|
|
19
|
+
## Commands
|
|
20
|
+
|
|
21
|
+
### `/commit`
|
|
22
|
+
|
|
23
|
+
Creates a git commit with an automatically generated commit message based on staged and unstaged changes.
|
|
24
|
+
|
|
25
|
+
**What it does:**
|
|
26
|
+
|
|
27
|
+
1. Analyzes current git status
|
|
28
|
+
2. Reviews both staged and unstaged changes
|
|
29
|
+
3. Examines recent commit messages to match your repository's style
|
|
30
|
+
4. Drafts an appropriate commit message
|
|
31
|
+
5. Stages relevant files
|
|
32
|
+
6. Creates the commit
|
|
33
|
+
|
|
34
|
+
**Usage:**
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
/commit
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**Example workflow:**
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
# Make some changes to your code
|
|
44
|
+
# Then simply run:
|
|
45
|
+
/commit
|
|
46
|
+
|
|
47
|
+
# Claude will:
|
|
48
|
+
# - Review your changes
|
|
49
|
+
# - Stage the files
|
|
50
|
+
# - Create a commit with an appropriate message
|
|
51
|
+
# - Show you the commit status
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
**Features:**
|
|
55
|
+
|
|
56
|
+
- Automatically drafts commit messages that match your repo's style
|
|
57
|
+
- Follows conventional commit practices
|
|
58
|
+
- Avoids committing files with secrets (.env, credentials.json)
|
|
59
|
+
- Includes Claude Code attribution in commit message
|
|
60
|
+
|
|
61
|
+
### `/commit-push-pr`
|
|
62
|
+
|
|
63
|
+
Complete workflow command that commits, pushes, and creates a pull request in one step.
|
|
64
|
+
|
|
65
|
+
**What it does:**
|
|
66
|
+
|
|
67
|
+
1. Creates a new branch (if currently on main)
|
|
68
|
+
2. Stages and commits changes with an appropriate message
|
|
69
|
+
3. Pushes the branch to origin
|
|
70
|
+
4. Creates a pull request using `gh pr create`
|
|
71
|
+
5. Provides the PR URL
|
|
72
|
+
|
|
73
|
+
**Usage:**
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
/commit-push-pr
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
**Example workflow:**
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
# Make your changes
|
|
83
|
+
# Then run:
|
|
84
|
+
/commit-push-pr
|
|
85
|
+
|
|
86
|
+
# Claude will:
|
|
87
|
+
# - Create a feature branch (if needed)
|
|
88
|
+
# - Commit your changes
|
|
89
|
+
# - Push to remote
|
|
90
|
+
# - Open a PR with summary and test plan
|
|
91
|
+
# - Give you the PR URL to review
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
**Features:**
|
|
95
|
+
|
|
96
|
+
- Analyzes all commits in the branch (not just the latest)
|
|
97
|
+
- Creates comprehensive PR descriptions with:
|
|
98
|
+
- Summary of changes (1-3 bullet points)
|
|
99
|
+
- Test plan checklist
|
|
100
|
+
- Claude Code attribution
|
|
101
|
+
- Handles branch creation automatically
|
|
102
|
+
- Uses GitHub CLI (`gh`) for PR creation
|
|
103
|
+
|
|
104
|
+
**Requirements:**
|
|
105
|
+
|
|
106
|
+
- GitHub CLI (`gh`) must be installed and authenticated
|
|
107
|
+
- Repository must have a remote named `origin`
|
|
108
|
+
|
|
109
|
+
### `/clean_gone`
|
|
110
|
+
|
|
111
|
+
Cleans up local branches that have been deleted from the remote repository.
|
|
112
|
+
|
|
113
|
+
**What it does:**
|
|
114
|
+
|
|
115
|
+
1. Lists all local branches to identify [gone] status
|
|
116
|
+
2. Identifies and removes worktrees associated with [gone] branches
|
|
117
|
+
3. Deletes all branches marked as [gone]
|
|
118
|
+
4. Provides feedback on removed branches
|
|
119
|
+
|
|
120
|
+
**Usage:**
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
/clean_gone
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
**Example workflow:**
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
# After PRs are merged and remote branches are deleted
|
|
130
|
+
/clean_gone
|
|
131
|
+
|
|
132
|
+
# Claude will:
|
|
133
|
+
# - Find all branches marked as [gone]
|
|
134
|
+
# - Remove any associated worktrees
|
|
135
|
+
# - Delete the stale local branches
|
|
136
|
+
# - Report what was cleaned up
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
**Features:**
|
|
140
|
+
|
|
141
|
+
- Handles both regular branches and worktree branches
|
|
142
|
+
- Safely removes worktrees before deleting branches
|
|
143
|
+
- Shows clear feedback about what was removed
|
|
144
|
+
- Reports if no cleanup was needed
|
|
145
|
+
|
|
146
|
+
**When to use:**
|
|
147
|
+
|
|
148
|
+
- After merging and deleting remote branches
|
|
149
|
+
- When your local branch list is cluttered with stale branches
|
|
150
|
+
- During regular repository maintenance
|
|
151
|
+
|
|
152
|
+
## Installation
|
|
153
|
+
|
|
154
|
+
This plugin is included in the Claude Code repository. The commands are automatically available when using Claude Code.
|
|
155
|
+
|
|
156
|
+
## Best Practices
|
|
157
|
+
|
|
158
|
+
### Using `/commit`
|
|
159
|
+
|
|
160
|
+
- Review the staged changes before committing
|
|
161
|
+
- Let Claude analyze your changes and match your repo's commit style
|
|
162
|
+
- Trust the automated message, but verify it's accurate
|
|
163
|
+
- Use for routine commits during development
|
|
164
|
+
|
|
165
|
+
### Using `/commit-push-pr`
|
|
166
|
+
|
|
167
|
+
- Use when you're ready to create a PR
|
|
168
|
+
- Ensure all your changes are complete and tested
|
|
169
|
+
- Claude will analyze the full branch history for the PR description
|
|
170
|
+
- Review the PR description and edit if needed
|
|
171
|
+
- Use when you want to minimize context switching
|
|
172
|
+
|
|
173
|
+
### Using `/clean_gone`
|
|
174
|
+
|
|
175
|
+
- Run periodically to keep your branch list clean
|
|
176
|
+
- Especially useful after merging multiple PRs
|
|
177
|
+
- Safe to run - only removes branches already deleted remotely
|
|
178
|
+
- Helps maintain a tidy local repository
|
|
179
|
+
|
|
180
|
+
## Workflow Integration
|
|
181
|
+
|
|
182
|
+
### Quick commit workflow:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
# Write code
|
|
186
|
+
/commit
|
|
187
|
+
# Continue development
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
### Feature branch workflow:
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
# Develop feature across multiple commits
|
|
194
|
+
/commit # First commit
|
|
195
|
+
# More changes
|
|
196
|
+
/commit # Second commit
|
|
197
|
+
# Ready to create PR
|
|
198
|
+
/commit-push-pr
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
### Maintenance workflow:
|
|
202
|
+
|
|
203
|
+
```bash
|
|
204
|
+
# After several PRs are merged
|
|
205
|
+
/clean_gone
|
|
206
|
+
# Clean workspace ready for next feature
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
## Requirements
|
|
210
|
+
|
|
211
|
+
- Git must be installed and configured
|
|
212
|
+
- For `/commit-push-pr`: GitHub CLI (`gh`) must be installed and authenticated
|
|
213
|
+
- Repository must be a git repository with a remote
|
|
214
|
+
|
|
215
|
+
## Troubleshooting
|
|
216
|
+
|
|
217
|
+
### `/commit` creates empty commit
|
|
218
|
+
|
|
219
|
+
**Issue**: No changes to commit
|
|
220
|
+
|
|
221
|
+
**Solution**:
|
|
222
|
+
|
|
223
|
+
- Ensure you have unstaged or staged changes
|
|
224
|
+
- Run `git status` to verify changes exist
|
|
225
|
+
|
|
226
|
+
### `/commit-push-pr` fails to create PR
|
|
227
|
+
|
|
228
|
+
**Issue**: `gh pr create` command fails
|
|
229
|
+
|
|
230
|
+
**Solution**:
|
|
231
|
+
|
|
232
|
+
- Install GitHub CLI: `brew install gh` (macOS) or see [GitHub CLI installation](https://cli.github.com/)
|
|
233
|
+
- Authenticate: `gh auth login`
|
|
234
|
+
- Ensure repository has a GitHub remote
|
|
235
|
+
|
|
236
|
+
### `/clean_gone` doesn't find branches
|
|
237
|
+
|
|
238
|
+
**Issue**: No branches marked as [gone]
|
|
239
|
+
|
|
240
|
+
**Solution**:
|
|
241
|
+
|
|
242
|
+
- Run `git fetch --prune` to update remote tracking
|
|
243
|
+
- Branches must be deleted from the remote to show as [gone]
|
|
244
|
+
|
|
245
|
+
## Tips
|
|
246
|
+
|
|
247
|
+
- **Combine with other tools**: Use `/commit` during development, then `/commit-push-pr` when ready
|
|
248
|
+
- **Let Claude draft messages**: The commit message analysis learns from your repo's style
|
|
249
|
+
- **Regular cleanup**: Run `/clean_gone` weekly to maintain a clean branch list
|
|
250
|
+
- **Review before pushing**: Always review the commit message and changes before pushing
|
|
251
|
+
|
|
252
|
+
## Author
|
|
253
|
+
|
|
254
|
+
Anthropic (support@anthropic.com)
|
|
255
|
+
|
|
256
|
+
## Version
|
|
257
|
+
|
|
258
|
+
1.0.0
|