create-agent-adapter

仓库创建 2026年3月2日最近提交 3 小时前SkillHot 收录 3 小时前
▸ 精选理由

便于接入自定义或第三方模型运行时。

▸ 风险提示

可能涉及执行自定义二进制或外部服务,需审计适配器代码

这个 Skill 做什么

生成或修改 Paperclip 代理适配器,连接不同 AI 运行时与界面。

把 Paperclip 的编排层和具体 AI 运行时(比如 Claude Code、Codex CLI、自定义进程或 HTTP endpoint)连起来:生成或改写一个 adapter,包含 server、UI 和 CLI 三个实现面向。当要支持新的 CLI agent、API agent 或自定义代理时就用,能让新运行时像内置一样被调度和监控。它是个独立的 package,约定了文件结构和三类消费者的接口,便于复用和测试。

▸ 展开 SKILL.md 英文原文

Create or modify Paperclip agent adapters across server, UI, and CLI surfaces. Use when adding support for a new CLI agent, API agent, custom process, or adapter package.

开发编程适配器开发运行时集成扩展通用
7.6w
Stars
1.4w
Forks
40
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/paperclipai/paperclip/master/.agents/skills/create-agent-adapter/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/paperclipai/paperclip/master/.agents/skills/create-agent-adapter/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Creating a Paperclip Agent Adapter

An adapter bridges Paperclip's orchestration layer to a specific AI agent runtime (Claude Code, Codex CLI, a custom process, an HTTP endpoint, etc.). Each adapter is a self-contained package that provides implementations for **three consumers**: the server, the UI, and the CLI.

---

## 1. Architecture Overview

```
packages/adapters/<name>/
  src/
    index.ts            # Shared metadata (type, label, models, agentConfigurationDoc)
    server/
      index.ts          # Server exports: execute, sessionCodec, parse helpers
      execute.ts        # Core execution logic (AdapterExecutionContext -> AdapterExecutionResult)
      parse.ts          # Stdout/r
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有