AI Skill Hub 推荐使用:OpenCode 是一款优质的Prompt模板。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的Prompt模板解决方案,这是一个值得深入了解的选择。
OpenCode是一款开源Prompt模板,提供了6个插件、管理代理、工作项流程和Bun等功能,值得关注。
OpenCode 是经过精心设计和反复验证的专业 Prompt 模板集合。这些 Prompt 框架能够有效激活 Claude、ChatGPT 等大型语言模型的深层能力,让 AI 生成更准确、更有价值的输出结果。无需任何安装,直接复制模板内容到 AI 对话框即可使用。
OpenCode是一款开源Prompt模板,提供了6个插件、管理代理、工作项流程和Bun等功能,值得关注。
OpenCode 是经过精心设计和反复验证的专业 Prompt 模板集合。这些 Prompt 框架能够有效激活 Claude、ChatGPT 等大型语言模型的深层能力,让 AI 生成更准确、更有价值的输出结果。无需任何安装,直接复制模板内容到 AI 对话框即可使用。
# Prompt 无需安装,直接复制使用 # 支持:Claude / ChatGPT / Gemini / 通义千问 等主流模型 # 使用步骤 # 1. 复制 Prompt 模板内容 # 2. 粘贴到 AI 对话框 # 3. 替换 [占位符] 为实际内容 # 4. 发送后获取结构化输出 # 获取原始文件 git clone https://github.com/osovv/vv-opencode
# 粘贴到 Claude/ChatGPT 使用 # 示例 Prompt 结构: 你是一位 [角色],擅长 [领域]。 请根据以下要求完成任务: 任务背景:[描述背景] 具体要求:[详细说明] 输出格式:[期望格式] # 将 [] 内内容替换为实际需求
# vv-opencode 配置说明 # 查看配置选项 vv-opencode --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export VV_OPENCODE_CONFIG="/path/to/config.yml"
Portable OpenCode workflow toolkit — one command bootstraps a managed agent ecosystem, skill-driven spec-to-code pipeline, security-and-productivity plugins, and a unified CLI.
<p> <a href="https://www.npmjs.com/package/@osovv/vv-opencode"><img src="https://img.shields.io/npm/v/%40osovv%2Fvv-opencode?style=flat&label=npm&color=blue" alt="npm"></a> <a href="https://bun.sh"><img src="https://img.shields.io/badge/runtime-bun-%23f9f9f9?style=flat&logo=bun" alt="bun"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green?style=flat" alt="MIT"></a> </p>
---
| Area | What you get |
|---|---|
| **Plugins** | 6 plugins in one pinned package entry — workflow orchestration, model roles, guardian, hashline edit, system context injection, secrets redaction |
| **Agent System** | vv-controller routes work: direct for small changes, investigator for bugs, implementer+reviewer loop for risky work, analyst+architect for large features |
| **Skills** | vv-spec interviews you and writes an XML spec; vv-plan maps the spec to interface contracts and acceptance criteria; vv-review runs a review-only workflow; vv-reflect preserves reusable session findings as repository memory — all auto-triggered |
| **Spec-to-Code Pipeline** | vv-spec → spec review → vv-plan → plan review → vv-implementer → code review. Three independent review gates cover requirements, contracts, and implementation |
| **One-Click Setup** | vvoc install or vvoc sync bootstraps everything — config, agents, skills, prompts, presets |
| **CLI Tooling** | 15+ commands: install, sync, status, doctor, role management, presets, guardian config, shell completion, upgrade |
| **Security** | GuardianPlugin reviews shell-permission requests; SecretsRedactionPlugin strips tokens before LLM requests; both configurable via vvoc.json |
| **Model Roles** | Assign provider/model/variant to roles (default, smart, fast, vision, custom); switch between vv-openai, vv-zai, vv-deepseek, vv-minimax presets |
| **Workflow Tracking** | Work items with open/list/close for tracked implementation-to-review pipelines |
---
grep '<depends-on>task-' .vvoc/plans/*.xml
bun add -g @osovv/vv-opencode
vvoc install
That's it. vvoc install pins the package, scaffolds managed agents and skills, writes canonical config, and sets vv-controller as your default OpenCode agent with auto-triggered spec, planning, review, and reflection skills.
To scope everything to the current project instead of the global OpenCode config:
vvoc install --scope project
Already installed? Run vvoc sync anytime to refresh plugins, prompts, skills, and presets.
---
OpenCode config → OpenCode-managed paths (global or project)
vvoc.json (canonical) → $XDG_CONFIG_HOME/vvoc/vvoc.json
Managed agent prompts → $XDG_CONFIG_HOME/vvoc/agents/*.md (global)
./.vvoc/agents/*.md (project)
Managed skills → $XDG_CONFIG_HOME/vvoc/skills/*/SKILL.md (global)
./.vvoc/skills/*/SKILL.md (project)
Spec documents → ./.vvoc/specs/*
Planning artifacts → ./.vvoc/plans/*
Persisted data → $XDG_DATA_HOME/vvoc/
Repository memory → ./.vvoc/lessons/*.xml (lazy vv-reflect fallback)
./.vvoc/runbooks/*.xml (lazy vv-reflect fallback)
Schema is versioned and published with the package — source of truth at schemas/vvoc/v3.json.
---
RTK is a CLI proxy that reduces token usage for common developer commands. The interactive vvoc init flow recommends it after setup.
| Command | Purpose |
|---|---|
vvoc init | Interactive bootstrap flow |
vvoc install | Non-interactive setup and scaffolding |
vvoc sync | Refresh plugin entry, agents, prompts, skills, config |
vvoc status | Show current installation state |
vvoc doctor | Diagnose setup problems (exits non-zero on issues) |
vvoc config validate | Validate canonical vvoc.json |
vvoc role list\|set\|unset | Manage model role assignments |
vvoc preset list\|show\|<name> | Inspect or apply named presets |
vvoc guardian config | Print or write guardian section |
vvoc plugin list | List OpenCode plugin entries |
vvoc patch-provider stepfun-ai\|zai\|openai | Patch a global OpenCode config preset |
vvoc completion | Install shell completions |
vvoc upgrade | Upgrade global package and run follow-up sync |
vvoc version | Print installed version |
---
The core workflow is a three-stage pipeline with independent review gates at each level:
User request
│
▼ auto-trigger
vv-spec ───────────────────────────────────────→ .vvoc/specs/*.xml
│ Grill-me interview (one question at a time)
│ Decision tree with recommended answers
│ vv-analyst + vv-architect synthesis
│
├── ① Spec review: requirements correct, complete, unambiguous?
│
▼ auto-trigger (after approval)
vv-plan ───────────────────────────────────────→ .vvoc/plans/*-plan.xml
│ Interface contracts with JSDoc behavior descriptions
│ Acceptance criteria per task (grep: `<criterion-N>`)
│ Dependency ordering (grep: `<depends-on>`)
│ Three-layer review model: spec → plan → code
│
├── ② Plan review: every spec requirement → task? Contracts match spec?
│
▼ auto-trigger (after approval)
vv-implementer → vv-spec-reviewer → vv-code-reviewer
│ Workflow tracked loop with work items
│ Spec review checks: code matches spec?
│ Code review checks: implementation matches plan contracts?
│
├── ③ Code review: interfaces correct? All AC pass?
│
▼
Done
grep '<component>' .vvoc/plans/*.xml ```
All four skills are auto-triggered by vv-controller via its built-in <skill_trigger_rule> — no slash commands needed. The controller checks whether vv-spec, vv-plan, vv-review, or vv-reflect applies before routing any request.
---
| Plugin | What it does |
|---|---|
| **WorkflowPlugin** | Tracked orchestration around task for subagents; registers work_item_open/list/close tools for implementation-to-review pipelines with state-machine enforcement and round-limit gating |
| **ModelRolesPlugin** | Resolves vv-role:* references in OpenCode config at startup; translates :variant suffixes into native model+variant fields |
| **GuardianPlugin** | Reviews OpenCode permission requests with a constrained guardian agent and safe-deny defaults; configurable model, timeout, risk threshold |
| **HashlineEditPlugin** | Replaces OpenCode's edit with hash-anchored variant; rewrites read output to line#hash format; rejects stale snapshots to prevent drift bugs |
| **SystemContextInjectionPlugin** | Injects reusable system guidance into primary sessions without polluting subagent prompts; encourages proactive explore usage; registers vvoc skill directory for OpenCode skill discovery |
| **SecretsRedactionPlugin** | Redacts secrets (tokens, keys, emails, UUIDs, IPs) before LLM requests; restores placeholders afterward; configurable patterns |
---
The workflow uses npm provenance/trusted publishing (id-token: write) and does not publish on normal branch pushes. Configure npm trusted publishing for this GitHub repository/package, or adapt the publish step to use an NPM_TOKEN secret if token-based publishing is required.
---
OpenCode是一款开源Prompt模板,提供了6个插件、管理代理、工作项流程和Bun等功能,值得关注,但需要进一步优化和完善。
该工具未明确声明开源协议,商业使用前请联系原作者确认授权范围,避免侵权风险。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
总体来看,OpenCode 是一款质量良好的Prompt模板,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | vv-opencode |
| Topics | promptagent-workflowai-agentbunclidev-toolstypescript |
| GitHub | https://github.com/osovv/vv-opencode |
| 语言 | TypeScript |
收录时间:2026-06-12 · 更新时间:2026-06-12 · License:未公布 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端