opencodekit 0.12.1 → 0.12.3

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 (42) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/template/.opencode/AGENTS.md +40 -417
  3. package/dist/template/.opencode/agent/build.md +53 -0
  4. package/dist/template/.opencode/agent/explore.md +6 -6
  5. package/dist/template/.opencode/agent/planner.md +0 -1
  6. package/dist/template/.opencode/agent/rush.md +38 -0
  7. package/dist/template/.opencode/command/accessibility-check.md +1 -1
  8. package/dist/template/.opencode/command/brainstorm.md +1 -1
  9. package/dist/template/.opencode/command/commit.md +1 -1
  10. package/dist/template/.opencode/command/create.md +68 -441
  11. package/dist/template/.opencode/command/finish.md +82 -252
  12. package/dist/template/.opencode/command/fix-ci.md +52 -247
  13. package/dist/template/.opencode/command/fix-types.md +33 -293
  14. package/dist/template/.opencode/command/fix-ui.md +49 -234
  15. package/dist/template/.opencode/command/fix.md +57 -194
  16. package/dist/template/.opencode/command/handoff.md +66 -243
  17. package/dist/template/.opencode/command/implement.md +67 -231
  18. package/dist/template/.opencode/command/issue.md +42 -190
  19. package/dist/template/.opencode/command/new-feature.md +1 -1
  20. package/dist/template/.opencode/command/plan.md +86 -442
  21. package/dist/template/.opencode/command/pr.md +3 -1
  22. package/dist/template/.opencode/command/research-and-implement.md +69 -370
  23. package/dist/template/.opencode/command/research-ui.md +1 -1
  24. package/dist/template/.opencode/command/research.md +72 -197
  25. package/dist/template/.opencode/command/resume.md +70 -438
  26. package/dist/template/.opencode/command/review-codebase.md +1 -1
  27. package/dist/template/.opencode/command/status.md +11 -11
  28. package/dist/template/.opencode/command/triage.md +23 -18
  29. package/dist/template/.opencode/dcp.jsonc +16 -33
  30. package/dist/template/.opencode/memory/project/commands.md +176 -5
  31. package/dist/template/.opencode/memory/project/conventions.md +104 -5
  32. package/dist/template/.opencode/memory/project/gotchas.md +128 -9
  33. package/dist/template/.opencode/opencode.json +511 -523
  34. package/dist/template/.opencode/package.json +1 -1
  35. package/dist/template/.opencode/plugin/beads.ts +181 -16
  36. package/dist/template/.opencode/skill/beads/SKILL.md +15 -0
  37. package/dist/template/.opencode/skill/context-engineering/SKILL.md +94 -0
  38. package/dist/template/.opencode/skill/memory-system/SKILL.md +107 -0
  39. package/dist/template/.opencode/skill/session-management/SKILL.md +111 -0
  40. package/dist/template/.opencode/skill/tool-priority/SKILL.md +115 -0
  41. package/package.json +1 -1
  42. package/dist/template/.opencode/tool/lsp.ts +0 -786
@@ -0,0 +1,115 @@
1
+ ---
2
+ description: Use when choosing between search tools (LSP, ast-grep, grep, glob) or need tool reference - covers when to use each tool and detailed syntax
3
+ ---
4
+
5
+ # Tool Priority Skill
6
+
7
+ ## Priority Order
8
+
9
+ **LSP tools → AST-grep → Built-in tools**
10
+
11
+ 1. **LSP tools** - Semantic code intelligence (10 tools)
12
+ 2. `ast-grep` - Code search/replace (functions, patterns, imports, hooks)
13
+ 3. `grep` - Text search (logs, config, non-code files, simple strings)
14
+ 4. `glob` - File discovery by name pattern
15
+ 5. `read`, `edit`, `write` - File operations
16
+
17
+ **Rule**: Always `read` before `edit` to verify content.
18
+
19
+ ## Choosing the Right Tool
20
+
21
+ Ask: **"Am I looking for code structure or just text?"**
22
+
23
+ | Need | Tool | Example |
24
+ | ----------------- | ------------------------- | ------------------------------------- |
25
+ | Function calls | `ast-grep` | `pattern="fetchUser($$$)"` |
26
+ | Hook usage | `ast-grep` | `pattern="useState($$$)"` |
27
+ | Import statements | `ast-grep` | `pattern="import { $$ } from '$MOD'"` |
28
+ | Error messages | `grep` | `pattern="FATAL\|ERROR"` |
29
+ | Config values | `grep` | `pattern="API_KEY"` |
30
+ | TODO comments | `grep` | `pattern="TODO\|FIXME"` |
31
+ | Symbol type info | `lsp_lsp_hover` | Type signature at cursor |
32
+ | Definition jump | `lsp_lsp_goto_definition` | Source location |
33
+ | All usages | `lsp_lsp_find_references` | Before refactoring |
34
+ | Safe rename | `lsp_lsp_rename` | All references updated |
35
+
36
+ ## LSP Tools Reference
37
+
38
+ Semantic code intelligence via Language Server Protocol. **Uses `lsp_lsp_*` prefix** (built-in experimental).
39
+
40
+ ### Navigation & Understanding
41
+
42
+ | Tool | Purpose | When to Use |
43
+ | ---------------------------------------------------- | ------------------------------------- | --------------------------------- |
44
+ | `lsp_lsp_hover(filePath, line, character)` | Type info and docs at cursor | "What type is this variable?" |
45
+ | `lsp_lsp_goto_definition(filePath, line, character)` | Jump to where symbol is defined | "Where is this function defined?" |
46
+ | `lsp_lsp_find_references(filePath, line, character)` | Find all usages of a symbol | "What uses this function?" |
47
+ | `lsp_lsp_document_symbols(filePath)` | File outline (classes, functions) | "What's in this file?" |
48
+ | `lsp_lsp_workspace_symbols(query, filePath)` | Fuzzy search symbols across workspace | "Where is UserService defined?" |
49
+
50
+ ### Diagnostics
51
+
52
+ | Tool | Purpose | When to Use |
53
+ | ------------------------------------------ | ------------------------------------ | ------------------------ |
54
+ | `lsp_lsp_diagnostics(filePath, severity?)` | Errors/warnings from language server | "Are there type errors?" |
55
+
56
+ ### Refactoring
57
+
58
+ | Tool | Purpose | When to Use |
59
+ | ------------------------------------------------------------------------ | ----------------------------- | ---------------------------------- |
60
+ | `lsp_lsp_rename(filePath, line, character, newName)` | Rename symbol across codebase | "Rename this function safely" |
61
+ | `lsp_lsp_code_actions(filePath, startLine, startChar, endLine, endChar)` | Get available refactorings | "What refactorings are available?" |
62
+ | `lsp_lsp_code_action_apply(...)` | Apply a specific code action | Execute chosen refactoring |
63
+ | `lsp_lsp_organize_imports(filePath)` | Clean up and sort imports | "Fix imports" |
64
+
65
+ **Caveat**: LSP tools modify files directly. Re-read files before further edits.
66
+
67
+ ## AST-Grep Reference
68
+
69
+ Semantic code operations - smarter than regex.
70
+
71
+ ### Pattern Syntax
72
+
73
+ - `$NAME` - Matches any single AST node (identifier, expression, etc.)
74
+ - `$$$` - Matches zero or more nodes (for arguments, statements, etc.)
75
+
76
+ ### Search Examples
77
+
78
+ ```bash
79
+ # Find all console.log calls
80
+ ast-grep pattern="console.log($$$)"
81
+
82
+ # Find async functions
83
+ ast-grep pattern="async function $NAME($$$) { $$$ }"
84
+
85
+ # Find React hooks
86
+ ast-grep pattern="const [$S, $SET] = useState($$$)"
87
+
88
+ # Find try-catch blocks
89
+ ast-grep pattern="try { $$$ } catch ($E) { $$$ }"
90
+
91
+ # Find class definitions
92
+ ast-grep pattern="class $NAME { $$$ }"
93
+
94
+ # Find import statements
95
+ ast-grep pattern="import { $$ } from '$MOD'"
96
+ ```
97
+
98
+ ### Replace Examples
99
+
100
+ ```bash
101
+ # Rename function (dry run)
102
+ ast-grep pattern="oldFunc($$$)" rewrite="newFunc($$$)" dryRun=true
103
+
104
+ # Add await (apply)
105
+ ast-grep pattern="fetch($URL)" rewrite="await fetch($URL)" dryRun=false
106
+ ```
107
+
108
+ ## Research Tools
109
+
110
+ | Tool | Use When |
111
+ | -------------- | ------------------------------------------------------- |
112
+ | **context7** | Library docs (try first). Fast, external APIs. |
113
+ | **websearch** | Docs not in Context7, recent releases, troubleshooting. |
114
+ | **codesearch** | Real implementation patterns from GitHub. |
115
+ | **webfetch** | Specific URL user provided. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencodekit",
3
- "version": "0.12.1",
3
+ "version": "0.12.3",
4
4
  "description": "CLI tool for bootstrapping and managing OpenCodeKit projects",
5
5
  "type": "module",
6
6
  "repository": {