cokit-cli 1.2.4 → 1.2.7
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 +5 -16
- package/agents/brainstormer.agent.md +9 -2
- package/agents/code-reviewer.agent.md +59 -84
- package/agents/code-simplifier.agent.md +9 -6
- package/agents/debugger.agent.md +17 -8
- package/agents/docs-manager.agent.md +104 -8
- package/agents/fullstack-developer.agent.md +57 -13
- package/agents/git-manager.agent.md +2 -382
- package/agents/planner.agent.md +36 -8
- package/agents/researcher.agent.md +18 -3
- package/agents/tester.agent.md +13 -14
- package/agents/ui-ux-designer.agent.md +209 -33
- package/docs/README.md +4 -3
- package/docs/claudekit-porting-rules.md +182 -0
- package/docs/codebase-summary.md +11 -10
- package/docs/cokit-comprehensive-mapping-guide.md +5 -9
- package/docs/cokit-slides.md +3 -5
- package/docs/cokit-sync-and-maintenance-guide.md +2 -2
- package/docs/cokit-team-presentation.md +5 -7
- package/docs/guide-next-steps-speckit-cokit-implementation.md +1 -1
- package/docs/migration-guide.md +1 -1
- package/docs/project-overview-pdr.md +2 -2
- package/docs/project-roadmap.md +7 -8
- package/docs/system-architecture.md +1 -3
- package/package.json +1 -1
- package/prompts/ck-ask.prompt.md +1 -1
- package/prompts/ck-bootstrap.prompt.md +1 -1
- package/prompts/ck-cook.prompt.md +12 -12
- package/prompts/ck-plan-hard.prompt.md +1 -1
- package/prompts/ck-plan-red-team.prompt.md +227 -0
- package/prompts/ck-simplify.prompt.md +1 -1
- package/skills/code-review/SKILL.md +78 -28
- package/skills/cook/SKILL.md +45 -11
- package/skills/debug/SKILL.md +112 -17
- package/skills/fix/SKILL.md +20 -8
- package/skills/frontend-design/SKILL.md +6 -3
- package/skills/planning/SKILL.md +47 -15
- package/skills/research/SKILL.md +1 -1
- package/skills/scout/SKILL.md +24 -11
- package/skills/web-testing/SKILL.md +60 -6
- package/skills/web-testing/references/report-format.md +57 -0
- package/skills/web-testing/references/test-execution-workflow.md +118 -0
- package/skills/web-testing/references/ui-testing-workflow.md +97 -0
- package/src/commands/add.js +0 -1
- package/src/commands/doctor.js +2 -2
- package/src/commands/init.js +19 -28
- package/src/commands/update.js +1 -1
- package/templates/repo/.github/agents/brainstormer.agent.md +9 -2
- package/templates/repo/.github/agents/code-reviewer.agent.md +59 -84
- package/templates/repo/.github/agents/code-simplifier.agent.md +9 -6
- package/templates/repo/.github/agents/debugger.agent.md +17 -8
- package/templates/repo/.github/agents/docs-manager.agent.md +104 -8
- package/templates/repo/.github/agents/fullstack-developer.agent.md +57 -13
- package/templates/repo/.github/agents/git-manager.agent.md +2 -382
- package/templates/repo/.github/agents/planner.agent.md +36 -8
- package/templates/repo/.github/agents/researcher.agent.md +18 -3
- package/templates/repo/.github/agents/tester.agent.md +13 -14
- package/templates/repo/.github/agents/ui-ux-designer.agent.md +209 -33
- package/templates/repo/.github/prompts/ck-ask.prompt.md +1 -1
- package/templates/repo/.github/prompts/ck-bootstrap.prompt.md +1 -1
- package/templates/repo/.github/prompts/ck-cook.prompt.md +12 -12
- package/templates/repo/.github/prompts/ck-plan-fast.prompt.md +1 -0
- package/templates/repo/.github/prompts/ck-plan-hard.prompt.md +2 -1
- package/templates/repo/.github/prompts/ck-plan-red-team.prompt.md +227 -0
- package/templates/repo/.github/prompts/ck-plan.prompt.md +1 -0
- package/templates/repo/.github/prompts/ck-simplify.prompt.md +1 -1
- package/templates/repo/.github/prompts/ck-spec-specify.prompt.md +1 -0
- package/templates/repo/.github/skills/code-review/SKILL.md +78 -28
- package/templates/repo/.github/skills/cook/SKILL.md +45 -11
- package/templates/repo/.github/skills/debug/SKILL.md +112 -17
- package/templates/repo/.github/skills/fix/SKILL.md +20 -8
- package/templates/repo/.github/skills/frontend-design/SKILL.md +6 -3
- package/templates/repo/.github/skills/planning/SKILL.md +47 -15
- package/templates/repo/.github/skills/research/SKILL.md +1 -1
- package/templates/repo/.github/skills/scout/SKILL.md +24 -11
- package/templates/repo/.github/skills/web-testing/SKILL.md +60 -6
- package/templates/repo/.github/skills/web-testing/references/report-format.md +57 -0
- package/templates/repo/.github/skills/web-testing/references/test-execution-workflow.md +118 -0
- package/templates/repo/.github/skills/web-testing/references/ui-testing-workflow.md +97 -0
- package/prompts/ck-journal.prompt.md +0 -19
- package/prompts/ck-preview.prompt.md +0 -77
- package/templates/repo/.github/prompts/ck-journal.prompt.md +0 -19
- package/templates/repo/.github/prompts/ck-preview.prompt.md +0 -77
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: code-review
|
|
3
|
-
description: Review code quality, receive feedback with technical rigor, verify completion claims. Use before PRs, after implementing features, when claiming task completion, for agent reviews.
|
|
3
|
+
description: Review code quality, receive feedback with technical rigor, verify completion claims. Includes edge case scouting for multi-file features. Use before PRs, after implementing features, when claiming task completion, for agent reviews.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Code Review
|
|
@@ -9,13 +9,12 @@ Guide proper code review practices emphasizing technical rigor, evidence-based c
|
|
|
9
9
|
|
|
10
10
|
## Overview
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
Each practice has specific triggers and protocols detailed in reference files.
|
|
12
|
+
| Practice | When | Protocol |
|
|
13
|
+
|----------|------|----------|
|
|
14
|
+
| **Edge Case Scouting** | Before any review on 3+ file features | `/ck-scout` for hidden paths and untested scenarios |
|
|
15
|
+
| **Receiving Feedback** | Feedback from human or agent | READ → UNDERSTAND → VERIFY → EVALUATE → RESPOND → IMPLEMENT |
|
|
16
|
+
| **Requesting Reviews** | After each task, before merge, after major features | Delegate to `code-reviewer` agent |
|
|
17
|
+
| **Verification Gates** | Before any completion claim | Run command, read output, then claim |
|
|
19
18
|
|
|
20
19
|
## Core Principle
|
|
21
20
|
|
|
@@ -26,6 +25,15 @@ Always honoring **YAGNI**, **KISS**, and **DRY** principles.
|
|
|
26
25
|
|
|
27
26
|
## When to Use This Skill
|
|
28
27
|
|
|
28
|
+
### Edge Case Scouting
|
|
29
|
+
Trigger when:
|
|
30
|
+
- Feature touches 3+ files
|
|
31
|
+
- Implementing complex business logic
|
|
32
|
+
- Before requesting formal code review
|
|
33
|
+
- After implementation, before testing
|
|
34
|
+
|
|
35
|
+
**Reference:** `references/requesting-code-review.md`
|
|
36
|
+
|
|
29
37
|
### Receiving Feedback
|
|
30
38
|
Trigger when:
|
|
31
39
|
- Receiving code review comments from any source
|
|
@@ -61,35 +69,74 @@ Trigger when:
|
|
|
61
69
|
```
|
|
62
70
|
SITUATION?
|
|
63
71
|
│
|
|
72
|
+
├─ Multi-file feature (3+ files)?
|
|
73
|
+
│ └─ Run edge case scouting first → /ck-scout then request review
|
|
74
|
+
│
|
|
64
75
|
├─ Received feedback
|
|
65
76
|
│ ├─ Unclear items? → STOP, ask for clarification first
|
|
66
77
|
│ ├─ From human partner? → Understand, then implement
|
|
67
78
|
│ └─ From external reviewer? → Verify technically before implementing
|
|
68
79
|
│
|
|
69
80
|
├─ Completed work
|
|
70
|
-
│ ├─ Major feature/task? → Request code-reviewer agent review
|
|
71
|
-
│ └─ Before merge? → Request code-reviewer agent review
|
|
81
|
+
│ ├─ Major feature/task? → Request `code-reviewer` agent review
|
|
82
|
+
│ └─ Before merge? → Request `code-reviewer` agent review
|
|
72
83
|
│
|
|
73
84
|
└─ About to claim status
|
|
74
85
|
├─ Have fresh verification? → State claim WITH evidence
|
|
75
86
|
└─ No fresh verification? → RUN verification command first
|
|
76
87
|
```
|
|
77
88
|
|
|
89
|
+
## Edge Case Scouting
|
|
90
|
+
|
|
91
|
+
### When to Scout
|
|
92
|
+
Before formal review of any multi-file feature (3+ files changed).
|
|
93
|
+
|
|
94
|
+
### Process
|
|
95
|
+
1. Use `/ck-scout` to search for hidden code paths, edge inputs, error branches
|
|
96
|
+
2. Document untested scenarios found
|
|
97
|
+
3. Add tests or guards for critical edge cases
|
|
98
|
+
4. Then proceed to formal `code-reviewer` review
|
|
99
|
+
|
|
100
|
+
### What to Look For
|
|
101
|
+
- Null/undefined paths not covered by tests
|
|
102
|
+
- Error branches lacking handlers
|
|
103
|
+
- Boundary conditions (empty arrays, max values, concurrent calls)
|
|
104
|
+
- Async race conditions
|
|
105
|
+
- Permission/auth edge cases
|
|
106
|
+
|
|
107
|
+
## Task-Managed Review Pipeline (Multi-File Features)
|
|
108
|
+
|
|
109
|
+
For features spanning 3+ files, use a structured pipeline:
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
scout → review → fix → verify
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
**Steps:**
|
|
116
|
+
1. **Scout** - Use `/ck-scout` or `/ck-scout ext` to identify edge cases and gaps
|
|
117
|
+
2. **Review** - Delegate to `code-reviewer` agent with full context
|
|
118
|
+
3. **Fix** - Implement critical and important feedback
|
|
119
|
+
4. **Verify** - Run tests, confirm fixes, then claim completion
|
|
120
|
+
|
|
121
|
+
Track progress using a checklist in your plan or task notes:
|
|
122
|
+
```
|
|
123
|
+
- [ ] Edge case scouting complete
|
|
124
|
+
- [ ] `code-reviewer` review complete
|
|
125
|
+
- [ ] Critical issues fixed
|
|
126
|
+
- [ ] Verification passed
|
|
127
|
+
```
|
|
128
|
+
|
|
78
129
|
## Receiving Feedback Protocol
|
|
79
130
|
|
|
80
131
|
### Response Pattern
|
|
81
132
|
READ → UNDERSTAND → VERIFY → EVALUATE → RESPOND → IMPLEMENT
|
|
82
133
|
|
|
83
134
|
### Key Rules
|
|
84
|
-
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
-
|
|
89
|
-
|
|
90
|
-
### Source Handling
|
|
91
|
-
- **Human partner:** Trusted - implement after understanding, no performative agreement
|
|
92
|
-
- **External reviewers:** Verify technically correct, check for breakage, push back if wrong
|
|
135
|
+
- No performative agreement: "You're absolutely right!", "Great point!", "Thanks for [anything]"
|
|
136
|
+
- No implementation before verification
|
|
137
|
+
- Restate requirement, ask questions, push back with technical reasoning, or just start working
|
|
138
|
+
- If unclear: STOP and ask for clarification on ALL unclear items first
|
|
139
|
+
- YAGNI check: search for usage before implementing suggested "proper" features
|
|
93
140
|
|
|
94
141
|
**Full protocol:** `references/code-review-reception.md`
|
|
95
142
|
|
|
@@ -101,9 +148,10 @@ READ → UNDERSTAND → VERIFY → EVALUATE → RESPOND → IMPLEMENT
|
|
|
101
148
|
- Before merge to main
|
|
102
149
|
|
|
103
150
|
### Process
|
|
104
|
-
1.
|
|
105
|
-
2.
|
|
106
|
-
3.
|
|
151
|
+
1. Scout edge cases (3+ file features): use `/ck-scout` first
|
|
152
|
+
2. Get git SHAs: `BASE_SHA=$(git rev-parse HEAD~1)` and `HEAD_SHA=$(git rev-parse HEAD)`
|
|
153
|
+
3. Delegate to `code-reviewer` agent with: WHAT_WAS_IMPLEMENTED, PLAN_OR_REQUIREMENTS, BASE_SHA, HEAD_SHA, DESCRIPTION
|
|
154
|
+
4. Act on feedback: Fix Critical immediately, Important before proceeding, note Minor for later
|
|
107
155
|
|
|
108
156
|
**Full protocol:** `references/requesting-code-review.md`
|
|
109
157
|
|
|
@@ -130,14 +178,16 @@ Using "should"/"probably"/"seems to", expressing satisfaction before verificatio
|
|
|
130
178
|
|
|
131
179
|
## Integration with Workflows
|
|
132
180
|
|
|
133
|
-
- **Agent-Driven:**
|
|
134
|
-
- **Pull Requests:**
|
|
181
|
+
- **Agent-Driven:** Scout edge cases first (3+ files), review after EACH task, verify before moving to next
|
|
182
|
+
- **Pull Requests:** Scout → verify tests pass → request `code-reviewer` review before merge
|
|
135
183
|
- **General:** Apply verification gates before any status claims, push back on invalid feedback
|
|
184
|
+
- **Pipeline:** For complex features use the full `scout → review → fix → verify` pipeline
|
|
136
185
|
|
|
137
186
|
## Bottom Line
|
|
138
187
|
|
|
139
|
-
1.
|
|
140
|
-
2.
|
|
141
|
-
3.
|
|
188
|
+
1. **Scout first** - Edge cases found before review save rework cycles
|
|
189
|
+
2. Technical rigor over social performance - No performative agreement
|
|
190
|
+
3. Systematic review processes - Use `code-reviewer` agent via pipeline
|
|
191
|
+
4. Evidence before claims - Verification gates always
|
|
142
192
|
|
|
143
|
-
Verify. Question. Then implement. Evidence. Then claim.
|
|
193
|
+
Scout. Verify. Question. Then implement. Evidence. Then claim.
|
|
@@ -15,12 +15,13 @@ End-to-end implementation with automatic workflow detection.
|
|
|
15
15
|
/cook <natural language task OR plan path>
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
**Optional flags:** `--fast`, `--parallel`, `--no-test`, `--auto`
|
|
18
|
+
**Optional flags:** `--fast`, `--parallel`, `--no-test`, `--auto`, `--interactive`
|
|
19
19
|
|
|
20
20
|
Example:
|
|
21
21
|
```
|
|
22
22
|
/cook "Add user authentication to the app" --fast
|
|
23
23
|
/cook path/to/plan.md --auto
|
|
24
|
+
/cook "Fix login bug" --interactive
|
|
24
25
|
```
|
|
25
26
|
|
|
26
27
|
## Smart Intent Detection
|
|
@@ -32,6 +33,7 @@ Example:
|
|
|
32
33
|
| Contains "trust me", "auto" | auto | Auto-approve all steps |
|
|
33
34
|
| Lists 3+ features OR "parallel" | parallel | Multi-agent execution |
|
|
34
35
|
| Contains "no test", "skip test" | no-test | Skip testing step |
|
|
36
|
+
| `--interactive` flag (explicit) | interactive | Full workflow with user input |
|
|
35
37
|
| Default | interactive | Full workflow with user input |
|
|
36
38
|
|
|
37
39
|
See `references/intent-detection.md` for detection logic.
|
|
@@ -71,19 +73,51 @@ Human review required at these checkpoints (skipped with `--auto`):
|
|
|
71
73
|
**Always enforced (all modes):**
|
|
72
74
|
- **Testing:** 100% pass required (unless no-test mode)
|
|
73
75
|
- **Code Review:** User approval OR auto-approve (score≥9.5, 0 critical)
|
|
74
|
-
- **Finalize:**
|
|
76
|
+
- **Finalize:** docs-manager MUST complete
|
|
75
77
|
|
|
76
78
|
## Required Agents
|
|
77
79
|
|
|
78
|
-
| Phase | Agent |
|
|
79
|
-
|
|
80
|
-
| Research | `researcher` (parallel, optional in fast) |
|
|
81
|
-
| Scout | `scout` |
|
|
82
|
-
| Plan | `planner` |
|
|
83
|
-
| UI Work | `ui-ux-designer` |
|
|
84
|
-
| Testing | `tester`, `debugger` |
|
|
85
|
-
| Review | `code-reviewer` |
|
|
86
|
-
| Finalize | `
|
|
80
|
+
| Phase | Agent | Requirement |
|
|
81
|
+
|-------|-------|-------------|
|
|
82
|
+
| Research | `researcher` agent (parallel, optional in fast) | Spawn as needed |
|
|
83
|
+
| Scout | `scout` agent | Spawn for codebase search |
|
|
84
|
+
| Plan | `planner` agent | MUST spawn |
|
|
85
|
+
| UI Work | `ui-ux-designer` agent | Spawn when frontend work exists |
|
|
86
|
+
| Testing | `tester`, `debugger` agents | MUST spawn |
|
|
87
|
+
| Review | `code-reviewer` agent | MUST spawn |
|
|
88
|
+
| Finalize | `docs-manager`, `git-manager` agents | MUST spawn |
|
|
89
|
+
|
|
90
|
+
## Implementation Progress Tracking
|
|
91
|
+
|
|
92
|
+
During Step 3 (Implementation), track progress using a todo list/checklist in the active plan or phase file:
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
- [ ] Phase 1: Setup environment
|
|
96
|
+
- [ ] Phase 2: Database models
|
|
97
|
+
- [ ] Phase 3: API endpoints
|
|
98
|
+
- [ ] Phase 4: UI components
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Update each item as completed. This replaces task management tooling with simple markdown tracking visible in the plan.
|
|
102
|
+
|
|
103
|
+
## CRITICAL ENFORCEMENT
|
|
104
|
+
|
|
105
|
+
**Steps 4 (Testing), 5 (Code Review), and 6 (Finalize) MUST delegate to agents. DO NOT implement testing, review, or finalization yourself.**
|
|
106
|
+
|
|
107
|
+
- Step 4: Always delegate to `tester` agent. If failures, delegate to `debugger` agent, then re-delegate to `tester`.
|
|
108
|
+
- Step 5: Always delegate to `code-reviewer` agent. Never self-review.
|
|
109
|
+
- Step 6: Always delegate to `docs-manager` agent for doc updates.
|
|
110
|
+
|
|
111
|
+
## Finalize Step (MANDATORY)
|
|
112
|
+
|
|
113
|
+
Step 6 is not optional. All four actions MUST complete:
|
|
114
|
+
|
|
115
|
+
1. Update plan/phase status to completed in plan files
|
|
116
|
+
2. Delegate to `docs-manager` agent → review and update `./docs` if implementation changed APIs, architecture, or behavior
|
|
117
|
+
3. Mark all todo checklist items complete in the active plan
|
|
118
|
+
4. Ask the user: "Would you like to commit these changes via `git-manager` agent?"
|
|
119
|
+
|
|
120
|
+
**Never skip finalize**, even in fast or auto mode.
|
|
87
121
|
|
|
88
122
|
## References
|
|
89
123
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: debug
|
|
3
|
-
description: Debug systematically with root cause analysis before fixes.
|
|
4
|
-
languages: all
|
|
3
|
+
description: Debug systematically with root cause analysis before fixes. Covers bugs, test failures, log analysis, CI/CD failures, database diagnostics, system investigation, performance issues, call stack tracing, multi-layer validation.
|
|
5
4
|
---
|
|
6
5
|
|
|
7
|
-
# Debugging
|
|
6
|
+
# Debugging & System Investigation
|
|
8
7
|
|
|
9
|
-
Comprehensive debugging framework combining systematic investigation, root cause tracing, defense-in-depth validation, and
|
|
8
|
+
Comprehensive debugging framework combining systematic investigation, root cause tracing, defense-in-depth validation, verification protocols, and system-level diagnostics.
|
|
10
9
|
|
|
11
10
|
## Core Principle
|
|
12
11
|
|
|
@@ -16,29 +15,29 @@ Random fixes waste time and create new bugs. Find the root cause, fix at source,
|
|
|
16
15
|
|
|
17
16
|
## When to Use
|
|
18
17
|
|
|
19
|
-
**
|
|
18
|
+
**Code-level:** Test failures, bugs, unexpected behavior, build failures, integration problems, before claiming work complete
|
|
19
|
+
|
|
20
|
+
**System-level:** CI/CD pipeline failures, log analysis, database diagnostics, performance bottlenecks, infrastructure issues
|
|
20
21
|
|
|
21
22
|
**Especially when:** Under time pressure, "quick fix" seems obvious, tried multiple fixes, don't fully understand issue, about to claim success
|
|
22
23
|
|
|
23
|
-
##
|
|
24
|
+
## Techniques
|
|
24
25
|
|
|
25
26
|
### 1. Systematic Debugging (`references/systematic-debugging.md`)
|
|
26
27
|
|
|
27
|
-
Four-phase framework
|
|
28
|
+
Four-phase framework:
|
|
28
29
|
- Phase 1: Root Cause Investigation (read errors, reproduce, check changes, gather evidence)
|
|
29
30
|
- Phase 2: Pattern Analysis (find working examples, compare, identify differences)
|
|
30
31
|
- Phase 3: Hypothesis and Testing (form theory, test minimally, verify)
|
|
31
32
|
- Phase 4: Implementation (create test, fix once, verify)
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
Complete each phase before proceeding. No fixes without Phase 1.
|
|
34
35
|
|
|
35
36
|
**Load when:** Any bug/issue requiring investigation and fix
|
|
36
37
|
|
|
37
38
|
### 2. Root Cause Tracing (`references/root-cause-tracing.md`)
|
|
38
39
|
|
|
39
|
-
Trace bugs backward through call stack to find original trigger.
|
|
40
|
-
|
|
41
|
-
**Technique:** When error appears deep in execution, trace backward level-by-level until finding source where invalid data originated. Fix at source, not at symptom.
|
|
40
|
+
Trace bugs backward through call stack to find original trigger. Fix at source, not at symptom.
|
|
42
41
|
|
|
43
42
|
**Includes:** `scripts/find-polluter.sh` for bisecting test pollution
|
|
44
43
|
|
|
@@ -46,9 +45,7 @@ Trace bugs backward through call stack to find original trigger.
|
|
|
46
45
|
|
|
47
46
|
### 3. Defense-in-Depth (`references/defense-in-depth.md`)
|
|
48
47
|
|
|
49
|
-
Validate at every layer data passes through.
|
|
50
|
-
|
|
51
|
-
**Four layers:** Entry validation → Business logic → Environment guards → Debug instrumentation
|
|
48
|
+
Validate at every layer data passes through. Four layers: Entry validation → Business logic → Environment guards → Debug instrumentation
|
|
52
49
|
|
|
53
50
|
**Load when:** After finding root cause, need to add comprehensive validation
|
|
54
51
|
|
|
@@ -58,19 +55,117 @@ Run verification commands and confirm output before claiming success.
|
|
|
58
55
|
|
|
59
56
|
**Iron law:** NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE
|
|
60
57
|
|
|
61
|
-
Run the command. Read the output. Then claim the result.
|
|
62
|
-
|
|
63
58
|
**Load when:** About to claim work complete, fixed, or passing
|
|
64
59
|
|
|
60
|
+
### 5. Investigation Methodology
|
|
61
|
+
|
|
62
|
+
For system-level issues (CI/CD, infrastructure, data pipeline):
|
|
63
|
+
|
|
64
|
+
1. **Scope** - Define what is broken and what is working
|
|
65
|
+
2. **Gather** - Collect logs, metrics, error outputs before touching anything
|
|
66
|
+
3. **Isolate** - Narrow to smallest reproducible case
|
|
67
|
+
4. **Hypothesize** - Form one theory, test it, reject or confirm
|
|
68
|
+
5. **Fix & Validate** - Fix at root, verify at every affected layer
|
|
69
|
+
|
|
70
|
+
**Load when:** Issue is not code-local — spans services, environments, or pipelines
|
|
71
|
+
|
|
72
|
+
### 6. Log & CI/CD Analysis
|
|
73
|
+
|
|
74
|
+
Use `gh` CLI and structured queries to diagnose pipeline failures:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
# View failed CI run logs
|
|
78
|
+
gh run view <run-id> --log-failed
|
|
79
|
+
|
|
80
|
+
# List recent runs for a workflow
|
|
81
|
+
gh run list --workflow=<name> --limit 10
|
|
82
|
+
|
|
83
|
+
# Watch a running workflow
|
|
84
|
+
gh run watch <run-id>
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
For structured logs: filter by severity, timestamp range, and correlation ID before reading raw output.
|
|
88
|
+
|
|
89
|
+
**Load when:** CI/CD failure, deployment issue, or log-driven investigation
|
|
90
|
+
|
|
91
|
+
### 7. Performance Diagnostics
|
|
92
|
+
|
|
93
|
+
Identify bottlenecks before optimizing:
|
|
94
|
+
- Profile first — measure before guessing
|
|
95
|
+
- Check slow queries with `EXPLAIN ANALYZE` (PostgreSQL) or equivalent
|
|
96
|
+
- Identify N+1 query patterns in ORM usage
|
|
97
|
+
- Check memory allocation patterns for leaks
|
|
98
|
+
- Use `psql` for live database diagnostics
|
|
99
|
+
|
|
100
|
+
**Load when:** Slowness reported, timeout errors, resource exhaustion
|
|
101
|
+
|
|
102
|
+
### 8. Reporting Standards
|
|
103
|
+
|
|
104
|
+
For multi-component investigations, write a structured diagnostic report:
|
|
105
|
+
|
|
106
|
+
```
|
|
107
|
+
## Diagnostic Report
|
|
108
|
+
- **Issue:** [one-line description]
|
|
109
|
+
- **Root Cause:** [where and why it fails]
|
|
110
|
+
- **Evidence:** [logs, output, reproduction steps]
|
|
111
|
+
- **Fix Applied:** [what was changed]
|
|
112
|
+
- **Verification:** [command run + result]
|
|
113
|
+
- **Remaining Risk:** [any open questions]
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Save to `plans/reports/debugger-{date}-{slug}.md`.
|
|
117
|
+
|
|
118
|
+
**Load when:** Investigation spans multiple components or will be shared with others
|
|
119
|
+
|
|
120
|
+
### 9. Task Management
|
|
121
|
+
|
|
122
|
+
For multi-component investigations, track progress with a checklist rather than holding state mentally:
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
- [ ] Reproduce the issue
|
|
126
|
+
- [ ] Identify root cause
|
|
127
|
+
- [ ] Fix applied
|
|
128
|
+
- [ ] Tests passing
|
|
129
|
+
- [ ] Verification complete
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Add this checklist to the active plan or investigation report. Check items off as each step completes.
|
|
133
|
+
|
|
134
|
+
**Load when:** Investigation touches 3+ components or files
|
|
135
|
+
|
|
136
|
+
### 10. Frontend Verification
|
|
137
|
+
|
|
138
|
+
For visual bugs or UI regressions, use browser developer tools (or the `agent-browser` skill) to inspect rendering, network, and console errors directly in the browser.
|
|
139
|
+
|
|
140
|
+
Use `/ck-scout ext` to search for frontend-specific patterns before diving into devtools.
|
|
141
|
+
|
|
142
|
+
**Load when:** Visual regression, layout bug, client-side network error, or UI behavior that differs from expected
|
|
143
|
+
|
|
65
144
|
## Quick Reference
|
|
66
145
|
|
|
67
146
|
```
|
|
68
|
-
|
|
147
|
+
Code bug → systematic-debugging.md (Phase 1-4)
|
|
69
148
|
Error deep in stack? → root-cause-tracing.md (trace backward)
|
|
70
149
|
Found root cause? → defense-in-depth.md (add layers)
|
|
71
150
|
About to claim success? → verification.md (verify first)
|
|
151
|
+
|
|
152
|
+
System issue → Investigation Methodology (5 steps)
|
|
153
|
+
CI/CD failure? → Log & CI/CD Analysis (gh CLI)
|
|
154
|
+
Slow/timeout? → Performance Diagnostics
|
|
155
|
+
Multi-component? → Task Management checklist + Reporting Standards
|
|
156
|
+
Visual/UI bug? → Frontend Verification (agent-browser / browser devtools)
|
|
72
157
|
```
|
|
73
158
|
|
|
159
|
+
## Tools Integration
|
|
160
|
+
|
|
161
|
+
| Tool | Use Case |
|
|
162
|
+
|------|----------|
|
|
163
|
+
| `execute` | Run test commands, build scripts, verification steps |
|
|
164
|
+
| `gh` CLI | CI/CD log analysis, PR checks, workflow runs |
|
|
165
|
+
| `psql` | Live database diagnostics and slow query analysis |
|
|
166
|
+
| `agent-browser` skill | Frontend visual verification and network inspection |
|
|
167
|
+
| `/ck-scout` | Search codebase for related patterns before investigating |
|
|
168
|
+
|
|
74
169
|
## Red Flags
|
|
75
170
|
|
|
76
171
|
Stop and follow process if thinking:
|
|
@@ -12,6 +12,7 @@ Unified skill for fixing issues of any complexity with intelligent routing.
|
|
|
12
12
|
- `--auto` - Activate autonomous mode (**default**)
|
|
13
13
|
- `--review` - Activate human-in-the-loop review mode
|
|
14
14
|
- `--quick` - Activate quick mode
|
|
15
|
+
- `--parallel` - Fix 2+ independent issues concurrently using parallel agents
|
|
15
16
|
|
|
16
17
|
## Workflow
|
|
17
18
|
|
|
@@ -31,10 +32,10 @@ See `references/mode-selection.md` for question format.
|
|
|
31
32
|
|
|
32
33
|
- Activate `debug` skill.
|
|
33
34
|
- Guess all possible root causes.
|
|
34
|
-
-
|
|
35
|
+
- Spawn multiple parallel search agents to verify each hypothesis.
|
|
35
36
|
- Create report with all findings for the next step.
|
|
36
37
|
|
|
37
|
-
### Step 3: Complexity Assessment &
|
|
38
|
+
### Step 3: Complexity Assessment & Task Orchestration
|
|
38
39
|
|
|
39
40
|
Classify before routing. See `references/complexity-assessment.md`.
|
|
40
41
|
|
|
@@ -45,17 +46,27 @@ Classify before routing. See `references/complexity-assessment.md`.
|
|
|
45
46
|
| **Complex** | System-wide, architecture impact | `references/workflow-deep.md` |
|
|
46
47
|
| **Parallel** | 2+ independent issues | Parallel `fullstack-developer` agents |
|
|
47
48
|
|
|
48
|
-
|
|
49
|
+
**Task orchestration notes:**
|
|
50
|
+
- **Quick workflow:** Skip task creation — proceed directly to fix.
|
|
51
|
+
- **Moderate+ workflows:** After classifying, create a todo checklist for all phases upfront with dependencies before starting any implementation. Track each phase with checkboxes and note blockers inline.
|
|
52
|
+
|
|
53
|
+
See `references/task-orchestration.md` for checklist structure and dependency tracking patterns.
|
|
54
|
+
|
|
55
|
+
### Step 4: Fix Implementation & Verification
|
|
49
56
|
|
|
50
57
|
- Read and analyze all the implemented changes.
|
|
51
|
-
-
|
|
58
|
+
- Spawn multiple parallel search agents to verify no regressions in related code.
|
|
52
59
|
- Make sure these fixes don't break other parts of the codebase.
|
|
53
60
|
- Prevent future issues by adding comprehensive validation.
|
|
54
61
|
|
|
55
62
|
### Step 5: Finalize
|
|
56
63
|
|
|
57
|
-
|
|
58
|
-
|
|
64
|
+
**MANDATORY — always execute all steps:**
|
|
65
|
+
|
|
66
|
+
1. Report summary to user with confidence score (0–10), all changes, and related files.
|
|
67
|
+
2. Update `./docs` via ``docs-manager`` agent (NON-OPTIONAL — always run even for small fixes).
|
|
68
|
+
3. Mark all checklist tasks complete.
|
|
69
|
+
4. Ask user to commit via ``git-manager`` agent.
|
|
59
70
|
|
|
60
71
|
---
|
|
61
72
|
|
|
@@ -65,8 +76,8 @@ See `references/skill-activation-matrix.md` for complete matrix.
|
|
|
65
76
|
|
|
66
77
|
**Always activate:** `debug` (all workflows)
|
|
67
78
|
**Conditional:** `problem-solving`, `sequential-thinking`, `brainstorming`, `context-engineering`
|
|
68
|
-
**Agents:**
|
|
69
|
-
**Parallel:** Multiple parallel
|
|
79
|
+
**Agents:** ``debugger``, ``researcher``, ``planner``, ``code-reviewer``, ``tester``
|
|
80
|
+
**Parallel patterns:** Multiple parallel search agents for scouting; parallel terminal commands for verification; parallel ``fullstack-developer`` agents for independent issues (`--parallel` flag)
|
|
70
81
|
|
|
71
82
|
## Output Format
|
|
72
83
|
|
|
@@ -85,6 +96,7 @@ Unified step markers:
|
|
|
85
96
|
Load as needed:
|
|
86
97
|
- `references/mode-selection.md` - Mode selection question format
|
|
87
98
|
- `references/complexity-assessment.md` - Classification criteria
|
|
99
|
+
- `references/task-orchestration.md` - Todo checklist structure and dependency tracking
|
|
88
100
|
- `references/workflow-quick.md` - Quick: debug → fix → review
|
|
89
101
|
- `references/workflow-standard.md` - Standard: full pipeline
|
|
90
102
|
- `references/workflow-deep.md` - Deep: research + brainstorm + plan
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: frontend-design
|
|
3
|
-
description: Create polished frontend interfaces from designs/screenshots. Use for web components, replicating UI designs, quick prototypes, avoiding AI slop.
|
|
3
|
+
description: Create polished frontend interfaces from designs/screenshots/videos. Use for web components, replicating UI designs, quick prototypes, 3D experiences, immersive interfaces, avoiding AI slop.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
Create distinctive, production-grade frontend interfaces. Implement real working code with exceptional aesthetic attention.
|
|
@@ -12,15 +12,18 @@ Choose workflow based on input type:
|
|
|
12
12
|
| Input | Workflow | Reference |
|
|
13
13
|
|-------|----------|-----------|
|
|
14
14
|
| Screenshot | Replicate exactly | `./references/workflow-screenshot.md` |
|
|
15
|
+
| Video | Replicate with animations | `./references/workflow-video.md` |
|
|
15
16
|
| Quick task | Rapid implementation | `./references/workflow-quick.md` |
|
|
16
17
|
| Describe only | Document for devs | `./references/workflow-describe.md` |
|
|
18
|
+
| 3D/WebGL request | Three.js immersive | `./references/workflow-3d.md` |
|
|
19
|
+
| Complex/award-quality | Full immersive | `./references/workflow-immersive.md` |
|
|
17
20
|
| From scratch | Design Thinking below | - |
|
|
18
21
|
|
|
19
22
|
**All workflows**: Activate `ui-styling` skill FIRST for design patterns and component library.
|
|
20
23
|
|
|
21
24
|
## Screenshot/Video Replication (Quick Reference)
|
|
22
25
|
|
|
23
|
-
1. **Analyze** visually - extract colors, fonts, spacing, effects
|
|
26
|
+
1. **Analyze** visually (use `ai-multimodal` skill if available) - extract colors, fonts, spacing, effects
|
|
24
27
|
2. **Plan** with `ui-ux-designer` agent - create phased implementation
|
|
25
28
|
3. **Implement** - match source precisely
|
|
26
29
|
4. **Verify** - compare to original
|
|
@@ -45,7 +48,7 @@ Before coding, commit to a BOLD aesthetic direction:
|
|
|
45
48
|
- **Motion**: CSS-first, anime.js for complex (`./references/animejs.md`). Orchestrated page loads > scattered micro-interactions.
|
|
46
49
|
- **Spatial**: Unexpected layouts. Asymmetry. Overlap. Negative space OR controlled density.
|
|
47
50
|
- **Backgrounds**: Atmosphere over solid colors. Gradients, noise, patterns, shadows, grain.
|
|
48
|
-
- **Assets**: Process with ImageMagick, FFmpeg, RMBG CLI tools
|
|
51
|
+
- **Assets**: Process with ImageMagick, FFmpeg, RMBG CLI tools (or `ai-multimodal`/`media-processing` skills if available)
|
|
49
52
|
|
|
50
53
|
## Asset & Analysis References
|
|
51
54
|
|
|
@@ -7,6 +7,22 @@ description: Plan implementations, design architectures, create technical roadma
|
|
|
7
7
|
|
|
8
8
|
Create detailed technical implementation plans through research, codebase analysis, solution design, and comprehensive documentation.
|
|
9
9
|
|
|
10
|
+
## Workflow Modes
|
|
11
|
+
|
|
12
|
+
Default: `--auto` — analyze the task and auto-pick the most appropriate mode.
|
|
13
|
+
|
|
14
|
+
| Flag | Research | Red Team | Validation | Cook Flag |
|
|
15
|
+
|------|----------|----------|------------|-----------|
|
|
16
|
+
| `--auto` | Auto | Auto | Auto | auto |
|
|
17
|
+
| `--fast` | Skip | Skip | Skip | fast |
|
|
18
|
+
| `--hard` | Full | Yes | Yes | hard |
|
|
19
|
+
| `--parallel` | Parallel | Yes | Yes | parallel |
|
|
20
|
+
| `--two` | Full | Yes | Yes | two |
|
|
21
|
+
|
|
22
|
+
Add `--no-tasks` to any mode to skip todo checklist hydration after the plan is written.
|
|
23
|
+
|
|
24
|
+
See `references/workflow-modes.md` for detailed mode behavior.
|
|
25
|
+
|
|
10
26
|
## When to Use
|
|
11
27
|
|
|
12
28
|
Use this skill when:
|
|
@@ -41,12 +57,15 @@ Load: `references/output-standards.md`
|
|
|
41
57
|
|
|
42
58
|
## Workflow Process
|
|
43
59
|
|
|
44
|
-
1. **
|
|
45
|
-
2. **
|
|
46
|
-
3. **
|
|
47
|
-
4. **
|
|
48
|
-
5. **Plan Documentation** → Write comprehensive plan
|
|
49
|
-
6. **
|
|
60
|
+
1. **Pre-Creation Check** → Check `## Plan Context` from hook injection; follow Active Plan State rules below.
|
|
61
|
+
2. **Mode Detection** → Use explicit flag if provided; otherwise auto-detect based on task complexity.
|
|
62
|
+
3. **Research Phase** → Spawn parallel researcher agents to investigate approaches (skip in `--fast` mode).
|
|
63
|
+
4. **Codebase Analysis** → Read docs in `./docs`; activate `/ck-scout` if file relationships are unclear.
|
|
64
|
+
5. **Plan Documentation** → Write comprehensive plan via `planner` agent using the directory structure below.
|
|
65
|
+
6. **Red Team Review** → Spawn adversarial reviewers to challenge assumptions (`--hard`, `--parallel`, `--two` modes only). See `references/workflow-modes.md`.
|
|
66
|
+
7. **Post-Plan Validation** → Use `/ck-plan-validate` to verify completeness and coherence (`--hard`, `--parallel`, `--two` modes only).
|
|
67
|
+
8. **Hydrate Tasks** → Create a todo checklist from plan phases with dependency annotations (default on; skip with `--no-tasks` or fewer than 3 phases).
|
|
68
|
+
9. **Context Reminder** → Output the cook command with the absolute plan path (MANDATORY): `Use plan at: {absolute-plan-dir-path}`
|
|
50
69
|
|
|
51
70
|
## Output Requirements
|
|
52
71
|
|
|
@@ -57,13 +76,15 @@ Load: `references/output-standards.md`
|
|
|
57
76
|
- Provide multiple options with trade-offs when appropriate
|
|
58
77
|
- Fully respect the `./docs/development-rules.md` file.
|
|
59
78
|
|
|
60
|
-
## Task
|
|
79
|
+
## Task Management
|
|
61
80
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
81
|
+
Plan files are persistent on disk. Todo checklists are session-scoped. Hydration bridges the gap by converting plan phases into trackable checklist items at plan-creation time.
|
|
82
|
+
|
|
83
|
+
- **Default:** Auto-hydrate after plan is written (create checklist with one item per phase).
|
|
84
|
+
- **Skip with:** `--no-tasks` flag or when plan has fewer than 3 phases (3-Task Rule).
|
|
85
|
+
- **Checklist format:** Include phase name, dependencies, and owning agent hint per item.
|
|
86
|
+
|
|
87
|
+
See `references/task-management.md` for checklist schema and dependency notation.
|
|
67
88
|
|
|
68
89
|
### Important
|
|
69
90
|
DO NOT create plans or reports in USER directory.
|
|
@@ -95,8 +116,8 @@ Prevents version proliferation by tracking current working plan via session stat
|
|
|
95
116
|
### Active vs Suggested Plans
|
|
96
117
|
|
|
97
118
|
Check the `## Plan Context` section injected by hooks:
|
|
98
|
-
- **"Plan: {path}"** = Active plan, explicitly set via `set-active-plan.cjs`
|
|
99
|
-
- **"Suggested: {path}"** = Branch-matched
|
|
119
|
+
- **"Plan: {path}"** = Active plan, explicitly set via `set-active-plan.cjs` — use this path for all reports
|
|
120
|
+
- **"Suggested: {path}"** = Branch-matched hint only — do NOT auto-use
|
|
100
121
|
- **"Plan: none"** = No active plan
|
|
101
122
|
|
|
102
123
|
### Rules
|
|
@@ -117,7 +138,7 @@ All agents writing reports MUST:
|
|
|
117
138
|
DO NOT create plans or reports in USER directory.
|
|
118
139
|
ALWAYS create plans or reports in CURRENT WORKING PROJECT DIRECTORY.
|
|
119
140
|
|
|
120
|
-
**Important:** Suggested plans do NOT get plan-specific reports
|
|
141
|
+
**Important:** Suggested plans do NOT get plan-specific reports — this prevents pollution of old plan folders.
|
|
121
142
|
|
|
122
143
|
## Quality Standards
|
|
123
144
|
|
|
@@ -129,3 +150,14 @@ ALWAYS create plans or reports in CURRENT WORKING PROJECT DIRECTORY.
|
|
|
129
150
|
- Validate against existing codebase patterns
|
|
130
151
|
|
|
131
152
|
**Remember:** Plan quality determines implementation success. Be comprehensive and consider all solution aspects.
|
|
153
|
+
|
|
154
|
+
## References
|
|
155
|
+
|
|
156
|
+
Load as needed:
|
|
157
|
+
- `references/workflow-modes.md` - Mode behavior details and flag descriptions
|
|
158
|
+
- `references/task-management.md` - Checklist schema, dependency notation, hydration rules
|
|
159
|
+
- `references/research-phase.md` - Research phase execution
|
|
160
|
+
- `references/codebase-understanding.md` - Codebase analysis steps
|
|
161
|
+
- `references/solution-design.md` - Solution design process
|
|
162
|
+
- `references/plan-organization.md` - Plan file structure and organization
|
|
163
|
+
- `references/output-standards.md` - Task breakdown and output format standards
|
|
@@ -24,7 +24,7 @@ You will employ a multi-source research strategy:
|
|
|
24
24
|
|
|
25
25
|
1. **Search Strategy**:
|
|
26
26
|
- **Gemini Toggle**: Check `$HOME/.copilot/.ck.json` (or `~/.copilot/.ck.json`) for `skills.research.useGemini` (default: `true`). If `false`, skip Gemini and use WebSearch.
|
|
27
|
-
- **Gemini Model**: Read from `$HOME/.copilot/.ck.json`: `gemini.model` (default: `gemini-3
|
|
27
|
+
- **Gemini Model**: Read from `$HOME/.copilot/.ck.json`: `gemini.model` (default: `gemini-3-flash-preview`)
|
|
28
28
|
- If `useGemini` is enabled and `gemini` bash command is available, execute `gemini -y -m <gemini.model> "...your search prompt..."` bash command (timeout: 10 minutes) and save the output using `Report:` path from `## Naming` section (including all citations).
|
|
29
29
|
- If `useGemini` is disabled or `gemini` bash command is not available, use `WebSearch` tool.
|
|
30
30
|
- Run multiple `gemini` bash commands or `WebSearch` tools in parallel to search for relevant information.
|