opencodekit 0.0.1

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 (123) hide show
  1. package/README.md +258 -0
  2. package/dist/index.js +3391 -0
  3. package/dist/template/.opencode/.env.example +193 -0
  4. package/dist/template/.opencode/AGENTS.md +214 -0
  5. package/dist/template/.opencode/README.md +269 -0
  6. package/dist/template/.opencode/agent/build.md +75 -0
  7. package/dist/template/.opencode/agent/explore.md +66 -0
  8. package/dist/template/.opencode/agent/planner.md +83 -0
  9. package/dist/template/.opencode/agent/review.md +90 -0
  10. package/dist/template/.opencode/agent/rush.md +85 -0
  11. package/dist/template/.opencode/agent/scout.md +93 -0
  12. package/dist/template/.opencode/command/analyze-project.md +39 -0
  13. package/dist/template/.opencode/command/brainstorm.md +11 -0
  14. package/dist/template/.opencode/command/commit.md +11 -0
  15. package/dist/template/.opencode/command/create.md +118 -0
  16. package/dist/template/.opencode/command/design.md +15 -0
  17. package/dist/template/.opencode/command/finish.md +233 -0
  18. package/dist/template/.opencode/command/fix-ci.md +20 -0
  19. package/dist/template/.opencode/command/fix-types.md +10 -0
  20. package/dist/template/.opencode/command/fix-ui.md +22 -0
  21. package/dist/template/.opencode/command/fix.md +22 -0
  22. package/dist/template/.opencode/command/handoff.md +146 -0
  23. package/dist/template/.opencode/command/implement.md +167 -0
  24. package/dist/template/.opencode/command/import-plan.md +188 -0
  25. package/dist/template/.opencode/command/integration-test.md +36 -0
  26. package/dist/template/.opencode/command/issue.md +41 -0
  27. package/dist/template/.opencode/command/plan.md +158 -0
  28. package/dist/template/.opencode/command/pr.md +36 -0
  29. package/dist/template/.opencode/command/quick-build.md +13 -0
  30. package/dist/template/.opencode/command/research-and-implement.md +21 -0
  31. package/dist/template/.opencode/command/research-ui.md +32 -0
  32. package/dist/template/.opencode/command/research.md +153 -0
  33. package/dist/template/.opencode/command/resume.md +127 -0
  34. package/dist/template/.opencode/command/review-codebase.md +13 -0
  35. package/dist/template/.opencode/command/skill-create.md +29 -0
  36. package/dist/template/.opencode/command/skill-optimize.md +28 -0
  37. package/dist/template/.opencode/command/status.md +109 -0
  38. package/dist/template/.opencode/command/ui-review.md +28 -0
  39. package/dist/template/.opencode/dcp.jsonc +34 -0
  40. package/dist/template/.opencode/memory/README.md +128 -0
  41. package/dist/template/.opencode/memory/_templates/handoff.md +33 -0
  42. package/dist/template/.opencode/memory/_templates/research.md +29 -0
  43. package/dist/template/.opencode/memory/_templates/task-prd.md +43 -0
  44. package/dist/template/.opencode/memory/_templates/task-review.md +73 -0
  45. package/dist/template/.opencode/memory/_templates/task-spec.md +71 -0
  46. package/dist/template/.opencode/memory/design-guidelines.md +281 -0
  47. package/dist/template/.opencode/memory/handoffs/README.md +83 -0
  48. package/dist/template/.opencode/opencode.json +469 -0
  49. package/dist/template/.opencode/package.json +23 -0
  50. package/dist/template/.opencode/pickle-thinker.jsonc +11 -0
  51. package/dist/template/.opencode/plugin/README.md +162 -0
  52. package/dist/template/.opencode/plugin/notification.ts +88 -0
  53. package/dist/template/.opencode/plugin/sessions.ts +434 -0
  54. package/dist/template/.opencode/plugin/superpowers.ts +332 -0
  55. package/dist/template/.opencode/plugin/tsconfig.json +15 -0
  56. package/dist/template/.opencode/superpowers/.claude/settings.local.json +141 -0
  57. package/dist/template/.opencode/superpowers/.claude-plugin/marketplace.json +20 -0
  58. package/dist/template/.opencode/superpowers/.claude-plugin/plugin.json +13 -0
  59. package/dist/template/.opencode/superpowers/.codex/INSTALL.md +35 -0
  60. package/dist/template/.opencode/superpowers/.codex/superpowers-bootstrap.md +33 -0
  61. package/dist/template/.opencode/superpowers/.codex/superpowers-codex +267 -0
  62. package/dist/template/.opencode/superpowers/.github/FUNDING.yml +3 -0
  63. package/dist/template/.opencode/superpowers/.opencode/INSTALL.md +135 -0
  64. package/dist/template/.opencode/superpowers/.opencode/plugin/superpowers.js +215 -0
  65. package/dist/template/.opencode/superpowers/LICENSE +21 -0
  66. package/dist/template/.opencode/superpowers/README.md +165 -0
  67. package/dist/template/.opencode/superpowers/RELEASE-NOTES.md +493 -0
  68. package/dist/template/.opencode/superpowers/agents/code-reviewer.md +48 -0
  69. package/dist/template/.opencode/superpowers/commands/brainstorm.md +5 -0
  70. package/dist/template/.opencode/superpowers/commands/execute-plan.md +5 -0
  71. package/dist/template/.opencode/superpowers/commands/write-plan.md +5 -0
  72. package/dist/template/.opencode/superpowers/docs/README.codex.md +153 -0
  73. package/dist/template/.opencode/superpowers/docs/README.opencode.md +234 -0
  74. package/dist/template/.opencode/superpowers/docs/plans/2025-11-22-opencode-support-design.md +294 -0
  75. package/dist/template/.opencode/superpowers/docs/plans/2025-11-22-opencode-support-implementation.md +1095 -0
  76. package/dist/template/.opencode/superpowers/hooks/hooks.json +15 -0
  77. package/dist/template/.opencode/superpowers/hooks/session-start.sh +34 -0
  78. package/dist/template/.opencode/superpowers/lib/skills-core.js +208 -0
  79. package/dist/template/.opencode/superpowers/skills/brainstorming/SKILL.md +54 -0
  80. package/dist/template/.opencode/superpowers/skills/condition-based-waiting/SKILL.md +120 -0
  81. package/dist/template/.opencode/superpowers/skills/condition-based-waiting/example.ts +158 -0
  82. package/dist/template/.opencode/superpowers/skills/defense-in-depth/SKILL.md +127 -0
  83. package/dist/template/.opencode/superpowers/skills/dispatching-parallel-agents/SKILL.md +180 -0
  84. package/dist/template/.opencode/superpowers/skills/executing-plans/SKILL.md +76 -0
  85. package/dist/template/.opencode/superpowers/skills/finishing-a-development-branch/SKILL.md +200 -0
  86. package/dist/template/.opencode/superpowers/skills/frontend-aesthetics/SKILL.md +137 -0
  87. package/dist/template/.opencode/superpowers/skills/gemini-large-context/SKILL.md +205 -0
  88. package/dist/template/.opencode/superpowers/skills/receiving-code-review/SKILL.md +209 -0
  89. package/dist/template/.opencode/superpowers/skills/requesting-code-review/SKILL.md +105 -0
  90. package/dist/template/.opencode/superpowers/skills/requesting-code-review/code-reviewer.md +146 -0
  91. package/dist/template/.opencode/superpowers/skills/root-cause-tracing/SKILL.md +174 -0
  92. package/dist/template/.opencode/superpowers/skills/root-cause-tracing/find-polluter.sh +63 -0
  93. package/dist/template/.opencode/superpowers/skills/sharing-skills/SKILL.md +194 -0
  94. package/dist/template/.opencode/superpowers/skills/subagent-driven-development/SKILL.md +189 -0
  95. package/dist/template/.opencode/superpowers/skills/systematic-debugging/CREATION-LOG.md +119 -0
  96. package/dist/template/.opencode/superpowers/skills/systematic-debugging/SKILL.md +295 -0
  97. package/dist/template/.opencode/superpowers/skills/systematic-debugging/test-academic.md +14 -0
  98. package/dist/template/.opencode/superpowers/skills/systematic-debugging/test-pressure-1.md +58 -0
  99. package/dist/template/.opencode/superpowers/skills/systematic-debugging/test-pressure-2.md +68 -0
  100. package/dist/template/.opencode/superpowers/skills/systematic-debugging/test-pressure-3.md +69 -0
  101. package/dist/template/.opencode/superpowers/skills/test-driven-development/SKILL.md +364 -0
  102. package/dist/template/.opencode/superpowers/skills/testing-anti-patterns/SKILL.md +302 -0
  103. package/dist/template/.opencode/superpowers/skills/testing-skills-with-subagents/SKILL.md +387 -0
  104. package/dist/template/.opencode/superpowers/skills/testing-skills-with-subagents/examples/CLAUDE_MD_TESTING.md +189 -0
  105. package/dist/template/.opencode/superpowers/skills/ui-ux-research/SKILL.md +191 -0
  106. package/dist/template/.opencode/superpowers/skills/using-git-worktrees/SKILL.md +213 -0
  107. package/dist/template/.opencode/superpowers/skills/using-superpowers/SKILL.md +101 -0
  108. package/dist/template/.opencode/superpowers/skills/verification-before-completion/SKILL.md +139 -0
  109. package/dist/template/.opencode/superpowers/skills/writing-plans/SKILL.md +116 -0
  110. package/dist/template/.opencode/superpowers/skills/writing-skills/SKILL.md +622 -0
  111. package/dist/template/.opencode/superpowers/skills/writing-skills/anthropic-best-practices.md +1150 -0
  112. package/dist/template/.opencode/superpowers/skills/writing-skills/graphviz-conventions.dot +172 -0
  113. package/dist/template/.opencode/superpowers/skills/writing-skills/persuasion-principles.md +187 -0
  114. package/dist/template/.opencode/superpowers/tests/opencode/run-tests.sh +165 -0
  115. package/dist/template/.opencode/superpowers/tests/opencode/setup.sh +73 -0
  116. package/dist/template/.opencode/superpowers/tests/opencode/test-plugin-loading.sh +81 -0
  117. package/dist/template/.opencode/superpowers/tests/opencode/test-priority.sh +198 -0
  118. package/dist/template/.opencode/superpowers/tests/opencode/test-skills-core.sh +440 -0
  119. package/dist/template/.opencode/superpowers/tests/opencode/test-tools.sh +104 -0
  120. package/dist/template/.opencode/tool/memory-read.ts +66 -0
  121. package/dist/template/.opencode/tool/memory-update.ts +61 -0
  122. package/dist/template/.opencode/tsconfig.json +21 -0
  123. package/package.json +52 -0
@@ -0,0 +1,127 @@
1
+ ---
2
+ description: Resume work on a bead from handoff
3
+ argument-hint: "<bead-id>"
4
+ agent: build
5
+ ---
6
+
7
+ # Resume
8
+
9
+ ## Phase 1: Load Previous Session Context
10
+
11
+ **Check recent sessions:**
12
+
13
+ ```bash
14
+ list_sessions(project="current", limit=5)
15
+ ```
16
+
17
+ **Load last session context:**
18
+
19
+ ```bash
20
+ read_session("last", project="current")
21
+ ```
22
+
23
+ Review:
24
+
25
+ - What was implemented
26
+ - File changes made
27
+ - Where work stopped
28
+
29
+ ## Phase 2: Load Bead
30
+
31
+ ```bash
32
+ bd show $ARGUMENTS --json
33
+ ```
34
+
35
+ ## Phase 3: Find Latest Handoff
36
+
37
+ ```bash
38
+ ls -t .beads/artifacts/<bead-id>/handoffs/ 2>/dev/null | head -1
39
+ ```
40
+
41
+ If no handoffs: "No handoff found. Use `/start <bead-id>` instead."
42
+
43
+ Read latest handoff:
44
+
45
+ ```bash
46
+ cat .beads/artifacts/<bead-id>/handoffs/<latest>.md
47
+ ```
48
+
49
+ ## Phase 4: Verify Git State
50
+
51
+ Check current state matches handoff:
52
+
53
+ ```bash
54
+ git branch --show-current
55
+ git rev-parse HEAD
56
+ git status --porcelain
57
+ ```
58
+
59
+ **If branch mismatch:**
60
+
61
+ ```bash
62
+ git checkout <bead-id>
63
+ ```
64
+
65
+ **If commit mismatch:**
66
+
67
+ ```
68
+ Warning: Current commit differs from handoff.
69
+ Handoff: [hash from handoff]
70
+ Current: [current hash]
71
+
72
+ Continue anyway? (yes/no)
73
+ ```
74
+
75
+ ## Phase 5: Load Context
76
+
77
+ Read all artifacts:
78
+
79
+ ```bash
80
+ cat .beads/artifacts/<bead-id>/spec.md
81
+ cat .beads/artifacts/<bead-id>/research.md 2>/dev/null
82
+ cat .beads/artifacts/<bead-id>/plan.md 2>/dev/null
83
+ ```
84
+
85
+ ## Phase 6: Report & Continue
86
+
87
+ ```
88
+ Resuming: <bead-id>
89
+ ━━━━━━━━━━━━━━━━━
90
+
91
+ Title: [title]
92
+ Branch: [branch]
93
+ Handoff: [timestamp]
94
+ Last Session: [from read_session]
95
+
96
+ ## Progress
97
+
98
+ Completed:
99
+ - [x] [from handoff]
100
+
101
+ In Progress:
102
+ - [ ] [from handoff] - [where stopped]
103
+
104
+ Remaining:
105
+ - [ ] [from handoff]
106
+
107
+ ## Previous Session Summary
108
+
109
+ [Key points from read_session output]
110
+
111
+ ## Resume Instructions
112
+
113
+ [Instructions from handoff]
114
+
115
+ ## Next Action
116
+
117
+ [Based on progress, suggest next command]
118
+ ```
119
+
120
+ **Determine next action:**
121
+
122
+ | State | Action |
123
+ | -------------------------- | ---------------------- |
124
+ | No research.md | `/research <bead-id>` |
125
+ | No plan.md | `/plan <bead-id>` |
126
+ | Has plan, incomplete steps | `/implement <bead-id>` |
127
+ | All steps complete | `/finish <bead-id>` |
@@ -0,0 +1,13 @@
1
+ ---
2
+ description: Review code for quality and compliance
3
+ argument-hint: "[path or task-id]"
4
+ agent: review
5
+ ---
6
+
7
+ # Review: $ARGUMENTS
8
+
9
+ use_skill("requesting-code-review")
10
+
11
+ If bead exists, review against `.beads/artifacts/$ARGUMENTS/spec.md` constraints.
12
+
13
+ Otherwise, general code quality review.
@@ -0,0 +1,29 @@
1
+ ---
2
+ description: Create custom skills for agents
3
+ argument-hint: "[skill-name]"
4
+ agent: build
5
+ ---
6
+
7
+ # Create Skill: $ARGUMENTS
8
+
9
+ Use `use_skill("writing-skills")` to create a new skill.
10
+
11
+ ## Workflow
12
+
13
+ 1. **Load skill** - `use_skill("writing-skills")`
14
+ 2. **Follow the TDD process** - Test with subagents before writing
15
+ 3. **Save to** `.opencode/skills/$ARGUMENTS/`
16
+
17
+ ## Skill Structure
18
+
19
+ ```
20
+ .opencode/skills/$ARGUMENTS/
21
+ ├── SKILL.md (Main skill definition)
22
+ ├── instructions.md (Detailed instructions)
23
+ └── tests/ (Test scenarios)
24
+ ```
25
+
26
+ ## After Creation
27
+
28
+ - Test with `use_skill("testing-skills-with-subagents")`
29
+ - Share upstream with `use_skill("sharing-skills")`
@@ -0,0 +1,28 @@
1
+ ---
2
+ description: Optimize an existing agent skill
3
+ argument-hint: "[skill-name]"
4
+ agent: build
5
+ ---
6
+
7
+ # Optimize Skill: $ARGUMENTS
8
+
9
+ Use `use_skill("writing-skills")` to optimize an existing skill.
10
+
11
+ ## Workflow
12
+
13
+ 1. **Read current skill** from `.opencode/skills/$ARGUMENTS/` or `.opencode/superpowers/skills/$ARGUMENTS/`
14
+ 2. **Load skill** - `use_skill("writing-skills")`
15
+ 3. **Apply TDD process** - Test, refine, verify
16
+ 4. **Test changes** with `use_skill("testing-skills-with-subagents")`
17
+
18
+ ## Optimization Goals
19
+
20
+ - Reduce verbosity
21
+ - Close rationalization loopholes
22
+ - Add missing constraints
23
+ - Improve clarity
24
+
25
+ ## After Optimization
26
+
27
+ - Verify with subagent testing
28
+ - Share improvements upstream with `use_skill("sharing-skills")`
@@ -0,0 +1,109 @@
1
+ ---
2
+ description: Show task and project status
3
+ agent: explore
4
+ ---
5
+
6
+ # Project Status
7
+
8
+ ## Quick Summary
9
+
10
+ 1. **Git:** Current branch, uncommitted changes
11
+ 2. **Tasks:** `bd list` - count by status
12
+ 3. **CI:** Any build issues
13
+ 4. **Sessions:** Recent activity
14
+
15
+ ## Recent Session Activity
16
+
17
+ ```bash
18
+ list_sessions(project="current", since="today", limit=5)
19
+ ```
20
+
21
+ Show:
22
+
23
+ - Session IDs and timestamps
24
+ - Message counts
25
+ - File changes per session
26
+ - Active work periods
27
+
28
+ **Output:**
29
+
30
+ ```
31
+ TODAY'S SESSIONS
32
+
33
+ 1. ses_abc123 - 2:30 PM
34
+ Messages: 45, Files: 12
35
+ Changes: +234/-56
36
+
37
+ 2. ses_def456 - 11:00 AM
38
+ Messages: 28, Files: 8
39
+ Changes: +112/-23
40
+
41
+ Activity: 2 sessions, 73 messages, 20 files modified
42
+ ```
43
+
44
+ ## Task Compliance
45
+
46
+ ```bash
47
+ bd list --status open
48
+ ```
49
+
50
+ For each bead, check `.beads/artifacts/<bead-id>/`:
51
+
52
+ - [ ] spec.md exists
53
+ - [ ] research.md exists (if needed)
54
+ - [ ] plan.md exists (if needed)
55
+
56
+ **Output:**
57
+
58
+ ```
59
+ TASK COMPLIANCE
60
+
61
+ Complete (spec + plan):
62
+ - bd-a1b2: In Progress - [title]
63
+ - bd-c3d4: Open - [title]
64
+
65
+ Incomplete (missing files):
66
+ - bd-e5f6: Missing spec.md
67
+
68
+ Compliance: X/Y beads complete
69
+ ```
70
+
71
+ ## Active Tasks
72
+
73
+ For `bd list --status in-progress`:
74
+
75
+ - Bead ID, Title, Priority
76
+ - Goal from spec.md
77
+ - Progress from plan.md checkboxes
78
+ - Last session activity (if available via read_session)
79
+
80
+ ## Required Actions
81
+
82
+ | State | Action |
83
+ | --------------- | ---------------------- |
84
+ | Missing spec | `/create` |
85
+ | Has spec | `/start <bead-id>` |
86
+ | In Progress | `/implement <bead-id>` |
87
+ | Ready to finish | `/finish <bead-id>` |
88
+
89
+ ## Session Insights
90
+
91
+ **If token usage high (>120k):**
92
+
93
+ ```
94
+ ⚠️ Current session: [current token count]
95
+
96
+ Recommend: Start fresh session for next task
97
+ - Current work will be in read_session("last")
98
+ - Lower cost, better performance
99
+ ```
100
+
101
+ **If multiple incomplete sessions:**
102
+
103
+ ```
104
+ Recent incomplete work:
105
+ - ses_abc123: [title from last message]
106
+ - ses_def456: [title from last message]
107
+
108
+ Consider: Review with read_session("<id>") to decide continue or close
109
+ ```
@@ -0,0 +1,28 @@
1
+ ---
2
+ description: Review UI/UX design or mockup
3
+ argument-hint: "[path to image or component]"
4
+ agent: review
5
+ ---
6
+
7
+ # UI Review: $ARGUMENTS
8
+
9
+ use_skill("ui-ux-research")
10
+ use_skill("frontend-aesthetics")
11
+
12
+ ## How to Analyze
13
+
14
+ First, determine what you're reviewing. If it's an image or screenshot, start Gemini in interactive mode and reference the image to analyze it. If it's component code, analyze it directly with local tools. For large codebases spanning many files, use Gemini's non-interactive mode to scan the entire directory.
15
+
16
+ ## What to Look For
17
+
18
+ Check typography first—generic fonts like Inter or Roboto are signs of "AI slop" aesthetics. Look at the color palette for overused patterns like purple gradients or flat white backgrounds. Assess whether the UI has any motion or micro-interactions, and whether backgrounds feel atmospheric or just flat.
19
+
20
+ For accessibility, verify color contrast meets WCAG AA minimum, check for ARIA labels on interactive elements, ensure keyboard navigation works, and confirm focus indicators are visible.
21
+
22
+ ## Recommendations
23
+
24
+ Provide specific, actionable improvements: suggest alternative fonts, propose color palette changes, identify opportunities for subtle animations, and recommend layout enhancements. Include code snippets when they would help clarify the suggestion.
25
+
26
+ ## Output
27
+
28
+ Summarize what issues you found, what specific changes you recommend, and show before/after comparisons for significant improvements.
@@ -0,0 +1,34 @@
1
+ {
2
+ // Enable or disable the plugin
3
+ "enabled": true,
4
+ // Enable debug logging to ~/.config/opencode/logs/dcp/
5
+ "debug": false,
6
+ // Override model for analysis (format: "provider/model", e.g. "anthropic/claude-haiku-4-5")
7
+ // "model": "anthropic/claude-haiku-4-5",
8
+ // Show toast notifications when model selection fails
9
+ "showModelErrorToasts": true,
10
+ // Only run AI analysis with session model or configured model (disables fallback models)
11
+ "strictModelSelection": true,
12
+ // AI analysis strategies (deduplication runs automatically on every request)
13
+ "strategies": {
14
+ // Strategies to run when session goes idle
15
+ "onIdle": ["ai-analysis"],
16
+ // Strategies to run when AI calls prune tool
17
+ "onTool": ["ai-analysis"],
18
+ },
19
+ // Summary display: "off", "minimal", or "detailed"
20
+ // Note: "detailed" may cause issues with extended thinking models
21
+ "pruning_summary": "off",
22
+ // How often to nudge the AI to prune (every N tool results, 0 = disabled)
23
+ "nudge_freq": 10,
24
+ // Tools that are never pruned (plugin defaults)
25
+ "protectedTools": [
26
+ "task",
27
+ "todowrite",
28
+ "todoread",
29
+ "prune",
30
+ "batch",
31
+ "write",
32
+ "edit",
33
+ ],
34
+ }
@@ -0,0 +1,128 @@
1
+ # Memory System README
2
+
3
+ ## Overview
4
+
5
+ The memory/ directory provides persistent cross-session context for OpenCode agents. This enables continuity and learning over time.
6
+
7
+ ## Structure
8
+
9
+ ```
10
+ memory/
11
+ ├── _templates/ # Document templates
12
+ │ ├── spec.md # Template for task specifications
13
+ │ ├── research.md # Template for research documents
14
+ │ └── session.md # Template for session memory
15
+ ├── memory.md # Current project state and session learnings
16
+ ├── todo.md # Task tracking and progress
17
+ ├── development-guidelines.md # Code conventions and patterns
18
+ ├── architecture-decisions.md # Why we built it this way
19
+ ├── blockers.md # Known issues and workarounds
20
+
21
+ ├── research/ # Research findings and analysis
22
+ │ ├── YYYY-MM-DD-topic.md # Research documents
23
+ │ └── cache-topic.md # Research cache files
24
+
25
+ ├── design-guidelines.md # Design system and UI standards
26
+ ├── decisions/ # Architectural decision records
27
+ │ └── database-choice.md # Example: Why PostgreSQL
28
+
29
+ └── plans/ # Strategic planning documents
30
+ └── q4-roadmap.md # Example: Quarterly objectives
31
+ ```
32
+
33
+ **Subdirectories:** Use to organize knowledge by category and prevent flat directory bloat.
34
+
35
+ ## Usage
36
+
37
+ ### For Agents
38
+
39
+ **At Session Start:**
40
+
41
+ 1. Read `memory.md` for current project context
42
+ 2. Check `todo.md` for active tasks
43
+ 3. Review `blockers.md` for known issues
44
+
45
+ **During Session:**
46
+
47
+ - Consult `development-guidelines.md` for coding standards
48
+ - Reference `architecture-decisions.md` for design rationale
49
+ - Reference `design-guidelines.md` for design standards
50
+ - Update progress in `todo.md`
51
+ - Save research to `research/YYYY-MM-DD-topic.md` (auto-created by /research command)
52
+ - Document decisions in `decisions/choice-name.md`
53
+ - Create specs using templates from `_templates/spec.md`
54
+
55
+ **At Session End:**
56
+
57
+ - Update `memory.md` with new learnings
58
+ - Mark completed tasks in `todo.md`
59
+ - Document new blockers or resolve existing ones
60
+
61
+ ### For Humans
62
+
63
+ **Quick Status Check:**
64
+
65
+ ```bash
66
+ # See current state
67
+ cat memory/memory.md
68
+
69
+ # Check active tasks
70
+ cat memory/todo.md
71
+
72
+ # Review blockers
73
+ cat memory/blockers.md
74
+ ```
75
+
76
+ **Update Memory:**
77
+ Edit files directly or use memory-update tool - agents will read on next session.
78
+
79
+ **Examples:**
80
+
81
+ ```bash
82
+ # Read research notes
83
+ memory-read research/opencode-sessions
84
+
85
+ # Create new research note
86
+ memory-update research/new-topic content="# Research Notes\n..."
87
+
88
+ # Add decision record
89
+ memory-update decisions/database-choice content="# Why PostgreSQL\n..."
90
+
91
+ # Tools auto-create subdirectories and strip .md extension
92
+ ```
93
+
94
+ ## Memory Lifecycle
95
+
96
+ ### Compaction (When memory.md > 5000 words)
97
+
98
+ 1. Distill to critical facts only
99
+ 2. Archive detailed history to dated file: `memory-archive-YYYY-MM-DD.md`
100
+ 3. Keep current state lean and focused
101
+
102
+ ### Rotation
103
+
104
+ - Archive completed tasks monthly
105
+ - Move resolved blockers to history section
106
+ - Keep active memory under 5000 words
107
+
108
+ ## Integration Points
109
+
110
+ - **Plan Agent:** Reads memory.md before creating plans
111
+ - **Build Agent:** Updates memory.md after major completions
112
+ - **All Agents:** Consult development-guidelines.md for standards
113
+ - **Design Agent:** Consults design-guidelines.md for design standards
114
+
115
+ ## Best Practices
116
+
117
+ 1. **Be Specific:** "Uses React 18 Server Components" vs "Uses React"
118
+ 2. **Date Decisions:** Track when and why choices were made
119
+ 3. **Keep Current:** Update after significant progress, not every trivial change
120
+ 4. **Prune Regularly:** Remove obsolete information
121
+ 5. **Link Context:** Reference related files/specs when relevant
122
+
123
+ ## Future Enhancements
124
+
125
+ - Automatic memory compaction triggers
126
+ - Memory-read and memory-update tools
127
+ - Integration with task ledgers
128
+ - Progress monitoring and re-planning triggers
@@ -0,0 +1,33 @@
1
+ # Handoff: [Phase Name]
2
+
3
+ **Date:** YYYY-MM-DD
4
+ **From:** [Current phase/agent]
5
+ **To:** [Next phase/agent]
6
+ **Task:** [Task ID if applicable]
7
+
8
+ ## Summary
9
+
10
+ [1-2 sentences: What was accomplished in this phase]
11
+
12
+ ## Relevant Files
13
+
14
+ - `@path/to/file1` - [Why needed]
15
+ - `@path/to/file2` - [Why needed]
16
+
17
+ ## Key Decisions
18
+
19
+ - [Decision 1]: [Rationale]
20
+ - [Decision 2]: [Rationale]
21
+
22
+ ## Constraints
23
+
24
+ - [Constraint that must be followed]
25
+ - [Limitation to be aware of]
26
+
27
+ ## Next Instructions
28
+
29
+ [Clear prompt for the next agent - what exactly to do next]
30
+
31
+ ## Open Questions
32
+
33
+ - [Unresolved question for next phase]
@@ -0,0 +1,29 @@
1
+ # Research: [Topic]
2
+
3
+ **Date:** YYYY-MM-DD
4
+ **Context:** [Why this research was needed]
5
+
6
+ ## Question
7
+
8
+ [The specific question or problem being researched]
9
+
10
+ ## Findings
11
+
12
+ ### [Finding 1]
13
+
14
+ - [Key insight]
15
+ - Source: [URL or document]
16
+
17
+ ### [Finding 2]
18
+
19
+ - [Key insight]
20
+ - Source: [URL or document]
21
+
22
+ ## Decision
23
+
24
+ [Clear recommendation based on findings]
25
+
26
+ ## Next Steps
27
+
28
+ 1. [Action item]
29
+ 2. [Action item]
@@ -0,0 +1,43 @@
1
+ # Task PRD Template
2
+
3
+ **Task ID:** [auto-generated]
4
+ **Created:** [date]
5
+ **Status:** To Do
6
+
7
+ ## Goal
8
+
9
+ What exactly are we building and why does it exist in the product?
10
+
11
+ ## Scope
12
+
13
+ ### In-Scope:
14
+
15
+ - [List what's allowed]
16
+
17
+ ### Out-of-Scope:
18
+
19
+ - [List what's explicitly off-limits]
20
+
21
+ ## User Flow
22
+
23
+ The literal step-by-step of what the user sees/does:
24
+
25
+ 1. [Step 1]
26
+ 2. [Step 2]
27
+ 3. [Step 3]
28
+
29
+ ## Success Criteria
30
+
31
+ The exact conditions under which I consider this done:
32
+
33
+ - [ ] [Specific, measurable criteria 1]
34
+ - [ ] [Specific, measurable criteria 2]
35
+ - [ ] [Specific, measurable criteria 3]
36
+
37
+ ## Dependencies
38
+
39
+ - [List any prerequisites or blocking tasks]
40
+
41
+ ## Notes
42
+
43
+ [Additional context or constraints]
@@ -0,0 +1,73 @@
1
+ # Task Review Template
2
+
3
+ **Task ID:** [auto-generated]
4
+ **Completed:** [date]
5
+ **Status:** Done
6
+
7
+ ## What Changed
8
+
9
+ ### Files Modified:
10
+
11
+ - `src/[file1.js]` - [brief description of changes]
12
+ - `src/[file2.js]` - [brief description of changes]
13
+ - `tests/[test.js]` - [brief description of changes]
14
+
15
+ ### Logic Added:
16
+
17
+ - [New functionality implemented]
18
+ - [Key algorithms or business logic]
19
+ - [Data flow changes]
20
+
21
+ ### Files Created:
22
+
23
+ - [List any new files created]
24
+
25
+ ## What Skipped
26
+
27
+ ### Intentionally Not Done:
28
+
29
+ - [Feature X - reason: out of scope for this task]
30
+ - [Optimization Y - reason: will be separate task]
31
+ - [Test case Z - reason: requires additional setup]
32
+
33
+ ### Known Limitations:
34
+
35
+ - [Limitation 1 - temporary workaround]
36
+ - [Limitation 2 - technical debt introduced]
37
+ - [Limitation 3 - performance considerations]
38
+
39
+ ## Inconsistencies with Architecture
40
+
41
+ ### Deviations from Spec:
42
+
43
+ - [What was supposed to happen vs what actually happened]
44
+ - [Why the deviation was necessary]
45
+ - [Impact on overall architecture]
46
+
47
+ ### Unexpected Challenges:
48
+
49
+ - [Problem 1 encountered and how solved]
50
+ - [Problem 2 encountered and how solved]
51
+ - [Problem 3 encountered and how solved]
52
+
53
+ ## Validation Results
54
+
55
+ ### Success Criteria Met:
56
+
57
+ - [x] [Criteria 1 from PRD - how verified]
58
+ - [x] [Criteria 2 from PRD - how verified]
59
+ - [x] [Criteria 3 from PRD - how verified]
60
+
61
+ ### Test Results:
62
+
63
+ - [Test suite results summary]
64
+ - [Performance benchmarks]
65
+ - [Security validations]
66
+
67
+ ## Next Micro-Task
68
+
69
+ [Immediate next step or follow-up task needed]
70
+
71
+ ## Lessons Learned
72
+
73
+ [What worked well, what didn't, what to improve for future tasks]