cokit-cli 1.2.4 → 1.2.6
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 +6 -7
- 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 +4 -4
- package/docs/cokit-slides.md +1 -1
- package/docs/cokit-sync-and-maintenance-guide.md +2 -2
- package/docs/cokit-team-presentation.md +5 -5
- package/docs/guide-next-steps-speckit-cokit-implementation.md +1 -1
- package/docs/project-overview-pdr.md +1 -1
- package/docs/project-roadmap.md +6 -7
- 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/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
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# Test Execution Workflow
|
|
2
|
+
|
|
3
|
+
Orchestrated workflow for running code-level tests across any language/framework.
|
|
4
|
+
|
|
5
|
+
## Step 1: Identify Scope
|
|
6
|
+
|
|
7
|
+
Determine what to test based on recent changes:
|
|
8
|
+
|
|
9
|
+
| Change Type | Test Strategy |
|
|
10
|
+
|-------------|---------------|
|
|
11
|
+
| New feature | Full test suite + new test cases |
|
|
12
|
+
| Bug fix | Regression tests + targeted fix validation |
|
|
13
|
+
| Refactor | Existing test suite (no new tests unless gaps found) |
|
|
14
|
+
| Coverage check | Full suite with coverage flags |
|
|
15
|
+
|
|
16
|
+
## Step 2: Pre-flight Checks
|
|
17
|
+
|
|
18
|
+
Run syntax/type checks before tests to catch compile errors early:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
# JavaScript/TypeScript
|
|
22
|
+
npx tsc --noEmit
|
|
23
|
+
npx eslint .
|
|
24
|
+
|
|
25
|
+
# Python
|
|
26
|
+
python -m py_compile file.py
|
|
27
|
+
flake8 .
|
|
28
|
+
|
|
29
|
+
# Flutter
|
|
30
|
+
flutter analyze
|
|
31
|
+
|
|
32
|
+
# Go
|
|
33
|
+
go vet ./...
|
|
34
|
+
|
|
35
|
+
# Rust
|
|
36
|
+
cargo check
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Step 3: Execute Tests
|
|
40
|
+
|
|
41
|
+
### JavaScript/TypeScript
|
|
42
|
+
```bash
|
|
43
|
+
npm test # project default
|
|
44
|
+
npx vitest run # Vitest
|
|
45
|
+
npx jest --coverage # Jest with coverage
|
|
46
|
+
bun test # Bun
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Python
|
|
50
|
+
```bash
|
|
51
|
+
pytest # basic
|
|
52
|
+
pytest --cov=src --cov-report=term-missing # with coverage
|
|
53
|
+
python -m unittest discover # unittest
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Go
|
|
57
|
+
```bash
|
|
58
|
+
go test ./... -cover # with coverage
|
|
59
|
+
go test ./... -race # race condition detection
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Rust
|
|
63
|
+
```bash
|
|
64
|
+
cargo test
|
|
65
|
+
cargo test -- --nocapture # show stdout
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Flutter
|
|
69
|
+
```bash
|
|
70
|
+
flutter test --coverage
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Step 4: Analyze Results
|
|
74
|
+
|
|
75
|
+
Focus on:
|
|
76
|
+
1. **Failing tests** — read error messages and stack traces carefully
|
|
77
|
+
2. **Flaky tests** — pass/fail intermittently → race conditions or state leaks
|
|
78
|
+
3. **Slow tests** — >5s per test is suspicious, identify bottlenecks
|
|
79
|
+
4. **Skipped tests** — ensure skips are intentional, not hiding failures
|
|
80
|
+
|
|
81
|
+
## Step 5: Coverage Analysis
|
|
82
|
+
|
|
83
|
+
Thresholds:
|
|
84
|
+
- **80%+** line coverage — standard minimum
|
|
85
|
+
- **70%+** branch coverage — acceptable for most projects
|
|
86
|
+
- Focus on critical paths: auth, payment, data mutations
|
|
87
|
+
|
|
88
|
+
Identify gaps:
|
|
89
|
+
- Uncovered error handlers
|
|
90
|
+
- Missing edge case branches
|
|
91
|
+
- Untested utility functions
|
|
92
|
+
|
|
93
|
+
## Step 6: Build Verification
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
npm run build # JS/TS production build
|
|
97
|
+
python setup.py build # Python
|
|
98
|
+
go build ./... # Go
|
|
99
|
+
cargo build --release # Rust
|
|
100
|
+
flutter build # Flutter
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Check for:
|
|
104
|
+
- Build warnings or deprecation notices
|
|
105
|
+
- Unresolved dependencies
|
|
106
|
+
- Production config correctness
|
|
107
|
+
|
|
108
|
+
## Quality Checklist
|
|
109
|
+
|
|
110
|
+
- [ ] All tests pass (zero failures)
|
|
111
|
+
- [ ] Coverage meets project threshold
|
|
112
|
+
- [ ] No flaky tests detected
|
|
113
|
+
- [ ] Build completes without errors
|
|
114
|
+
- [ ] Error scenarios tested
|
|
115
|
+
- [ ] Test isolation verified (no shared state)
|
|
116
|
+
- [ ] Test data cleaned up after execution
|
|
117
|
+
- [ ] Mocks/stubs properly configured
|
|
118
|
+
- [ ] Environment variables correctly set
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# UI Testing Workflow
|
|
2
|
+
|
|
3
|
+
Browser-based visual testing using `agent-browser` skill. Covers screenshots, responsive checks, accessibility, form automation, console errors.
|
|
4
|
+
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
Ensure `agent-browser` skill is available. For screenshot analysis, use `ai-multimodal` skill (if available).
|
|
8
|
+
|
|
9
|
+
## Step 1: Discovery
|
|
10
|
+
|
|
11
|
+
Browse target URL, discover pages, components, endpoints:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# Navigate and capture initial state
|
|
15
|
+
# Use agent-browser skill to browse http://localhost:3000
|
|
16
|
+
# Capture ARIA snapshot for accessibility baseline
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Step 2: Visual Capture
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# Full page screenshot
|
|
23
|
+
# Screenshot http://localhost:3000 → ./screenshots/home.png (full-page)
|
|
24
|
+
|
|
25
|
+
# Specific component
|
|
26
|
+
# Screenshot selector ".main-content" → ./screenshots/main.png
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Step 3: Console Error Check
|
|
30
|
+
|
|
31
|
+
Capture JavaScript errors for 5 seconds on each page.
|
|
32
|
+
|
|
33
|
+
- Zero errors = pass
|
|
34
|
+
- Any errors = investigate before proceeding
|
|
35
|
+
- Check for: uncaught exceptions, failed promises, deprecation warnings
|
|
36
|
+
|
|
37
|
+
## Step 4: Network Validation
|
|
38
|
+
|
|
39
|
+
Check for failed API calls:
|
|
40
|
+
- Filter responses with status >= 400
|
|
41
|
+
- Identify CORS issues, missing endpoints, auth failures
|
|
42
|
+
- Validate API response times
|
|
43
|
+
|
|
44
|
+
## Step 5: Responsive Testing
|
|
45
|
+
|
|
46
|
+
Capture at key breakpoints:
|
|
47
|
+
|
|
48
|
+
| Viewport | Size | Device |
|
|
49
|
+
|----------|------|--------|
|
|
50
|
+
| Desktop | 1920x1080 | Standard monitor |
|
|
51
|
+
| Tablet | 768x1024 | iPad |
|
|
52
|
+
| Mobile | 375x812 | iPhone |
|
|
53
|
+
|
|
54
|
+
For each viewport:
|
|
55
|
+
1. Resize browser window
|
|
56
|
+
2. Capture full-page screenshot
|
|
57
|
+
3. Check for layout breakage, overflow, hidden elements
|
|
58
|
+
|
|
59
|
+
## Step 6: Form & Interaction Testing
|
|
60
|
+
|
|
61
|
+
Test interactive elements:
|
|
62
|
+
1. Fill form fields with valid data
|
|
63
|
+
2. Submit and verify success state
|
|
64
|
+
3. Fill with invalid data and verify error messages
|
|
65
|
+
4. Test keyboard navigation (Tab, Enter, Escape)
|
|
66
|
+
5. Capture screenshots of each state
|
|
67
|
+
|
|
68
|
+
## Step 7: Performance Metrics
|
|
69
|
+
|
|
70
|
+
Collect Core Web Vitals:
|
|
71
|
+
- **LCP** (Largest Contentful Paint): < 2.5s
|
|
72
|
+
- **FID/INP** (First Input Delay / Interaction to Next Paint): < 200ms
|
|
73
|
+
- **CLS** (Cumulative Layout Shift): < 0.1
|
|
74
|
+
|
|
75
|
+
## Authentication for Protected Routes
|
|
76
|
+
|
|
77
|
+
For pages behind auth:
|
|
78
|
+
|
|
79
|
+
| Method | Use Case |
|
|
80
|
+
|--------|----------|
|
|
81
|
+
| Cookie injection | Session-based auth |
|
|
82
|
+
| Bearer token | API/JWT auth |
|
|
83
|
+
| localStorage | SPA token storage |
|
|
84
|
+
|
|
85
|
+
After injection, browser session persists for subsequent tests.
|
|
86
|
+
|
|
87
|
+
## Screenshot Analysis
|
|
88
|
+
|
|
89
|
+
Use `ai-multimodal` skill (if available) to analyze captured screenshots for:
|
|
90
|
+
- Layout correctness
|
|
91
|
+
- Visual regressions vs baseline
|
|
92
|
+
- Missing elements or broken styling
|
|
93
|
+
- Accessibility issues (contrast, text size)
|
|
94
|
+
|
|
95
|
+
## Cleanup
|
|
96
|
+
|
|
97
|
+
Close browser sessions when testing completes to free resources.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
agent: 'agent'
|
|
3
|
-
description: 'Write journal entries from recent changes and memories'
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Use the `journal-writer` agent to explore the memories and recent code changes, and write some journal entries.
|
|
7
|
-
Journal entries should be concise and focused on the most important events, key changes, impacts, and decisions.
|
|
8
|
-
Keep journal entries in the `./docs/journals/` directory.
|
|
9
|
-
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
## Suggested Next Steps
|
|
13
|
-
|
|
14
|
-
| Command | Description |
|
|
15
|
-
|---------|-------------|
|
|
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 |
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
agent: 'agent'
|
|
3
|
-
description: 'Preview markdown files, plan directories, or plans collection'
|
|
4
|
-
argument-hint: 'Path to markdown file or directory'
|
|
5
|
-
tools: ['execute/runInTerminal', 'execute/getTerminalOutput']
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
Universal viewer - pass ANY path and see it rendered nicely.
|
|
9
|
-
|
|
10
|
-
## Usage
|
|
11
|
-
|
|
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
|
-
|
|
16
|
-
## Examples
|
|
17
|
-
|
|
18
|
-
```bash
|
|
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
|
-
```
|
|
25
|
-
|
|
26
|
-
## Execution
|
|
27
|
-
|
|
28
|
-
Run the server using `#tool:execute/runInTerminal`. The skill is located at `$HOME/.copilot/skills/markdown-novel-viewer/`.
|
|
29
|
-
|
|
30
|
-
### Stop Server
|
|
31
|
-
|
|
32
|
-
If `--stop` flag is provided:
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
node $HOME/.copilot/skills/markdown-novel-viewer/scripts/server.cjs --stop
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Start Server
|
|
39
|
-
|
|
40
|
-
Otherwise, run the `markdown-novel-viewer` server with `--foreground` flag:
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
# Determine if path is file or directory
|
|
44
|
-
INPUT_PATH="${input}"
|
|
45
|
-
if [[ -d "$INPUT_PATH" ]]; then
|
|
46
|
-
# Directory mode - browse
|
|
47
|
-
node $HOME/.copilot/skills/markdown-novel-viewer/scripts/server.cjs \
|
|
48
|
-
--dir "$INPUT_PATH" \
|
|
49
|
-
--host 0.0.0.0 \
|
|
50
|
-
--open \
|
|
51
|
-
--foreground
|
|
52
|
-
else
|
|
53
|
-
# File mode - view markdown
|
|
54
|
-
node $HOME/.copilot/skills/markdown-novel-viewer/scripts/server.cjs \
|
|
55
|
-
--file "$INPUT_PATH" \
|
|
56
|
-
--host 0.0.0.0 \
|
|
57
|
-
--open \
|
|
58
|
-
--foreground
|
|
59
|
-
fi
|
|
60
|
-
```
|
|
61
|
-
|
|
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:
|
|
63
|
-
- Local URL for browser access
|
|
64
|
-
- Network URL for remote device access (if available)
|
|
65
|
-
- Inform user that server is now running in the terminal; stop it by running the stop command
|
|
66
|
-
|
|
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.
|
|
68
|
-
|
|
69
|
-
---
|
|
70
|
-
|
|
71
|
-
## Suggested Next Steps
|
|
72
|
-
|
|
73
|
-
| Command | Description |
|
|
74
|
-
|---------|-------------|
|
|
75
|
-
| `/ck-brainstorm` | Explore ideas |
|
|
76
|
-
| `/ck-plan` | Create plan |
|
|
77
|
-
| `/ck-spec-specify` | Write detailed feature spec |
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
agent: 'agent'
|
|
3
|
-
description: 'Write journal entries from recent changes and memories'
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Use the `journal-writer` agent to explore the memories and recent code changes, and write some journal entries.
|
|
7
|
-
Journal entries should be concise and focused on the most important events, key changes, impacts, and decisions.
|
|
8
|
-
Keep journal entries in the `./docs/journals/` directory.
|
|
9
|
-
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
## Suggested Next Steps
|
|
13
|
-
|
|
14
|
-
| Command | Description |
|
|
15
|
-
|---------|-------------|
|
|
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 |
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
agent: 'agent'
|
|
3
|
-
description: 'Preview markdown files, plan directories, or plans collection'
|
|
4
|
-
argument-hint: 'Path to markdown file or directory'
|
|
5
|
-
tools: ['execute/runInTerminal', 'execute/getTerminalOutput']
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
Universal viewer - pass ANY path and see it rendered nicely.
|
|
9
|
-
|
|
10
|
-
## Usage
|
|
11
|
-
|
|
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
|
-
|
|
16
|
-
## Examples
|
|
17
|
-
|
|
18
|
-
```bash
|
|
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
|
-
```
|
|
25
|
-
|
|
26
|
-
## Execution
|
|
27
|
-
|
|
28
|
-
Run the server using `#tool:execute/runInTerminal`. The skill is located at `$HOME/.copilot/skills/markdown-novel-viewer/`.
|
|
29
|
-
|
|
30
|
-
### Stop Server
|
|
31
|
-
|
|
32
|
-
If `--stop` flag is provided:
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
node $HOME/.copilot/skills/markdown-novel-viewer/scripts/server.cjs --stop
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Start Server
|
|
39
|
-
|
|
40
|
-
Otherwise, run the `markdown-novel-viewer` server with `--foreground` flag:
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
# Determine if path is file or directory
|
|
44
|
-
INPUT_PATH="${input}"
|
|
45
|
-
if [[ -d "$INPUT_PATH" ]]; then
|
|
46
|
-
# Directory mode - browse
|
|
47
|
-
node $HOME/.copilot/skills/markdown-novel-viewer/scripts/server.cjs \
|
|
48
|
-
--dir "$INPUT_PATH" \
|
|
49
|
-
--host 0.0.0.0 \
|
|
50
|
-
--open \
|
|
51
|
-
--foreground
|
|
52
|
-
else
|
|
53
|
-
# File mode - view markdown
|
|
54
|
-
node $HOME/.copilot/skills/markdown-novel-viewer/scripts/server.cjs \
|
|
55
|
-
--file "$INPUT_PATH" \
|
|
56
|
-
--host 0.0.0.0 \
|
|
57
|
-
--open \
|
|
58
|
-
--foreground
|
|
59
|
-
fi
|
|
60
|
-
```
|
|
61
|
-
|
|
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:
|
|
63
|
-
- Local URL for browser access
|
|
64
|
-
- Network URL for remote device access (if available)
|
|
65
|
-
- Inform user that server is now running in the terminal; stop it by running the stop command
|
|
66
|
-
|
|
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.
|
|
68
|
-
|
|
69
|
-
---
|
|
70
|
-
|
|
71
|
-
## Suggested Next Steps
|
|
72
|
-
|
|
73
|
-
| Command | Description |
|
|
74
|
-
|---------|-------------|
|
|
75
|
-
| `/ck-brainstorm` | Explore ideas |
|
|
76
|
-
| `/ck-plan` | Create plan |
|
|
77
|
-
| `/ck-spec-specify` | Write detailed feature spec |
|