Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计提醒

ai-agent-builderAIAgent 构建者

Agent Skill

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

总安装

17,654

周安装

743

GitHub Stars

89

下载量

6,182
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/claude-office-skills/skills --skill ai-agent-builder

简介

ai-agent-builder 设计具备工具和记忆功能的 AI 代理架构。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中构建多步骤推理系统。
  • 通过 GitHub 仓库安装,参考 n8n 工作流模板实现集成。
  • 使用前需定义代理目标和可用工具集范围。
  • 注意不同平台(Slack/Telegram)需单独配置连接器。

SKILL.md

AI Agent Builder

Design and build AI agents with tools, memory, and multi-step reasoning capabilities. Covers ChatGPT, Claude, Gemini integration patterns based on n8n's 5,000+ AI workflow templates.

Overview

This skill covers:

  • AI agent architecture design
  • Tool/function calling patterns
  • Memory and context management
  • Multi-step reasoning workflows
  • Platform integrations (Slack, Telegram, Web)

AI Agent Architecture

Core Components

┌─────────────────────────────────────────────────────────────────┐
│                      AI AGENT ARCHITECTURE                       │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  ┌─────────────┐     ┌─────────────┐     ┌─────────────┐       │
│  │   Input     │────▶│   Agent     │────▶│   Output    │       │
│  │  (Query)    │     │   (LLM)     │     │  (Response) │       │
│  └─────────────┘     └──────┬──────┘     └─────────────┘       │
│                             │                                   │
│         ┌───────────────────┼───────────────────┐              │
│         │                   │                   │              │
│         ▼                   ▼                   ▼              │
│  ┌─────────────┐     ┌─────────────┐     ┌─────────────┐       │
│  │   Tools     │     │   Memory    │     │  Knowledge  │       │
│  │ (Functions) │     │  (Context)  │     │   (RAG)     │       │
│  └─────────────┘     └─────────────┘     └─────────────┘       │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Agent Types

agent_types:
  reactive_agent:
    description: "Single-turn response, no memory"
    use_case: simple_qa, classification
    complexity: low

  conversational_agent:
    description: "Multi-turn with conversation memory"
    use_case: chatbots, support
    complexity: medium

  tool_using_agent:
    description: "Can call external tools/APIs"
    use_case: data_lookup, actions
    complexity: medium

  reasoning_agent:
    description: "Multi-step planning and execution"
    use_case: complex_tasks, research
    complexity: high

  multi_agent:
    description: "Multiple specialized agents collaborating"
    use_case: complex_workflows
    complexity: very_high

Tool Calling Pattern

Tool Definition

tool_definition:
  name: "get_weather"
  description: "Get current weather for a location"
  parameters:
    type: object
    properties:
      location:
        type: string
        description: "City name or coordinates"
      units:
        type: string
        enum: ["celsius", "fahrenheit"]
        default: "celsius"
    required: ["location"]

  implementation:
    type: api_call
    endpoint: "https://api.weather.com/v1/current"
    method: GET
    params:
      q: "{location}"
      units: "{units}"

Common Tool Categories

tool_categories:
  data_retrieval:
    - web_search: search the internet
    - database_query: query SQL/NoSQL
    - api_lookup: call external APIs
    - file_read: read documents

  actions:
    - send_email: send emails
    - create_calendar: schedule events
    - update_crm: modify CRM records
    - post_slack: send Slack messages

  computation:
    - calculator: math operations
    - code_interpreter: run Python
    - data_analysis: analyze datasets

  generation:
    - image_generation: create images
    - document_creation: generate docs
    - chart_creation: create visualizations

n8n Tool Integration

n8n_agent_workflow:
  nodes:
    - trigger:
        type: webhook
        path: "/ai-agent"

    - ai_agent:
        type: "@n8n/n8n-nodes-langchain.agent"
        model: openai_gpt4
        system_prompt: |
          You are a helpful assistant that can:
          1. Search the web for information
          2. Query our customer database
          3. Send emails on behalf of the user

        tools:
          - web_search
          - database_query
          - send_email

    - respond:
        type: respond_to_webhook
        data: "{{ $json.output }}"

Memory Patterns

Memory Types

memory_types:
  buffer_memory:
    description: "Store last N messages"
    implementation: |
      messages = []
      def add_message(role, content):
          messages.append({"role": role, "content": content})
          if len(messages) > MAX_MESSAGES:
              messages.pop(0)
    use_case: simple_chatbots

  summary_memory:
    description: "Summarize conversation periodically"
    implementation: |
      When messages > threshold:
          summary = llm.summarize(messages[:-5])
          messages = [summary_message] + messages[-5:]
    use_case: long_conversations

  vector_memory:
    description: "Store in vector DB for semantic retrieval"
    implementation: |
      # Store
      embedding = embed(message)
      vector_db.insert(embedding, message)

      # Retrieve
      relevant = vector_db.search(query_embedding, k=5)
    use_case: knowledge_retrieval

  entity_memory:
    description: "Track entities mentioned in conversation"
    implementation: |
      entities = {}
      def update_entities(message):
          extracted = llm.extract_entities(message)
          entities.update(extracted)
    use_case: personalized_assistants

Context Window Management

context_management:
  strategies:
    sliding_window:
      keep: last_n_messages
      n: 10

    relevance_based:
      method: embed_and_rank
      keep: top_k_relevant
      k: 5

    hierarchical:
      levels:
        - immediate: last_3_messages
        - recent: summary_of_last_10
        - long_term: key_facts_from_all

  token_budget:
    total: 8000
    system_prompt: 1000
    tools: 1000
    memory: 4000
    current_query: 1000
    response: 1000

Multi-Step Reasoning

ReAct Pattern

Thought: I need to find information about X
Action: web_search("X")
Observation: [search results]
Thought: Based on the results, I should also check Y
Action: database_query("SELECT * FROM Y")
Observation: [database results]
Thought: Now I have enough information to answer
Action: respond("Final answer based on X and Y")

Planning Agent

planning_workflow:
  step_1_plan:
    prompt: |
      Task: {user_request}

      Create a step-by-step plan to complete this task.
      Each step should be specific and actionable.

    output: numbered_steps

  step_2_execute:
    for_each: step
    actions:
      - execute_step
      - validate_result
      - adjust_if_needed

  step_3_synthesize:
    prompt: |
      Steps completed: {executed_steps}
      Results: {results}

      Synthesize a final response for the user.

Platform Integrations

Slack Bot Agent

slack_agent:
  trigger: slack_message

  workflow:
    1. receive_message:
        extract: [user, channel, text, thread_ts]

    2. get_context:
        if: thread_ts
        action: fetch_thread_history

    3. process_with_agent:
        model: gpt-4
        system: "You are a helpful Slack assistant"
        tools: [web_search, jira_lookup, calendar_check]

    4. respond:
        action: post_to_slack
        channel: "{channel}"
        thread_ts: "{thread_ts}"
        text: "{agent_response}"

Telegram Bot Agent

telegram_agent:
  trigger: telegram_message

  handlers:
    text_message:
      - extract_text
      - process_with_ai
      - send_response

    voice_message:
      - transcribe_with_whisper
      - process_with_ai
      - send_text_or_voice_response

    image:
      - analyze_with_vision
      - process_with_ai
      - send_response

    document:
      - extract_content
      - process_with_ai
      - send_response

Web Chat Interface

web_chat_agent:
  frontend:
    type: react_component
    features:
      - message_input
      - message_history
      - typing_indicator
      - file_upload

  backend:
    endpoint: "/api/chat"
    method: POST
    streaming: true

  session_management:
    method: jwt_token
    storage: redis
    ttl: 24_hours

Agent Templates

Customer Support Agent

support_agent:
  name: "Customer Support AI"
  model: gpt-4

  system_prompt: |
    You are a customer support agent for {company}.

    Guidelines:
    - Be helpful, professional, and empathetic
    - Use the knowledge base to answer questions
    - Escalate to human if you cannot help
    - Never make up information

    Available actions:
    - Search knowledge base
    - Look up customer account
    - Create support ticket
    - Escalate to human agent

  tools:
    - knowledge_search:
        description: "Search help articles"
    - customer_lookup:
        description: "Get customer account info"
    - create_ticket:
        description: "Create support ticket"
    - escalate:
        description: "Transfer to human agent"

  escalation_triggers:
    - sentiment: very_negative
    - keywords: ["speak to human", "manager", "complaint"]
    - failed_resolution: after_3_attempts

Research Agent

research_agent:
  name: "Research Assistant"
  model: claude-opus

  system_prompt: |
    You are a research assistant that helps users find
    and synthesize information on any topic.

    Process:
    1. Understand the research question
    2. Plan search strategy
    3. Execute searches across multiple sources
    4. Synthesize findings
    5. Present with citations

  tools:
    - web_search
    - academic_search
    - news_search
    - wikipedia_lookup

  output_format:
    - executive_summary
    - key_findings
    - detailed_analysis
    - sources_cited

Output Example

Request: "Design an AI agent for appointment scheduling"

Output:

# Appointment Scheduling Agent Design

## Architecture

agent: name: "Scheduling Assistant" model: gpt-4

capabilities: - Check calendar availability - Book appointments - Send confirmations - Handle rescheduling - Answer FAQs


## Tools Required

1. **calendar_check**
  - Input: date_range, duration
  - Output: available_slots[]
2. **book_appointment**
  - Input: datetime, customer_info, service_type
  - Output: confirmation_id
3. **send_notification**
  - Input: type, recipient, details
  - Output: success/failure
4. **customer_lookup**
  - Input: email or phone
  - Output: customer_record

## Conversation Flow

User: "I'd like to book an appointment" Agent: [Thought: Need to know service type and preferred time] Agent: "I'd be happy to help! What service are you looking for, and do you have a preferred date/time?"

User: "Haircut, next Tuesday afternoon" Agent: [Action: calendar_check(date="next Tuesday", time="afternoon")] Agent: "I have availability at 2pm, 3pm, and 4:30pm next Tuesday. Which works best for you?"

User: "3pm please" Agent: [Action: book_appointment(datetime="Tuesday 3pm", service="haircut")] Agent: [Action: send_notification(type="confirmation", ...)] Agent: "You're all set for a haircut at 3pm next Tuesday. I've sent a confirmation to your email. See you then!"


## n8n Implementation

workflow: - webhook_trigger: /schedule-chat - ai_agent: tools: [calendar, booking, notification] - respond_to_user


*AI Agent Builder Skill - Part of Claude Office Skills*

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.94%
按下载量换算2,160

Claude

31.96%
按下载量换算1,976

Cursor

17.35%
按下载量换算1,073

Gemini CLI

9.97%
按下载量换算616

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills