oh-my-opencode-lite 0.1.0

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 (111) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +365 -0
  3. package/dist/agents/deep.d.ts +2 -0
  4. package/dist/agents/designer.d.ts +2 -0
  5. package/dist/agents/explorer.d.ts +2 -0
  6. package/dist/agents/index.d.ts +8 -0
  7. package/dist/agents/librarian.d.ts +2 -0
  8. package/dist/agents/oracle.d.ts +2 -0
  9. package/dist/agents/orchestrator.d.ts +15 -0
  10. package/dist/agents/prompt-utils.d.ts +10 -0
  11. package/dist/agents/quick.d.ts +2 -0
  12. package/dist/background/background-manager.d.ts +196 -0
  13. package/dist/background/index.d.ts +2 -0
  14. package/dist/background/tmux-session-manager.d.ts +63 -0
  15. package/dist/cli/config-io.d.ts +22 -0
  16. package/dist/cli/config-manager.d.ts +4 -0
  17. package/dist/cli/custom-skills.d.ts +48 -0
  18. package/dist/cli/index.d.ts +2 -0
  19. package/dist/cli/index.js +1178 -0
  20. package/dist/cli/install.d.ts +3 -0
  21. package/dist/cli/model-key-normalization.d.ts +1 -0
  22. package/dist/cli/paths.d.ts +21 -0
  23. package/dist/cli/providers.d.ts +120 -0
  24. package/dist/cli/skill-manifest.d.ts +32 -0
  25. package/dist/cli/skills.d.ts +26 -0
  26. package/dist/cli/system.d.ts +6 -0
  27. package/dist/cli/types.d.ts +38 -0
  28. package/dist/config/constants.d.ts +19 -0
  29. package/dist/config/index.d.ts +5 -0
  30. package/dist/config/loader.d.ts +33 -0
  31. package/dist/config/schema.d.ts +313 -0
  32. package/dist/config/utils.d.ts +10 -0
  33. package/dist/delegation/delegation-manager.d.ts +25 -0
  34. package/dist/delegation/index.d.ts +4 -0
  35. package/dist/delegation/paths.d.ts +15 -0
  36. package/dist/delegation/project-id.d.ts +1 -0
  37. package/dist/delegation/types.d.ts +39 -0
  38. package/dist/hooks/auto-update-checker/cache.d.ts +6 -0
  39. package/dist/hooks/auto-update-checker/checker.d.ts +28 -0
  40. package/dist/hooks/auto-update-checker/constants.d.ts +11 -0
  41. package/dist/hooks/auto-update-checker/index.d.ts +17 -0
  42. package/dist/hooks/auto-update-checker/types.d.ts +23 -0
  43. package/dist/hooks/chat-headers.d.ts +16 -0
  44. package/dist/hooks/clarification-gate/index.d.ts +30 -0
  45. package/dist/hooks/delegate-task-retry/guidance.d.ts +2 -0
  46. package/dist/hooks/delegate-task-retry/hook.d.ts +8 -0
  47. package/dist/hooks/delegate-task-retry/index.d.ts +4 -0
  48. package/dist/hooks/delegate-task-retry/patterns.d.ts +11 -0
  49. package/dist/hooks/foreground-fallback/index.d.ts +72 -0
  50. package/dist/hooks/index.d.ts +11 -0
  51. package/dist/hooks/json-error-recovery/hook.d.ts +18 -0
  52. package/dist/hooks/json-error-recovery/index.d.ts +1 -0
  53. package/dist/hooks/phase-reminder/index.d.ts +26 -0
  54. package/dist/hooks/post-read-nudge/index.d.ts +18 -0
  55. package/dist/hooks/skill-sync.d.ts +10 -0
  56. package/dist/hooks/thoth-mem/index.d.ts +46 -0
  57. package/dist/hooks/thoth-mem/protocol.d.ts +6 -0
  58. package/dist/index.d.ts +5 -0
  59. package/dist/index.js +36210 -0
  60. package/dist/mcp/context7.d.ts +6 -0
  61. package/dist/mcp/grep-app.d.ts +6 -0
  62. package/dist/mcp/index.d.ts +7 -0
  63. package/dist/mcp/thoth.d.ts +3 -0
  64. package/dist/mcp/types.d.ts +12 -0
  65. package/dist/mcp/websearch.d.ts +6 -0
  66. package/dist/thoth/client.d.ts +14 -0
  67. package/dist/thoth/index.d.ts +2 -0
  68. package/dist/tools/ast-grep/cli.d.ts +15 -0
  69. package/dist/tools/ast-grep/constants.d.ts +25 -0
  70. package/dist/tools/ast-grep/downloader.d.ts +5 -0
  71. package/dist/tools/ast-grep/index.d.ts +10 -0
  72. package/dist/tools/ast-grep/tools.d.ts +3 -0
  73. package/dist/tools/ast-grep/types.d.ts +30 -0
  74. package/dist/tools/ast-grep/utils.d.ts +4 -0
  75. package/dist/tools/background.d.ts +13 -0
  76. package/dist/tools/index.d.ts +3 -0
  77. package/dist/tools/lsp/client.d.ts +42 -0
  78. package/dist/tools/lsp/config-store.d.ts +29 -0
  79. package/dist/tools/lsp/config.d.ts +4 -0
  80. package/dist/tools/lsp/constants.d.ts +24 -0
  81. package/dist/tools/lsp/index.d.ts +4 -0
  82. package/dist/tools/lsp/tools.d.ts +5 -0
  83. package/dist/tools/lsp/types.d.ts +35 -0
  84. package/dist/tools/lsp/utils.d.ts +34 -0
  85. package/dist/utils/agent-variant.d.ts +47 -0
  86. package/dist/utils/env.d.ts +1 -0
  87. package/dist/utils/index.d.ts +7 -0
  88. package/dist/utils/internal-initiator.d.ts +6 -0
  89. package/dist/utils/logger.d.ts +1 -0
  90. package/dist/utils/polling.d.ts +21 -0
  91. package/dist/utils/tmux.d.ts +32 -0
  92. package/dist/utils/zip-extractor.d.ts +1 -0
  93. package/oh-my-opencode-lite.schema.json +556 -0
  94. package/package.json +74 -0
  95. package/src/skills/_shared/openspec-convention.md +92 -0
  96. package/src/skills/_shared/persistence-contract.md +78 -0
  97. package/src/skills/_shared/thoth-mem-convention.md +80 -0
  98. package/src/skills/brainstorming/SKILL.md +120 -0
  99. package/src/skills/cartography/README.md +57 -0
  100. package/src/skills/cartography/SKILL.md +160 -0
  101. package/src/skills/cartography/scripts/cartographer.py +460 -0
  102. package/src/skills/cartography/scripts/test_cartographer.py +87 -0
  103. package/src/skills/executing-plans/SKILL.md +211 -0
  104. package/src/skills/plan-reviewer/SKILL.md +100 -0
  105. package/src/skills/sdd-apply/SKILL.md +101 -0
  106. package/src/skills/sdd-archive/SKILL.md +94 -0
  107. package/src/skills/sdd-design/SKILL.md +104 -0
  108. package/src/skills/sdd-propose/SKILL.md +99 -0
  109. package/src/skills/sdd-spec/SKILL.md +105 -0
  110. package/src/skills/sdd-tasks/SKILL.md +116 -0
  111. package/src/skills/sdd-verify/SKILL.md +102 -0
@@ -0,0 +1,105 @@
1
+ ---
2
+ name: sdd-spec
3
+ description: Write OpenSpec delta specs with RFC 2119 language and GWT scenarios.
4
+ ---
5
+
6
+ # SDD Spec Skill
7
+
8
+ Write or update the change specifications for one or more affected domains.
9
+
10
+ ## Shared Conventions
11
+
12
+ - Shared references:
13
+ - `~/.config/opencode/skills/_shared/openspec-convention.md`
14
+ - `~/.config/opencode/skills/_shared/persistence-contract.md`
15
+ - `~/.config/opencode/skills/_shared/thoth-mem-convention.md`
16
+
17
+ ## Persistence Mode
18
+
19
+ The orchestrator passes the artifact store mode (`thoth-mem`, `openspec`, or
20
+ `hybrid`). Follow
21
+ `~/.config/opencode/skills/_shared/persistence-contract.md` for read/write
22
+ rules per mode.
23
+
24
+ - `thoth-mem`: persist to thoth-mem only — do NOT create or modify
25
+ `openspec/` files.
26
+ - `openspec`: write files only — do NOT call thoth-mem save tools.
27
+ - `hybrid`: persist to both (default).
28
+
29
+ ## When to Use
30
+
31
+ - A proposal is approved and must be converted into testable requirements
32
+ - Existing change specs need to be expanded or corrected
33
+
34
+ ## Prerequisites
35
+
36
+ - `change-name`
37
+ - The proposal artifact must exist
38
+ - Access to any current main specs for impacted domains
39
+
40
+ ## Workflow
41
+
42
+ 1. Read the shared conventions.
43
+ 2. Recover the proposal using the retrieval protocol in
44
+ `~/.config/opencode/skills/_shared/persistence-contract.md`.
45
+ 3. If the change already has spec work, recover `sdd/{change-name}/spec` with
46
+ the same mode-aware retrieval rules before editing.
47
+ 4. Read `openspec/specs/{domain}/spec.md` for each affected domain to determine
48
+ whether you are writing a delta spec or a brand-new spec.
49
+ 5. If the selected mode includes OpenSpec, write canonical change artifacts
50
+ under `openspec/changes/{change-name}/specs/{domain}/spec.md`. In
51
+ `thoth-mem` mode, produce the same canonical content without creating files.
52
+ 6. Use this structure in every spec file:
53
+
54
+ ```md
55
+ # Delta for {Domain}
56
+
57
+ ## ADDED Requirements
58
+ ### Requirement: {Name}
59
+ The system MUST ...
60
+
61
+ #### Scenario: {Name}
62
+ - GIVEN ...
63
+ - WHEN ...
64
+ - THEN ...
65
+
66
+ ## MODIFIED Requirements
67
+ ## REMOVED Requirements
68
+ ```
69
+
70
+ For a brand-new domain, write a full spec instead of a delta.
71
+
72
+ 7. If the selected mode includes thoth-mem, persist the complete spec payload
73
+ with:
74
+
75
+ ```text
76
+ thoth_mem_mem_save(
77
+ title: "sdd/{change-name}/spec",
78
+ topic_key: "sdd/{change-name}/spec",
79
+ type: "architecture",
80
+ project: "{project}",
81
+ scope: "project",
82
+ content: "{full spec markdown across all domains}"
83
+ )
84
+ ```
85
+
86
+ ## Output Format
87
+
88
+ Return:
89
+
90
+ - `Change`
91
+ - `Artifacts`: list of domain spec paths written
92
+ - `Topic Key`: `sdd/{change-name}/spec`
93
+ - `Coverage Summary`: requirements and scenarios added or modified
94
+ - `Next Step`: usually `sdd-design`
95
+
96
+ ## Rules
97
+
98
+ - Every requirement must use RFC 2119 keywords.
99
+ - Every requirement must have at least one Given/When/Then scenario.
100
+ - Specs describe behavior, not implementation details.
101
+ - Keep domain boundaries explicit.
102
+ - Use the retrieval protocol from
103
+ `~/.config/opencode/skills/_shared/persistence-contract.md` for every SDD
104
+ dependency.
105
+ - Never reference engram.
@@ -0,0 +1,116 @@
1
+ ---
2
+ name: sdd-tasks
3
+ description: Generate phased `tasks.md` checklists from specs and design.
4
+ ---
5
+
6
+ # SDD Tasks Skill
7
+
8
+ Translate the approved spec and design into an implementation checklist.
9
+
10
+ ## Shared Conventions
11
+
12
+ - Shared references:
13
+ - `~/.config/opencode/skills/_shared/openspec-convention.md`
14
+ - `~/.config/opencode/skills/_shared/persistence-contract.md`
15
+ - `~/.config/opencode/skills/_shared/thoth-mem-convention.md`
16
+
17
+ ## Persistence Mode
18
+
19
+ The orchestrator passes the artifact store mode (`thoth-mem`, `openspec`, or
20
+ `hybrid`). Follow
21
+ `~/.config/opencode/skills/_shared/persistence-contract.md` for read/write
22
+ rules per mode.
23
+
24
+ - `thoth-mem`: persist to thoth-mem only — do NOT create or modify
25
+ `openspec/` files.
26
+ - `openspec`: write files only — do NOT call thoth-mem save tools.
27
+ - `hybrid`: persist to both (default).
28
+
29
+ ## When to Use
30
+
31
+ - Proposal, spec, and design are ready for execution planning
32
+ - A task plan must be refreshed after design or scope changes
33
+
34
+ ## Prerequisites
35
+
36
+ - `change-name`
37
+ - Proposal artifact
38
+ - Spec artifact
39
+ - Design artifact
40
+
41
+ ## Workflow
42
+
43
+ 1. Read the shared conventions.
44
+ 2. Recover `proposal`, `spec`, and `design` via the retrieval protocol in
45
+ `~/.config/opencode/skills/_shared/persistence-contract.md`.
46
+ 3. If a task plan already exists, recover `sdd/{change-name}/tasks` with the
47
+ same mode-aware retrieval rules before rewriting it.
48
+ 4. Build a phased checklist for `openspec/changes/{change-name}/tasks.md`. In
49
+ `thoth-mem` mode, produce the same canonical checklist content without
50
+ creating the file.
51
+ 5. Use hierarchical numbering and Markdown checkboxes:
52
+
53
+ ```md
54
+ # Tasks: {Change Title}
55
+
56
+ ## Phase 1: Foundation
57
+ - [ ] 1.1 ...
58
+
59
+ ## Phase 2: Core Implementation
60
+ - [ ] 2.1 ...
61
+
62
+ ## Phase 3: Integration
63
+ - [ ] 3.1 ...
64
+
65
+ ## Phase 4: Verification
66
+ - [ ] 4.1 ...
67
+ ```
68
+
69
+ Recognized task states:
70
+
71
+ - `- [ ]` pending
72
+ - `- [~]` in progress
73
+ - `- [x]` completed
74
+ - `- [-]` skipped with reason
75
+
76
+ 6. Reference concrete file paths and specific spec scenarios in the tasks.
77
+ 7. If the selected mode includes thoth-mem, persist the full checklist with:
78
+
79
+ ```text
80
+ thoth_mem_mem_save(
81
+ title: "sdd/{change-name}/tasks",
82
+ topic_key: "sdd/{change-name}/tasks",
83
+ type: "architecture",
84
+ project: "{project}",
85
+ scope: "project",
86
+ content: "{full tasks markdown}"
87
+ )
88
+ ```
89
+
90
+ 8. After generating `tasks.md`, the orchestrator should offer the user an
91
+ optional oracle plan review with the bundled `plan-reviewer` skill before
92
+ execution begins.
93
+ 9. If the user wants plan review, run the `[OKAY]` / `[REJECT]` loop until the
94
+ review returns `[OKAY]`. On each `[REJECT]`, fix only blocking issues,
95
+ limit each rejection to max 3 issues, then re-run the review.
96
+
97
+ ## Output Format
98
+
99
+ Return:
100
+
101
+ - `Change`
102
+ - `Artifact`: `openspec/changes/{change-name}/tasks.md`
103
+ - `Topic Key`: `sdd/{change-name}/tasks`
104
+ - `Phase Summary`: task counts per phase
105
+ - `Execution Order`: one short paragraph
106
+ - `Next Step`: `sdd-apply`
107
+
108
+ ## Rules
109
+
110
+ - Tasks must be small, actionable, and verifiable.
111
+ - Order tasks by dependency.
112
+ - Include testing and verification work explicitly.
113
+ - Do not create vague tasks such as “implement feature”.
114
+ - Retrieve all dependencies through the mode-aware protocol in
115
+ `~/.config/opencode/skills/_shared/persistence-contract.md`.
116
+ - Never reference engram.
@@ -0,0 +1,102 @@
1
+ ---
2
+ name: sdd-verify
3
+ description: Verify implementation against specs and persist a compliance report.
4
+ ---
5
+
6
+ # SDD Verify Skill
7
+
8
+ Act as the quality gate for a change by turning specs and test evidence into a
9
+ verification report.
10
+
11
+ ## Shared Conventions
12
+
13
+ - Shared references:
14
+ - `~/.config/opencode/skills/_shared/openspec-convention.md`
15
+ - `~/.config/opencode/skills/_shared/persistence-contract.md`
16
+ - `~/.config/opencode/skills/_shared/thoth-mem-convention.md`
17
+
18
+ ## Persistence Mode
19
+
20
+ The orchestrator passes the artifact store mode (`thoth-mem`, `openspec`, or
21
+ `hybrid`). Follow
22
+ `~/.config/opencode/skills/_shared/persistence-contract.md` for read/write
23
+ rules per mode.
24
+
25
+ - `thoth-mem`: persist to thoth-mem only — do NOT create or modify
26
+ `openspec/` files.
27
+ - `openspec`: write files only — do NOT call thoth-mem save tools.
28
+ - `hybrid`: persist to both (default).
29
+
30
+ ## When to Use
31
+
32
+ - Implementation work is complete enough to validate
33
+ - A prior verification report must be refreshed after more code changes
34
+
35
+ ## Prerequisites
36
+
37
+ - `change-name`
38
+ - Spec artifact
39
+ - Design artifact
40
+ - Tasks artifact
41
+ - Ability to run the relevant checks or tests
42
+
43
+ ## Workflow
44
+
45
+ 1. Read the shared conventions.
46
+ 2. Recover `spec`, `design`, and `tasks` with the retrieval protocol in
47
+ `~/.config/opencode/skills/_shared/persistence-contract.md`.
48
+ 3. Optionally recover `apply-progress` with the same mode-aware rules if it
49
+ exists and helps explain task coverage.
50
+ 4. Read the changed code and run the required verification commands.
51
+ 5. If the selected mode includes OpenSpec, create
52
+ `openspec/changes/{change-name}/verify-report.md` with at least:
53
+
54
+ In `thoth-mem` mode, produce the same report content without creating the
55
+ file:
56
+
57
+ ```md
58
+ # Verification Report: {Change Title}
59
+
60
+ ## Completeness
61
+ ## Build and Test Evidence
62
+ ## Spec Compliance Matrix
63
+ ## Design Coherence
64
+ ## Issues Found
65
+ ## Verdict
66
+ ```
67
+
68
+ 6. Build a compliance matrix that maps each Given/When/Then scenario to the test
69
+ or execution evidence that proved it.
70
+ 7. If the selected mode includes thoth-mem, persist the report with:
71
+
72
+ ```text
73
+ thoth_mem_mem_save(
74
+ title: "sdd/{change-name}/verify-report",
75
+ topic_key: "sdd/{change-name}/verify-report",
76
+ type: "architecture",
77
+ project: "{project}",
78
+ scope: "project",
79
+ content: "{full verify report markdown}"
80
+ )
81
+ ```
82
+
83
+ ## Output Format
84
+
85
+ Return:
86
+
87
+ - `Change`
88
+ - `Artifact`: `openspec/changes/{change-name}/verify-report.md`
89
+ - `Topic Key`: `sdd/{change-name}/verify-report`
90
+ - `Verdict`: pass, pass with warnings, or fail
91
+ - `Compliance Summary`: compliant vs total scenarios
92
+ - `Critical Issues`: bullets or `None`
93
+
94
+ ## Rules
95
+
96
+ - Verification requires real evidence, not only static inspection.
97
+ - Every spec scenario must appear in the compliance matrix.
98
+ - Distinguish blockers from warnings clearly.
99
+ - Do not fix issues inside this phase; report them.
100
+ - Recover full artifacts with the protocol in
101
+ `~/.config/opencode/skills/_shared/persistence-contract.md`.
102
+ - Never reference engram.