Token导航 LogoToken导航

Agent Skill · 研究检索

chain-builder(连锁建设者)

chain-builder 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

chain-builder 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 9,124。

总安装 14,895周安装 607GitHub Stars 3下载 4,731核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:chain-builder(连锁建设者)
来源仓库:https://github.com/jmsktm/claude-settings
仓库路径:skills/chain-builder
安装命令:
npx skills add https://github.com/jmsktm/claude-settings --skill 'Chain Builder'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/jmsktm/claude-settings --skill 'Chain Builder'

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

chain-builder 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。适用于需要根据关键词或任务场景进行信息整理的场景,如区块链或流程链设计。通过 npx skills add 命令从 GitHub 仓库安装,需指定技能名称和仓库地址。

安装前建议确认权限范围和维护状态,避免触发不必要的联网或文件操作。可结合原始 README 进一步核验具体用法和功能边界。

来源仓库内路径:skills/chain-builder

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/jmsktm/claude-settings --skill 'Chain Builder';命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

chain-builder 怎么安装?

在终端执行 npx skills add https://github.com/jmsktm/claude-settings --skill 'Chain Builder'。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

chain-builder 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

chain-builder 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

chain-builder 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

chain-builder 用的人多吗?

公开数据是累计安装 14,895 次,近一周安装 607 次,下载 4,731 次,GitHub 3 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

chain-builder 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
chain-builder

连锁建设者 · 本页

14,8953需要联网未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Chain Builder

The Chain Builder skill helps you design and execute multi-step prompt chains where the output of one prompt becomes the input to the next. This enables complex, multi-stage processing that would be difficult to accomplish in a single prompt, while maintaining clarity, modularity, and debuggability.

This skill guides you through chain design, identifying optimal breakpoints, managing data flow between steps, handling errors, and validating outputs at each stage. It's particularly valuable for tasks that involve multiple distinct phases like research → analysis → synthesis → formatting, or ideation → planning → implementation → review.

Use this skill when you have complex tasks that benefit from sequential processing, when you need intermediate validation between steps, or when different parts of a task require different specialized prompts or tools.

Core Workflows

Workflow 1: Design Prompt Chain from Goal

  1. Clarify the end goal:

- What's the final output? - What quality standards apply? - What constraints exist?

  1. Decompose into logical stages:

- Identify distinct phases - Determine stage boundaries - Order by dependencies

  1. Design individual prompts:

- Purpose of each stage - Input requirements - Output specifications - Success criteria

  1. Define data flow:

- What passes between stages? - What format for intermediate outputs? - What state is maintained?

  1. Add validation:

- Checkpoints after each stage - Quality gates - Error handling

  1. Document the chain:

- Chain purpose - Stage descriptions - Data flow diagram - Usage examples

  1. Test end-to-end

Workflow 2: Execute Existing Chain

  1. Load chain definition:

- Read chain specification - Understand stages - Prepare inputs

  1. Initialize chain state:

- Set initial inputs - Prepare storage for outputs - Initialize tracking

  1. Execute each stage sequentially:

- Run stage prompt - Validate output - If validation fails: Handle error - If validation passes: Continue - Store intermediate result - Pass output to next stage

  1. Monitor progress:

- Track current stage - Log outputs - Report status

  1. Validate final output
  2. Report results and any issues

Workflow 3: Debug Chain Failure

  1. Identify failure point:

- Which stage failed? - What was the input to that stage? - What error occurred?

  1. Analyze root cause:

- Was input malformed? - Was prompt unclear? - Was validation too strict? - Was context insufficient?

  1. Test stage in isolation:

- Run stage with known good input - Verify prompt works correctly - Check output format

  1. Fix the issue:

- Update prompt if unclear - Adjust validation if too strict - Add error handling if needed - Improve data passing if malformed

  1. Retest from failure point
  2. Document the fix

Workflow 4: Optimize Chain Performance

  1. Analyze current chain:

- Execution time per stage - Token usage per stage - Success rate per stage - Bottlenecks

  1. Identify optimization opportunities:

- Stages that could be parallelized - Redundant processing - Overly complex prompts - Unnecessary validation

  1. Refactor for efficiency:

- Combine related stages - Parallelize independent stages - Simplify prompts - Optimize data passing

  1. Maintain quality:

- Don't sacrifice accuracy for speed - Keep validation comprehensive - Preserve error handling

  1. Test optimized chain
  2. Measure improvements

Quick Reference

ActionCommand/Trigger
Design new chain"Design a prompt chain for [goal]"
Execute chain"Run this chain: [chain spec]"
Debug chain failure"Debug this chain: [error details]"
Optimize chain"Optimize this chain: [chain spec]"
Validate chain design"Review this chain design: [spec]"
Add stage to chain"Add stage for [purpose] to this chain"
Parallelize stages"Which stages can run in parallel?"

Best Practices

  • Keep Stages Focused: Each stage should have one clear purpose

- Don't mix research and analysis in one prompt - Don't combine formatting with content generation - Each stage = one transformation

  • Make Outputs Explicit: Define exactly what each stage produces

- Specify format (JSON, markdown, etc.) - Define required fields - Set quality criteria - Provide examples

  • Validate Between Stages: Catch errors early

- Check output format - Verify required fields exist - Validate against criteria - Fail fast if something's wrong

  • Handle Errors Gracefully: Plan for failures

- Define retry logic - Provide fallback options - Log failures for debugging - Don't cascade bad data

  • Maintain State Carefully: Track what you need, discard what you don't

- Pass only necessary data forward - Keep intermediate outputs for debugging - Clear state between independent chains - Version chain state if long-running

  • Optimize Data Passing: Minimize token usage

- Extract only needed information - Summarize when possible - Use references instead of duplication - Compress verbose outputs

  • Document Thoroughly: Make chains maintainable

- Purpose of each stage - Expected inputs/outputs - Validation rules - Error handling - Example executions

  • Test Incrementally: Build confidence stage by stage

- Test each stage in isolation - Test pairs of stages - Test full chain - Test with edge cases

Chain Design Patterns

Sequential Processing

Stage 1: Collect → Stage 2: Process → Stage 3: Format → Output

Use when: Each stage depends on previous stage's complete output Example: Web scraping → Data cleaning → Analysis → Report generation

Branching Chain

Stage 1: Analyze →
  If condition A: Stage 2a → Merge
  If condition B: Stage 2b → Merge
→ Stage 3: Synthesize

Use when: Different processing paths based on criteria Example: File type detection → [JSON parser | CSV parser | XML parser] → Normalize

Parallel Aggregation

Input →
  [Stage 1a, Stage 1b, Stage 1c] (parallel) →
  Stage 2: Combine →
  Output

Use when: Independent analyses that merge later Example: [Syntax check, Type check, Lint] → Aggregate results → Report

Iterative Refinement

Stage 1: Generate →
Stage 2: Critique →
  If quality met: Output
  If not: Refine → back to Stage 1 (max N iterations)

Use when: Output quality improves through iteration Example: Write → Review → [Good? → Done | Revise → Write]

Fan-Out/Fan-In

Stage 1: Split →
  [Process chunk 1, Process chunk 2, ..., Process chunk N] →
  Stage 2: Merge →
  Output

Use when: Large input needs parallel processing Example: Split document → [Analyze sections] → Synthesize findings

Pipeline with Validation

Stage 1 → Validate → Stage 2 → Validate → Stage 3 → Validate → Output

Use when: Quality gates needed between stages Example: Generate → Check syntax → Transform → Check schema → Deploy → Verify

Chain Specification Format

chain:
  name: "Chain Name"
  description: "What this chain accomplishes"
  version: "1.0.0"

  stages:
    - id: "stage_1"
      name: "Stage Name"
      prompt: "Prompt template with {{placeholders}}"
      inputs:
        - name: "input_name"
          source: "user_input | previous_stage | context"
          required: true
      outputs:
        - name: "output_name"
          format: "json | markdown | text"
          schema: "Optional JSON schema"
      validation:
        - type: "format | content | schema"
          rule: "Validation rule"
          on_fail: "retry | skip | abort"
      on_error:
        action: "retry | fallback | abort"
        max_retries: 3

    - id: "stage_2"
      name: "Next Stage"
      prompt: "Use {{stage_1.output_name}} to..."
      # ... rest of stage definition

  execution:
    mode: "sequential | parallel | conditional"
    timeout_per_stage: 300
    max_total_time: 1800

Example Chains

Research → Analysis → Report Chain

**Chain**: Research Report Generator

**Stage 1**: Web Research
- Prompt: "Research [topic] using web search. Find 5-10 authoritative sources."
- Output: List of sources with summaries
- Validation: At least 5 sources, each with URL and summary

**Stage 2**: Content Analysis
- Input: Sources from Stage 1
- Prompt: "Analyze these sources and extract key themes, findings, and insights."
- Output: Structured analysis (JSON)
- Validation: JSON schema with required fields

**Stage 3**: Report Writing
- Input: Analysis from Stage 2
- Prompt: "Write executive report based on analysis. Include summary, findings, recommendations."
- Output: Markdown report
- Validation: Contains required sections

**Stage 4**: Formatting
- Input: Report from Stage 3
- Prompt: "Format report for [platform] with proper structure and styling."
- Output: Platform-ready document

Code Generation → Review → Test Chain

**Chain**: Tested Code Generator

**Stage 1**: Generate Code
- Prompt: "Generate [component] with [requirements]"
- Output: Code file(s)
- Validation: Valid syntax, includes all required functions

**Stage 2**: Code Review
- Input: Code from Stage 1
- Prompt: "Review code for bugs, performance issues, best practices"
- Output: Review findings (JSON)
- Validation: Categorized by severity

**Stage 3**: Apply Fixes
- Input: Code and Review findings
- Prompt: "Fix high and medium severity issues"
- Output: Revised code
- Validation: Addresses all high-severity issues

**Stage 4**: Generate Tests
- Input: Final code
- Prompt: "Generate unit tests with >80% coverage"
- Output: Test file(s)
- Validation: Tests run and pass

**Stage 5**: Verify
- Input: Code and tests
- Action: Run tests
- Output: Test results
- Validation: All tests pass

Content Creation Chain

**Chain**: Blog Post Creator

**Stage 1**: Research & Ideation
- Prompt: "Research [topic] and generate 5 article angles"
- Output: List of angles with brief descriptions

**Stage 2**: Select & Outline
- Input: Angles from Stage 1
- Prompt: "Select best angle and create detailed outline"
- Output: Article outline

**Stage 3**: Draft Content
- Input: Outline from Stage 2
- Prompt: "Write full article following outline"
- Output: Article draft (markdown)

**Stage 4**: Edit & Polish
- Input: Draft from Stage 3
- Prompt: "Edit for clarity, flow, grammar, and engagement"
- Output: Polished article

**Stage 5**: Generate Metadata
- Input: Article from Stage 4
- Prompt: "Generate title variations, meta description, tags"
- Output: SEO metadata

**Stage 6**: Format for Platform
- Input: Article and metadata
- Prompt: "Format for [CMS] with proper structure"
- Output: Platform-ready post

Debugging Chains

When a chain fails:

  1. Isolate the stage: Run failed stage independently
  2. Check inputs: Verify data passed to stage is valid
  3. Inspect output: See what stage actually produced
  4. Review prompt: Is it clear and achievable?
  5. Test validation: Is validation rule appropriate?
  6. Check context: Does stage have needed information?
  7. Review logs: What happened during execution?

Monitoring Chain Health

Track these metrics:

  • Success rate: % of chains completing successfully
  • Stage failure rate: Which stages fail most often?
  • Execution time: How long does chain take?
  • Token usage: Cost per chain execution
  • Retry rate: How often do stages need retries?
  • Quality scores: How good are final outputs?

平台分布

Codex

37.19%
按下载量换算1,759

Claude

29.24%
按下载量换算1,383

Cursor

18.22%
按下载量换算862

Gemini CLI

9.36%
按下载量换算443

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills