OpenCode plugin for AWS Solutions Architect assistant with multi-agent Guru system
npm install opencode-sa-assistantOpenCode plugin for AWS Solutions Architect assistance with multi-agent Guru system.
This plugin activates when you use the wadd keyword in your messages, transforming OpenCode into an AWS Solutions Architect assistant powered by 7 specialized agents:
4 Guru Agents (Philosophy & Wisdom):
- sa-bezos: Customer Obsession, Day 1, Working Backwards
- sa-vogels: Distributed Systems, Design for Failure
- sa-naval: Leverage, Asymmetric Outcomes
- sa-feynman: Simplification, First Principles
3 Specialist Agents (Execution):
- sa-explorer: Architecture analysis, diagram interpretation
- sa-researcher: AWS service information via MCP tools
- sa-reviewer: Well-Architected Framework reviews (6 pillars)
Orchestrator:
- sa-orchestrator: Master agent that coordinates Gurus and Specialists based on Guru_Mandate rules
β¨ WADD Mode Activation: Type wadd to activate SA mode
π§ Multi-Agent System: 4 Gurus + 3 Specialists working together
π Guru_Mandate: Automatic expert consultation based on context
ποΈ Well-Architected Framework: All 6 pillars integrated
π AWS MCP Tools: Real-time AWS documentation access
π°π· Bilingual: Korean prose + English technical terms
| Agent | Core Principles | Use When | Avoid When |
|-------|----------------|----------|------------|
| sa-bezos | Customer Obsession, Day 1, Working Backwards | Customer value definition, Long-term vs short-term decisions, PR/FAQ writing | Pure technical implementation, Cost calculations |
| sa-vogels | Everything Fails, Design for Failure, Loose Coupling | Distributed system design, Scalability/resilience patterns, Operational excellence | Business strategy, Cost ROI analysis |
| sa-naval | Leverage, Asymmetric Outcomes, Compounding | Cost analysis, ROI, Leverage points identification, Complexity removal | Technical architecture details, Customer experience |
| sa-feynman | Feynman Technique, First Principles, Simplicity | Complex concept simplification, Non-technical presentations, Learning materials | Detailed technical decisions, Cost analysis |
| Agent | Role | Output |
|-------|------|--------|
| sa-explorer | Architecture analysis | Component discovery, Dependency mapping, As-Is documentation |
| sa-researcher | AWS information gathering | Service info, Pricing, Best practices with evidence |
| sa-reviewer | Well-Architected review | 6 Pillars evaluation, Risk summary, Prioritized recommendations |
sa-orchestrator is the master agent that:
- Classifies user intent (Architecture Review, Service Selection, Cost Analysis, etc.)
- Invokes appropriate Gurus based on Guru_Mandate rules
- Delegates tasks to Specialists
- Enforces anti-patterns (no architecture decisions without Guru consultation)
Add the plugin to your opencode.json:
``json`
{
"plugin": [
"opencode-sa-assistant"
]
}
In OpenCode, simply start your message with wadd:
``
wadd μ΄ Lambda μν€ν
μ²λ₯Ό 리뷰ν΄μ€
The plugin will:
1. Detect the wadd keyword (case-insensitive, word boundary)
2. Activate SA mode (sets model to "max" variant)
3. Inject the SA Orchestrator system prompt
4. Consult appropriate Gurus based on Guru_Mandate rules
The orchestrator automatically consults Gurus based on context:
| Scenario | Gurus Consulted |
|----------|-----------------|
| Architecture design/review | vogels + bezos |
| Cost decisions | naval + bezos |
| Learning/explanation | feynman + relevant guru |
| System design | vogels + naval |
| Security/compliance | vogels + bezos |
| Innovation | bezos + feynman |
You can also directly request specific agents:
``
wadd bezosμκ² κ³ κ° κ²½ν κ΄μ μμ μ΄ κΈ°λ₯μ νκ°ν΄λ¬λΌκ³ ν΄μ€
The plugin includes 4 skill modules that are automatically installed to ~/.config/opencode/skills/:
- guru: Guru consultation patterns and philosophies
- mcp: AWS MCP tools reference (search_documentation, read_documentation)
- docx: AWS Blog-style document generation guidelines
- pptx: SA presentation templates
Skills are installed globally to ensure they are available before any plugin caching occurs. Use /skill guru or /skill mcp to load them.
`bashRun all tests
bun test
Test Coverage: 80 tests, 234 assertions, 100% pass rate
Development
$3
`
packages/opencode-sa-assistant/
βββ src/
β βββ index.ts # Plugin entry point
β βββ hooks/wadd-mode.ts # WADD keyword detection
β βββ agents/index.ts # Agent/Skill installation
β β βββ prompts/
β β β βββ orchestrator.ts # SA Orchestrator
β β β βββ gurus.ts # 4 Guru agents
β β β βββ specialists.ts # 3 Specialist agents
β β βββ skills/
β β β βββ guru/SKILL.md
β β β βββ mcp/SKILL.md
β β β βββ docx/SKILL.md
β β β βββ pptx/SKILL.md
β β βββ __tests__/
β β βββ *.test.ts # 80 tests
βββ package.json
βββ tsconfig.json
βββ bunfig.toml
`$3
- Runtime: Bun
- Language: TypeScript
- Testing: Bun test
- Plugin SDK: @opencode-ai/plugin
Well-Architected Framework
The reviewer specialist covers all 6 pillars:
1. μ΄μ μ°μμ± (Operational Excellence)
2. 보μ (Security)
3. μμ μ± (Reliability)
4. μ±λ₯ ν¨μ¨μ± (Performance Efficiency)
5. λΉμ© μ΅μ ν (Cost Optimization)
6. μ§μ κ°λ₯μ± (Sustainability)
AWS MCP Integration
The plugin integrates with AWS Documentation MCP for real-time information:
-
aws-docs_search_documentation: Search AWS documentation
- aws-docs_read_documentation: Fetch specific documentation pages
- aws-docs_recommend: Get related documentationLicense
MIT
Author
Jisan Bang (wltks2155@gmail.com)
Contributing
Contributions are welcome! Please ensure:
- All tests pass (
bun test)
- TDD protocol followed (RED β GREEN β REFACTOR)
- Korean + English bilingual content preserved
- Conventional commit format usedChangelog
$3
Phase 2 & 3 Improvements:
- Naval Guru: Added concrete AWS cost examples (RI vs On-Demand, Serverless crossover, IaC ROI)
- PPTX Skill: Implemented
move slide operation in rearrange.py
- Orchestrator: Added cross-agent communication pattern for Guru conflict resolution
- MCP Skill: Added error handling documentation and aws-docs_recommend tool docs
- Explorer: Added confidence levels (π’ HIGH / π‘ MEDIUM / π΄ LOW)
- Reviewer: Added Well-Architected Pillar tradeoff guide
- DOCX Skill: Added Header/Footer/ToC (Table of Contents) examples$3
- feat(docx-skill): Add diagram, code block, and table improvements
- feat(pptx-skill): Add missing scripts (inventory, replace, thumbnail, ooxml) and documentation
- Version bump for npm publish
$3
- Fix: Skills now installed to global location (
~/.config/opencode/skills/)
- Resolves oh-my-opencode cache timing issue
- Skills are now available via /skill command immediately
- Test coverage: 80 tests, 234 assertions$3
- Added skill installation to
.opencode/skills/
- Skills: guru, mcp, docx, pptx$3
- Aligned wadd hook with oh-my-opencode pattern
- Added
removeCodeBlocks()` for keyword detection- Initial release
- 7 agent types (4 Gurus + 3 Specialists)
- WADD mode activation
- Guru_Mandate consultation system
- Well-Architected Framework integration
- AWS MCP tools support