Skip to content

Repository files navigation

OpenCode Skill Runtime

English · 中文

Runtime helpers for agent skills, RAFA-original internals. The core tool is venv-manager.sh: one uv-managed virtualenv per skill.

Attribution: this repository is not a fork. It exists so Python-heavy skills under ~/.agents/skills/ do not share a fragile global interpreter.

Suite hub:opencode-methodologyInstall from scratch.

Getting started

  1. Install OpenCode and uv (UV_BIN optional).
  2. Clone and install the helper into the OpenCode config tree:
git clone https://github.com/openrafa/opencode-skill-runtime.git
mkdir -p ~/.config/opencode/.scripts
cp opencode-skill-runtime/bin/venv-manager.sh \
~/.config/opencode/.scripts/venv-manager.sh
  1. Create / check / rewire a skill venv:
bash ~/.config/opencode/.scripts/venv-manager.sh create <skill-name><package>...
bash ~/.config/opencode/.scripts/venv-manager.sh doctor <skill-name>
bash ~/.config/opencode/.scripts/venv-manager.sh rewire <skill-name>
  1. Use the skill in OpenCode as usual. Re-run doctor if imports fail.

What lands on disk

~/.config/opencode/
├── .scripts/
│ └── venv-manager.sh
└── .venvs/ # generated local state, gitignored by you
└── <skill-name>/

Defaults: VENV_ROOT=~/.config/opencode/.venvs, SKILL_ROOT=~/.agents/skills. Wiki workflows keep helper scripts in the vault's local .scripts/ directory — copy venv-manager.sh there as well if you use wiki skills. See docs/python-isolation.md (中文).

Why

Global site-packages make skills conflict and failures hard to diagnose. One venv per skill + a generated wrapper keeps isolation reversible.

Docs

TopicEnglish中文
Python isolationpython-isolation.mdpython-isolation.zh-CN.md
Author guidelinesskill-author-guidelines.mdskill-author-guidelines.zh-CN.md
Troubleshootingtroubleshooting.mdtroubleshooting.zh-CN.md

Related

License & credit

MIT — Copyright (c) 2026 Cyame. See LICENSE. This runtime helper is written for this suite.

About

migrated skill runtime for opencode

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages