This repository contains the personalized configuration and custom extensions for the Opencode AI development environment. It defines custom agents, commands, skills, and behavior rules to tailor the AI's capabilities for automated development, QA testing, and project planning.
~/.config/opencode/
├── AGENTS.md # Global instructions, memory management, and agent routing rules
├── opencode.json # Main configuration file (plugins, MCP, permissions)
├── agents/ # Custom subagent definitions
│ ├── docs-writer.md # Agent for technical documentation
│ └── playwright-tester.md # Agent for QA and Playwright automation
├── commands/ # Custom executable commands
│ ├── execute.md # Task execution and verification workflow
│ └── fleshout.md # Roadmap planning and task breakdown workflow
├── skills/ # Custom AI skills
│ └── playwright-cli/ # Skill for browser automation and test generation
└── package.json # Plugin dependencies (e.g., @opencode-ai/plugin)
Enforces standard operating procedures across all sessions:
- Verifies clean Git status before initiating workflows.
- Routes specific tasks to specialized subagents (
@docs-writerfor docs,@playwright-testerfor UI testing). - Integrates continuous memory management (
mnemosyne) usingmemory_recallandmemory_storeto maintain cross-session context and personal preferences.
@docs-writer: A specialized subagent focused solely on creating and maintaining technical documentation, READMEs, and guides. It is configured to safely write.mdfiles even from read-only contexts.@playwright-tester: An expert QA Automation subagent equipped with theplaywright-cliskill. It analyzes UI code, writes semantic tests, runs verifications, and manages end-to-end browser automation.
execute: Driven by thebuildagent, this command sequentially processes task specifications or roadmap items, verifying acceptance criteria, and explicitly enforcing linting, testing, and UI verification.fleshout: Driven by thedocs-writeragent, this command breaks down high-level project roadmap items into detailed, actionable tasks with clear acceptance criteria and dependencies.
playwright-cli: A deeply integrated skill allowing agents to automate browser interactions without writing boilerplate code. It supports navigation, form filling, snapshot analysis, session management, mock networking, DevTools tracing, and automatic test generation.
Overrides default agent permissions to maintain a secure automated environment:
- Git Protections: Explicitly denies automated
git commitandgit pushacross all agents to prevent unapproved repository modifications. - Bash Execution: Extends timeout limits for long-running build operations while defaulting most bash commands to require user approval.
Configures Model Context Protocol (MCP) integrations:
- Context7: Local MCP for code understanding.
- Tavily: Remote MCP for web search and research.
- Also integrates local plugins (e.g.
mnemosynememory plugin) and theopencode-notifierfor state notifications.
If you are cloning this configuration to a new machine:
- Clone or copy this repository to
~/.config/opencode. - Install the necessary node dependencies using Bun or npm:
bun install # or npm install - Ensure the required CLI tools (like
playwright-cli,npx, etc.) are available in your global environment. - Restart your Opencode session to apply the new configuration.
- Triggering Commands: You can invoke custom commands directly in your Opencode prompt (e.g.,
/executeor/fleshout). - Invoking Agents: Mention
@docs-writeror@playwright-testerin your prompt to delegate tasks specifically to them. - Memory Context: The system will automatically recall relevant global memories at the start of a session. You can explicitly ask the AI to "remember this" to store custom preferences.
- Git Workflow: Since automated commits are blocked by default, the AI will stage files and present a
git statussummary. You must manually execute or approve the final commit.