Skip to content

03: OpenCode plugin integration #50

Description

@MatthewYe

Parent

#47

What to build

完成 packages/opencode/ 的 OpenCode 插件功能:

  1. packages/core/upstream/ 复制 upstream skills 到 packages/opencode/skills/(构建时)
  2. 读取 agents/ 目录下的 .md 文件,注入到 config.agent
  3. 读取 commands/ 目录下的 .md 文件,注入到 config.command
  4. 注入 Karpathy 原则到 agent prompts
  5. 设置 config.skills.paths 指向 skills 目录
  6. 本地 opencode skill(如 skill-creator、git-guardrails)从 packages/core/skills/ 复制(构建时)
  7. 用户安装后 /autopilot 命令可用,agent 列表包含 implementer/reviewer/argus

Acceptance criteria

  • bun run buildpackages/opencode/ 包含完整的 plugin 结构
  • OpenCode 加载该插件后 /autopilot 命令出现
  • implementerreviewerargus agent 出现
  • 技能列表包含 tdd、diagnose、zoom-out 等
  • Karpathy 原则注入到 agent prompts
  • bun test 通过(packages/opencode 的测试)

Blocked by

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    resolvedAutopilot has resolved this issue

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions