@ever-works/claude-code-plugin

中文文档
1.0.18发布于 2026/11/03AGPL-3.0TypeScriptESM + CJS零依赖构建来源已验证近 30 天下载 3189

Claude Code Generator Plugin - Full pipeline plugin that delegates generation to Claude Code

原始使用文档
文档目录11 节
  1. Plugin metadata
  2. Claude Code Generator Plugin
  3. How it works
  4. Settings
  5. Authentication
  6. Usage
  7. Settings
  8. Troubleshooting
  9. Local development
  10. Documentation
  11. License

@ever-works/claude-code-plugin

Claude Code Generator Plugin - Full pipeline plugin that delegates generation to Claude Code.

Plugin metadata

FieldValue
IDclaude-code
Categorypipeline
Capabilitiespipeline, form-schema-provider
AuthorEver Works Team
LicenseAGPL-3.0
Built-inyes
Auto-enableno

Claude Code Generator Plugin

Full pipeline plugin that delegates the entire work generation to Claude Code. This plugin runs a single Claude Code session that autonomously handles web search, content creation, and file generation.

How it works

The plugin runs 6 sequential steps:

  1. Setup Claude Code - Downloads and caches the Claude Code CLI binary
  2. Prepare Context - Creates a temporary workspace and seeds it with existing items and metadata
  3. Generate Items - Executes Claude Code CLI to research and generate work items as JSON files
  4. Collect Results - Reads the generated JSON files back to build the pipeline result
  5. Capture Screenshots - Takes screenshots for items that need images
  6. Cleanup - Removes the temporary workspace

Settings

SettingDescription
oauthTokenClaude Code OAuth token
apiKeyAnthropic API key

Authentication

At least one of oauthToken or apiKey must be provided. OAuth token takes precedence.

OAuth Token (recommended):

claude setup-token

API Key: Get one from console.anthropic.com

Usage

Enable the plugin for a work and trigger generation with providers.pipeline: 'claude-code'.

Settings

The settingsSchema exposes:

  • oauthToken (user, secret) — Claude Code OAuth token from claude setup-token. Read from env PLUGIN_CLAUDE_CODE_OAUTH_TOKEN.
  • apiKey (user, secret) — Anthropic API key from console.anthropic.com.
  • model (global) — Model alias (sonnet, opus, haiku) or explicit version (e.g. claude-sonnet-4-5-20250929). Defaults to sonnet.
  • version (hidden) — Claude Code CLI version pinned by the plugin; the binary is downloaded and cached on first use.
  • maxTurns (hidden) — maximum agentic turns per session (default 50, range 1–100).
  • maxBudgetUsd (hidden) — optional USD budget per generation.

The plugin's CLI binary is managed automatically and stored under the platform's temp directory; users do not configure a binary path. Auth mode is implicit: if oauthToken is set the plugin uses OAuth, otherwise it falls back to the Anthropic API key.

Troubleshooting

SymptomLikely causeFix
Generation never starts / stays at 0%claude-code not selected as the active pipeline plugin for this workOpen the work → Plugins → pipeline capability and set claude-code as the active pipeline; or set it as the global pipeline default in Settings → Plugins
Step fails with No AI / search / screenshot provider configuredPipeline depends on capability plugins that are not enabled or have no credentialsEnable and configure the matching capability plugin (AI provider, search, screenshot, content-extractor) for the work or globally
Step output looks wrong / genericForm-field tuning not set; pipeline using defaults that don't match the work's domainOpen the Generator Form for the work, set domain-specific fields (categories, target keywords, source URLs), and re-run the affected step
Subprocess error: command not foundClaude Code Generator CLI not installed on the host running the APIInstall the Claude Code Generator CLI on the API host and ensure it is on PATH; verify by running which <cli> from the same shell that launches pnpm dev:api
Authentication / device-auth flow stallsDevice-auth code never confirmed in the upstream IDE / browserRe-run the device-auth flow from Settings → Plugins → claude-code → Connect, then complete the prompt in the upstream service before the code expires
Pipeline cannot resume after host restartCheckpoint not persisted (only the standard pipeline persists checkpoints today)Cancel the stuck run and re-trigger generation; for production reliability prefer standard-pipeline

Local development

This plugin ships built-in with the Ever Works platform. To work on it locally from the monorepo root:

pnpm install
pnpm --filter @ever-works/claude-code-plugin build
pnpm --filter @ever-works/claude-code-plugin test

Documentation

License

AGPL-3.0

版本与发布记录

@ever-works/claude-code-plugin 共发布 15 个版本,首次发布于 2026/06/06;过去 12 个月发布了 15 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.0.18latest2026/11/0310 天前
1.0.172026/10/2817 天前
1.0.162026/10/2717 天前
1.0.152026/10/2717 天前
1.0.142026/10/2420 天前
1.0.132026/10/2025 天前

关于 @ever-works/claude-code-plugin 的常见问题

@ever-works/claude-code-plugin 是什么?

Claude Code Generator Plugin - Full pipeline plugin that delegates generation to Claude Code

如何安装 @ever-works/claude-code-plugin?

在项目目录运行 npm install @ever-works/claude-code-plugin,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@ever-works/plugin(^1.2.16)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@ever-works/claude-code-plugin 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@ever-works/claude-code-plugin 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@ever-works/claude-code-plugin 可以商用吗?

@ever-works/claude-code-plugin 使用 AGPL-3.0 许可。最严格的 Copyleft:除分发外,通过网络向用户提供基于它的服务也需要开源对应源码。闭源 SaaS 使用前务必评估。以上为概括,不构成法律意见,请以许可原文为准。

@ever-works/claude-code-plugin 的下载量有多少?

根据 npm 官方下载统计,@ever-works/claude-code-plugin 在 2026/10/14 – 2026/11/12 这 30 天内被下载 3,189 次,日均约 106 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@ever-works/claude-code-plugin 还在维护吗?

最新版本 1.0.18 发布于 2026/11/03(10 天前);至今共发布 15 个版本,其中过去 12 个月发布了 15 个;首次发布于 2026/06/06。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。