mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-03 15:43:31 +08:00
feat: complete OpenCode plugin support with hooks, tools, and commands
Major OpenCode integration overhaul: - llms.txt: Comprehensive OpenCode documentation for LLMs (642 lines) - .opencode/plugins/ecc-hooks.ts: All Claude Code hooks translated to OpenCode's plugin system - .opencode/tools/*.ts: 3 custom tools (run-tests, check-coverage, security-audit) - .opencode/commands/*.md: All 24 commands in OpenCode format - .opencode/package.json: npm package structure for opencode-ecc - .opencode/index.ts: Main plugin entry point - Delete incorrect LIMITATIONS.md (hooks ARE supported via plugins) - Rewrite MIGRATION.md with correct hook event mapping - Update README.md OpenCode section to show full feature parity OpenCode has 20+ events vs Claude Code's 3 phases: - PreToolUse → tool.execute.before - PostToolUse → tool.execute.after - Stop → session.idle - SessionStart → session.created - SessionEnd → session.deleted - Plus: file.edited, file.watcher.updated, permission.asked, todo.updated - 12 agents: Full parity - 24 commands: Full parity (+1 from original 23) - 16 skills: Full parity - Hooks: OpenCode has MORE (20+ events vs 3 phases) - Custom Tools: 3 native OpenCode tools The OpenCode configuration can now be: 1. Used directly: cd everything-claude-code && opencode 2. Installed via npm: npm install opencode-ecc
This commit is contained in:
93
.opencode/commands/instinct-export.md
Normal file
93
.opencode/commands/instinct-export.md
Normal file
@@ -0,0 +1,93 @@
|
||||
---
|
||||
description: Export instincts for sharing
|
||||
agent: build
|
||||
---
|
||||
|
||||
# Instinct Export Command
|
||||
|
||||
Export instincts for sharing with others: $ARGUMENTS
|
||||
|
||||
## Your Task
|
||||
|
||||
Export instincts from the continuous-learning-v2 system.
|
||||
|
||||
## Export Options
|
||||
|
||||
### Export All
|
||||
```
|
||||
/instinct-export
|
||||
```
|
||||
|
||||
### Export High Confidence Only
|
||||
```
|
||||
/instinct-export --min-confidence 0.8
|
||||
```
|
||||
|
||||
### Export by Category
|
||||
```
|
||||
/instinct-export --category coding
|
||||
```
|
||||
|
||||
### Export to Specific Path
|
||||
```
|
||||
/instinct-export --output ./my-instincts.json
|
||||
```
|
||||
|
||||
## Export Format
|
||||
|
||||
```json
|
||||
{
|
||||
"instincts": [
|
||||
{
|
||||
"id": "instinct-123",
|
||||
"trigger": "[situation description]",
|
||||
"action": "[recommended action]",
|
||||
"confidence": 0.85,
|
||||
"category": "coding",
|
||||
"applications": 10,
|
||||
"successes": 9,
|
||||
"source": "session-observation"
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"version": "1.0",
|
||||
"exported": "2025-01-15T10:00:00Z",
|
||||
"author": "username",
|
||||
"total": 25,
|
||||
"filter": "confidence >= 0.8"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Export Report
|
||||
|
||||
```
|
||||
Export Summary
|
||||
==============
|
||||
Output: ./instincts-export.json
|
||||
Total instincts: X
|
||||
Filtered: Y
|
||||
Exported: Z
|
||||
|
||||
Categories:
|
||||
- coding: N
|
||||
- testing: N
|
||||
- security: N
|
||||
- git: N
|
||||
|
||||
Top Instincts (by confidence):
|
||||
1. [trigger] (0.XX)
|
||||
2. [trigger] (0.XX)
|
||||
3. [trigger] (0.XX)
|
||||
```
|
||||
|
||||
## Sharing
|
||||
|
||||
After export:
|
||||
- Share JSON file directly
|
||||
- Upload to team repository
|
||||
- Publish to instinct registry
|
||||
|
||||
---
|
||||
|
||||
**TIP**: Export high-confidence instincts (>0.8) for better quality shares.
|
||||
Reference in New Issue
Block a user