@devran-ai/kit 4.1.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/.agent/CheatSheet.md +350 -0
- package/.agent/README.md +76 -0
- package/.agent/agents/README.md +155 -0
- package/.agent/agents/architect.md +185 -0
- package/.agent/agents/backend-specialist.md +276 -0
- package/.agent/agents/build-error-resolver.md +207 -0
- package/.agent/agents/code-reviewer.md +162 -0
- package/.agent/agents/database-architect.md +138 -0
- package/.agent/agents/devops-engineer.md +144 -0
- package/.agent/agents/doc-updater.md +229 -0
- package/.agent/agents/e2e-runner.md +145 -0
- package/.agent/agents/explorer-agent.md +143 -0
- package/.agent/agents/frontend-specialist.md +144 -0
- package/.agent/agents/go-reviewer.md +128 -0
- package/.agent/agents/knowledge-agent.md +197 -0
- package/.agent/agents/mobile-developer.md +150 -0
- package/.agent/agents/performance-optimizer.md +175 -0
- package/.agent/agents/planner.md +133 -0
- package/.agent/agents/pr-reviewer.md +148 -0
- package/.agent/agents/python-reviewer.md +123 -0
- package/.agent/agents/refactor-cleaner.md +201 -0
- package/.agent/agents/reliability-engineer.md +156 -0
- package/.agent/agents/security-reviewer.md +141 -0
- package/.agent/agents/sprint-orchestrator.md +124 -0
- package/.agent/agents/tdd-guide.md +179 -0
- package/.agent/agents/typescript-reviewer.md +110 -0
- package/.agent/checklists/README.md +102 -0
- package/.agent/checklists/pre-commit.md +93 -0
- package/.agent/checklists/session-end.md +99 -0
- package/.agent/checklists/session-start.md +102 -0
- package/.agent/checklists/task-complete.md +81 -0
- package/.agent/commands/README.md +130 -0
- package/.agent/commands/adr.md +29 -0
- package/.agent/commands/ask.md +28 -0
- package/.agent/commands/build.md +30 -0
- package/.agent/commands/changelog.md +40 -0
- package/.agent/commands/checkpoint.md +28 -0
- package/.agent/commands/code-review.md +65 -0
- package/.agent/commands/compact.md +28 -0
- package/.agent/commands/cook.md +30 -0
- package/.agent/commands/db.md +30 -0
- package/.agent/commands/debug.md +31 -0
- package/.agent/commands/deploy.md +37 -0
- package/.agent/commands/design.md +29 -0
- package/.agent/commands/doc.md +30 -0
- package/.agent/commands/eval.md +30 -0
- package/.agent/commands/fix.md +32 -0
- package/.agent/commands/git.md +32 -0
- package/.agent/commands/help.md +273 -0
- package/.agent/commands/implement.md +30 -0
- package/.agent/commands/integrate.md +32 -0
- package/.agent/commands/learn.md +29 -0
- package/.agent/commands/perf.md +31 -0
- package/.agent/commands/plan.md +56 -0
- package/.agent/commands/pr-describe.md +65 -0
- package/.agent/commands/pr-fix.md +45 -0
- package/.agent/commands/pr-merge.md +45 -0
- package/.agent/commands/pr-review.md +50 -0
- package/.agent/commands/pr-split.md +54 -0
- package/.agent/commands/pr-status.md +56 -0
- package/.agent/commands/pr.md +58 -0
- package/.agent/commands/refactor.md +32 -0
- package/.agent/commands/research.md +28 -0
- package/.agent/commands/scout.md +30 -0
- package/.agent/commands/security-scan.md +33 -0
- package/.agent/commands/setup.md +31 -0
- package/.agent/commands/status.md +59 -0
- package/.agent/commands/tdd.md +73 -0
- package/.agent/commands/verify.md +58 -0
- package/.agent/contexts/brainstorm.md +26 -0
- package/.agent/contexts/debug.md +28 -0
- package/.agent/contexts/implement.md +29 -0
- package/.agent/contexts/plan-quality-log.md +30 -0
- package/.agent/contexts/review.md +27 -0
- package/.agent/contexts/ship.md +28 -0
- package/.agent/decisions/001-trust-grade-governance.md +46 -0
- package/.agent/decisions/002-cross-ide-generation.md +15 -0
- package/.agent/engine/identity.json +4 -0
- package/.agent/engine/loading-rules.json +193 -0
- package/.agent/engine/marketplace-index.json +29 -0
- package/.agent/engine/mcp-servers/filesystem.json +9 -0
- package/.agent/engine/mcp-servers/github.json +11 -0
- package/.agent/engine/mcp-servers/postgres.json +11 -0
- package/.agent/engine/mcp-servers/supabase.json +11 -0
- package/.agent/engine/mcp-servers/vercel.json +11 -0
- package/.agent/engine/reliability-config.json +14 -0
- package/.agent/engine/sdlc-map.json +50 -0
- package/.agent/engine/workflow-state.json +167 -0
- package/.agent/hooks/README.md +101 -0
- package/.agent/hooks/hooks.json +104 -0
- package/.agent/hooks/templates/session-end.md +110 -0
- package/.agent/hooks/templates/session-start.md +95 -0
- package/.agent/manifest.json +466 -0
- package/.agent/rules/agent-upgrade-policy.md +56 -0
- package/.agent/rules/architecture.md +111 -0
- package/.agent/rules/coding-style.md +75 -0
- package/.agent/rules/documentation.md +74 -0
- package/.agent/rules/git-workflow.md +140 -0
- package/.agent/rules/quality-gate.md +117 -0
- package/.agent/rules/security.md +67 -0
- package/.agent/rules/sprint-tracking.md +103 -0
- package/.agent/rules/testing.md +80 -0
- package/.agent/rules/workflow-standards.md +30 -0
- package/.agent/rules.md +293 -0
- package/.agent/session-context.md +69 -0
- package/.agent/session-state.json +27 -0
- package/.agent/skills/README.md +135 -0
- package/.agent/skills/api-patterns/SKILL.md +117 -0
- package/.agent/skills/app-builder/SKILL.md +202 -0
- package/.agent/skills/architecture/SKILL.md +101 -0
- package/.agent/skills/behavioral-modes/SKILL.md +295 -0
- package/.agent/skills/brainstorming/SKILL.md +156 -0
- package/.agent/skills/clean-code/SKILL.md +142 -0
- package/.agent/skills/context-budget/SKILL.md +78 -0
- package/.agent/skills/continuous-learning/SKILL.md +145 -0
- package/.agent/skills/database-design/SKILL.md +303 -0
- package/.agent/skills/debugging-strategies/SKILL.md +158 -0
- package/.agent/skills/deployment-procedures/SKILL.md +191 -0
- package/.agent/skills/docker-patterns/SKILL.md +161 -0
- package/.agent/skills/eval-harness/SKILL.md +89 -0
- package/.agent/skills/frontend-patterns/SKILL.md +141 -0
- package/.agent/skills/git-workflow/SKILL.md +159 -0
- package/.agent/skills/i18n-localization/SKILL.md +191 -0
- package/.agent/skills/intelligent-routing/SKILL.md +180 -0
- package/.agent/skills/mcp-integration/SKILL.md +240 -0
- package/.agent/skills/mobile-design/SKILL.md +191 -0
- package/.agent/skills/nodejs-patterns/SKILL.md +164 -0
- package/.agent/skills/parallel-agents/SKILL.md +200 -0
- package/.agent/skills/performance-profiling/SKILL.md +134 -0
- package/.agent/skills/plan-validation/SKILL.md +192 -0
- package/.agent/skills/plan-writing/SKILL.md +183 -0
- package/.agent/skills/plan-writing/domain-enhancers.md +184 -0
- package/.agent/skills/plan-writing/plan-retrospective.md +116 -0
- package/.agent/skills/plan-writing/plan-schema.md +119 -0
- package/.agent/skills/pr-toolkit/SKILL.md +174 -0
- package/.agent/skills/production-readiness/SKILL.md +126 -0
- package/.agent/skills/security-practices/SKILL.md +109 -0
- package/.agent/skills/shell-conventions/SKILL.md +92 -0
- package/.agent/skills/strategic-compact/SKILL.md +62 -0
- package/.agent/skills/testing-patterns/SKILL.md +141 -0
- package/.agent/skills/typescript-expert/SKILL.md +160 -0
- package/.agent/skills/ui-ux-pro-max/SKILL.md +137 -0
- package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/icons.csv +101 -0
- package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/astro.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.agent/skills/ui-ux-pro-max/data/styles.csv +68 -0
- package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/.agent/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.agent/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/.agent/skills/ui-ux-pro-max/scripts/core.py +253 -0
- package/.agent/skills/ui-ux-pro-max/scripts/design_system.py +1067 -0
- package/.agent/skills/ui-ux-pro-max/scripts/search.py +114 -0
- package/.agent/skills/verification-loop/SKILL.md +89 -0
- package/.agent/skills/webapp-testing/SKILL.md +175 -0
- package/.agent/templates/adr-template.md +32 -0
- package/.agent/templates/bug-report.md +37 -0
- package/.agent/templates/feature-request.md +32 -0
- package/.agent/workflows/README.md +101 -0
- package/.agent/workflows/brainstorm.md +86 -0
- package/.agent/workflows/create.md +85 -0
- package/.agent/workflows/debug.md +83 -0
- package/.agent/workflows/deploy.md +114 -0
- package/.agent/workflows/enhance.md +85 -0
- package/.agent/workflows/orchestrate.md +106 -0
- package/.agent/workflows/plan.md +105 -0
- package/.agent/workflows/pr-fix.md +163 -0
- package/.agent/workflows/pr-merge.md +117 -0
- package/.agent/workflows/pr-review.md +178 -0
- package/.agent/workflows/pr-split.md +118 -0
- package/.agent/workflows/pr.md +184 -0
- package/.agent/workflows/preflight.md +107 -0
- package/.agent/workflows/preview.md +95 -0
- package/.agent/workflows/quality-gate.md +103 -0
- package/.agent/workflows/retrospective.md +100 -0
- package/.agent/workflows/review.md +104 -0
- package/.agent/workflows/status.md +89 -0
- package/.agent/workflows/test.md +98 -0
- package/.agent/workflows/ui-ux-pro-max.md +93 -0
- package/.agent/workflows/upgrade.md +97 -0
- package/LICENSE +21 -0
- package/README.md +218 -0
- package/bin/kit.js +773 -0
- package/lib/agent-registry.js +228 -0
- package/lib/agent-reputation.js +343 -0
- package/lib/circuit-breaker.js +195 -0
- package/lib/cli-commands.js +322 -0
- package/lib/config-validator.js +274 -0
- package/lib/conflict-detector.js +252 -0
- package/lib/constants.js +47 -0
- package/lib/engineering-manager.js +336 -0
- package/lib/error-budget.js +370 -0
- package/lib/hook-system.js +256 -0
- package/lib/ide-generator.js +434 -0
- package/lib/identity.js +240 -0
- package/lib/io.js +146 -0
- package/lib/learning-engine.js +163 -0
- package/lib/loading-engine.js +421 -0
- package/lib/logger.js +118 -0
- package/lib/marketplace.js +321 -0
- package/lib/plugin-system.js +604 -0
- package/lib/plugin-verifier.js +197 -0
- package/lib/rate-limiter.js +113 -0
- package/lib/security-scanner.js +312 -0
- package/lib/self-healing.js +468 -0
- package/lib/session-manager.js +264 -0
- package/lib/skill-sandbox.js +244 -0
- package/lib/task-governance.js +522 -0
- package/lib/task-model.js +332 -0
- package/lib/updater.js +240 -0
- package/lib/verify.js +279 -0
- package/lib/workflow-engine.js +373 -0
- package/lib/workflow-events.js +166 -0
- package/lib/workflow-persistence.js +160 -0
- package/package.json +57 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Integrate third-party services or APIs
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /integrate Command
|
|
6
|
+
|
|
7
|
+
Integrate external services and APIs.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/integrate <service>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Examples
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
/integrate Stripe for payments
|
|
19
|
+
/integrate Sendgrid for emails
|
|
20
|
+
/integrate AWS S3 for file storage
|
|
21
|
+
/integrate Firebase for authentication
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Process
|
|
25
|
+
|
|
26
|
+
1. Research service requirements
|
|
27
|
+
2. Install necessary packages
|
|
28
|
+
3. Configure environment variables
|
|
29
|
+
4. Create service abstraction
|
|
30
|
+
5. Implement integration
|
|
31
|
+
6. Add error handling
|
|
32
|
+
7. Write tests
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Learn patterns from current session
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /learn Command
|
|
6
|
+
|
|
7
|
+
Extract reusable patterns from the current session.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/learn # Extract all patterns
|
|
13
|
+
/learn <topic> # Focus on specific topic
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Examples
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
/learn
|
|
20
|
+
/learn authentication patterns
|
|
21
|
+
/learn error handling approaches
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Output
|
|
25
|
+
|
|
26
|
+
- Identified patterns
|
|
27
|
+
- Reusable code snippets
|
|
28
|
+
- Best practices discovered
|
|
29
|
+
- Saved to knowledge base
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Profile and optimize performance
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /perf Command
|
|
6
|
+
|
|
7
|
+
Analyze and optimize application performance.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/perf analyze <file> # Profile specific file
|
|
13
|
+
/perf bundle # Analyze bundle size
|
|
14
|
+
/perf web-vitals # Check Core Web Vitals
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Examples
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
/perf analyze src/pages/Dashboard
|
|
21
|
+
/perf bundle optimization suggestions
|
|
22
|
+
/perf Check render performance
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Metrics
|
|
26
|
+
|
|
27
|
+
- Bundle size analysis
|
|
28
|
+
- Render performance
|
|
29
|
+
- Memory usage
|
|
30
|
+
- API response times
|
|
31
|
+
- Core Web Vitals (LCP, FID, CLS)
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan
|
|
3
|
+
description: Create a comprehensive implementation plan for a feature or change
|
|
4
|
+
invokes: planner
|
|
5
|
+
workflow: plan
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# /plan
|
|
9
|
+
|
|
10
|
+
> **Purpose**: Create a detailed, actionable implementation plan before coding
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
/plan [feature description]
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Examples
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
/plan Add user authentication with JWT
|
|
24
|
+
/plan Refactor database layer to use repository pattern
|
|
25
|
+
/plan Implement caching for API responses
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Behavior
|
|
31
|
+
|
|
32
|
+
1. **Invoke Planner Agent** with the feature description
|
|
33
|
+
2. **Analyze Requirements** - Understand what needs to be built
|
|
34
|
+
3. **Check Alignment** - Verify against operating constraints
|
|
35
|
+
4. **Create Plan** - Detailed steps with files, actions, risks
|
|
36
|
+
5. **Wait for Approval** - Plan must be approved before implementation
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Output
|
|
41
|
+
|
|
42
|
+
A structured implementation plan with:
|
|
43
|
+
|
|
44
|
+
- Requirements summary
|
|
45
|
+
- Architecture changes
|
|
46
|
+
- Implementation steps (phased)
|
|
47
|
+
- Testing strategy
|
|
48
|
+
- Risks and mitigations
|
|
49
|
+
- Estimated effort
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Related Commands
|
|
54
|
+
|
|
55
|
+
- `/implement` - Execute an approved plan
|
|
56
|
+
- `/track` - Start formal tracking
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Auto-generate PR title, summary, and labels from diff analysis
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /pr-describe Command
|
|
6
|
+
|
|
7
|
+
Automatically generate a conventional-commit title, structured summary, change categorization, and suggested labels by analyzing the PR diff.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/pr-describe # Describe current branch diff
|
|
13
|
+
/pr-describe #<number> # Describe existing PR
|
|
14
|
+
/pr-describe <url> # Describe PR at GitHub URL
|
|
15
|
+
/pr-describe #<number> --update # Update existing PR description in-place
|
|
16
|
+
/pr-describe --format brief # Short summary only
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
/pr-describe # Generate description for current branch
|
|
23
|
+
/pr-describe #42 # Generate description for PR #42
|
|
24
|
+
/pr-describe #42 --update # Overwrite PR #42's description
|
|
25
|
+
/pr-describe --format brief # One-paragraph summary
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## What It Does
|
|
29
|
+
|
|
30
|
+
1. Analyzes the full diff (commits, file changes, additions/deletions)
|
|
31
|
+
2. Detects the primary change type (feat, fix, refactor, chore, etc.)
|
|
32
|
+
3. Generates conventional-commit title from branch name and diff content
|
|
33
|
+
4. Creates structured body (Summary, Changes by Category, Test Plan)
|
|
34
|
+
5. Suggests labels based on file types and change patterns
|
|
35
|
+
6. Optionally updates the PR description on GitHub
|
|
36
|
+
|
|
37
|
+
## Output
|
|
38
|
+
|
|
39
|
+
```markdown
|
|
40
|
+
## Generated PR Description
|
|
41
|
+
|
|
42
|
+
**Title**: feat(auth): add OAuth2 provider support
|
|
43
|
+
|
|
44
|
+
**Summary**:
|
|
45
|
+
Adds Google and GitHub OAuth2 providers with PKCE flow,
|
|
46
|
+
token refresh, and session management.
|
|
47
|
+
|
|
48
|
+
**Changes**:
|
|
49
|
+
- Feature: 4 files (OAuth provider, token service, session middleware, config)
|
|
50
|
+
- Tests: 3 files (unit + integration for OAuth flow)
|
|
51
|
+
- Config: 1 file (environment variables for provider credentials)
|
|
52
|
+
|
|
53
|
+
**Labels**: `feature`, `auth`, `needs-review`
|
|
54
|
+
|
|
55
|
+
**Test Plan**:
|
|
56
|
+
- [ ] OAuth login flow with Google provider
|
|
57
|
+
- [ ] Token refresh after expiry
|
|
58
|
+
- [ ] Session persistence across browser restart
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Related
|
|
62
|
+
|
|
63
|
+
- `/pr` — Create a pull request (uses /pr-describe internally)
|
|
64
|
+
- `/pr-review` — Review a pull request
|
|
65
|
+
- `/pr-status` — Check PR merge readiness
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Fix pull request issues based on review comments
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /pr-fix Command
|
|
6
|
+
|
|
7
|
+
Fix PR issues by fetching review comments, prioritizing by severity, implementing fixes, and pushing resolution.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/pr-fix <url> # Fix PR at GitHub URL
|
|
13
|
+
/pr-fix <owner/repo>#<number> # Fix PR by repo and number
|
|
14
|
+
/pr-fix #<number> # Fix PR in current repo
|
|
15
|
+
/pr-fix #<number> --critical-only # Fix only CRITICAL findings
|
|
16
|
+
/pr-fix #<number> --dry-run # Show fix plan without implementing
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
/pr-fix https://github.com/org/repo/pull/42
|
|
23
|
+
/pr-fix deelmarkt/app#10
|
|
24
|
+
/pr-fix #5
|
|
25
|
+
/pr-fix #5 --critical-only
|
|
26
|
+
/pr-fix #5 --dry-run
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## What It Does
|
|
30
|
+
|
|
31
|
+
1. Fetches all review comments and requested changes
|
|
32
|
+
2. Categorizes fixes by severity (P0-P3)
|
|
33
|
+
3. Checks out the PR branch
|
|
34
|
+
4. Implements fixes in priority order
|
|
35
|
+
5. Runs `/review` verification pipeline
|
|
36
|
+
6. Pushes fixes and posts resolution summary
|
|
37
|
+
7. Re-requests review from original reviewer
|
|
38
|
+
|
|
39
|
+
## Related
|
|
40
|
+
|
|
41
|
+
- `/pr-review` — Review a pull request
|
|
42
|
+
- `/pr` — Create a pull request
|
|
43
|
+
- `/pr-merge` — Merge with dependency validation
|
|
44
|
+
- `/pr-status` — Check merge readiness
|
|
45
|
+
- `/review` — Local code quality gates
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Merge a pull request safely with dependency validation and post-merge checks
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /pr-merge Command
|
|
6
|
+
|
|
7
|
+
Safely merge a pull request after validating CI status, review approval, dependency chain, and branch strategy compliance. Includes post-merge verification and dependent PR notification.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/pr-merge #<number> # Merge PR in current repo
|
|
13
|
+
/pr-merge <url> # Merge PR at GitHub URL
|
|
14
|
+
/pr-merge #<number> --squash # Force squash merge
|
|
15
|
+
/pr-merge #<number> --merge-commit # Force merge commit
|
|
16
|
+
/pr-merge #<number> --rebase # Force rebase merge
|
|
17
|
+
/pr-merge #<number> --dry-run # Validate merge readiness without merging
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Examples
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
/pr-merge #42 # Merge with auto-detected strategy
|
|
24
|
+
/pr-merge #42 --squash # Squash merge
|
|
25
|
+
/pr-merge #42 --dry-run # Check if #42 is ready to merge
|
|
26
|
+
/pr-merge https://github.com/org/repo/pull/42
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## What It Does
|
|
30
|
+
|
|
31
|
+
1. Validates PR state (open, mergeable, not blocked)
|
|
32
|
+
2. Verifies review approval and CI checks passing
|
|
33
|
+
3. Validates dependency chain (`Depends-On:` PRs all merged)
|
|
34
|
+
4. Checks branch strategy compliance (correct merge target)
|
|
35
|
+
5. Selects merge strategy (squash / merge commit / rebase)
|
|
36
|
+
6. Executes merge and deletes merged branch
|
|
37
|
+
7. Runs post-merge validation (CI on target branch)
|
|
38
|
+
8. Notifies dependent PRs that this dependency is resolved
|
|
39
|
+
|
|
40
|
+
## Related
|
|
41
|
+
|
|
42
|
+
- `/pr` — Create a pull request
|
|
43
|
+
- `/pr-review` — Review a pull request
|
|
44
|
+
- `/pr-status` — Check merge readiness
|
|
45
|
+
- `/pr-split` — Split oversized PR into sub-PRs
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Review a pull request with Senior Staff Engineer expertise
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /pr-review Command
|
|
6
|
+
|
|
7
|
+
Review any pull request with multi-perspective analysis covering PR hygiene, branch strategy, code quality, security, testing, and architecture.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/pr-review <url> # Review PR at GitHub URL
|
|
13
|
+
/pr-review <owner/repo>#<number> # Review PR by repo and number
|
|
14
|
+
/pr-review #<number> # Review PR in current repo
|
|
15
|
+
/pr-review #<number> --local # Review locally only (don't post)
|
|
16
|
+
/pr-review #<number> --focus <area> # Focus on specific perspective
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
/pr-review https://github.com/org/repo/pull/42
|
|
23
|
+
/pr-review deelmarkt/app#10
|
|
24
|
+
/pr-review #5
|
|
25
|
+
/pr-review #5 --local
|
|
26
|
+
/pr-review #5 --focus security
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Focus Areas
|
|
30
|
+
|
|
31
|
+
- `security` — Security-only review
|
|
32
|
+
- `quality` — Code quality-only review
|
|
33
|
+
- `hygiene` — PR structure and process compliance
|
|
34
|
+
|
|
35
|
+
## What It Does
|
|
36
|
+
|
|
37
|
+
1. Fetches PR metadata, diff, and existing reviews
|
|
38
|
+
2. Detects branch strategy (GitFlow / Trunk-Based)
|
|
39
|
+
3. Applies 6-perspective review framework
|
|
40
|
+
4. Generates findings with severity and fix suggestions
|
|
41
|
+
5. Posts review to GitHub (REQUEST_CHANGES / APPROVE / COMMENT)
|
|
42
|
+
|
|
43
|
+
## Related
|
|
44
|
+
|
|
45
|
+
- `/pr` — Create a pull request
|
|
46
|
+
- `/pr-fix` — Fix issues from review comments
|
|
47
|
+
- `/pr-merge` — Merge with dependency validation
|
|
48
|
+
- `/pr-split` — Split oversized PRs
|
|
49
|
+
- `/pr-status` — Check merge readiness
|
|
50
|
+
- `/review` — Local code quality gates
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Split oversized PRs into focused sub-PRs by concern category
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /pr-split Command
|
|
6
|
+
|
|
7
|
+
Split large (L/XL) pull requests into focused, independently-reviewable sub-PRs organized by concern category with a dependency-ordered merge plan.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/pr-split # Analyze current branch for splitting
|
|
13
|
+
/pr-split #<number> # Analyze existing PR for splitting
|
|
14
|
+
/pr-split --dry-run # Show split plan without creating branches
|
|
15
|
+
/pr-split --auto # Auto-split by file category
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
/pr-split # Split current branch
|
|
22
|
+
/pr-split #42 # Split PR #42
|
|
23
|
+
/pr-split --dry-run # Preview split plan only
|
|
24
|
+
/pr-split #42 --auto # Auto-split without manual grouping
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## What It Does
|
|
28
|
+
|
|
29
|
+
1. Analyzes full diff and classifies PR size (must be L or XL)
|
|
30
|
+
2. Categorizes files by concern (feature, tests, config, deps, docs, infra)
|
|
31
|
+
3. Proposes split plan with merge ordering and dependencies
|
|
32
|
+
4. Waits for user approval of the split plan
|
|
33
|
+
5. Creates sub-branches with selective cherry-pick/checkout
|
|
34
|
+
6. Verifies each sub-branch independently (build + tests)
|
|
35
|
+
7. Creates sub-PRs with structured bodies and dependency declarations
|
|
36
|
+
8. Updates original PR with links to all sub-PRs
|
|
37
|
+
|
|
38
|
+
## Split Categories
|
|
39
|
+
|
|
40
|
+
| Category | Examples |
|
|
41
|
+
| :--- | :--- |
|
|
42
|
+
| Feature Code | `src/`, application logic |
|
|
43
|
+
| Tests | `tests/`, `*.test.*`, `*.spec.*` |
|
|
44
|
+
| Configuration | `.eslintrc`, `tsconfig`, tool configs |
|
|
45
|
+
| Dependencies | `package.json`, lock files |
|
|
46
|
+
| Documentation | `README`, `docs/`, `CHANGELOG` |
|
|
47
|
+
| Infrastructure | `Dockerfile`, CI/CD, deploy configs |
|
|
48
|
+
|
|
49
|
+
## Related
|
|
50
|
+
|
|
51
|
+
- `/pr` — Create a pull request (warns on XL size)
|
|
52
|
+
- `/pr-review` — Review each sub-PR
|
|
53
|
+
- `/pr-merge` — Merge sub-PRs in dependency order
|
|
54
|
+
- `/pr-status` — Check status of all sub-PRs
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Triage pull requests with CI status, staleness detection, and dependency readiness
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /pr-status Command
|
|
6
|
+
|
|
7
|
+
Quick triage view for one or more pull requests — CI status, review state, staleness, dependency readiness, and merge eligibility at a glance.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/pr-status # All open PRs in current repo
|
|
13
|
+
/pr-status #<number> # Single PR status
|
|
14
|
+
/pr-status <url> # PR at GitHub URL
|
|
15
|
+
/pr-status <owner/repo> # All open PRs in specified repo
|
|
16
|
+
/pr-status #<number> --deps # Show dependency chain status
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
/pr-status # Triage all open PRs
|
|
23
|
+
/pr-status #42 # Status of PR #42
|
|
24
|
+
/pr-status https://github.com/org/repo/pull/10
|
|
25
|
+
/pr-status deelmarkt/app # All open PRs in deelmarkt/app
|
|
26
|
+
/pr-status #42 --deps # Dependency chain for PR #42
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## What It Does
|
|
30
|
+
|
|
31
|
+
1. Fetches PR metadata (state, reviews, checks, labels)
|
|
32
|
+
2. Classifies CI status (passing / failing / pending / none)
|
|
33
|
+
3. Detects staleness (days since last update, sync status with target)
|
|
34
|
+
4. Validates dependency chain (`Depends-On:` references)
|
|
35
|
+
5. Calculates merge readiness score (0-100)
|
|
36
|
+
6. Outputs a triage dashboard with actionable next steps
|
|
37
|
+
|
|
38
|
+
## Output
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
PR #42 — feat(auth): add OAuth2 provider
|
|
42
|
+
├─ Status: OPEN
|
|
43
|
+
├─ Reviews: 1/1 APPROVED
|
|
44
|
+
├─ CI: ✓ All checks passing (3/3)
|
|
45
|
+
├─ Staleness: Fresh (updated 2h ago, in sync with main)
|
|
46
|
+
├─ Dependencies: #40 MERGED, #41 OPEN (blocking)
|
|
47
|
+
├─ Merge Ready: No — dependency #41 not yet merged
|
|
48
|
+
└─ Next: Merge #41 first, then this PR is ready
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Related
|
|
52
|
+
|
|
53
|
+
- `/pr` — Create a pull request
|
|
54
|
+
- `/pr-review` — Review a pull request
|
|
55
|
+
- `/pr-merge` — Merge a pull request safely
|
|
56
|
+
- `/pr-describe` — Auto-generate PR description
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Create production-grade pull requests with branch validation, size guards, and CI verification
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /pr Command
|
|
6
|
+
|
|
7
|
+
Create pull requests with branch strategy validation, size/scope guards, pre-flight checks, and CI verification.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/pr # Create PR targeting default branch
|
|
13
|
+
/pr [target] # Create PR targeting specific branch (e.g., /pr dev)
|
|
14
|
+
/pr --draft # Create PR as draft
|
|
15
|
+
/pr --draft [target] # Create draft PR targeting specific branch
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
/pr # Auto-detects target via branch strategy
|
|
22
|
+
/pr dev # Target dev branch explicitly
|
|
23
|
+
/pr --draft # Create draft PR
|
|
24
|
+
/pr main # Target main (validated against strategy)
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## What It Does
|
|
28
|
+
|
|
29
|
+
1. Detects branch strategy (GitFlow / Trunk-Based) and validates target
|
|
30
|
+
2. Syncs with target branch and resolves conflicts
|
|
31
|
+
3. Checks PR size (XS-XL) and scope coherence
|
|
32
|
+
4. Runs pre-flight `/review` pipeline (lint, types, tests, security, build)
|
|
33
|
+
5. Generates conventional commit title from branch name
|
|
34
|
+
6. Creates PR with structured body (Summary, Changes, Test Plan)
|
|
35
|
+
7. Monitors CI pipeline status
|
|
36
|
+
|
|
37
|
+
## PR Toolkit
|
|
38
|
+
|
|
39
|
+
| Command | Purpose |
|
|
40
|
+
| :--- | :--- |
|
|
41
|
+
| `/pr` | Create a pull request |
|
|
42
|
+
| `/pr-review #N` | Review an existing PR |
|
|
43
|
+
| `/pr-fix #N` | Fix PR based on review comments |
|
|
44
|
+
| `/pr-merge #N` | Merge PR safely with validation |
|
|
45
|
+
| `/pr-split` | Split oversized PR into sub-PRs |
|
|
46
|
+
| `/pr-status` | Triage PRs with merge readiness |
|
|
47
|
+
| `/pr-describe` | Auto-generate PR description |
|
|
48
|
+
|
|
49
|
+
## Related
|
|
50
|
+
|
|
51
|
+
- `/pr-review` — Review a pull request
|
|
52
|
+
- `/pr-fix` — Fix issues from review comments
|
|
53
|
+
- `/pr-merge` — Merge with dependency validation
|
|
54
|
+
- `/pr-split` — Split oversized PRs
|
|
55
|
+
- `/pr-status` — Check merge readiness
|
|
56
|
+
- `/pr-describe` — Auto-generate description
|
|
57
|
+
- `/review` — Local code quality gates
|
|
58
|
+
- `/preflight` — Production readiness check
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Refactor code for better quality
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /refactor Command
|
|
6
|
+
|
|
7
|
+
Refactor code to improve quality and maintainability.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/refactor <file> # Refactor specific file
|
|
13
|
+
/refactor extract # Extract functions/components
|
|
14
|
+
/refactor rename # Rename with updates
|
|
15
|
+
/refactor cleanup # Remove dead code
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
/refactor src/services/user.service.ts
|
|
22
|
+
/refactor Extract common validation logic
|
|
23
|
+
/refactor Cleanup unused imports in utils/
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Principles
|
|
27
|
+
|
|
28
|
+
- Maintain functionality
|
|
29
|
+
- Improve readability
|
|
30
|
+
- Apply SOLID principles
|
|
31
|
+
- Reduce complexity
|
|
32
|
+
- Add missing tests
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Research technologies, best practices, or solutions
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /research Command
|
|
6
|
+
|
|
7
|
+
Conduct thorough research on a topic for informed decisions.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/research <topic>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Examples
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
/research React vs Vue for our use case
|
|
19
|
+
/research best authentication patterns for mobile
|
|
20
|
+
/research database options for high-write workloads
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Output
|
|
24
|
+
|
|
25
|
+
- Summary of findings
|
|
26
|
+
- Pros and cons comparison
|
|
27
|
+
- Recommendations
|
|
28
|
+
- Sources and references
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Explore and understand codebase structure
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /scout Command
|
|
6
|
+
|
|
7
|
+
Analyze and document codebase architecture.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/scout # Overview of entire project
|
|
13
|
+
/scout <path> # Explore specific directory
|
|
14
|
+
/scout <file> # Deep dive into file
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Examples
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
/scout src/services
|
|
21
|
+
/scout authentication module
|
|
22
|
+
/scout database schema
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Output
|
|
26
|
+
|
|
27
|
+
- File structure overview
|
|
28
|
+
- Key components identified
|
|
29
|
+
- Dependencies mapped
|
|
30
|
+
- Architecture patterns detected
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run security audit and vulnerability scan
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /security-scan Command
|
|
6
|
+
|
|
7
|
+
Scan codebase for security vulnerabilities.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/security-scan # Full security audit
|
|
13
|
+
/security-scan deps # Dependency vulnerabilities
|
|
14
|
+
/security-scan code # Code vulnerabilities
|
|
15
|
+
/security-scan secrets # Secret detection
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
/security-scan
|
|
22
|
+
/security-scan Check for hardcoded credentials
|
|
23
|
+
/security-scan Review authentication implementation
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Checks
|
|
27
|
+
|
|
28
|
+
- Dependency vulnerabilities (npm audit)
|
|
29
|
+
- Hardcoded secrets/credentials
|
|
30
|
+
- SQL injection risks
|
|
31
|
+
- XSS vulnerabilities
|
|
32
|
+
- Authentication weaknesses
|
|
33
|
+
- OWASP Top 10 compliance
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Setup project with kit configuration
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /setup Command
|
|
6
|
+
|
|
7
|
+
Initialize or configure the AI kit for a project.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/setup # Full setup
|
|
13
|
+
/setup <component> # Setup specific component
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Examples
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
/setup
|
|
20
|
+
/setup TypeScript
|
|
21
|
+
/setup Git hooks
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Setup Items
|
|
25
|
+
|
|
26
|
+
- Project structure
|
|
27
|
+
- TypeScript configuration
|
|
28
|
+
- ESLint/Prettier
|
|
29
|
+
- Git hooks
|
|
30
|
+
- CI/CD templates
|
|
31
|
+
- Testing setup
|