Skip to content

Commit 7472575

Browse files
feat: enhance developer and advanced profiles with UI, development, and system builder context (#148)
* chore: bump version to v0.8.0 * chore: update version to 0.7.1 instead of 0.8.0 * docs: expand comparison table with Oh My OpenCode and additional features * backup: development context before reorganization * refactor(context): reorganize development folder - Remove 7 duplicate files (ui/design files exist in ui/web/) - Remove 2 redundant READMEs (use navigation.md instead) - Move react-patterns.md to frontend/react/ - Create frontend/react/navigation.md - Update 4 navigation files (development, ui, frontend, frontend/react) - Update developer profile (4 path changes: ui-styling-standards, design-systems, design-assets, animation-patterns) - Update 3 core context files (visual-development.md, design-iteration.md, file-locations.md) Result: 29 context files (down from 36), no duplicates, clean structure Refs: REORGANIZATION_PLAN.md, REORGANIZATION_SUMMARY.md * docs(context): add frontend delegation guide - Create when-to-delegate.md with clear decision criteria - Decision matrix for when to delegate vs. handle directly - Common patterns and examples - Red flags and green flags - Frontend-specialist capabilities reference - Update frontend and development navigation files Helps orchestrators decide when to delegate UI work to frontend-specialist subagent. * feat: enhance developer and advanced profiles with UI, development, and system builder context - Developer profile: Add UI/UX patterns, development principles, design systems, React patterns, animation patterns, styling standards, and design assets - Full profile: Add same UI/development context as developer profile for consistency - Advanced profile: Add comprehensive system builder context including templates, guides, context system standards, and repository management context - Update profile descriptions to reflect new capabilities - All context files verified to exist and are properly referenced * fix: remove duplicate context entries with incorrect paths - Remove duplicate design-assets, ui-styling-standards, clean-code, animation-patterns, design-systems, react-patterns, and api-design entries that pointed to wrong paths - Remove non-existent development-readme and mastra-ai-readme entries - Keep only correct entries with proper file paths - All registry paths now validated and correct --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 38995b2 commit 7472575

File tree

20 files changed

+615
-3070
lines changed

20 files changed

+615
-3070
lines changed

.opencode/agent/subagents/core/externalscout.md

Lines changed: 44 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,16 @@ tags:
8181
NEVER rely on training data for library APIs
8282
</rule>
8383
<rule id="output_format">
84+
ALWAYS write files to .tmp/external-context/ BEFORE returning summary
8485
ALWAYS return: file locations + brief summary + official docs link
8586
ALWAYS filter to relevant sections only
8687
NO reports, guides, or integration documentation
88+
NEVER say "ready to be persisted" - files must be WRITTEN, not just fetched
89+
</rule>
90+
<rule id="mandatory_persistence">
91+
You MUST write fetched documentation to files using the Write tool
92+
Fetching without writing = FAILURE
93+
Stage 4 (PersistToTemp) is MANDATORY and cannot be skipped
8794
</rule>
8895
</critical_rules>
8996

@@ -93,19 +100,21 @@ tags:
93100
<tier level="1" desc="Critical Operations">
94101
- @tool_usage: Use ONLY allowed tools
95102
- @always_use_tools: Fetch from real sources
96-
- @output_format: Return file locations + brief summary
103+
- @mandatory_persistence: ALWAYS write files to .tmp/external-context/ (Stage 4 is MANDATORY)
104+
- @output_format: Return file locations + brief summary ONLY AFTER files written
97105
</tier>
98106
<tier level="2" desc="Core Workflow">
99107
- Detect library from registry
100108
- Fetch from Context7 (primary)
101109
- Fallback to official docs (webfetch)
102110
- Filter to relevant sections
103-
- Persist to .tmp/external-context/
111+
- Persist to .tmp/external-context/ (CANNOT be skipped)
104112
- Return file locations + summary
105113
</tier>
106114
<conflict_resolution>
107115
Tier 1 always overrides Tier 2
108116
If workflow conflicts w/ tool restrictions→abort and report error
117+
Stage 4 (PersistToTemp) is MANDATORY and cannot be skipped under any circumstances
109118
</conflict_resolution>
110119
</execution_priority>
111120

@@ -150,12 +159,14 @@ tags:
150159
<checkpoint>Results filtered to relevant content only</checkpoint>
151160
</stage>
152161

153-
<stage id="4" name="PersistToTemp">
154-
<action>Save filtered documentation to .tmp/external-context/</action>
162+
<stage id="4" name="PersistToTemp" enforcement="MANDATORY">
163+
<action>ALWAYS save filtered documentation to .tmp/external-context/ - NEVER skip this step</action>
155164
<process>
156-
1. Create directory: `.tmp/external-context/{package-name}/`
165+
CRITICAL: You MUST write files. Do NOT just summarize. Execute these steps:
166+
167+
1. Create directory if needed: `.tmp/external-context/{package-name}/`
157168
2. Generate filename from topic (kebab-case): `{topic}.md`
158-
3. Write file with minimal metadata header:
169+
3. Write file using Write tool with minimal metadata header:
159170
```markdown
160171
---
161172
source: Context7 API
@@ -168,22 +179,32 @@ tags:
168179
169180
{filtered documentation content}
170181
```
171-
4. Update `.tmp/external-context/.manifest.json` with file metadata
182+
4. Confirm file written by checking it exists
183+
5. Update `.tmp/external-context/.manifest.json` with file metadata
184+
185+
⚠️ If you skip writing files, you have FAILED the task
172186
</process>
173-
<checkpoint>Documentation persisted to .tmp/external-context/</checkpoint>
187+
<checkpoint>Documentation persisted to .tmp/external-context/ AND files confirmed written</checkpoint>
174188
</stage>
175189

176-
<stage id="5" name="ReturnLocations">
177-
<action>Return file locations and brief summary</action>
190+
<stage id="5" name="ReturnLocations" enforcement="MANDATORY">
191+
<action>Return file locations and brief summary ONLY AFTER files are written</action>
178192
<output_format>
193+
CRITICAL: Only proceed to this stage AFTER Stage 4 is complete and files are written.
194+
195+
Return format:
179196
```
180197
✅ Fetched: {library-name}
181-
📁 Saved to: .tmp/external-context/{package-name}/{topic}.md
198+
📁 Files written to:
199+
- .tmp/external-context/{package-name}/{topic-1}.md
200+
- .tmp/external-context/{package-name}/{topic-2}.md
182201
📝 Summary: {1-2 line summary of what was fetched}
183202
🔗 Official Docs: {link}
184203
```
204+
205+
⚠️ Do NOT say "ready to be persisted" - files must be ALREADY written
185206
</output_format>
186-
<checkpoint>File locations returned, task complete</checkpoint>
207+
<checkpoint>File locations returned with confirmation files exist, task complete</checkpoint>
187208
</stage>
188209
</workflow_execution>
189210

@@ -214,18 +235,27 @@ If Context7 API fails:
214235
- ❌ Don't use bash for anything except curl to context7.com
215236
- ❌ Don't write outside `.tmp/external-context/` directory
216237
- ❌ Don't use task tool—you're a fetcher with write-only persistence
238+
-**NEVER skip writing files** - fetching without persisting = FAILURE
239+
-**NEVER say "ready to be persisted"** - files must be WRITTEN before returning
217240

218241
---
219242

220243
## Success Criteria
221244

222-
You succeed when:
245+
You succeed when ALL of these are complete:
223246
✅ Documentation is **fetched** from Context7 or official sources
224247
✅ Results are **filtered** to only relevant sections
225-
✅ Documentation is **persisted** to `.tmp/external-context/{package-name}/{topic}.md`
248+
✅ Files are **WRITTEN** to `.tmp/external-context/{package-name}/{topic}.md` using Write tool
249+
✅ Files are **CONFIRMED** to exist (not just "ready to be persisted")
226250
**File locations returned** with brief summary
227251
**Official docs link** provided
228252

253+
❌ You FAIL if you:
254+
- Fetch docs but don't write files
255+
- Say "ready to be persisted" without actually writing
256+
- Skip Stage 4 (PersistToTemp)
257+
- Return summary without file locations
258+
229259
---
230260

231261
## References

.opencode/context/core/visual-development.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
| **Edit existing image** | This file | Image Specialist | tool:gemini |
1414
| **UI mockup (static)** | This file | Image Specialist | tool:gemini |
1515
| **Interactive UI design** | `workflows/design-iteration.md` | - | - |
16-
| **Design system** | `development/design-systems.md` | - | - |
17-
| **UI standards** | `development/ui-styling-standards.md` | - | - |
18-
| **Animation patterns** | `development/animation-patterns.md` | - | - |
16+
| **Design system** | `ui/web/design-systems.md` | - | - |
17+
| **UI standards** | `ui/web/ui-styling-standards.md` | - | - |
18+
| **Animation patterns** | `ui/web/animation-patterns.md` | - | - |
1919

2020
---
2121

@@ -448,9 +448,9 @@ After receiving output:
448448
## Related Context
449449

450450
- **UI Design Workflow**: `.opencode/context/core/workflows/design-iteration.md`
451-
- **Design Systems**: `.opencode/context/development/design-systems.md`
452-
- **UI Styling Standards**: `.opencode/context/development/ui-styling-standards.md`
453-
- **Animation Patterns**: `.opencode/context/development/animation-patterns.md`
451+
- **Design Systems**: `.opencode/context/ui/web/design-systems.md`
452+
- **UI Styling Standards**: `.opencode/context/ui/web/ui-styling-standards.md`
453+
- **Animation Patterns**: `.opencode/context/ui/web/animation-patterns.md`
454454
- **Subagent Invocation Guide**: `.opencode/context/openagents-repo/guides/subagent-invocation.md`
455455
- **Agent Capabilities**: `.opencode/context/openagents-repo/core-concepts/agents.md`
456456

.opencode/context/core/workflows/design-iteration.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -652,9 +652,9 @@ Before presenting each stage:
652652

653653
## References
654654

655-
- [Design Systems Context](../development/design-systems.md)
656-
- [UI Styling Standards](../development/ui-styling-standards.md)
657-
- [Animation Patterns](../development/animation-patterns.md)
658-
- [Design Assets](../development/design-assets.md)
655+
- [Design Systems Context](../ui/web/design-systems.md)
656+
- [UI Styling Standards](../ui/web/ui-styling-standards.md)
657+
- [Animation Patterns](../ui/web/animation-patterns.md)
658+
- [Design Assets](../ui/web/design-assets.md)
659659
- [ASCII Art Generator](https://www.asciiart.eu/)
660660
- [WCAG Contrast Checker](https://webaim.org/resources/contrastchecker/)

.opencode/context/development/README.md

Lines changed: 0 additions & 46 deletions
This file was deleted.

.opencode/context/development/ai/mastra-ai/README.md

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)