| name | mycelium-directive |
| description | Complete ruleset for authoring developer directives in the Mycelium framework |
Mycelium framework: developer directives
Use these rules and schemas for writing developer directives (DRC-*.md files). Directives are detailed, implementation-focused instructions for AI and human developers. Schema and templates live in this skill and are not replicated elsewhere.
What directives are
Developer directives specify how to implement features. They include:
- Architecture and design patterns
- Implementation constraints and technical boundaries
- Logic, algorithms, and workflows
- API contracts and data structures
- Detailed acceptance criteria for verification
What you do
- Use templates to write new directives
- Validate against the schema
- Follow general rules for the directives framework
How to use
- Open the relevant reference set under
references/
- Find templates and schemas matching your case
- Verify
If local references cannot be read, view them online at https://github.com/digitalygo/opencode-setup/tree/main/skills/mycelium-directive/references
Reference index
| File | Topics Covered |
|---|
_schema.yaml | Schema validation rules, required fields, section patterns |
default.md | General use template |
ui.md | Interface components and visual states |
api.md | Endpoints, methods, request/response, auth, errors |
logic.md | Business logic, algorithms, inputs/outputs |
security.md | Security features, threats, audit/logging |
Output format
---
type: [ui|api|logic|security|performance|integration|other]
priority: [critical|high|medium|low]
area: string
---
...
...
...
...
...
- [ ] ...
...
...
Required sections
- Title (H1)
- Purpose & Context โ why this directive exists, technical rationale
- Actors and Roles โ role-based differences, capabilities per role
- Implementation Requirements โ architecture, logic, workflows, base flow
- Inputs & Outputs โ required for api and logic, optional for others
- Edge / Failure Cases โ exception scenarios
- Acceptance Criteria โ checklist with minimum 3 verifiable items
Optional sections
- Constraints / Non-goals โ explicitly out of scope
- Open Questions โ unresolved items
File naming
- Use kebab-case descriptive names
- Prefix with
DRC- for developer directives (e.g., DRC-user-authentication.md)
- Place in
substrate/directives/ or substrate/directives/{area}/
Directives vs expectations
| Aspect | Directives (DRC-*) | Expectations (EXP-*) |
|---|
| Location | substrate/directives/ | substrate/expectations/ |
| Audience | Developers and AI agents | Customers and stakeholders |
| Focus | Implementation details | Outcomes and value |
| Structure | Detailed, structured | Lighter, high-level |
| Content | Architecture, logic, constraints | Behavior, success states, UX |
For customer-facing expectations, see the mycelium-expectation skill.
Available templates
Reference templates in skills/mycelium-directive/references/_templates/:
default.md for general use
ui.md for interface components
api.md for endpoints
logic.md for business logic
security.md for security features
Write directives to substrate/directives/ in the target repository, using these templates as reference.