setup

Solid

First-run setup for the Mycelium plugin. Creates project-state directories (.claude/canvas, .claude/diamonds, .claude/memory, .claude/harness) and minimal starter files in the user's project. Optionally provisions opencode runtime support (a starter scaffold) when opencode is detected or requested. Idempotent — re-running on an initialized project is a no-op. Run this once after installing the Mycelium plugin and before invoking other skills.

AI & Automation 41 stars 3 forks Updated today MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
54
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Mycelium plugin setup When this skill runs, do the following sequence. The skill is designed to be safe to re-run — every step is idempotent. ## Step 1: Detect initialization state Check whether the user's project already has Mycelium project-state. The signal that initialization has happened: ```bash test -f "$CLAUDE_PROJECT_DIR/.claude/diamonds/active.yml" ``` If the file exists, print: > "Mycelium project state is already initialized. Existing canvas, diamonds, and memory are preserved. Run `/mycelium:diamond-assess` to see current state." Then exit. Do NOT touch existing files. If the file does NOT exist, continue to Step 2. ## Step 2: Create project-state directory structure Resolve the project root: use `$CLAUDE_PROJECT_DIR` if set, else fall back to `pwd`. (Claude Code sets it automatically; non-Claude-Code agents may not.) Create these directories in the user's project (using Bash `mkdir -p`): ``` <project_root>/.claude/canvas/ <project_root>/.claude/diamonds/ <project_root>/.claude/memory/ <project_root>/.claude/harness/ <project_root>/.claude/evals/ <project_root>/.claude/jit-tooling/ ``` These directories hold project-specific state that the user's project owns and commits to git. Framework reference content (skills, hooks, theory gates) lives in the plugin cache and is not duplicated here. A `.claude/state/` directory may also be present — that one is created and owned by Claude Code itself for runtime state (audit logs, etc.), not by Mycelium. Myc...

Details

Author
haabe
Repository
haabe/mycelium
Created
3 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category