Browse Source

refactor: reorganize Claude plugin into self-contained plugins directory

Changes:
- Move claude-plugin/ → plugins/claude-code/
- Remove hello skill (test skill no longer needed)
- Remove hello.txt from root
- Create plugins/README.md with structure documentation
- Update marketplace.json to point to new location
- Update all documentation paths
- Fix context symlink for new location

Structure:
plugins/
└── claude-code/          # Self-contained Claude Code plugin
    ├── .claude-plugin/   # Plugin manifest
    ├── skills/           # (empty - ready for real skills)
    ├── agents/           # (empty - ready for agents)
    ├── hooks/            # (empty - ready for hooks)
    ├── commands/         # (empty - ready for commands)
    ├── context/          # Symlink to ../../.opencode/context/
    └── README.md         # Plugin documentation

Benefits:
- Self-contained plugin structure
- Easy to add more IDE plugins (Cursor, Windsurf, etc.)
- Clean separation from main repo
- No test/hello files cluttering the plugin
darrenhinde 5 months ago
parent
commit
452ec40362

+ 1 - 1
.claude-plugin/marketplace.json

@@ -8,7 +8,7 @@
   "plugins": [
     {
       "name": "oac",
-      "source": "./claude-plugin",
+      "source": "./plugins/claude-code",
       "description": "OpenAgents Control - Intelligent code review with security analysis, TDD test generation, automated documentation, and smart task breakdown. Context-aware agents understand your codebase and enforce your team's standards.",
       "version": "1.0.0",
       "author": {

+ 0 - 1
claude-plugin/context

@@ -1 +0,0 @@
-../.opencode/context

+ 0 - 15
claude-plugin/skills/hello/SKILL.md

@@ -1,15 +0,0 @@
-# Hello
-
-A simple test skill to verify OpenAgents Control plugin is working.
-
-```claude
-You are a helpful assistant from the OpenAgents Control plugin.
-
-When invoked, you should:
-1. Confirm that the OpenAgents Control plugin is successfully installed and working
-2. Briefly explain what OpenAgents Control provides (multi-agent orchestration, automation, code review, testing)
-3. List a few example commands users can try (once more skills are added)
-4. Be friendly and encouraging
-
-Keep your response concise (2-3 sentences).
-```

+ 0 - 1
hello.txt

@@ -1 +0,0 @@
-Hello!

+ 65 - 0
plugins/README.md

@@ -0,0 +1,65 @@
+# OpenAgents Control - IDE Plugins
+
+This directory contains IDE-specific plugin implementations for OpenAgents Control.
+
+## Structure
+
+```
+plugins/
+└── claude-code/          # Claude Code plugin
+    ├── .claude-plugin/   # Plugin manifest
+    ├── skills/           # Claude-specific skills
+    ├── agents/           # Claude-specific agents
+    ├── hooks/            # Event-driven automation
+    ├── commands/         # Custom slash commands
+    ├── context/          # Symlink to .opencode/context/
+    └── README.md         # Plugin documentation
+```
+
+## Available Plugins
+
+### Claude Code (`claude-code/`)
+
+**Plugin Name**: `oac`
+
+**Installation**:
+```bash
+# From GitHub marketplace
+/plugin marketplace add darrenhinde/OpenAgentsControl
+/plugin install oac
+
+# Local testing
+claude --plugin-dir ./plugins/claude-code
+```
+
+**Features**:
+- Intelligent code review with security analysis
+- TDD test generation
+- Automated documentation
+- Smart task breakdown
+- Context-aware agents
+
+**Documentation**: See `claude-code/README.md`
+
+## Future Plugins
+
+- **Cursor** - Planned
+- **Windsurf** - Planned
+- **VS Code** - Planned
+
+## Development
+
+Each plugin is self-contained and can be developed/tested independently.
+
+### Adding a New Plugin
+
+1. Create plugin directory: `plugins/your-ide/`
+2. Add plugin manifest (IDE-specific format)
+3. Symlink to shared context: `ln -s ../../.opencode/context context`
+4. Add skills/agents/commands
+5. Update `.claude-plugin/marketplace.json` if applicable
+6. Document in plugin's README.md
+
+---
+
+**Last Updated**: 2026-02-16

+ 0 - 0
claude-plugin/.claude-plugin/plugin.json → plugins/claude-code/.claude-plugin/plugin.json


+ 2 - 2
claude-plugin/INSTALL.md → plugins/claude-code/INSTALL.md

@@ -24,7 +24,7 @@ Quick guide to install and test the OAC (OpenAgents Control) plugin for Claude C
 cd /path/to/OpenAgentsControl
 
 # Start Claude with the plugin
-claude --plugin-dir ./claude-plugin
+claude --plugin-dir ./plugins/claude-code
 
 # In Claude Code, test the plugin
 /oac:hello
@@ -62,7 +62,7 @@ After installation, verify everything works:
 ### Skill not working
 - Check the skill file exists: `claude-plugin/skills/hello/SKILL.md`
 - Restart Claude Code
-- Try: `claude --plugin-dir ./claude-plugin --verbose`
+- Try: `claude --plugin-dir ./plugins/claude-code --verbose`
 
 ### Context not loading
 - Verify symlink: `cd claude-plugin && ls -la context`

+ 3 - 3
claude-plugin/QUICK-START.md → plugins/claude-code/QUICK-START.md

@@ -37,7 +37,7 @@ OpenAgentsControl/
 cd /path/to/OpenAgentsControl
 
 # 2. Start Claude with the plugin
-claude --plugin-dir ./claude-plugin
+claude --plugin-dir ./plugins/claude-code
 
 # 3. In Claude Code, test the plugin
 /oac:hello
@@ -117,7 +117,7 @@ git push origin main
 
 3. **Test it**:
    ```bash
-   claude --plugin-dir ./claude-plugin
+   claude --plugin-dir ./plugins/claude-code
    /oac:my-skill
    ```
 
@@ -177,4 +177,4 @@ git push origin main
 
 **Ready to test!** 🎉
 
-Run: `claude --plugin-dir ./claude-plugin` and then `/oac:hello`
+Run: `claude --plugin-dir ./plugins/claude-code` and then `/oac:hello`

+ 2 - 2
claude-plugin/README.md → plugins/claude-code/README.md

@@ -32,7 +32,7 @@ git clone https://github.com/darrenhinde/OpenAgentsControl.git
 cd OpenAgentsControl
 
 # Load plugin locally
-claude --plugin-dir ./claude-plugin
+claude --plugin-dir ./plugins/claude-code
 ```
 
 ## 🚀 Quick Start
@@ -96,7 +96,7 @@ claude-plugin/
 
 3. Test locally:
    ```bash
-   claude --plugin-dir ./claude-plugin
+   claude --plugin-dir ./plugins/claude-code
    /oac:my-skill
    ```
 

+ 1 - 0
plugins/claude-code/context

@@ -0,0 +1 @@
+../../.opencode/context