by Octane0411
An OpenCode plugin that integrates OpenSpec, adding a dedicated 'openspec-plan' mode for creating and editing spec files.
# Add to your Claude Code skills
git clone https://github.com/Octane0411/opencode-plugin-openspecGuides for using ai agents skills like opencode-plugin-openspec.
An OpenCode plugin that integrates OpenSpec, providing a dedicated agent for planning and specifying software architecture.
This plugin addresses the need for a dedicated planning mode in OpenCode.
The Problem: When using OpenCode's standard "Build mode" to create or modify OpenSpec planning documents, AI agents often attempt to start implementing code changes immediately, before the planning phase is complete. This can lead to premature coding and a lack of focus on the architectural design.
The Solution:
opencode-plugin-openspec introduces a specialized OpenSpec Architect agent. This agent is configured to:
project.md, specs/**).openspec-plan: A dedicated agent mode for creating and editing OpenSpec files.project.mdAGENTS.mdopenspec/**specs/**openspec-plan agent, ensuring the implementation details are not accidentally modified during the planning phase.Option 1: Let your agent do it (Recommended)
Copy and paste this prompt to your LLM agent (Claude Code, AmpCode, Cursor, etc.):
Install opencode-plugin-openspec by following the instructions here:
https://raw.githubusercontent.com/Octane0411/opencode-plugin-openspec/main/README.md
Option 2: Manual Installation
Add the plugin package name to your opencode.json configuration file (usually located at ~/.config/opencode/opencode.json or .opencode/opencode.json):
{
"plugin": [
"opencode-plugin-openspec"
]
}
OpenCode will automatically download and install the plugin the next time it runs.
If you are an AI agent tasked with setting up this plugin, follow these steps:
IMPORTANT: Do NOT run npm install or any terminal commands. You only need to edit the configuration file.
Locate Configuration: Find the user's OpenCode configuration file. It is typically at ~/.config/opencode/opencode.json or .opencode/opencode.json in the workspace root.
Read Configuration: Read the content of the configuration file.
Update Configuration: Add "opencode-plugin-openspec" to the plugin array. If the plugin array does not exist, create it.
{
"plugin": [
"opencode-plugin-openspec"
]
}
Verify: Inform the user that the plugin has been added and will be installed on the next OpenCode run.
Note: You do not need to run
npm installor download the package manually. OpenCode will automatically fetch the plugin based on the configuration.
Clone the repository:
git clone https://github.com/Octane0411/opencode-plugin-openspec.git
cd opencode-plugin-openspec
Install dependencies:
bun install
Build the plugin:
bun run build
Run watch mode for development:
bun run watch
MIT
No comments yet. Be the first to share your thoughts!