panopticon-cli 0.4.6 → 0.4.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.
Files changed (102) hide show
  1. package/package.json +2 -1
  2. package/skills/beads/README.md +120 -0
  3. package/skills/beads/SKILL.md +214 -0
  4. package/skills/beads/adr/0001-bd-prime-as-source-of-truth.md +59 -0
  5. package/skills/beads/resources/AGENTS.md +62 -0
  6. package/skills/beads/resources/ASYNC_GATES.md +168 -0
  7. package/skills/beads/resources/BOUNDARIES.md +469 -0
  8. package/skills/beads/resources/CHEMISTRY_PATTERNS.md +197 -0
  9. package/skills/beads/resources/CLI_REFERENCE.md +558 -0
  10. package/skills/beads/resources/DEPENDENCIES.md +747 -0
  11. package/skills/beads/resources/INTEGRATION_PATTERNS.md +407 -0
  12. package/skills/beads/resources/ISSUE_CREATION.md +139 -0
  13. package/skills/beads/resources/MOLECULES.md +354 -0
  14. package/skills/beads/resources/PATTERNS.md +341 -0
  15. package/skills/beads/resources/RESUMABILITY.md +207 -0
  16. package/skills/beads/resources/STATIC_DATA.md +54 -0
  17. package/skills/beads/resources/TROUBLESHOOTING.md +489 -0
  18. package/skills/beads/resources/WORKFLOWS.md +623 -0
  19. package/skills/beads/resources/WORKTREES.md +94 -0
  20. package/skills/beads-completion-check/SKILL.md +90 -0
  21. package/skills/beads-panopticon-guide/SKILL.md +171 -0
  22. package/skills/bug-fix/SKILL.md +32 -0
  23. package/skills/clear-writing/SKILL.md +105 -0
  24. package/skills/clear-writing/references/elements-of-style/01-introductory.md +3 -0
  25. package/skills/clear-writing/references/elements-of-style/02-elementary-rules-of-usage.md +214 -0
  26. package/skills/clear-writing/references/elements-of-style/03-elementary-principles-of-composition.md +398 -0
  27. package/skills/clear-writing/references/elements-of-style/04-a-few-matters-of-form.md +89 -0
  28. package/skills/clear-writing/references/elements-of-style/05-words-and-expressions-commonly-misused.md +342 -0
  29. package/skills/clear-writing/references/signs-of-ai-writing.md +901 -0
  30. package/skills/code-review/SKILL.md +37 -0
  31. package/skills/code-review-performance/SKILL.md +53 -0
  32. package/skills/code-review-security/SKILL.md +35 -0
  33. package/skills/dependency-update/SKILL.md +30 -0
  34. package/skills/feature-work/SKILL.md +39 -0
  35. package/skills/incident-response/SKILL.md +32 -0
  36. package/skills/knowledge-capture/SKILL.md +463 -0
  37. package/skills/onboard-codebase/SKILL.md +34 -0
  38. package/skills/opus-plan/SKILL.md +400 -0
  39. package/skills/pan-approve/SKILL.md +136 -0
  40. package/skills/pan-code-review/SKILL.md +249 -0
  41. package/skills/pan-config/SKILL.md +164 -0
  42. package/skills/pan-convoy-synthesis/SKILL.md +249 -0
  43. package/skills/pan-diagnose/SKILL.md +360 -0
  44. package/skills/pan-docker/SKILL.md +279 -0
  45. package/skills/pan-docs/SKILL.md +113 -0
  46. package/skills/pan-down/SKILL.md +434 -0
  47. package/skills/pan-health/SKILL.md +240 -0
  48. package/skills/pan-help/SKILL.md +237 -0
  49. package/skills/pan-install/SKILL.md +339 -0
  50. package/skills/pan-issue/SKILL.md +596 -0
  51. package/skills/pan-kill/SKILL.md +172 -0
  52. package/skills/pan-logs/SKILL.md +255 -0
  53. package/skills/pan-network/SKILL.md +320 -0
  54. package/skills/pan-oversee/SKILL.md +290 -0
  55. package/skills/pan-plan/SKILL.md +521 -0
  56. package/skills/pan-projects/SKILL.md +239 -0
  57. package/skills/pan-quickstart/SKILL.md +440 -0
  58. package/skills/pan-reload/SKILL.md +44 -0
  59. package/skills/pan-rescue/SKILL.md +271 -0
  60. package/skills/pan-restart/SKILL.md +53 -0
  61. package/skills/pan-setup/SKILL.md +478 -0
  62. package/skills/pan-skill-creator/SKILL.md +168 -0
  63. package/skills/pan-skill-creator/references/output-patterns.md +141 -0
  64. package/skills/pan-skill-creator/references/workflows.md +90 -0
  65. package/skills/pan-skill-creator/scripts/init_skill.py +176 -0
  66. package/skills/pan-status/SKILL.md +493 -0
  67. package/skills/pan-subagent-creator/SKILL.md +295 -0
  68. package/skills/pan-subagent-creator/assets/validate-readonly-query.sh +35 -0
  69. package/skills/pan-subagent-creator/references/example-agents.md +308 -0
  70. package/skills/pan-subagent-creator/scripts/init_agent.py +126 -0
  71. package/skills/pan-sync/SKILL.md +272 -0
  72. package/skills/pan-tell/SKILL.md +157 -0
  73. package/skills/pan-test-config/SKILL.md +208 -0
  74. package/skills/pan-tracker/SKILL.md +288 -0
  75. package/skills/pan-up/SKILL.md +458 -0
  76. package/skills/pan-workspace-config/SKILL.md +303 -0
  77. package/skills/refactor/SKILL.md +30 -0
  78. package/skills/refactor-radar/SKILL.md +475 -0
  79. package/skills/release/SKILL.md +25 -0
  80. package/skills/send-feedback-to-agent/SKILL.md +98 -0
  81. package/skills/session-health/SKILL.md +76 -0
  82. package/skills/session-health/scripts/check_sessions.py +166 -0
  83. package/skills/skill-creator/SKILL.md +92 -0
  84. package/skills/skill-creator/scripts/init_skill.py +152 -0
  85. package/skills/skill-creator/scripts/package_skill.py +123 -0
  86. package/skills/stitch-design-md/README.md +34 -0
  87. package/skills/stitch-design-md/SKILL.md +172 -0
  88. package/skills/stitch-design-md/examples/DESIGN.md +154 -0
  89. package/skills/stitch-react-components/README.md +36 -0
  90. package/skills/stitch-react-components/SKILL.md +47 -0
  91. package/skills/stitch-react-components/examples/gold-standard-card.tsx +80 -0
  92. package/skills/stitch-react-components/package-lock.json +231 -0
  93. package/skills/stitch-react-components/package.json +16 -0
  94. package/skills/stitch-react-components/resources/architecture-checklist.md +15 -0
  95. package/skills/stitch-react-components/resources/component-template.tsx +37 -0
  96. package/skills/stitch-react-components/resources/stitch-api-reference.md +14 -0
  97. package/skills/stitch-react-components/resources/style-guide.json +27 -0
  98. package/skills/stitch-react-components/scripts/fetch-stitch.sh +30 -0
  99. package/skills/stitch-react-components/scripts/validate.js +68 -0
  100. package/skills/stitch-setup/SKILL.md +94 -0
  101. package/skills/web-design-guidelines/SKILL.md +39 -0
  102. package/skills/work-complete/SKILL.md +79 -0
@@ -0,0 +1,489 @@
1
+ # Troubleshooting Guide
2
+
3
+ Common issues encountered when using bd and how to resolve them.
4
+
5
+ ## Interface-Specific Troubleshooting
6
+
7
+ **MCP tools (local environment):**
8
+ - MCP tools require bd daemon running
9
+ - Check daemon status: `bd daemon --status` (CLI)
10
+ - If MCP tools fail, verify daemon is running and restart if needed
11
+ - MCP tools automatically use daemon mode (no --no-daemon option)
12
+
13
+ **CLI (web environment or local):**
14
+ - CLI can use daemon mode (default) or direct mode (--no-daemon)
15
+ - Direct mode has 3-5 second sync delay
16
+ - Web environment: Install via `npm install -g @beads/cli`
17
+ - Web environment: Initialize via `bd init <prefix>` before first use
18
+
19
+ **Most issues below apply to both interfaces** - the underlying database and daemon behavior is the same.
20
+
21
+ ## Contents
22
+
23
+ - [Dependencies Not Persisting](#dependencies-not-persisting)
24
+ - [Status Updates Not Visible](#status-updates-not-visible)
25
+ - [Daemon Won't Start](#daemon-wont-start)
26
+ - [Database Errors on Cloud Storage](#database-errors-on-cloud-storage)
27
+ - [JSONL File Not Created](#jsonl-file-not-created)
28
+ - [Version Requirements](#version-requirements)
29
+
30
+ ---
31
+
32
+ ## Dependencies Not Persisting
33
+
34
+ ### Symptom
35
+ ```bash
36
+ bd dep add issue-2 issue-1 --type blocks
37
+ # Reports: ✓ Added dependency
38
+ bd show issue-2
39
+ # Shows: No dependencies listed
40
+ ```
41
+
42
+ ### Root Cause (Fixed in v0.15.0+)
43
+ This was a **bug in bd** (GitHub issue #101) where the daemon ignored dependencies during issue creation. **Fixed in bd v0.15.0** (Oct 21, 2025).
44
+
45
+ ### Resolution
46
+
47
+ **1. Check your bd version:**
48
+ ```bash
49
+ bd version
50
+ ```
51
+
52
+ **2. If version < 0.15.0, update bd:**
53
+ ```bash
54
+ # Via Homebrew (macOS/Linux)
55
+ brew upgrade bd
56
+
57
+ # Via go install
58
+ go install github.com/steveyegge/beads/cmd/bd@latest
59
+
60
+ # Via package manager
61
+ # See https://github.com/steveyegge/beads#installing
62
+ ```
63
+
64
+ **3. Restart daemon after upgrade:**
65
+ ```bash
66
+ pkill -f "bd daemon" # Kill old daemon
67
+ bd daemon # Start new daemon with fix
68
+ ```
69
+
70
+ **4. Test dependency creation:**
71
+ ```bash
72
+ bd create "Test A" -t task
73
+ bd create "Test B" -t task
74
+ bd dep add <B-id> <A-id> --type blocks
75
+ bd show <B-id>
76
+ # Should show: "Depends on (1): → <A-id>"
77
+ ```
78
+
79
+ ### Still Not Working?
80
+
81
+ If dependencies still don't persist after updating:
82
+
83
+ 1. **Check daemon is running:**
84
+ ```bash
85
+ ps aux | grep "bd daemon"
86
+ ```
87
+
88
+ 2. **Try without --no-daemon flag:**
89
+ ```bash
90
+ # Instead of: bd --no-daemon dep add ...
91
+ # Use: bd dep add ... (let daemon handle it)
92
+ ```
93
+
94
+ 3. **Check JSONL file:**
95
+ ```bash
96
+ cat .beads/issues.jsonl | jq '.dependencies'
97
+ # Should show dependency array
98
+ ```
99
+
100
+ 4. **Report to beads GitHub** with:
101
+ - `bd version` output
102
+ - Operating system
103
+ - Reproducible test case
104
+
105
+ ---
106
+
107
+ ## Status Updates Not Visible
108
+
109
+ ### Symptom
110
+ ```bash
111
+ bd --no-daemon update issue-1 --status in_progress
112
+ # Reports: ✓ Updated issue: issue-1
113
+ bd show issue-1
114
+ # Shows: Status: open (not in_progress!)
115
+ ```
116
+
117
+ ### Root Cause
118
+ This is **expected behavior**, not a bug. Understanding requires knowing bd's architecture:
119
+
120
+ **BD Architecture:**
121
+ - **JSONL files** (`.beads/issues.jsonl`): Human-readable export format
122
+ - **SQLite database** (`.beads/*.db`): Source of truth for queries
123
+ - **Daemon**: Syncs JSONL ↔ SQLite every 5 minutes
124
+
125
+ **What `--no-daemon` actually does:**
126
+ - **Writes**: Go directly to JSONL file
127
+ - **Reads**: Still come from SQLite database
128
+ - **Sync delay**: Daemon imports JSONL → SQLite periodically
129
+
130
+ ### Resolution
131
+
132
+ **Option 1: Use daemon mode (recommended)**
133
+ ```bash
134
+ # Don't use --no-daemon for CRUD operations
135
+ bd update issue-1 --status in_progress
136
+ bd show issue-1
137
+ # ✓ Status reflects immediately
138
+ ```
139
+
140
+ **Option 2: Wait for sync (if using --no-daemon)**
141
+ ```bash
142
+ bd --no-daemon update issue-1 --status in_progress
143
+ # Wait 3-5 seconds for daemon to sync
144
+ sleep 5
145
+ bd show issue-1
146
+ # ✓ Status should reflect now
147
+ ```
148
+
149
+ **Option 3: Manual sync trigger**
150
+ ```bash
151
+ bd --no-daemon update issue-1 --status in_progress
152
+ # Trigger sync by exporting/importing
153
+ bd export > /dev/null 2>&1 # Forces sync
154
+ bd show issue-1
155
+ ```
156
+
157
+ ### When to Use `--no-daemon`
158
+
159
+ **Use --no-daemon for:**
160
+ - Batch import scripts (performance)
161
+ - CI/CD environments (no persistent daemon)
162
+ - Testing/debugging
163
+
164
+ **Don't use --no-daemon for:**
165
+ - Interactive development
166
+ - Real-time status checks
167
+ - When you need immediate query results
168
+
169
+ ---
170
+
171
+ ## Daemon Won't Start
172
+
173
+ ### Symptom
174
+ ```bash
175
+ bd daemon
176
+ # Error: not in a git repository
177
+ # Hint: run 'git init' to initialize a repository
178
+ ```
179
+
180
+ ### Root Cause
181
+ bd daemon requires a **git repository** because it uses git for:
182
+ - Syncing issues to git remote (optional)
183
+ - Version control of `.beads/*.jsonl` files
184
+ - Commit history of issue changes
185
+
186
+ ### Resolution
187
+
188
+ **Initialize git repository:**
189
+ ```bash
190
+ # In your project directory
191
+ git init
192
+ bd daemon
193
+ # ✓ Daemon should start now
194
+ ```
195
+
196
+ **Prevent git remote operations:**
197
+ ```bash
198
+ # If you don't want daemon to pull from remote
199
+ bd daemon --global=false
200
+ ```
201
+
202
+ **Flags:**
203
+ - `--global=false`: Don't sync with git remote
204
+ - `--interval=10m`: Custom sync interval (default: 5m)
205
+ - `--auto-commit=true`: Auto-commit JSONL changes
206
+
207
+ ---
208
+
209
+ ## Database Errors on Cloud Storage
210
+
211
+ ### Symptom
212
+ ```bash
213
+ # In directory: /Users/name/Google Drive/...
214
+ bd init myproject
215
+ # Error: disk I/O error (522)
216
+ # OR: Error: database is locked
217
+ ```
218
+
219
+ ### Root Cause
220
+ **SQLite incompatibility with cloud sync filesystems.**
221
+
222
+ Cloud services (Google Drive, Dropbox, OneDrive, iCloud) don't support:
223
+ - POSIX file locking (required by SQLite)
224
+ - Consistent file handles across sync operations
225
+ - Atomic write operations
226
+
227
+ This is a **known SQLite limitation**, not a bd bug.
228
+
229
+ ### Resolution
230
+
231
+ **Move bd database to local filesystem:**
232
+
233
+ ```bash
234
+ # Wrong location (cloud sync)
235
+ ~/Google Drive/My Work/project/.beads/ # ✗ Will fail
236
+
237
+ # Correct location (local disk)
238
+ ~/Repos/project/.beads/ # ✓ Works reliably
239
+ ~/Projects/project/.beads/ # ✓ Works reliably
240
+ ```
241
+
242
+ **Migration steps:**
243
+
244
+ 1. **Move project to local disk:**
245
+ ```bash
246
+ mv ~/Google\ Drive/project ~/Repos/project
247
+ cd ~/Repos/project
248
+ ```
249
+
250
+ 2. **Re-initialize bd (if needed):**
251
+ ```bash
252
+ bd init myproject
253
+ ```
254
+
255
+ 3. **Import existing issues (if you had JSONL export):**
256
+ ```bash
257
+ bd import < issues-backup.jsonl
258
+ ```
259
+
260
+ **Alternative: Use global `~/.beads/` database**
261
+
262
+ If you must keep work on cloud storage:
263
+ ```bash
264
+ # Don't initialize bd in cloud-synced directory
265
+ # Use global database instead
266
+ cd ~/Google\ Drive/project
267
+ bd create "My task"
268
+ # Uses ~/.beads/default.db (on local disk)
269
+ ```
270
+
271
+ **Workaround limitations:**
272
+ - No per-project database isolation
273
+ - All projects share same issue prefix
274
+ - Manual tracking of which issues belong to which project
275
+
276
+ **Recommendation:** Keep code/projects on local disk, sync final deliverables to cloud.
277
+
278
+ ---
279
+
280
+ ## JSONL File Not Created
281
+
282
+ ### Symptom
283
+ ```bash
284
+ bd init myproject
285
+ bd --no-daemon create "Test" -t task
286
+ ls .beads/
287
+ # Only shows: .gitignore, myproject.db
288
+ # Missing: issues.jsonl
289
+ ```
290
+
291
+ ### Root Cause
292
+ **JSONL initialization coupling.** The `issues.jsonl` file is created by daemon on first startup, not by `bd init`.
293
+
294
+ ### Resolution
295
+
296
+ **Start daemon once to initialize JSONL:**
297
+ ```bash
298
+ bd daemon --global=false &
299
+ # Wait for initialization
300
+ sleep 2
301
+
302
+ # Now JSONL file exists
303
+ ls .beads/issues.jsonl
304
+ # ✓ File created
305
+
306
+ # Subsequent --no-daemon operations work
307
+ bd --no-daemon create "Task 1" -t task
308
+ cat .beads/issues.jsonl
309
+ # ✓ Shows task data
310
+ ```
311
+
312
+ **Why this matters:**
313
+ - Daemon owns the JSONL export format
314
+ - First daemon run creates empty JSONL skeleton
315
+ - `--no-daemon` operations assume JSONL exists
316
+
317
+ **Pattern for batch scripts:**
318
+ ```bash
319
+ #!/bin/bash
320
+ # Batch import script
321
+
322
+ bd init myproject
323
+ bd daemon --global=false & # Start daemon
324
+ sleep 3 # Wait for initialization
325
+
326
+ # Now safe to use --no-daemon for performance
327
+ for item in "${items[@]}"; do
328
+ bd --no-daemon create "$item" -t feature
329
+ done
330
+
331
+ # Daemon syncs JSONL → SQLite in background
332
+ sleep 5 # Wait for final sync
333
+
334
+ # Query results
335
+ bd stats
336
+ ```
337
+
338
+ ---
339
+
340
+ ## Version Requirements
341
+
342
+ ### Minimum Version for Dependency Persistence
343
+
344
+ **Issue:** Dependencies created but don't appear in `bd show` or dependency tree.
345
+
346
+ **Fix:** Upgrade to **bd v0.15.0+** (released Oct 2025)
347
+
348
+ **Check version:**
349
+ ```bash
350
+ bd version
351
+ # Should show: bd version 0.15.0 or higher
352
+ ```
353
+
354
+ **If using MCP plugin:**
355
+ ```bash
356
+ # Update Claude Code beads plugin
357
+ claude plugin update beads
358
+ ```
359
+
360
+ ### Breaking Changes
361
+
362
+ **v0.15.0:**
363
+ - MCP parameter names changed from `from_id/to_id` to `issue_id/depends_on_id`
364
+ - Dependency creation now persists correctly in daemon mode
365
+
366
+ **v0.14.0:**
367
+ - Daemon architecture changes
368
+ - Auto-sync JSONL behavior introduced
369
+
370
+ ---
371
+
372
+ ## MCP-Specific Issues
373
+
374
+ ### Dependencies Created Backwards
375
+
376
+ **Symptom:**
377
+ Using MCP tools, dependencies end up reversed from intended.
378
+
379
+ **Example:**
380
+ ```python
381
+ # Want: "task-2 depends on task-1" (task-1 blocks task-2)
382
+ beads_add_dependency(issue_id="task-1", depends_on_id="task-2")
383
+ # Wrong! This makes task-1 depend on task-2
384
+ ```
385
+
386
+ **Root Cause:**
387
+ Parameter confusion between old (`from_id/to_id`) and new (`issue_id/depends_on_id`) names.
388
+
389
+ **Resolution:**
390
+
391
+ **Correct MCP usage (bd v0.15.0+):**
392
+ ```python
393
+ # Correct: task-2 depends on task-1
394
+ beads_add_dependency(
395
+ issue_id="task-2", # Issue that has dependency
396
+ depends_on_id="task-1", # Issue that must complete first
397
+ dep_type="blocks"
398
+ )
399
+ ```
400
+
401
+ **Mnemonic:**
402
+ - `issue_id`: The issue that **waits**
403
+ - `depends_on_id`: The issue that **must finish first**
404
+
405
+ **Equivalent CLI:**
406
+ ```bash
407
+ bd dep add task-2 task-1 --type blocks
408
+ # Meaning: task-2 depends on task-1
409
+ ```
410
+
411
+ **Verify dependency direction:**
412
+ ```bash
413
+ bd show task-2
414
+ # Should show: "Depends on: task-1"
415
+ # Not the other way around
416
+ ```
417
+
418
+ ---
419
+
420
+ ## Getting Help
421
+
422
+ ### Debug Checklist
423
+
424
+ Before reporting issues, collect this information:
425
+
426
+ ```bash
427
+ # 1. Version
428
+ bd version
429
+
430
+ # 2. Daemon status
431
+ ps aux | grep "bd daemon"
432
+
433
+ # 3. Database location
434
+ echo $PWD/.beads/*.db
435
+ ls -la .beads/
436
+
437
+ # 4. Git status
438
+ git status
439
+ git log --oneline -1
440
+
441
+ # 5. JSONL contents (for dependency issues)
442
+ cat .beads/issues.jsonl | jq '.' | head -50
443
+ ```
444
+
445
+ ### Report to beads GitHub
446
+
447
+ If problems persist:
448
+
449
+ 1. **Check existing issues:** https://github.com/steveyegge/beads/issues
450
+ 2. **Create new issue** with:
451
+ - bd version (`bd version`)
452
+ - Operating system
453
+ - Debug checklist output (above)
454
+ - Minimal reproducible example
455
+ - Expected vs actual behavior
456
+
457
+ ### Claude Code Skill Issues
458
+
459
+ If the **bd-issue-tracking skill** provides incorrect guidance:
460
+
461
+ 1. **Check skill version:**
462
+ ```bash
463
+ ls -la ~/.claude/skills/bd-issue-tracking/
464
+ head -20 ~/.claude/skills/bd-issue-tracking/SKILL.md
465
+ ```
466
+
467
+ 2. **Report via Claude Code feedback** or user's GitHub
468
+
469
+ ---
470
+
471
+ ## Quick Reference: Common Fixes
472
+
473
+ | Problem | Quick Fix |
474
+ |---------|-----------|
475
+ | Dependencies not saving | Upgrade to bd v0.15.0+ |
476
+ | Status updates lag | Use daemon mode (not `--no-daemon`) |
477
+ | Daemon won't start | Run `git init` first |
478
+ | Database errors on Google Drive | Move to local filesystem |
479
+ | JSONL file missing | Start daemon once: `bd daemon &` |
480
+ | Dependencies backwards (MCP) | Update to v0.15.0+, use `issue_id/depends_on_id` correctly |
481
+
482
+ ---
483
+
484
+ ## Related Documentation
485
+
486
+ - [CLI Reference](CLI_REFERENCE.md) - Complete command documentation
487
+ - [Dependencies Guide](DEPENDENCIES.md) - Understanding dependency types
488
+ - [Workflows](WORKFLOWS.md) - Step-by-step workflow guides
489
+ - [beads GitHub](https://github.com/steveyegge/beads) - Official documentation