Loading...
Loading...
Compare original and translation side by side
| Type | Claude Code | OpenCode | Shared Format |
|---|---|---|---|
| Commands | ✅ YAML frontmatter | ✅ Table format | YAML frontmatter |
| Agents | ✅ YAML frontmatter | ✅ Table format | YAML frontmatter |
| Skills | ✅ Same format | ✅ Same format | SKILL.md |
| Hooks | ✅ hooks.json | ✅ Plugin events | Platform-specific |
| Custom Tools | ❌ (use MCP) | ✅ tool() helper | OpenCode only |
| MCP Servers | ✅ .mcp.json | ✅ Same format | Same format |
| 类型 | Claude Code | OpenCode | 共享格式 |
|---|---|---|---|
| 命令 | ✅ YAML frontmatter | ✅ 表格格式 | YAML frontmatter |
| Agent | ✅ YAML frontmatter | ✅ 表格格式 | YAML frontmatter |
| Skill | ✅ 相同格式 | ✅ 相同格式 | SKILL.md |
| 钩子 | ✅ hooks.json | ✅ 插件事件 | 平台特定 |
| 自定义工具 | ❌(使用MCP) | ✅ tool() 辅助函数 | 仅OpenCode |
| MCP服务器 | ✅ .mcp.json | ✅ 相同格式 | 相同格式 |
content/content/
├── commands/my-command.md → dist/.claude-plugin/commands/
│ → dist/.opencode/command/ai-eng/
└── agents/my-agent.md → dist/.claude-plugin/agents/
→ dist/.opencode/agent/ai-eng/content/content/
├── commands/my-command.md → dist/.claude-plugin/commands/
│ → dist/.opencode/command/ai-eng/
└── agents/my-agent.md → dist/.claude-plugin/agents/
→ dist/.opencode/agent/ai-eng/.claude/commands/.claude-plugin/.opencode/command/.opencode/agent/.claude/commands/.claude-plugin/.opencode/command/.opencode/agent/| Location | Claude Code | OpenCode |
|---|---|---|
| Project | | |
| Global | | |
| 位置 | Claude Code | OpenCode |
|---|---|---|
| 项目本地 | | |
| 全局 | | |
---
name: my-command
description: What this command does
agent: build # Optional: which agent handles this
subtask: true # Optional: run as subtask
temperature: 0.3 # Optional: temperature
tools: # Optional: tool restrictions
read: true
write: true
---| description | agent |
|---|---|
| Description here | build |---
name: my-command
description: What this command does
agent: build # 可选:处理该命令的Agent
subtask: true # 可选:作为子任务运行
temperature: 0.3 # 可选:温度参数
tools: # 可选:工具限制
read: true
write: true
---| description | agent |
|---|---|
| Description here | build |---
name: my-agent
description: Use this agent when... <example>...</example>
mode: subagent
color: cyan
temperature: 0.3
tools:
read: true
write: true
---| description | mode |
|---|---|
| Description here | subagent |---
name: my-agent
description: Use this agent when... <example>...</example>
mode: subagent
color: cyan
temperature: 0.3
tools:
read: true
write: true
---| description | mode |
|---|---|
| Description here | subagent |skill-name/
├── SKILL.md (required)
│ ├── YAML frontmatter (name, description)
│ └── Markdown body (1,000-3,000 words)
└── Bundled Resources (optional)
├── references/ # Detailed documentation
├── examples/ # Working code
└── scripts/ # Utility scriptsskill-name/
├── SKILL.md(必填)
│ ├── YAML frontmatter(名称、描述)
│ └── Markdown正文(1000-3000字)
└── 捆绑资源(可选)
├── references/ # 详细文档
├── examples/ # 可运行代码
└── scripts/ # 实用脚本tool()import { tool } from "@opencode-ai/plugin"
export default tool({
description: "Tool description",
args: {
param: tool.schema.string().describe("Parameter description"),
},
async execute(args, context) {
// Tool implementation
return result
},
})tool()import { tool } from "@opencode-ai/plugin"
export default tool({
description: "Tool description",
args: {
param: tool.schema.string().describe("Parameter description"),
},
async execute(args, context) {
// Tool implementation
return result
},
})ai-eng-system/
├── content/
│ ├── commands/ # Add new commands here
│ └── agents/ # Add new agents here
├── skills/
│ └── plugin-dev/ # This skill
└── build.ts # Transforms to both platformsai-eng-system/
├── content/
│ ├── commands/ # 在此添加新命令
│ └── agents/ # 在此添加新Agent
├── skills/
│ └── plugin-dev/ # 本Skill
└── build.ts # 转换为两个平台的格式.claude/commands/.claude-plugin/.opencode/command/.opencode/agent/~/.claude/commands/~/.claude-plugin/~/.config/opencode/command/~/.config/opencode/agent/.claude/commands/.claude-plugin/.opencode/command/.opencode/agent/~/.claude/commands/~/.claude-plugin/~/.config/opencode/command/~/.config/opencode/agent/hooks/hooks.json.mcp.json.claude-plugin/plugin.json{
"name": "plugin-name",
"version": "1.0.0",
"description": "Brief description",
"commands": ["./commands/*"],
"mcpServers": "./.mcp.json"
}hooks/hooks.json.mcp.json.claude-plugin/plugin.json{
"name": "plugin-name",
"version": "1.0.0",
"description": "Brief description",
"commands": ["./commands/*"],
"mcpServers": "./.mcp.json"
}.opencode/plugin/plugin.tsimport { Plugin } from "@opencode-ai/plugin"
export default (async ({ client, project, directory, worktree, $ }) => {
return {
// Plugin hooks here
}
}) satisfies Plugin.opencode/plugin/plugin.tsimport { Plugin } from "@opencode-ai/plugin"
export default (async ({ client, project, directory, worktree, $ }) => {
return {
// Plugin hooks here
}
}) satisfies Plugin/ai-eng/create-agent/ai-eng/create-command/ai-eng/create-skill/ai-eng/create-tool/ai-eng/create-agent/ai-eng/create-command/ai-eng/create-skill/ai-eng/create-toolcd ai-eng-system
bun run build # Build all platforms
bun run build --watch # Watch mode
bun run build --validate # Validate contentcd ai-eng-system
bun run build # 构建所有平台
bun run build --watch # 监听模式
bun run build --validate # 验证内容claude plugin add https://github.com/v1truv1us/ai-eng-systemundefinedclaude plugin add https://github.com/v1truv1us/ai-eng-systemundefinedundefinedundefinedcontent/content/references/claude-code-plugins.mdreferences/opencode-plugins.mdreferences/command-format.mdreferences/agent-format.mdreferences/skill-format.mdreferences/opencode-tools.mdreferences/claude-code-plugins.mdreferences/opencode-plugins.mdreferences/command-format.mdreferences/agent-format.mdreferences/skill-format.mdreferences/opencode-tools.mdcontent/commands/plan.mdcontent/agents/architect-advisor.mdskills/prompting/incentive-prompting/SKILL.mdcontent/commands/plan.mdcontent/agents/architect-advisor.mdskills/prompting/incentive-prompting/SKILL.mdbun run build --validatebun run build --validate/ai-eng/plan/ai-eng/review/ai-eng/work/ai-eng/plan/ai-eng/review/ai-eng/workai-eng/architect-advisorai-eng/frontend-reviewerai-eng/seo-specialistai-eng/architect-advisorai-eng/frontend-reviewerai-eng/seo-specialist/ai-eng/create-plugin/ai-eng/create-agent/ai-eng/create-command/ai-eng/create-skill/ai-eng/create-tool/ai-eng/create-plugin/ai-eng/create-agent/ai-eng/create-command/ai-eng/create-skill/ai-eng/create-tool