docs/opencode.md
planning-with-files works with OpenCode as a personal or project skill.
npx skills add OthmanAdi/planning-with-files --skill planning-with-files -g
This installs the skill into ~/.config/opencode/skills/planning-with-files/SKILL.md and makes it available to every OpenCode session.
npx skills add OthmanAdi/planning-with-files --skill planning-with-files
This installs the skill into .opencode/skills/planning-with-files/SKILL.md inside the current project only.
If you prefer a manual install, clone the repo into a scratch directory and copy the OpenCode-specific skill folder into OpenCode's skill location:
Global:
git clone --depth 1 https://github.com/OthmanAdi/planning-with-files.git /tmp/pwf-repo
mkdir -p ~/.config/opencode/skills/planning-with-files
cp -r /tmp/pwf-repo/.opencode/skills/planning-with-files/* ~/.config/opencode/skills/planning-with-files/
rm -rf /tmp/pwf-repo
Project:
git clone --depth 1 https://github.com/OthmanAdi/planning-with-files.git ./.opencode/pwf-scratch
mkdir -p .opencode/skills/planning-with-files
cp -r ./.opencode/pwf-scratch/.opencode/skills/planning-with-files/* .opencode/skills/planning-with-files/
rm -rf ./.opencode/pwf-scratch
If you have obra/superpowers OpenCode plugin:
Use the use_skill tool with skill_name: "planning-with-files"
Manually read the skill file when starting complex tasks:
cat ~/.config/opencode/skills/planning-with-files/SKILL.md
oh-my-opencode has Claude Code compatibility for skills. To use planning-with-files with oh-my-opencode:
mkdir -p ~/.config/opencode/skills/planning-with-files
cp -r .opencode/skills/planning-with-files/* ~/.config/opencode/skills/planning-with-files/
Add the skill to your ~/.config/opencode/oh-my-opencode.json (or .opencode/oh-my-opencode.json for project-level):
{
"skills": {
"sources": [
{ "path": "~/.config/opencode/skills/planning-with-files", "recursive": false }
],
"enable": ["planning-with-files"]
},
"disabled_skills": []
}
Ask the agent: "Do you have access to the planning-with-files skill? Can you create task_plan.md?"
If the agent forgets the planning rules:
use_skill tool, but not bothThe session-catchup.py script currently has limited support for OpenCode due to different session storage formats:
.jsonl files at ~/.claude/projects/${XDG_DATA_HOME:-~/.local/share}/opencode/opencode.db (v2.38.0+)When you run /clear in OpenCode, session catchup will detect OpenCode and read the SQLite store. If the query fails, workaround: manually read task_plan.md, progress.md, and findings.md to catch up after clearing context.
Global:
ls -la ~/.config/opencode/skills/planning-with-files/SKILL.md
Project:
ls -la .opencode/skills/planning-with-files/SKILL.md