evizi-kit 1.0.0
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/README.md +506 -0
- package/kits/agent/.agent/skills/claude-code-subagent-creator/SKILL.md +292 -0
- package/kits/agent/.agent/skills/claude-code-subagent-creator/references/claude-code-subagent-configuration.md +158 -0
- package/kits/agent/.agent/skills/claude-code-subagent-creator/templates/subagent-profile.template.md +26 -0
- package/kits/agent/.agent/skills/skill-creator/LICENSE.txt +202 -0
- package/kits/agent/.agent/skills/skill-creator/SKILL.md +485 -0
- package/kits/agent/.agent/skills/skill-creator/agents/analyzer.md +274 -0
- package/kits/agent/.agent/skills/skill-creator/agents/comparator.md +202 -0
- package/kits/agent/.agent/skills/skill-creator/agents/grader.md +223 -0
- package/kits/agent/.agent/skills/skill-creator/assets/eval_review.html +146 -0
- package/kits/agent/.agent/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/kits/agent/.agent/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/kits/agent/.agent/skills/skill-creator/references/schemas.md +430 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/__init__.py +0 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/generate_report.py +326 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/improve_description.py +247 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/package_skill.py +136 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/run_eval.py +310 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/run_loop.py +328 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/utils.py +47 -0
- package/kits/agent/manifest.json +10 -0
- package/kits/claude/.claude/agents/code-pusher.md +46 -0
- package/kits/claude/.claude/agents/feature-document-updater.md +37 -0
- package/kits/claude/.claude/agents/self-reviewer.md +32 -0
- package/kits/claude/.claude/agents/web-auto-agentic-workflow-initializer.md +42 -0
- package/kits/claude/.claude/agents/web-auto-assisted-fix-and-runner.md +36 -0
- package/kits/claude/.claude/agents/web-auto-chrome-devtools-selector-extractor.md +36 -0
- package/kits/claude/.claude/agents/web-auto-coder.md +33 -0
- package/kits/claude/.claude/agents/web-auto-fe-selector-extractor.md +31 -0
- package/kits/claude/.claude/agents/web-auto-fix-and-runner.md +35 -0
- package/kits/claude/.claude/agents/web-auto-lessons-learned-extractor.md +34 -0
- package/kits/claude/.claude/agents/web-auto-playwright-mcp-selector-extractor.md +37 -0
- package/kits/claude/.claude/agents/web-auto-source-instructions-updater.md +43 -0
- package/kits/claude/.claude/agents/web-auto-test-cases-generator.md +29 -0
- package/kits/claude/.claude/agents/web-auto-ticket-designer.md +35 -0
- package/kits/claude/.claude/agents/web-auto-ticket-playbook-planner.md +36 -0
- package/kits/claude/.claude/agents/web-auto.md +382 -0
- package/kits/claude/.claude/skills/claude-code-subagent-creator/SKILL.md +292 -0
- package/kits/claude/.claude/skills/claude-code-subagent-creator/references/claude-code-subagent-configuration.md +158 -0
- package/kits/claude/.claude/skills/claude-code-subagent-creator/templates/subagent-profile.template.md +26 -0
- package/kits/claude/.claude/skills/skill-creator/LICENSE.txt +202 -0
- package/kits/claude/.claude/skills/skill-creator/SKILL.md +485 -0
- package/kits/claude/.claude/skills/skill-creator/agents/analyzer.md +274 -0
- package/kits/claude/.claude/skills/skill-creator/agents/comparator.md +202 -0
- package/kits/claude/.claude/skills/skill-creator/agents/grader.md +223 -0
- package/kits/claude/.claude/skills/skill-creator/assets/eval_review.html +146 -0
- package/kits/claude/.claude/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/kits/claude/.claude/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/kits/claude/.claude/skills/skill-creator/references/schemas.md +430 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/__init__.py +0 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/generate_report.py +326 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/improve_description.py +247 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/package_skill.py +136 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/run_eval.py +310 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/run_loop.py +328 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/utils.py +47 -0
- package/kits/claude/manifest.json +10 -0
- package/kits/cursor/.cursor/agents/code-pusher.agent.md +43 -0
- package/kits/cursor/.cursor/agents/feature-document-updater.agent.md +34 -0
- package/kits/cursor/.cursor/agents/self-reviewer.agent.md +29 -0
- package/kits/cursor/.cursor/agents/web-auto-agentic-workflow-initializer.agent.md +37 -0
- package/kits/cursor/.cursor/agents/web-auto-assisted-fix-and-runner.agent.md +33 -0
- package/kits/cursor/.cursor/agents/web-auto-chrome-devtools-selector-extractor.agent.md +31 -0
- package/kits/cursor/.cursor/agents/web-auto-coder.agent.md +30 -0
- package/kits/cursor/.cursor/agents/web-auto-fe-selector-extractor.agent.md +28 -0
- package/kits/cursor/.cursor/agents/web-auto-fix-and-runner.agent.md +32 -0
- package/kits/cursor/.cursor/agents/web-auto-lessons-learned-extractor.agent.md +31 -0
- package/kits/cursor/.cursor/agents/web-auto-playwright-mcp-selector-extractor.agent.md +32 -0
- package/kits/cursor/.cursor/agents/web-auto-source-instructions-updater.agent.md +40 -0
- package/kits/cursor/.cursor/agents/web-auto-test-cases-generator.agent.md +26 -0
- package/kits/cursor/.cursor/agents/web-auto-ticket-designer.agent.md +32 -0
- package/kits/cursor/.cursor/agents/web-auto-ticket-playbook-planner.agent.md +33 -0
- package/kits/cursor/.cursor/agents/web-auto.agent.md +379 -0
- package/kits/cursor/.cursor/skills/claude-code-subagent-creator/SKILL.md +292 -0
- package/kits/cursor/.cursor/skills/claude-code-subagent-creator/references/claude-code-subagent-configuration.md +158 -0
- package/kits/cursor/.cursor/skills/claude-code-subagent-creator/templates/subagent-profile.template.md +26 -0
- package/kits/cursor/.cursor/skills/skill-creator/LICENSE.txt +202 -0
- package/kits/cursor/.cursor/skills/skill-creator/SKILL.md +485 -0
- package/kits/cursor/.cursor/skills/skill-creator/agents/analyzer.md +274 -0
- package/kits/cursor/.cursor/skills/skill-creator/agents/comparator.md +202 -0
- package/kits/cursor/.cursor/skills/skill-creator/agents/grader.md +223 -0
- package/kits/cursor/.cursor/skills/skill-creator/assets/eval_review.html +146 -0
- package/kits/cursor/.cursor/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/kits/cursor/.cursor/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/kits/cursor/.cursor/skills/skill-creator/references/schemas.md +430 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/__init__.py +0 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/generate_report.py +326 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/improve_description.py +247 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/package_skill.py +136 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/run_eval.py +310 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/run_loop.py +328 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/utils.py +47 -0
- package/kits/cursor/manifest.json +10 -0
- package/kits/github/.github/agents/code-pusher.agent.md +45 -0
- package/kits/github/.github/agents/feature-document-updater.agent.md +36 -0
- package/kits/github/.github/agents/self-reviewer.agent.md +31 -0
- package/kits/github/.github/agents/web-auto-agentic-workflow-initializer.agent.md +39 -0
- package/kits/github/.github/agents/web-auto-assisted-fix-and-runner.agent.md +35 -0
- package/kits/github/.github/agents/web-auto-chrome-devtools-selector-extractor.agent.md +33 -0
- package/kits/github/.github/agents/web-auto-coder.agent.md +32 -0
- package/kits/github/.github/agents/web-auto-fe-selector-extractor.agent.md +30 -0
- package/kits/github/.github/agents/web-auto-fix-and-runner.agent.md +34 -0
- package/kits/github/.github/agents/web-auto-lessons-learned-extractor.agent.md +33 -0
- package/kits/github/.github/agents/web-auto-playwright-mcp-selector-extractor.agent.md +34 -0
- package/kits/github/.github/agents/web-auto-source-instructions-updater.agent.md +42 -0
- package/kits/github/.github/agents/web-auto-test-cases-generator.agent.md +28 -0
- package/kits/github/.github/agents/web-auto-ticket-designer.agent.md +34 -0
- package/kits/github/.github/agents/web-auto-ticket-playbook-creator.agent.md +35 -0
- package/kits/github/.github/agents/web-auto.agent.md +382 -0
- package/kits/github/.github/skills/claude-code-subagent-creator/SKILL.md +310 -0
- package/kits/github/.github/skills/claude-code-subagent-creator/references/claude-code-subagent-configuration.md +158 -0
- package/kits/github/.github/skills/claude-code-subagent-creator/templates/subagent-profile.template.md +37 -0
- package/kits/github/.github/skills/skill-creator/LICENSE.txt +202 -0
- package/kits/github/.github/skills/skill-creator/SKILL.md +485 -0
- package/kits/github/.github/skills/skill-creator/agents/analyzer.md +274 -0
- package/kits/github/.github/skills/skill-creator/agents/comparator.md +202 -0
- package/kits/github/.github/skills/skill-creator/agents/grader.md +223 -0
- package/kits/github/.github/skills/skill-creator/assets/eval_review.html +146 -0
- package/kits/github/.github/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/kits/github/.github/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/kits/github/.github/skills/skill-creator/references/schemas.md +430 -0
- package/kits/github/.github/skills/skill-creator/scripts/__init__.py +0 -0
- package/kits/github/.github/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/kits/github/.github/skills/skill-creator/scripts/generate_report.py +326 -0
- package/kits/github/.github/skills/skill-creator/scripts/improve_description.py +247 -0
- package/kits/github/.github/skills/skill-creator/scripts/package_skill.py +136 -0
- package/kits/github/.github/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/kits/github/.github/skills/skill-creator/scripts/run_eval.py +310 -0
- package/kits/github/.github/skills/skill-creator/scripts/run_loop.py +328 -0
- package/kits/github/.github/skills/skill-creator/scripts/utils.py +47 -0
- package/kits/github/manifest.json +10 -0
- package/kits/shared/docs/ai-code-review.md +440 -0
- package/kits/shared/docs/increase-unit-test-coverage.md +77 -0
- package/kits/shared/docs/pr-review-agent.md +501 -0
- package/kits/shared/docs/self-review-agent.md +246 -0
- package/kits/shared/docs/web-auto-agentic-workflow.md +506 -0
- package/kits/shared/manifest.json +11 -0
- package/kits/shared/skills/fix-automation-tests/SKILL.md +280 -0
- package/kits/shared/skills/fix-automation-tests/scripts/fetch_pr_changes.py +300 -0
- package/kits/shared/skills/fix-automation-tests/templates/impact-report.template.md +42 -0
- package/kits/shared/skills/increase-unit-test-coverage/SKILL.md +117 -0
- package/kits/shared/skills/increase-unit-test-coverage/scripts/filter_low_coverage.py +447 -0
- package/kits/shared/skills/pr-review/SKILL.md +200 -0
- package/kits/shared/skills/pr-review/references/automation.md +62 -0
- package/kits/shared/skills/pr-review/references/backend.md +95 -0
- package/kits/shared/skills/pr-review/references/frontend.md +103 -0
- package/kits/shared/skills/pr-review/references/mobile.md +108 -0
- package/kits/shared/skills/pr-review/references/output-schema.md +130 -0
- package/kits/shared/skills/pr-review/scripts/post-review.py +1395 -0
- package/kits/shared/skills/push-code/SKILL.md +176 -0
- package/kits/shared/skills/self-review/SKILL.md +234 -0
- package/kits/shared/skills/self-review/evals/evals.json +23 -0
- package/kits/shared/skills/self-review/references/automation.md +62 -0
- package/kits/shared/skills/self-review/references/backend.md +95 -0
- package/kits/shared/skills/self-review/references/frontend.md +103 -0
- package/kits/shared/skills/self-review/references/mobile.md +108 -0
- package/kits/shared/skills/self-review/templates/issues.template.md +72 -0
- package/kits/shared/skills/update-feature-document/SKILL.md +156 -0
- package/kits/shared/skills/update-feature-document/templates/delta.template.yaml +58 -0
- package/kits/shared/skills/update-feature-document/templates/feature.template.md +25 -0
- package/kits/shared/skills/web-auto-assisted-fix-and-run/SKILL.md +130 -0
- package/kits/shared/skills/web-auto-assisted-fix-and-run/references/resolve-api-error.md +108 -0
- package/kits/shared/skills/web-auto-assisted-fix-and-run/references/resolve-selector.md +60 -0
- package/kits/shared/skills/web-auto-assisted-fix-and-run/templates/issues-resolution-report-append.template.md +54 -0
- package/kits/shared/skills/web-auto-chrome-devtools-mcp-extract-selectors/SKILL.md +284 -0
- package/kits/shared/skills/web-auto-coding/SKILL.md +152 -0
- package/kits/shared/skills/web-auto-extract-lessons-learned/SKILL.md +168 -0
- package/kits/shared/skills/web-auto-extract-lessons-learned/templates/lessons-learned.template.md +115 -0
- package/kits/shared/skills/web-auto-fe-extract-selectors/SKILL.md +282 -0
- package/kits/shared/skills/web-auto-fe-extract-selectors/evals/evals.json +23 -0
- package/kits/shared/skills/web-auto-fix-and-run-test/SKILL.md +183 -0
- package/kits/shared/skills/web-auto-fix-and-run-test/templates/issues-resolution-report.template.md +77 -0
- package/kits/shared/skills/web-auto-generate-best-practices/SKILL.md +123 -0
- package/kits/shared/skills/web-auto-generate-instructions/SKILL.md +200 -0
- package/kits/shared/skills/web-auto-generate-instructions/evals/evals.json +23 -0
- package/kits/shared/skills/web-auto-generate-instructions/references/analysis-guide.md +145 -0
- package/kits/shared/skills/web-auto-generate-instructions/templates/web-auto-instructions.template.md +184 -0
- package/kits/shared/skills/web-auto-generate-project-blueprint/SKILL.md +181 -0
- package/kits/shared/skills/web-auto-generate-project-blueprint/evals/evals.json +57 -0
- package/kits/shared/skills/web-auto-generate-project-blueprint/templates/web-auto-project-blueprint.template.md +161 -0
- package/kits/shared/skills/web-auto-playwright-mcp-extract-selectors/SKILL.md +293 -0
- package/kits/shared/skills/web-auto-test-cases/SKILL.md +138 -0
- package/kits/shared/skills/web-auto-test-cases/evals/evals.json +129 -0
- package/kits/shared/skills/web-auto-test-cases/templates/test-cases.template.md +53 -0
- package/kits/shared/skills/web-auto-ticket-design/SKILL.md +199 -0
- package/kits/shared/skills/web-auto-ticket-design/templates/ticket-design.template.md +138 -0
- package/kits/shared/skills/web-auto-ticket-playbook/SKILL.md +218 -0
- package/kits/shared/skills/web-auto-ticket-playbook/evals/evals.json +23 -0
- package/kits/shared/skills/web-auto-ticket-playbook/templates/ticket-playbook.template.md +148 -0
- package/kits/shared/skills/web-auto-update-source-instructions/SKILL.md +156 -0
- package/kits/shared/skills/web-auto-update-source-instructions/evals/evals.json +22 -0
- package/kits/shared/skills/workspace-ai-nav-creator/SKILL.md +168 -0
- package/kits/shared/skills/workspace-ai-nav-creator/templates/agents-md.template.md +112 -0
- package/kits/shared/skills/workspace-ai-nav-creator/templates/claude-md.template.md +86 -0
- package/package.json +16 -0
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
# Self Review Skill
|
|
2
|
+
|
|
3
|
+
## 1. Overview
|
|
4
|
+
|
|
5
|
+
The **Self Review Skill** enables AI agents to automatically review code changes between the current Git branch and a configured target branch, providing a clear **Ready/Not Ready verdict** for PR creation. When a user requests a self-review, the AI agent invokes this skill to analyze changes and identify issues before creating pull requests.
|
|
6
|
+
|
|
7
|
+
### Key Capabilities
|
|
8
|
+
|
|
9
|
+
- **Pre-PR Verification**: Clear verdict on whether code is ready for pull request
|
|
10
|
+
- **Automated Code Analysis**: Review code changes using Git diff
|
|
11
|
+
- **Table-Based Reporting**: Scannable format for quick issue verification
|
|
12
|
+
- **Quality Assurance**: Identify critical bugs, security issues, and code quality concerns
|
|
13
|
+
- **Domain-Specific Review**: Applies tech stack-specific checklists (Frontend, Backend, Mobile, Automation)
|
|
14
|
+
|
|
15
|
+
### How It Works
|
|
16
|
+
|
|
17
|
+
When a user asks the AI agent to review their code (e.g., "Self-review for PROJ-123" or "Check my code before PR"), the agent:
|
|
18
|
+
1. Recognizes the request and invokes the `self-review` skill
|
|
19
|
+
2. The skill handles the entire code review workflow
|
|
20
|
+
3. Returns a verdict and detailed report to the user
|
|
21
|
+
|
|
22
|
+
## 2. Components
|
|
23
|
+
|
|
24
|
+
| Component | File | Description |
|
|
25
|
+
|-----------|------|-------------|
|
|
26
|
+
| **Self Review Skill** | `.cursor/skills/self-review/SKILL.md` or `.github/skills/self-review/SKILL.md` | Skill definition and workflow for self-review process |
|
|
27
|
+
| **Configuration File** | `.cursor/project.config.json` or `.github/project.config.json` | Project settings and target branch |
|
|
28
|
+
| **Issue Template** | `templates/issues.template.md` | Table-based report format with verdict |
|
|
29
|
+
| **Frontend Checklist** | `references/frontend.md` | 100+ checks for React, Vue, Angular, etc. |
|
|
30
|
+
| **Backend Checklist** | `references/backend.md` | 70+ checks for API, database, security |
|
|
31
|
+
| **Mobile Checklist** | `references/mobile.md` | 110+ checks for iOS and Android |
|
|
32
|
+
| **Automation Checklist** | `references/automation.md` | 40+ checks for E2E tests |
|
|
33
|
+
|
|
34
|
+
> **Note:** Paths for templates and references are relative to the skill directory (`.cursor/skills/self-review/` or `.github/skills/self-review/`).
|
|
35
|
+
|
|
36
|
+
## 3. Setup Guide
|
|
37
|
+
|
|
38
|
+
### Step 1: Create Configuration File
|
|
39
|
+
|
|
40
|
+
Create `.cursor/project.config.json` (or `.github/project.config.json`):
|
|
41
|
+
|
|
42
|
+
```json
|
|
43
|
+
{
|
|
44
|
+
"baseBranch": "main"
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Step 2: Verify Git Setup
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
git fetch origin
|
|
52
|
+
git branch -a | grep main
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## 4. How to Use
|
|
56
|
+
|
|
57
|
+
### Basic Workflow
|
|
58
|
+
|
|
59
|
+
1. **Make changes on your feature branch**
|
|
60
|
+
2. **User prompts the AI agent** with a self-review request (e.g., "Self-review for PROJ-123")
|
|
61
|
+
3. **AI agent recognizes the intent** and invokes the `self-review` skill
|
|
62
|
+
4. **Skill executes the review workflow:**
|
|
63
|
+
- Reads configuration from `project.config.json` (searches `.cursor/` or `.github/`)
|
|
64
|
+
- Runs Git commands to compare current branch with target branch
|
|
65
|
+
- Detects tech stack and loads domain-specific checklist from `references/`
|
|
66
|
+
- Analyzes changes using the checklist
|
|
67
|
+
- Generates table-based report with verdict using `templates/issues.template.md`
|
|
68
|
+
- Saves review to `issues.md`
|
|
69
|
+
5. **AI agent returns verdict** to the user: ✅ Ready / ⚠️ Ready with Warnings / ❌ Not Ready
|
|
70
|
+
|
|
71
|
+
### Trigger Examples
|
|
72
|
+
|
|
73
|
+
The AI agent will invoke the `self-review` skill when it detects prompts like:
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
Self-review for my code changes
|
|
77
|
+
Check my code before PR
|
|
78
|
+
Ready for PR?
|
|
79
|
+
Review my changes
|
|
80
|
+
self-review
|
|
81
|
+
Is my code ready for PR?
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Verdict Logic
|
|
85
|
+
|
|
86
|
+
The agent provides a clear decision on PR readiness:
|
|
87
|
+
|
|
88
|
+
| Verdict | Criteria | Meaning |
|
|
89
|
+
|---------|----------|---------|
|
|
90
|
+
| **✅ Ready to Create PR** | Zero critical issues | Code is ready for pull request |
|
|
91
|
+
| **⚠️ Ready with Warnings** | Zero critical, has warnings/suggestions | Can create PR, but consider addressing warnings |
|
|
92
|
+
| **❌ Not Ready for PR** | One or more critical issues | Must fix critical issues before PR |
|
|
93
|
+
|
|
94
|
+
### Report Format
|
|
95
|
+
|
|
96
|
+
The agent generates a **table-based report** (no code snippets) with:
|
|
97
|
+
|
|
98
|
+
1. **Verdict Section** - Clear Ready/Not Ready decision with message
|
|
99
|
+
2. **Summary Table** - Files reviewed and issue counts by severity
|
|
100
|
+
3. **Files Reviewed Table** - Each file's status, lines changed, and issue count
|
|
101
|
+
4. **Issues Tables** - Critical, Warnings, and Suggestions in separate tables
|
|
102
|
+
- Each issue includes: #, File, Line, Category, Issue description, Recommendation
|
|
103
|
+
|
|
104
|
+
**Template Variables:**
|
|
105
|
+
- `[CURRENT_BRANCH]` - The current Git branch
|
|
106
|
+
- `[TARGET_BRANCH]` - The target branch (from config)
|
|
107
|
+
- `[VERDICT_STATUS]` - Ready/Not Ready status with icon
|
|
108
|
+
- `[VERDICT_MESSAGE]` - Explanation message
|
|
109
|
+
- `[FILES_COUNT]`, `[CRITICAL_COUNT]`, `[WARNING_COUNT]`, `[SUGGESTION_COUNT]` - Statistics
|
|
110
|
+
- `[FILE_PATH]`, `[STATUS_ICON]`, `[ADDED]`, `[REMOVED]`, `[ISSUE_COUNT]` - Per-file details
|
|
111
|
+
- `[ISSUE_ID]`, `[LINE_NUMBER]`, `[CATEGORY]`, `[ISSUE_DESCRIPTION]`, `[FIX_RECOMMENDATION]` - Per-issue details
|
|
112
|
+
|
|
113
|
+
**Why No Code Snippets?**
|
|
114
|
+
- Prevents confusion (AI uses git diff for context)
|
|
115
|
+
- Faster scanning and verification
|
|
116
|
+
- Focuses on actionable specifications
|
|
117
|
+
- Cleaner, more compact format
|
|
118
|
+
|
|
119
|
+
### Severity Levels
|
|
120
|
+
|
|
121
|
+
| Level | Icon | Description | Examples |
|
|
122
|
+
|-------|------|-------------|----------|
|
|
123
|
+
| **Critical** | ❌ | Must fix before PR | Bugs, security vulnerabilities, breaking changes |
|
|
124
|
+
| **Warning** | ⚠️ | Should fix | Code quality, readability, maintainability issues |
|
|
125
|
+
| **Suggestion** | 💡 | Nice to have | Patterns, optimizations, best practices |
|
|
126
|
+
|
|
127
|
+
### Git Commands Executed by Skill
|
|
128
|
+
|
|
129
|
+
The skill executes these Git commands internally:
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
# Get list of changed files
|
|
133
|
+
git diff <target-branch> --name-only
|
|
134
|
+
|
|
135
|
+
# Get detailed line-by-line differences with 3 lines of context
|
|
136
|
+
git diff <target-branch> --unified=3
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Where `<target-branch>` is the value of `baseBranch` from `project.config.json` (e.g., `main`).
|
|
140
|
+
|
|
141
|
+
## 5. Tech Stack Detection & Checklists
|
|
142
|
+
|
|
143
|
+
The skill automatically detects your project type and applies the appropriate checklist:
|
|
144
|
+
|
|
145
|
+
### Detection Logic
|
|
146
|
+
|
|
147
|
+
| Tech Stack | File Extensions | Checklist Applied |
|
|
148
|
+
|------------|----------------|-------------------|
|
|
149
|
+
| **Frontend** | `.tsx`, `.jsx`, `.vue`, `.css`, `package.json` | `references/frontend.md` (100+ checks) |
|
|
150
|
+
| **Backend** | `.java`, `.go`, `.py` (API), `.sql` | `references/backend.md` (70+ checks) |
|
|
151
|
+
| **Mobile** | `.swift`, `.kt`, `Podfile`, `AndroidManifest.xml` | `references/mobile.md` (110+ checks) |
|
|
152
|
+
| **Automation** | `.spec.ts`, `Selenium`, `Test.java` | `references/automation.md` (40+ checks) |
|
|
153
|
+
|
|
154
|
+
### Checklist Highlights
|
|
155
|
+
|
|
156
|
+
**Frontend** - Performance, State Management, Accessibility, Security, SEO, Testing
|
|
157
|
+
**Backend** - API Design, Database, Security (OWASP), Performance, Observability, Testing
|
|
158
|
+
**Mobile** - Threading, Lifecycle, Memory, Security, Networking, Platform-Specific
|
|
159
|
+
**Automation** - Stability, Selectors, Isolation, Error Handling, CI Readiness
|
|
160
|
+
|
|
161
|
+
## 6. Review Rules
|
|
162
|
+
|
|
163
|
+
The self-review skill follows strict guidelines when analyzing code:
|
|
164
|
+
|
|
165
|
+
### DO:
|
|
166
|
+
- ✅ Read entire diff before analyzing
|
|
167
|
+
- ✅ Provide specific line numbers in tables
|
|
168
|
+
- ✅ Give actionable fix suggestions in "Recommendation" column
|
|
169
|
+
- ✅ Generate clear verdict based on critical issues count
|
|
170
|
+
- ✅ Use table format for all issues (no code snippets)
|
|
171
|
+
- ✅ Set verdict to "❌ Not Ready" if any critical issues exist
|
|
172
|
+
|
|
173
|
+
### DO NOT:
|
|
174
|
+
- ❌ Include code snippets (AI will use git diff for context)
|
|
175
|
+
- ❌ Report issues in excluded files
|
|
176
|
+
- ❌ Report style-only issues as critical
|
|
177
|
+
- ❌ Exaggerate severity levels
|
|
178
|
+
- ❌ Approve (✅ Ready) when critical issues exist
|
|
179
|
+
|
|
180
|
+
### Verdict Logic:
|
|
181
|
+
- **✅ Ready to Create PR** - Zero critical issues
|
|
182
|
+
- **⚠️ Ready with Warnings** - Zero critical, some warnings/suggestions
|
|
183
|
+
- **❌ Not Ready for PR** - One or more critical issues
|
|
184
|
+
|
|
185
|
+
## 7. Example Report Output
|
|
186
|
+
|
|
187
|
+
```markdown
|
|
188
|
+
# Self Review Report
|
|
189
|
+
|
|
190
|
+
**Branch**: `feature/user-auth` → `main`
|
|
191
|
+
**Date**: 2026-02-04
|
|
192
|
+
|
|
193
|
+
## 🎯 Verdict: ❌ Not Ready for PR
|
|
194
|
+
|
|
195
|
+
Found 2 critical issues that must be fixed before creating a pull request.
|
|
196
|
+
|
|
197
|
+
## Summary
|
|
198
|
+
|
|
199
|
+
| Metric | Count |
|
|
200
|
+
|--------|-------|
|
|
201
|
+
| Files Reviewed | 5 |
|
|
202
|
+
| Critical Issues | 2 ❌ |
|
|
203
|
+
| Warnings | 3 ⚠️ |
|
|
204
|
+
| Suggestions | 1 💡 |
|
|
205
|
+
|
|
206
|
+
## Files Reviewed
|
|
207
|
+
|
|
208
|
+
| File | Status | Lines Changed | Issues |
|
|
209
|
+
|------|--------|---------------|--------|
|
|
210
|
+
| `src/auth/login.ts` | ❌ Critical | +45 / -12 | 2 |
|
|
211
|
+
| `src/utils/api.ts` | ⚠️ Warnings | +20 / -5 | 1 |
|
|
212
|
+
|
|
213
|
+
## ❌ Critical Issues (Must Fix)
|
|
214
|
+
|
|
215
|
+
| # | File | Line | Category | Issue | Recommendation |
|
|
216
|
+
|---|------|------|----------|-------|----------------|
|
|
217
|
+
| 1 | `src/auth/login.ts` | 42 | Security | Hardcoded API key found | Move to environment variables |
|
|
218
|
+
| 2 | `src/auth/login.ts` | 58 | Bug | Unhandled promise rejection | Add try-catch or .catch() |
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
## 8. References
|
|
222
|
+
|
|
223
|
+
| Resource | Possible Locations |
|
|
224
|
+
|----------|-------------------|
|
|
225
|
+
| **Skill Definition** | `.cursor/skills/self-review/SKILL.md` or `.github/skills/self-review/SKILL.md` |
|
|
226
|
+
| **Configuration File** | `.cursor/project.config.json` or `.github/project.config.json` |
|
|
227
|
+
| **Issue Template** | `{SKILL_PATH}/templates/issues.template.md` |
|
|
228
|
+
| **Frontend Checklist** | `{SKILL_PATH}/references/frontend.md` |
|
|
229
|
+
| **Backend Checklist** | `{SKILL_PATH}/references/backend.md` |
|
|
230
|
+
| **Mobile Checklist** | `{SKILL_PATH}/references/mobile.md` |
|
|
231
|
+
| **Automation Checklist** | `{SKILL_PATH}/references/automation.md` |
|
|
232
|
+
| **Issue Reports** | `issues.md` |
|
|
233
|
+
|
|
234
|
+
> **Note:** `{SKILL_PATH}` refers to `.cursor/skills/self-review/` or `.github/skills/self-review/` depending on your project setup.
|
|
235
|
+
|
|
236
|
+
## 9. Skill Invocation
|
|
237
|
+
|
|
238
|
+
The AI agent automatically invokes this skill when it detects self-review requests in the user's prompt. The skill is registered in the agent's skill registry and can be triggered by patterns like:
|
|
239
|
+
|
|
240
|
+
- "Self-review for my code changes"
|
|
241
|
+
- "Check my code before PR"
|
|
242
|
+
- "Review my changes"
|
|
243
|
+
- "Is my code ready for PR?"
|
|
244
|
+
- "self-review"
|
|
245
|
+
|
|
246
|
+
No manual skill invocation is required - the AI agent handles skill selection based on user intent.
|