cokit-cli 1.2.0 → 1.2.2
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 +47 -36
- package/agents/brainstormer.agent.md +1 -1
- package/agents/debugger.agent.md +1 -1
- package/agents/docs-manager.agent.md +2 -2
- package/agents/git-manager.agent.md +5 -5
- package/agents/planner.agent.md +3 -3
- package/agents/researcher.agent.md +0 -1
- package/agents/scout.agent.md +9 -9
- package/agents/ui-ux-designer.agent.md +0 -1
- package/collections/ck-orchestration.collection.yml +2 -2
- package/docs/README.md +8 -8
- package/docs/codebase-summary.md +19 -19
- package/docs/cokit-commands-usage-guide.md +42 -43
- package/docs/cokit-comprehensive-mapping-guide.md +15 -15
- package/docs/cokit-slides.md +6 -6
- package/docs/cokit-sync-and-maintenance-guide.md +45 -45
- package/docs/cokit-team-presentation.md +11 -11
- package/docs/copilot-processing-flow.md +11 -11
- package/docs/guide-next-steps-speckit-cokit-implementation.md +1 -1
- package/docs/migration-guide.md +9 -9
- package/docs/project-overview-pdr.md +3 -3
- package/docs/project-roadmap.md +7 -7
- package/docs/system-architecture.md +6 -6
- package/package.json +1 -1
- package/prompts/ck-ask.prompt.md +3 -2
- package/prompts/ck-bootstrap.prompt.md +26 -32
- package/prompts/ck-brainstorm.prompt.md +4 -3
- package/prompts/ck-cook.prompt.md +5 -4
- package/prompts/ck-debug.prompt.md +4 -3
- package/prompts/ck-docs.prompt.md +4 -3
- package/prompts/ck-fix-ci.prompt.md +46 -0
- package/prompts/ck-fix-fast.prompt.md +44 -0
- package/prompts/ck-fix-hard.prompt.md +60 -0
- package/prompts/ck-fix-logs.prompt.md +53 -0
- package/prompts/ck-fix-test.prompt.md +47 -0
- package/prompts/ck-fix-types.prompt.md +29 -0
- package/prompts/ck-fix-ui.prompt.md +50 -0
- package/prompts/ck-fix.prompt.md +13 -15
- package/prompts/ck-git.prompt.md +2 -2
- package/prompts/ck-help.prompt.md +8 -6
- package/prompts/ck-journal.prompt.md +5 -3
- package/prompts/ck-plan-fast.prompt.md +26 -5
- package/prompts/ck-plan-hard.prompt.md +30 -9
- package/prompts/ck-plan-validate.prompt.md +209 -0
- package/prompts/ck-plan.prompt.md +49 -12
- package/prompts/ck-preview.prompt.md +16 -32
- package/prompts/ck-review.prompt.md +10 -11
- package/prompts/ck-scout.prompt.md +5 -4
- package/prompts/ck-simplify.prompt.md +3 -3
- package/prompts/ck-spec-analyze.prompt.md +9 -11
- package/prompts/ck-spec-checklist.prompt.md +7 -9
- package/prompts/ck-spec-clarify.prompt.md +8 -15
- package/prompts/ck-spec-constitution.prompt.md +6 -11
- package/prompts/ck-spec-implement.prompt.md +7 -10
- package/prompts/ck-spec-plan.prompt.md +5 -18
- package/prompts/ck-spec-specify.prompt.md +7 -17
- package/prompts/ck-spec-tasks.prompt.md +4 -16
- package/prompts/ck-test.prompt.md +5 -3
- package/prompts/ck-watzup.prompt.md +4 -2
- package/skills/INSTALLATION.md +3 -3
- package/skills/README.md +12 -34
- package/skills/agent-browser/SKILL.md +0 -1
- package/skills/agent_skills_spec.md +2 -2
- package/skills/backend-development/SKILL.md +0 -2
- package/skills/brainstorm/SKILL.md +7 -9
- package/skills/code-review/SKILL.md +9 -9
- package/skills/code-review/references/code-review-reception.md +1 -1
- package/skills/code-review/references/requesting-code-review.md +7 -7
- package/skills/common/api_key_helper.py +8 -8
- package/skills/context-engineering/SKILL.md +3 -4
- package/skills/context-engineering/references/context-degradation.md +2 -2
- package/skills/context-engineering/references/runtime-awareness.md +6 -6
- package/skills/cook/README.md +2 -2
- package/skills/cook/SKILL.md +3 -4
- package/skills/cook/references/agent-patterns.md +75 -0
- package/skills/cook/references/review-cycle.md +2 -2
- package/skills/cook/references/workflow-steps.md +6 -6
- package/skills/databases/SKILL.md +0 -1
- package/skills/databases/scripts/db_migrate.py +2 -2
- package/skills/databases/scripts/db_performance_check.py +2 -2
- package/skills/debug/SKILL.md +0 -1
- package/skills/devops/SKILL.md +0 -2
- package/skills/devops/scripts/docker_optimize.py +2 -2
- package/skills/docs-seeker/SKILL.md +0 -1
- package/skills/docs-seeker/package.json +1 -1
- package/skills/docs-seeker/scripts/utils/env-loader.js +2 -2
- package/skills/fix/SKILL.md +10 -11
- package/skills/fix/references/mode-selection.md +11 -27
- package/skills/fix/references/parallel-exploration.md +9 -9
- package/skills/fix/references/review-cycle.md +3 -3
- package/skills/fix/references/skill-activation-matrix.md +3 -3
- package/skills/fix/references/workflow-deep.md +11 -11
- package/skills/fix/references/workflow-quick.md +5 -5
- package/skills/fix/references/workflow-standard.md +12 -12
- package/skills/frontend-design/SKILL.md +2 -3
- package/skills/frontend-design/references/workflow-describe.md +1 -1
- package/skills/frontend-design/references/workflow-quick.md +1 -1
- package/skills/frontend-design/references/workflow-screenshot.md +1 -1
- package/skills/git/SKILL.md +2 -3
- package/skills/git/references/commit-standards.md +2 -2
- package/skills/git/references/workflow-commit.md +1 -1
- package/skills/git/references/workflow-merge.md +1 -1
- package/skills/git/references/workflow-pr.md +1 -1
- package/skills/git/references/workflow-push.md +1 -1
- package/skills/install.ps1 +5 -5
- package/skills/install.sh +2 -2
- package/skills/mcp-management/README.md +8 -8
- package/skills/mcp-management/SKILL.md +9 -9
- package/skills/mcp-management/references/gemini-cli-integration.md +2 -2
- package/skills/mcp-management/scripts/.env.example +2 -2
- package/skills/planning/SKILL.md +4 -5
- package/skills/planning/references/output-standards.md +1 -1
- package/skills/planning/references/plan-organization.md +1 -1
- package/skills/problem-solving/SKILL.md +1 -2
- package/skills/repomix/SKILL.md +2 -2
- package/skills/repomix/references/usage-patterns.md +2 -2
- package/skills/research/SKILL.md +0 -1
- package/skills/scout/SKILL.md +9 -10
- package/skills/scout/references/external-scouting.md +10 -10
- package/skills/scout/references/internal-scouting.md +9 -9
- package/skills/sequential-thinking/README.md +3 -3
- package/skills/sequential-thinking/SKILL.md +0 -2
- package/skills/sequential-thinking/package.json +1 -1
- package/skills/ui-styling/SKILL.md +0 -2
- package/skills/web-testing/SKILL.md +0 -2
- package/templates/repo/.github/agents/brainstormer.agent.md +1 -1
- package/templates/repo/.github/agents/debugger.agent.md +1 -1
- package/templates/repo/.github/agents/docs-manager.agent.md +2 -2
- package/templates/repo/.github/agents/git-manager.agent.md +5 -5
- package/templates/repo/.github/agents/planner.agent.md +3 -3
- package/templates/repo/.github/agents/researcher.agent.md +0 -1
- package/templates/repo/.github/agents/scout.agent.md +9 -9
- package/templates/repo/.github/agents/ui-ux-designer.agent.md +0 -1
- package/templates/repo/.github/collections/ck-orchestration.collection.yml +2 -2
- package/templates/repo/.github/prompts/ck-ask.prompt.md +3 -2
- package/templates/repo/.github/prompts/ck-bootstrap.prompt.md +26 -32
- package/templates/repo/.github/prompts/ck-brainstorm.prompt.md +4 -3
- package/templates/repo/.github/prompts/ck-cook.prompt.md +5 -4
- package/templates/repo/.github/prompts/ck-debug.prompt.md +4 -3
- package/templates/repo/.github/prompts/ck-docs.prompt.md +4 -3
- package/templates/repo/.github/prompts/ck-fix-ci.prompt.md +46 -0
- package/templates/repo/.github/prompts/ck-fix-fast.prompt.md +44 -0
- package/templates/repo/.github/prompts/ck-fix-hard.prompt.md +60 -0
- package/templates/repo/.github/prompts/ck-fix-logs.prompt.md +53 -0
- package/templates/repo/.github/prompts/ck-fix-test.prompt.md +47 -0
- package/templates/repo/.github/prompts/ck-fix-types.prompt.md +29 -0
- package/templates/repo/.github/prompts/ck-fix-ui.prompt.md +50 -0
- package/templates/repo/.github/prompts/ck-fix.prompt.md +13 -15
- package/templates/repo/.github/prompts/ck-git.prompt.md +2 -2
- package/templates/repo/.github/prompts/ck-help.prompt.md +8 -6
- package/templates/repo/.github/prompts/ck-journal.prompt.md +5 -3
- package/templates/repo/.github/prompts/ck-plan-fast.prompt.md +26 -5
- package/templates/repo/.github/prompts/ck-plan-hard.prompt.md +30 -9
- package/templates/repo/.github/prompts/ck-plan-validate.prompt.md +209 -0
- package/templates/repo/.github/prompts/ck-plan.prompt.md +49 -12
- package/templates/repo/.github/prompts/ck-preview.prompt.md +16 -32
- package/templates/repo/.github/prompts/ck-review.prompt.md +10 -11
- package/templates/repo/.github/prompts/ck-scout.prompt.md +5 -4
- package/templates/repo/.github/prompts/ck-simplify.prompt.md +3 -3
- package/templates/repo/.github/prompts/ck-spec-analyze.prompt.md +9 -11
- package/templates/repo/.github/prompts/ck-spec-checklist.prompt.md +7 -9
- package/templates/repo/.github/prompts/ck-spec-clarify.prompt.md +8 -15
- package/templates/repo/.github/prompts/ck-spec-constitution.prompt.md +6 -11
- package/templates/repo/.github/prompts/ck-spec-implement.prompt.md +7 -10
- package/templates/repo/.github/prompts/ck-spec-plan.prompt.md +5 -18
- package/templates/repo/.github/prompts/ck-spec-specify.prompt.md +7 -17
- package/templates/repo/.github/prompts/ck-spec-tasks.prompt.md +4 -16
- package/templates/repo/.github/prompts/ck-test.prompt.md +5 -3
- package/templates/repo/.github/prompts/ck-watzup.prompt.md +4 -2
- package/templates/repo/.github/skills/INSTALLATION.md +3 -3
- package/templates/repo/.github/skills/README.md +12 -34
- package/templates/repo/.github/skills/agent-browser/SKILL.md +0 -1
- package/templates/repo/.github/skills/agent_skills_spec.md +2 -2
- package/templates/repo/.github/skills/backend-development/SKILL.md +0 -2
- package/templates/repo/.github/skills/brainstorm/SKILL.md +7 -9
- package/templates/repo/.github/skills/code-review/SKILL.md +9 -9
- package/templates/repo/.github/skills/code-review/references/code-review-reception.md +1 -1
- package/templates/repo/.github/skills/code-review/references/requesting-code-review.md +7 -7
- package/templates/repo/.github/skills/common/api_key_helper.py +8 -8
- package/templates/repo/.github/skills/context-engineering/SKILL.md +3 -4
- package/templates/repo/.github/skills/context-engineering/references/context-degradation.md +2 -2
- package/templates/repo/.github/skills/context-engineering/references/runtime-awareness.md +6 -6
- package/templates/repo/.github/skills/cook/README.md +2 -2
- package/templates/repo/.github/skills/cook/SKILL.md +3 -4
- package/templates/repo/.github/skills/cook/references/agent-patterns.md +75 -0
- package/templates/repo/.github/skills/cook/references/review-cycle.md +2 -2
- package/templates/repo/.github/skills/cook/references/workflow-steps.md +6 -6
- package/templates/repo/.github/skills/databases/SKILL.md +0 -1
- package/templates/repo/.github/skills/databases/scripts/db_migrate.py +2 -2
- package/templates/repo/.github/skills/databases/scripts/db_performance_check.py +2 -2
- package/templates/repo/.github/skills/debug/SKILL.md +0 -1
- package/templates/repo/.github/skills/devops/SKILL.md +0 -2
- package/templates/repo/.github/skills/devops/scripts/docker_optimize.py +2 -2
- package/templates/repo/.github/skills/docs-seeker/SKILL.md +0 -1
- package/templates/repo/.github/skills/docs-seeker/package.json +1 -1
- package/templates/repo/.github/skills/docs-seeker/scripts/utils/env-loader.js +2 -2
- package/templates/repo/.github/skills/fix/SKILL.md +10 -11
- package/templates/repo/.github/skills/fix/references/mode-selection.md +11 -27
- package/templates/repo/.github/skills/fix/references/parallel-exploration.md +9 -9
- package/templates/repo/.github/skills/fix/references/review-cycle.md +3 -3
- package/templates/repo/.github/skills/fix/references/skill-activation-matrix.md +3 -3
- package/templates/repo/.github/skills/fix/references/workflow-deep.md +11 -11
- package/templates/repo/.github/skills/fix/references/workflow-quick.md +5 -5
- package/templates/repo/.github/skills/fix/references/workflow-standard.md +12 -12
- package/templates/repo/.github/skills/frontend-design/SKILL.md +2 -3
- package/templates/repo/.github/skills/frontend-design/references/workflow-describe.md +1 -1
- package/templates/repo/.github/skills/frontend-design/references/workflow-quick.md +1 -1
- package/templates/repo/.github/skills/frontend-design/references/workflow-screenshot.md +1 -1
- package/templates/repo/.github/skills/git/SKILL.md +2 -3
- package/templates/repo/.github/skills/git/references/commit-standards.md +2 -2
- package/templates/repo/.github/skills/git/references/workflow-commit.md +1 -1
- package/templates/repo/.github/skills/git/references/workflow-merge.md +1 -1
- package/templates/repo/.github/skills/git/references/workflow-pr.md +1 -1
- package/templates/repo/.github/skills/git/references/workflow-push.md +1 -1
- package/templates/repo/.github/skills/install.ps1 +5 -5
- package/templates/repo/.github/skills/install.sh +2 -2
- package/templates/repo/.github/skills/mcp-management/README.md +8 -8
- package/templates/repo/.github/skills/mcp-management/SKILL.md +9 -9
- package/templates/repo/.github/skills/mcp-management/references/gemini-cli-integration.md +2 -2
- package/templates/repo/.github/skills/mcp-management/scripts/.env.example +2 -2
- package/templates/repo/.github/skills/planning/SKILL.md +4 -5
- package/templates/repo/.github/skills/planning/references/output-standards.md +1 -1
- package/templates/repo/.github/skills/planning/references/plan-organization.md +1 -1
- package/templates/repo/.github/skills/problem-solving/SKILL.md +1 -2
- package/templates/repo/.github/skills/repomix/SKILL.md +2 -2
- package/templates/repo/.github/skills/repomix/references/usage-patterns.md +2 -2
- package/templates/repo/.github/skills/research/SKILL.md +0 -1
- package/templates/repo/.github/skills/scout/SKILL.md +9 -10
- package/templates/repo/.github/skills/scout/references/external-scouting.md +10 -10
- package/templates/repo/.github/skills/scout/references/internal-scouting.md +9 -9
- package/templates/repo/.github/skills/sequential-thinking/README.md +3 -3
- package/templates/repo/.github/skills/sequential-thinking/SKILL.md +0 -2
- package/templates/repo/.github/skills/sequential-thinking/package.json +1 -1
- package/templates/repo/.github/skills/ui-styling/SKILL.md +0 -2
- package/templates/repo/.github/skills/web-testing/SKILL.md +0 -2
- package/docs/cokit-instruction-guide.html +0 -3004
- package/docs/images/cokit-command-finder-final.png +0 -0
- package/docs/images/cokit-highlight-fix.png +0 -0
- package/docs/images/cokit-highlight-test.png +0 -0
- package/prompts/ck-spec-taskstoissues.prompt.md +0 -48
- package/skills/cook/references/subagent-patterns.md +0 -75
- package/templates/repo/.github/prompts/ck-spec-taskstoissues.prompt.md +0 -48
- package/templates/repo/.github/skills/cook/references/subagent-patterns.md +0 -75
package/prompts/ck-fix.prompt.md
CHANGED
|
@@ -10,38 +10,35 @@ argument-hint: 'Describe the issues to fix'
|
|
|
10
10
|
## Decision Tree
|
|
11
11
|
|
|
12
12
|
**1. Check for existing plan:**
|
|
13
|
-
- If markdown plan exists → `/ck
|
|
13
|
+
- If markdown plan exists → `/ck-cook <path-to-plan>`
|
|
14
14
|
|
|
15
15
|
**2. Route by issue type:**
|
|
16
16
|
|
|
17
17
|
**A) Type Errors** (keywords: type, typescript, tsc, type error)
|
|
18
|
-
→ `/ck
|
|
18
|
+
→ `/ck-fix-types`
|
|
19
19
|
|
|
20
20
|
**B) UI/UX Issues** (keywords: ui, ux, design, layout, style, visual, button, component, css, responsive)
|
|
21
|
-
→ `/ck
|
|
21
|
+
→ `/ck-fix-ui <detailed-description>`
|
|
22
22
|
|
|
23
23
|
**C) CI/CD Issues** (keywords: github actions, pipeline, ci/cd, workflow, deployment, build failed)
|
|
24
|
-
→ `/ck
|
|
24
|
+
→ `/ck-fix-ci <github-actions-url-or-description>`
|
|
25
25
|
|
|
26
26
|
**D) Test Failures** (keywords: test, spec, jest, vitest, failing test, test suite)
|
|
27
|
-
→ `/ck
|
|
27
|
+
→ `/ck-fix-test <detailed-description>`
|
|
28
28
|
|
|
29
29
|
**E) Log Analysis** (keywords: logs, error logs, log file, stack trace)
|
|
30
|
-
→ `/ck
|
|
30
|
+
→ `/ck-fix-logs <detailed-description>`
|
|
31
31
|
|
|
32
|
-
**F) Multiple
|
|
33
|
-
→ `/ck
|
|
32
|
+
**F) Complex/Multiple Issues** (keywords: complex, architecture, refactor, major, system-wide, multiple components, 2+ unrelated issues)
|
|
33
|
+
→ `/ck-fix-hard <detailed-description>`
|
|
34
34
|
|
|
35
|
-
**G)
|
|
36
|
-
→ `/ck
|
|
37
|
-
|
|
38
|
-
**H) Simple/Quick Fixes** (default: small bug, single file, straightforward)
|
|
39
|
-
→ `/ck:fix:fast <detailed-description>`
|
|
35
|
+
**G) Simple/Quick Fixes** (default: small bug, single file, straightforward)
|
|
36
|
+
→ `/ck-fix-fast <detailed-description>`
|
|
40
37
|
|
|
41
38
|
## Notes
|
|
42
39
|
- `detailed-description` = enhanced prompt describing issue in detail
|
|
43
40
|
- If unclear, ask user for clarification before routing
|
|
44
|
-
- Can combine routes: e.g., multiple type errors + UI issue → `/ck
|
|
41
|
+
- Can combine routes: e.g., multiple type errors + UI issue → `/ck-fix-hard`
|
|
45
42
|
|
|
46
43
|
---
|
|
47
44
|
|
|
@@ -49,4 +46,5 @@ argument-hint: 'Describe the issues to fix'
|
|
|
49
46
|
|
|
50
47
|
| Command | Description |
|
|
51
48
|
|---------|-------------|
|
|
52
|
-
| `/ck
|
|
49
|
+
| `/ck-test` | Run tests and analyze results |
|
|
50
|
+
| `/ck-git` | Commit changes |
|
package/prompts/ck-git.prompt.md
CHANGED
|
@@ -100,5 +100,5 @@ gh pr create --title "type(scope): description" --body "## Summary
|
|
|
100
100
|
|
|
101
101
|
| Command | Description |
|
|
102
102
|
|---------|-------------|
|
|
103
|
-
| `/ck
|
|
104
|
-
| `/ck
|
|
103
|
+
| `/ck-test` | Run tests before push |
|
|
104
|
+
| `/ck-review` | Code review |
|
|
@@ -6,7 +6,7 @@ tools: ['execute/runInTerminal', 'execute/getTerminalOutput']
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Think harder.
|
|
9
|
-
All-in-one
|
|
9
|
+
All-in-one CoKit guide. Run the script and present output based on type markers.
|
|
10
10
|
|
|
11
11
|
## Intent Validation
|
|
12
12
|
|
|
@@ -126,9 +126,9 @@ Never replace or summarize the script output. Always show it fully, then enhance
|
|
|
126
126
|
|
|
127
127
|
## Important: Correct Workflows
|
|
128
128
|
|
|
129
|
-
- **`/ck
|
|
130
|
-
- **`/cook`**: Standalone - plans internally, no separate `/ck
|
|
131
|
-
- **NEVER** suggest `/ck
|
|
129
|
+
- **`/ck-plan` → `/cook`**: Plan first, then execute the plan
|
|
130
|
+
- **`/cook`**: Standalone - plans internally, no separate `/ck-plan` needed
|
|
131
|
+
- **NEVER** suggest `/ck-plan` → `/cook` (cook has its own planning)
|
|
132
132
|
|
|
133
133
|
---
|
|
134
134
|
|
|
@@ -136,5 +136,7 @@ Never replace or summarize the script output. Always show it fully, then enhance
|
|
|
136
136
|
|
|
137
137
|
| Command | Description |
|
|
138
138
|
|---------|-------------|
|
|
139
|
-
| `/ck
|
|
140
|
-
| `/ck
|
|
139
|
+
| `/ck-brainstorm` | Explore ideas |
|
|
140
|
+
| `/ck-plan` | Create plan |
|
|
141
|
+
| `/ck-cook` | Implement feature |
|
|
142
|
+
| `/ck-spec-specify` | Write detailed feature spec |
|
|
@@ -3,7 +3,7 @@ agent: 'agent'
|
|
|
3
3
|
description: 'Write journal entries from recent changes and memories'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
Use the `journal-writer`
|
|
6
|
+
Use the `journal-writer` agent to explore the memories and recent code changes, and write some journal entries.
|
|
7
7
|
Journal entries should be concise and focused on the most important events, key changes, impacts, and decisions.
|
|
8
8
|
Keep journal entries in the `./docs/journals/` directory.
|
|
9
9
|
|
|
@@ -13,5 +13,7 @@ Keep journal entries in the `./docs/journals/` directory.
|
|
|
13
13
|
|
|
14
14
|
| Command | Description |
|
|
15
15
|
|---------|-------------|
|
|
16
|
-
| `/ck
|
|
17
|
-
| `/ck
|
|
16
|
+
| `/ck-brainstorm` | Explore ideas |
|
|
17
|
+
| `/ck-plan` | Create plan |
|
|
18
|
+
| `/ck-fix` | Analyze and fix issues |
|
|
19
|
+
| `/ck-spec-specify` | Write detailed feature spec |
|
|
@@ -3,6 +3,25 @@ agent: 'agent'
|
|
|
3
3
|
description: 'No research. Only analyze and create an implementation plan'
|
|
4
4
|
argument-hint: 'Task description or requirements'
|
|
5
5
|
---
|
|
6
|
+
## Variant Notice
|
|
7
|
+
**IMPORTANT — Read before proceeding.**
|
|
8
|
+
`ck-plan-fast` is an internal mode for quick planning without research — it is meant to be selected automatically by AI when you run `/ck-plan`.
|
|
9
|
+
You don't need to call this directly. Just use `/ck-plan` and AI will pick the right mode for you.
|
|
10
|
+
Before executing, you MUST output the following message **exactly as written** and wait for user response:
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
**Variant Notice**
|
|
14
|
+
|
|
15
|
+
`ck-plan-fast` is an internal mode for quick planning without research — it is meant to be selected automatically by AI when you run `/ck-plan`.
|
|
16
|
+
You don't need to call this directly. Just use `/ck-plan` and AI will pick the right mode for you.
|
|
17
|
+
|
|
18
|
+
Do you want to continue anyway, or switch to `/ck-plan`? **[Continue / Switch to /ck-plan]**
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
Only proceed if user explicitly confirms Continue.
|
|
23
|
+
If user chooses "Switch to /ck-plan", run immediately — do NOT ask user to re-enter their input.
|
|
24
|
+
|
|
6
25
|
|
|
7
26
|
Think.
|
|
8
27
|
Activate `planning` skill.
|
|
@@ -20,10 +39,10 @@ Check the `## Plan Context` section in the injected context:
|
|
|
20
39
|
- If "Plan: none" → Create new plan using naming from `## Naming` section.
|
|
21
40
|
|
|
22
41
|
## Workflow
|
|
23
|
-
Use `planner`
|
|
42
|
+
Use `planner` agent to:
|
|
24
43
|
1. If creating new: Create directory using `Plan dir:` from `## Naming` section, then run `node $HOME/.copilot/scripts/set-active-plan.cjs {plan-dir}`
|
|
25
44
|
If reusing: Use the active plan path from Plan Context.
|
|
26
|
-
Make sure you pass the directory path to every
|
|
45
|
+
Make sure you pass the directory path to every agent during the process.
|
|
27
46
|
2. Follow strictly to the "Plan Creation & Organization" rules of `planning` skill.
|
|
28
47
|
3. Analyze the codebase by reading `codebase-summary.md`, `code-standards.md`, `system-architecture.md` and `project-overview-pdr.md` file.
|
|
29
48
|
4. Gathers all information and create an implementation plan of this task.
|
|
@@ -65,7 +84,7 @@ This reminder is **NON-NEGOTIABLE** - always output it after presenting the plan
|
|
|
65
84
|
created: {YYYY-MM-DD}
|
|
66
85
|
---
|
|
67
86
|
```
|
|
68
|
-
- Save the overview access point at `{plan-dir}/ck
|
|
87
|
+
- Save the overview access point at `{plan-dir}/ck-plan.md`. Keep it generic, under 80 lines, and list each implementation phase with status and progress plus links to phase files.
|
|
69
88
|
- For each phase, create `{plan-dir}/phase-XX-phase-name-here.md` containing the following sections in order: Context links (reference parent plan, dependencies, docs), Overview (date, description, priority, implementation status, review status), Key Insights, Requirements, Architecture, Related code files, Implementation Steps, Todo list, Success Criteria, Risk Assessment, Security Considerations, Next steps.
|
|
70
89
|
|
|
71
90
|
## Important Notes
|
|
@@ -81,5 +100,7 @@ This reminder is **NON-NEGOTIABLE** - always output it after presenting the plan
|
|
|
81
100
|
|
|
82
101
|
| Command | Description |
|
|
83
102
|
|---------|-------------|
|
|
84
|
-
| `/ck
|
|
85
|
-
| `/ck
|
|
103
|
+
| `/ck-cook` | Implement plan |
|
|
104
|
+
| `/ck-test` | Run tests and analyze results |
|
|
105
|
+
| `/ck-fix` | Analyze and fix issues |
|
|
106
|
+
| `/ck-spec-specify` | Too complex? Switch to spec-driven flow |
|
|
@@ -4,6 +4,25 @@ description: 'Research, analyze, and create an implementation plan'
|
|
|
4
4
|
argument-hint: 'Task description or requirements'
|
|
5
5
|
tools: ['web/fetch', 'search/codebase', 'read/readFile', 'search/listDirectory', 'edit/createFile', 'edit/editFiles']
|
|
6
6
|
---
|
|
7
|
+
## Variant Notice
|
|
8
|
+
**IMPORTANT — Read before proceeding.**
|
|
9
|
+
`ck-plan-hard` is an internal mode for deep research + planning — it is meant to be selected automatically by AI when you run `/ck-plan`.
|
|
10
|
+
You don't need to call this directly. Just use `/ck-plan` and AI will pick the right mode for you.
|
|
11
|
+
Before executing, you MUST output the following message **exactly as written** and wait for user response:
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
**Variant Notice**
|
|
15
|
+
|
|
16
|
+
`ck-plan-hard` is an internal mode for deep research + planning — it is meant to be selected automatically by AI when you run `/ck-plan`.
|
|
17
|
+
You don't need to call this directly. Just use `/ck-plan` and AI will pick the right mode for you.
|
|
18
|
+
|
|
19
|
+
Do you want to continue anyway, or switch to `/ck-plan`? **[Continue / Switch to /ck-plan]**
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
Only proceed if user explicitly confirms Continue.
|
|
24
|
+
If user chooses "Switch to /ck-plan", run immediately — do NOT ask user to re-enter their input.
|
|
25
|
+
|
|
7
26
|
|
|
8
27
|
Think harder.
|
|
9
28
|
Activate `planning` skill.
|
|
@@ -23,14 +42,14 @@ Check the `## Plan Context` section in the injected context:
|
|
|
23
42
|
## Workflow
|
|
24
43
|
1. If creating new: Create directory using `Plan dir:` from `## Naming` section, then run `node $HOME/.copilot/scripts/set-active-plan.cjs {plan-dir}`
|
|
25
44
|
If reusing: Use the active plan path from Plan Context.
|
|
26
|
-
Make sure you pass the directory path to every
|
|
45
|
+
Make sure you pass the directory path to every agent during the process.
|
|
27
46
|
2. Follow strictly to the "Plan Creation & Organization" rules of `planning` skill.
|
|
28
47
|
3. Use multiple `researcher` agents (max 2 agents) in parallel to research for this task:
|
|
29
48
|
Each agent research for a different aspect of the task and are allowed to perform max 5 tool calls.
|
|
30
49
|
4. Analyze the codebase by reading `codebase-summary.md`, `code-standards.md`, `system-architecture.md` and `project-overview-pdr.md` file.
|
|
31
50
|
**ONLY PERFORM THIS FOLLOWING STEP IF `codebase-summary.md` is not available or older than 3 days**: Use `/scout <instructions>` slash command to search the codebase for files needed to complete the task.
|
|
32
|
-
5. Main agent gathers all research and scout report filepaths, and pass them to `planner`
|
|
33
|
-
6. Main agent receives the implementation plan from `planner`
|
|
51
|
+
5. Main agent gathers all research and scout report filepaths, and pass them to `planner` agent with the prompt to create an implementation plan of this task.
|
|
52
|
+
6. Main agent receives the implementation plan from `planner` agent, and ask user to review the plan
|
|
34
53
|
|
|
35
54
|
## Post-Plan Validation (Optional)
|
|
36
55
|
|
|
@@ -41,11 +60,11 @@ After plan creation, offer validation interview to confirm decisions before impl
|
|
|
41
60
|
| Mode | Behavior |
|
|
42
61
|
|------|----------|
|
|
43
62
|
| `prompt` | Ask user: "Validate this plan with a brief interview?" → Yes (Recommended) / No |
|
|
44
|
-
| `auto` | Automatically execute `/ck
|
|
63
|
+
| `auto` | Automatically execute `/ck-plan-validate {plan-path}` |
|
|
45
64
|
| `off` | Skip validation step entirely |
|
|
46
65
|
|
|
47
|
-
**If mode is `prompt`:**
|
|
48
|
-
**If user chooses validation or mode is `auto`:** Execute `/ck
|
|
66
|
+
**If mode is `prompt`:** Present the options above directly in your response and wait for user to choose.
|
|
67
|
+
**If user chooses validation or mode is `auto`:** Execute `/ck-plan-validate {plan-path}` SlashCommand.
|
|
49
68
|
|
|
50
69
|
## Context Reminder (MANDATORY)
|
|
51
70
|
|
|
@@ -92,7 +111,7 @@ This reminder is **NON-NEGOTIABLE** when validation is skipped.
|
|
|
92
111
|
created: {YYYY-MM-DD}
|
|
93
112
|
---
|
|
94
113
|
```
|
|
95
|
-
- Save the overview access point at `{plan-dir}/ck
|
|
114
|
+
- Save the overview access point at `{plan-dir}/ck-plan.md`. Keep it generic, under 80 lines, and list each implementation phase with status and progress plus links to phase files.
|
|
96
115
|
- For each phase, create `{plan-dir}/phase-XX-phase-name-here.md` containing the following sections in order: Context links (reference parent plan, dependencies, docs), Overview (date, description, priority, implementation status, review status), Key Insights, Requirements, Architecture, Related code files, Implementation Steps, Todo list, Success Criteria, Risk Assessment, Security Considerations, Next steps.
|
|
97
116
|
|
|
98
117
|
## Important Notes
|
|
@@ -108,5 +127,7 @@ This reminder is **NON-NEGOTIABLE** when validation is skipped.
|
|
|
108
127
|
|
|
109
128
|
| Command | Description |
|
|
110
129
|
|---------|-------------|
|
|
111
|
-
| `/ck
|
|
112
|
-
| `/ck
|
|
130
|
+
| `/ck-cook` | Implement plan |
|
|
131
|
+
| `/ck-test` | Run tests and analyze results |
|
|
132
|
+
| `/ck-fix` | Analyze and fix issues |
|
|
133
|
+
| `/ck-spec-specify` | Need formal spec? Switch to spec-driven flow |
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
---
|
|
2
|
+
agent: 'agent'
|
|
3
|
+
description: 'Validate plan with critical questions interview'
|
|
4
|
+
argument-hint: 'Path to plan directory'
|
|
5
|
+
---
|
|
6
|
+
## Variant Notice
|
|
7
|
+
**IMPORTANT — Read before proceeding.**
|
|
8
|
+
`ck-plan-validate` is an internal mode for validating an existing plan with interview questions — it is meant to be selected automatically by AI when you run `/ck-plan`.
|
|
9
|
+
You don't need to call this directly. Just use `/ck-plan` and AI will pick the right mode for you.
|
|
10
|
+
Before executing, you MUST output the following message **exactly as written** and wait for user response:
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
**Variant Notice**
|
|
14
|
+
|
|
15
|
+
`ck-plan-validate` is an internal mode for validating an existing plan with interview questions — it is meant to be selected automatically by AI when you run `/ck-plan`.
|
|
16
|
+
You don't need to call this directly. Just use `/ck-plan` and AI will pick the right mode for you.
|
|
17
|
+
|
|
18
|
+
Do you want to continue anyway, or switch to `/ck-plan`? **[Continue / Switch to /ck-plan]**
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
Only proceed if user explicitly confirms Continue.
|
|
23
|
+
If user chooses "Switch to /ck-plan", run immediately — do NOT ask user to re-enter their input.
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## Your mission
|
|
27
|
+
|
|
28
|
+
Interview the user with critical questions to validate assumptions, confirm decisions, and surface potential issues in an implementation plan before coding begins.
|
|
29
|
+
|
|
30
|
+
## Plan Resolution
|
|
31
|
+
|
|
32
|
+
1. If `${input}` provided → Use that path
|
|
33
|
+
2. Else check `## Plan Context` section → Use active plan path
|
|
34
|
+
3. If no plan found → Ask user to specify path or run `/ck-plan-hard` first
|
|
35
|
+
|
|
36
|
+
## Configuration (from injected context)
|
|
37
|
+
|
|
38
|
+
Check `## Plan Context` section for validation settings:
|
|
39
|
+
- `mode` - Controls auto/prompt/off behavior
|
|
40
|
+
- `questions` - Range like `3-8` (min-max)
|
|
41
|
+
|
|
42
|
+
These values are automatically injected from user config. Use them as constraints.
|
|
43
|
+
|
|
44
|
+
## Workflow
|
|
45
|
+
|
|
46
|
+
### Step 1: Read Plan Files
|
|
47
|
+
|
|
48
|
+
Read the plan directory:
|
|
49
|
+
- `plan.md` - Overview and phases list
|
|
50
|
+
- `phase-*.md` - All phase files
|
|
51
|
+
- Look for decision points, assumptions, risks, tradeoffs
|
|
52
|
+
|
|
53
|
+
### Step 2: Extract Question Topics
|
|
54
|
+
|
|
55
|
+
Scan plan content for:
|
|
56
|
+
|
|
57
|
+
| Category | Keywords to detect |
|
|
58
|
+
|----------|-------------------|
|
|
59
|
+
| **Architecture** | "approach", "pattern", "design", "structure", "database", "API" |
|
|
60
|
+
| **Assumptions** | "assume", "expect", "should", "will", "must", "default" |
|
|
61
|
+
| **Tradeoffs** | "tradeoff", "vs", "alternative", "option", "choice", "either/or" |
|
|
62
|
+
| **Risks** | "risk", "might", "could fail", "dependency", "blocker", "concern" |
|
|
63
|
+
| **Scope** | "phase", "MVP", "future", "out of scope", "nice to have" |
|
|
64
|
+
|
|
65
|
+
### Step 3: Generate Questions
|
|
66
|
+
|
|
67
|
+
For each detected topic, formulate a concrete question:
|
|
68
|
+
|
|
69
|
+
**Question format rules:**
|
|
70
|
+
- Each question must have 2-4 concrete options
|
|
71
|
+
- Mark recommended option with "(Recommended)" suffix
|
|
72
|
+
- Include "Other" option is automatic - don't add it
|
|
73
|
+
- Questions should surface implicit decisions
|
|
74
|
+
|
|
75
|
+
**Example questions:**
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
Category: Architecture
|
|
79
|
+
Question: "How should the validation results be persisted?"
|
|
80
|
+
Options:
|
|
81
|
+
1. Save to plan.md frontmatter (Recommended) - Updates existing plan
|
|
82
|
+
2. Create validation-answers.md - Separate file for answers
|
|
83
|
+
3. Don't persist - Ephemeral validation only
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
```
|
|
87
|
+
Category: Assumptions
|
|
88
|
+
Question: "The plan assumes API rate limiting is not needed. Is this correct?"
|
|
89
|
+
Options:
|
|
90
|
+
1. Yes, rate limiting not needed for MVP
|
|
91
|
+
2. No, add basic rate limiting now (Recommended)
|
|
92
|
+
3. Defer to Phase 2
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Step 4: Interview User
|
|
96
|
+
|
|
97
|
+
Present questions directly in your response, listing each with numbered options. Then stop and wait for the user to answer before proceeding.
|
|
98
|
+
|
|
99
|
+
**Rules:**
|
|
100
|
+
- Use question count from `## Plan Context` → `Validation: mode=X, questions=MIN-MAX`
|
|
101
|
+
- Group related questions when possible (max 4 questions per response)
|
|
102
|
+
- Focus on: assumptions, risks, tradeoffs, architecture
|
|
103
|
+
- Format each question with numbered options for easy selection
|
|
104
|
+
|
|
105
|
+
### Step 5: Document Answers
|
|
106
|
+
|
|
107
|
+
After collecting answers, update `plan.md` with a detailed validation log. If a `## Validation Log` section already exists (from previous sessions), **append** a new session block — never overwrite history.
|
|
108
|
+
|
|
109
|
+
1. Add or append to `## Validation Log` section in `plan.md`:
|
|
110
|
+
|
|
111
|
+
```markdown
|
|
112
|
+
## Validation Log
|
|
113
|
+
|
|
114
|
+
### Session 1 — {YYYY-MM-DD}
|
|
115
|
+
**Trigger:** {what prompted this validation — initial plan creation, re-validation after scope change, etc.}
|
|
116
|
+
**Questions asked:** {count}
|
|
117
|
+
|
|
118
|
+
#### Questions & Answers
|
|
119
|
+
|
|
120
|
+
1. **[{Category}]** {full question text}
|
|
121
|
+
- Options: {A} | {B} | {C}
|
|
122
|
+
- **Answer:** {user's choice}
|
|
123
|
+
- **Custom input:** {verbatim "Other" text if user selected Other, otherwise omit this line}
|
|
124
|
+
- **Rationale:** {why this decision matters for implementation}
|
|
125
|
+
|
|
126
|
+
2. **[{Category}]** {full question text}
|
|
127
|
+
- Options: {A} | {B} | {C}
|
|
128
|
+
- **Answer:** {user's choice}
|
|
129
|
+
- **Custom input:** {verbatim text, omit if N/A}
|
|
130
|
+
- **Rationale:** {why this matters}
|
|
131
|
+
|
|
132
|
+
#### Confirmed Decisions
|
|
133
|
+
- {decision}: {choice} — {brief why}
|
|
134
|
+
|
|
135
|
+
#### Action Items
|
|
136
|
+
- [ ] {specific change needed based on answers}
|
|
137
|
+
|
|
138
|
+
#### Impact on Phases
|
|
139
|
+
- Phase {N}: {what needs updating and why}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
**Recording rules:**
|
|
143
|
+
- **Full question text**: Copy the exact question asked, not a summary
|
|
144
|
+
- **All options**: List every option that was presented
|
|
145
|
+
- **Verbatim custom input**: If user selected "Other" and typed custom text, record it exactly as entered — this often contains critical context
|
|
146
|
+
- **Rationale**: Explain why the decision affects implementation (helps future agents understand intent)
|
|
147
|
+
- **Session numbering**: Increment session number from last existing session. First validation = Session 1
|
|
148
|
+
- **Trigger**: State what prompted this validation round (initial, re-validation, scope change, etc.)
|
|
149
|
+
|
|
150
|
+
2. If answers require plan changes, document them in `#### Impact on Phases` section.
|
|
151
|
+
|
|
152
|
+
### Step 6: Propagate Changes to Phases (Auto-Apply)
|
|
153
|
+
|
|
154
|
+
**Auto-propagate** validation decisions to affected phase files.
|
|
155
|
+
|
|
156
|
+
**Process:**
|
|
157
|
+
1. Parse "Impact on Phases" section → If empty, skip and report "No phase changes required"
|
|
158
|
+
2. For each phase reference (accepts "Phase 2", "phase-02", "P2"):
|
|
159
|
+
- Search for `phase-{N:02d}-*.md` files → If missing, warn and skip
|
|
160
|
+
- Locate target section (exact → fuzzy → fallback to Key Insights)
|
|
161
|
+
- Apply change + add marker: `<!-- Updated: Validation Session N - {change} -->`
|
|
162
|
+
- Skip if same-session marker already exists (prevent duplication)
|
|
163
|
+
|
|
164
|
+
**Section mapping:**
|
|
165
|
+
| Change Type | Target Section |
|
|
166
|
+
|-------------|----------------|
|
|
167
|
+
| Requirements | Requirements |
|
|
168
|
+
| Architecture | Architecture |
|
|
169
|
+
| Scope | Overview / Implementation Steps |
|
|
170
|
+
| Risk | Risk Assessment |
|
|
171
|
+
| Unknown | Key Insights (new subsection) |
|
|
172
|
+
|
|
173
|
+
**Error handling:** Best-effort — log warnings for missing files/sections, continue with others, report all in Output.
|
|
174
|
+
|
|
175
|
+
## Output
|
|
176
|
+
|
|
177
|
+
After validation completes, provide summary:
|
|
178
|
+
- Number of questions asked
|
|
179
|
+
- Key decisions confirmed
|
|
180
|
+
- **Phase propagation results:**
|
|
181
|
+
- Files updated (with section names)
|
|
182
|
+
- Warnings (skipped phases, fallback sections)
|
|
183
|
+
- Errors (if any write failures)
|
|
184
|
+
- Any items flagged for plan revision
|
|
185
|
+
- Recommendation: proceed to implementation or revise plan first
|
|
186
|
+
|
|
187
|
+
## Next Steps (MANDATORY)
|
|
188
|
+
|
|
189
|
+
**IMPORTANT:** After providing the validation summary, you MUST remind the user with the **full absolute path**:
|
|
190
|
+
|
|
191
|
+
> **Best Practice:** Run `/clear` before implementing to start with fresh context.
|
|
192
|
+
> Then run:
|
|
193
|
+
> ```
|
|
194
|
+
> /cook --auto {ABSOLUTE_PATH_TO_PLAN_DIR}/plan.md
|
|
195
|
+
> ```
|
|
196
|
+
> *(Replace with actual absolute path)*
|
|
197
|
+
>
|
|
198
|
+
> **Why `--auto`?** Plan was already validated - safe to skip review gates.
|
|
199
|
+
> **Why absolute path?** After `/clear`, the new session loses context. Worktree paths won't be discoverable without the full path.
|
|
200
|
+
>
|
|
201
|
+
> Fresh context helps the agent focus solely on implementation without planning context pollution, improving plan adherence.
|
|
202
|
+
|
|
203
|
+
This reminder is **NON-NEGOTIABLE** - always output it at the end of validation with the actual absolute path.
|
|
204
|
+
|
|
205
|
+
## Important Notes
|
|
206
|
+
|
|
207
|
+
**IMPORTANT:** Only ask questions about genuine decision points - don't manufacture artificial choices.
|
|
208
|
+
**IMPORTANT:** If plan is simple with few decisions, it's okay to ask fewer than min questions.
|
|
209
|
+
**IMPORTANT:** Prioritize questions that could change implementation significantly.
|
|
@@ -4,23 +4,57 @@ description: 'Intelligent plan creation with prompt enhancement'
|
|
|
4
4
|
argument-hint: 'Task description or requirements'
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
<task>
|
|
9
|
-
${input}
|
|
10
|
-
</task>
|
|
7
|
+
**Analyze task and route to the right planning mode:**
|
|
8
|
+
<task>${input}</task>
|
|
11
9
|
|
|
12
|
-
##
|
|
10
|
+
## Decision Tree
|
|
13
11
|
|
|
14
|
-
Check
|
|
12
|
+
**1. Check for existing plan:**
|
|
13
|
+
- Check `## Plan Context` section in injected context
|
|
15
14
|
- If "Plan:" shows a path → Active plan exists. Ask user: "Active plan found: {path}. Continue with this? [Y/n]"
|
|
16
|
-
- If "Suggested:" shows a path → Branch-matched
|
|
17
|
-
- If "Plan: none" → Proceed to
|
|
15
|
+
- If "Suggested:" shows a path → Branch-matched hint. Ask user to activate or create new.
|
|
16
|
+
- If "Plan: none" → Proceed to step 2.
|
|
17
|
+
|
|
18
|
+
**2. Route by complexity:**
|
|
19
|
+
|
|
20
|
+
**A) Simple/Quick Tasks** (keywords: small, quick, simple, straightforward, single file, minor, tweak, < 2 hours)
|
|
21
|
+
→ `/ck-plan-fast <detailed-instructions-prompt>`
|
|
22
|
+
|
|
23
|
+
**B) Complex/Research-Heavy Tasks** (keywords: complex, research, unfamiliar, architecture, multi-component, integration, large, major, multi-day)
|
|
24
|
+
→ `/ck-plan-hard <detailed-instructions-prompt>`
|
|
25
|
+
|
|
26
|
+
**C) Validate Existing Plan** (keywords: validate, review plan, check plan, verify assumptions)
|
|
27
|
+
→ `/ck-plan-validate <path-to-plan>`
|
|
28
|
+
|
|
29
|
+
**D) Default/Medium Tasks** (anything else)
|
|
30
|
+
→ Execute planning workflow below directly.
|
|
31
|
+
|
|
32
|
+
## Workflow (for Default/Medium tasks)
|
|
18
33
|
|
|
19
|
-
## Workflow
|
|
20
|
-
- Analyze the given task and use `AskUserQuestion` tool to ask for more details if needed.
|
|
21
34
|
- Activate `planning` skill.
|
|
35
|
+
- Analyze the given task and ask clarifying questions directly if needed. Wait for user response before proceeding.
|
|
22
36
|
- Note: `detailed-instructions-prompt` is **an enhanced prompt** that describes the task in detail based on the provided task description.
|
|
23
37
|
|
|
38
|
+
## Post-Plan Validation (Optional)
|
|
39
|
+
|
|
40
|
+
After plan creation, offer validation for non-trivial plans.
|
|
41
|
+
|
|
42
|
+
Check `## Plan Context` → `Validation: mode=X, questions=MIN-MAX`:
|
|
43
|
+
|
|
44
|
+
| Mode | Behavior |
|
|
45
|
+
|------|----------|
|
|
46
|
+
| `prompt` | Ask user: "Validate this plan with a brief interview?" → Yes (Recommended) / No |
|
|
47
|
+
| `auto` | Automatically execute `/ck-plan-validate {plan-path}` |
|
|
48
|
+
| `off` | Skip validation step entirely |
|
|
49
|
+
|
|
50
|
+
If user chooses validation or mode is `auto`: Execute `/ck-plan-validate {plan-path}`.
|
|
51
|
+
|
|
52
|
+
## Notes
|
|
53
|
+
- `detailed-instructions-prompt` = enhanced prompt describing task in detail
|
|
54
|
+
- If unclear about complexity, default to this prompt's workflow (medium)
|
|
55
|
+
- Fast plans skip validation by default
|
|
56
|
+
- Hard plans recommend validation
|
|
57
|
+
|
|
24
58
|
## Important Notes
|
|
25
59
|
**IMPORTANT:** Analyze the skills catalog and activate the skills that are needed for the task during the process.
|
|
26
60
|
**IMPORTANT:** Sacrifice grammar for the sake of concision when writing reports.
|
|
@@ -34,5 +68,8 @@ Check the `## Plan Context` section in the injected context:
|
|
|
34
68
|
|
|
35
69
|
| Command | Description |
|
|
36
70
|
|---------|-------------|
|
|
37
|
-
| `/ck
|
|
38
|
-
| `/ck
|
|
71
|
+
| `/ck-plan-validate` | Validate plan with critical questions |
|
|
72
|
+
| `/ck-cook` | Implement plan |
|
|
73
|
+
| `/ck-test` | Run tests and analyze results |
|
|
74
|
+
| `/ck-fix` | Analyze and fix issues |
|
|
75
|
+
| `/ck-spec-specify` | Need detailed spec first? Start spec-driven flow |
|
|
@@ -5,29 +5,27 @@ argument-hint: 'Path to markdown file or directory'
|
|
|
5
5
|
tools: ['execute/runInTerminal', 'execute/getTerminalOutput']
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
Universal viewer
|
|
8
|
+
Universal viewer - pass ANY path and see it rendered nicely.
|
|
9
9
|
|
|
10
10
|
## Usage
|
|
11
11
|
|
|
12
|
-
- `/ck
|
|
13
|
-
- `/ck
|
|
14
|
-
- `/ck
|
|
12
|
+
- `/ck-preview <file.md>` - View markdown file in novel-reader UI
|
|
13
|
+
- `/ck-preview <directory/>` - Browse directory contents
|
|
14
|
+
- `/ck-preview --stop` - Stop running server
|
|
15
15
|
|
|
16
16
|
## Examples
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
/ck
|
|
20
|
-
/ck
|
|
21
|
-
/ck
|
|
22
|
-
/ck
|
|
23
|
-
/ck
|
|
19
|
+
/ck-preview plans/my-plan/ck-plan.md # View markdown file
|
|
20
|
+
/ck-preview plans/ # Browse plans directory
|
|
21
|
+
/ck-preview docs/ # Browse docs directory
|
|
22
|
+
/ck-preview any/path/to/file.md # View any markdown file
|
|
23
|
+
/ck-preview any/path/ # Browse any directory
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
## Execution
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
The skill is located at `$HOME/.copilot/skills/markdown-novel-viewer/`.
|
|
28
|
+
Run the server using `#tool:execute/runInTerminal`. The skill is located at `$HOME/.copilot/skills/markdown-novel-viewer/`.
|
|
31
29
|
|
|
32
30
|
### Stop Server
|
|
33
31
|
|
|
@@ -39,11 +37,11 @@ node $HOME/.copilot/skills/markdown-novel-viewer/scripts/server.cjs --stop
|
|
|
39
37
|
|
|
40
38
|
### Start Server
|
|
41
39
|
|
|
42
|
-
Otherwise, run the `markdown-novel-viewer` server
|
|
40
|
+
Otherwise, run the `markdown-novel-viewer` server with `--foreground` flag:
|
|
43
41
|
|
|
44
42
|
```bash
|
|
45
43
|
# Determine if path is file or directory
|
|
46
|
-
INPUT_PATH="{
|
|
44
|
+
INPUT_PATH="${input}"
|
|
47
45
|
if [[ -d "$INPUT_PATH" ]]; then
|
|
48
46
|
# Directory mode - browse
|
|
49
47
|
node $HOME/.copilot/skills/markdown-novel-viewer/scripts/server.cjs \
|
|
@@ -61,25 +59,10 @@ else
|
|
|
61
59
|
fi
|
|
62
60
|
```
|
|
63
61
|
|
|
64
|
-
**Critical:** When calling the Bash tool:
|
|
65
|
-
- Set `run_in_background: true` to run as CC background task
|
|
66
|
-
- Set `timeout: 300000` (5 minutes) to prevent premature termination
|
|
67
|
-
- Parse JSON output and report URL to user
|
|
68
|
-
|
|
69
|
-
Example Bash tool call:
|
|
70
|
-
```json
|
|
71
|
-
{
|
|
72
|
-
"command": "node $HOME/.copilot/skills/markdown-novel-viewer/scripts/server.cjs --dir \"path\" --host 0.0.0.0 --open --foreground",
|
|
73
|
-
"run_in_background": true,
|
|
74
|
-
"timeout": 300000,
|
|
75
|
-
"description": "Start preview server in background"
|
|
76
|
-
}
|
|
77
|
-
```
|
|
78
|
-
|
|
79
62
|
After starting, parse the JSON output (e.g., `{"success":true,"url":"http://localhost:3456/view?file=...","networkUrl":"http://192.168.1.x:3456/view?file=..."}`) and report:
|
|
80
63
|
- Local URL for browser access
|
|
81
64
|
- Network URL for remote device access (if available)
|
|
82
|
-
- Inform user that server is now running
|
|
65
|
+
- Inform user that server is now running in the terminal; stop it by running the stop command
|
|
83
66
|
|
|
84
67
|
**CRITICAL:** MUST display the FULL URL including path and query string (e.g., `http://localhost:3456/view?file=/path/to/file.md`). NEVER truncate to just `host:port` (e.g., `http://localhost:3456`). The full URL is required for direct file access.
|
|
85
68
|
|
|
@@ -89,5 +72,6 @@ After starting, parse the JSON output (e.g., `{"success":true,"url":"http://loca
|
|
|
89
72
|
|
|
90
73
|
| Command | Description |
|
|
91
74
|
|---------|-------------|
|
|
92
|
-
| `/ck
|
|
93
|
-
| `/ck
|
|
75
|
+
| `/ck-brainstorm` | Explore ideas |
|
|
76
|
+
| `/ck-plan` | Create plan |
|
|
77
|
+
| `/ck-spec-specify` | Write detailed feature spec |
|