mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-02-08 07:33:08 +08:00
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
2.0 KiB
2.0 KiB
description, agent
| description | agent |
|---|---|
| Generate skills from git history analysis | build |
Skill Create Command
Analyze git history to generate Claude Code skills: $ARGUMENTS
Your Task
- Analyze commits - Pattern recognition from history
- Extract patterns - Common practices and conventions
- Generate SKILL.md - Structured skill documentation
- Create instincts - For continuous-learning-v2
Analysis Process
Step 1: Gather Commit Data
# Recent commits
git log --oneline -100
# Commits by file type
git log --name-only --pretty=format: | sort | uniq -c | sort -rn
# Most changed files
git log --pretty=format: --name-only | sort | uniq -c | sort -rn | head -20
Step 2: Identify Patterns
Commit Message Patterns:
- Common prefixes (feat, fix, refactor)
- Naming conventions
- Co-author patterns
Code Patterns:
- File structure conventions
- Import organization
- Error handling approaches
Review Patterns:
- Common review feedback
- Recurring fix types
- Quality gates
Step 3: Generate SKILL.md
# [Skill Name]
## Overview
[What this skill teaches]
## Patterns
### Pattern 1: [Name]
- When to use
- Implementation
- Example
### Pattern 2: [Name]
- When to use
- Implementation
- Example
## Best Practices
1. [Practice 1]
2. [Practice 2]
3. [Practice 3]
## Common Mistakes
1. [Mistake 1] - How to avoid
2. [Mistake 2] - How to avoid
## Examples
### Good Example
```[language]
// Code example
Anti-pattern
// What not to do
### Step 4: Generate Instincts
For continuous-learning-v2:
```json
{
"instincts": [
{
"trigger": "[situation]",
"action": "[response]",
"confidence": 0.8,
"source": "git-history-analysis"
}
]
}
Output
Creates:
skills/[name]/SKILL.md- Skill documentationskills/[name]/instincts.json- Instinct collection
TIP: Run /skill-create --instincts to also generate instincts for continuous learning.