Ai Native Agent Skill Design logo

Ai Native Agent Skill Design

Community
gmaxxxie
ai-native-agent-skill-design

AI Native 产品方法论——智能体与技能单元设计的实操 Skill。 用户提供任务场景,Skill 自动执行能力编排设计流程: 任务拆解 → Agent 角色定义 → Skill 拆分 → Tool 映射 → 边界与回退设计 → 输出能力编排方案。 基于《AI Native 产品方法论》第12章。

Overview

Publishergmaxxxie
Repositoryai-native-product-agent-skills
Skill nameai-native-agent-skill-design
Stars
45
Forks
1
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by gmaxxxie on GitHub. Read the source before you install it.

Installation

Install the Ai Native Agent Skill Design AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/gmaxxxie/ai-native-product-agent-skills/tree/main/skills/ai-native-agent-skill-design
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/gmaxxxie/ai-native-product-agent-skills.git /tmp/ai-native-product-agent-skills
mkdir -p .claude/skills
cp -r /tmp/ai-native-product-agent-skills/skills/ai-native-agent-skill-design .claude/skills/ai-native-agent-skill-design
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ai Native Agent Skill Design in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ai Native Agent Skill Design on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ai Native Agent Skill Design is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

AI Native 智能体与技能单元设计 Skill

使用场景

  • 产品需要从单轮问答进化到多步任务推进
  • 需要设计可复用的能力模块(Skill)和任务编排层(Agent)
  • 需要明确智能体的边界:可以推进到哪里、何时必须停下并把控制权交还给人

核心概念

  • 智能体(Agent):面向目标组织任务、编排能力与调用动作的系统层
  • 技能单元(Skill):围绕一类任务封装的可复用能力单元
  • 工具(Tool):可被调用的具体接口、系统能力或外部动作
  • 智能体边界:智能体可以推进到哪里、何时必须停下并把控制权交还给人

什么时候真的需要 Agent

不是所有 AI 产品都需要 Agent。以下场景通常需要:

  • 用户提出的不是单一问题,而是一项任务
  • 任务需要多步骤完成:理解目标 → 拆解任务 → 调用工具 → 组织结果
  • 中间步骤可能失败,需要回退、重试或请求补充信息

如果只是单轮问答、单次总结、单次分类,通常 Prompt + RAG 或固定 Workflow 就足够。

Agent 的基本结构

Reason(理解目标)
  → Plan(拆解任务)
    → Act(执行动作)

三个动作对应三种难点:

  • Reason:系统是否真正理解了用户目标
  • Plan:系统是否能把复杂任务拆成可执行步骤
  • Act:系统是否能在真实环境中可靠完成动作

任何一环不稳定,Agent 最终都会退化成"说得很多,但做不成事"。

Agent、Skill 与 Tool 的关系

层级定义例子
Tool具体工具或系统接口查询订单、检索日志、调用 CRM
Skill围绕某类任务封装的能力模块客服问题归因、运维告警诊断、经营指标解释
Agent任务层面编排技能与工具理解用户问题 → 选择 Skill → 调用 Tool → 组织结果

分工原则

  • Tool 做具体事:查询、调用、写入
  • Skill 做一类事:封装任务逻辑、输入输出约束、评估标准
  • Agent 决定做哪些事:目标理解、任务拆解、Skill 选择、结果组织

能力编排流程

用户目标
  → Agent 理解与规划
    → Skill 选择
      → Tool 调用
        → 结果组织
          → 用户确认 / 人工接管

如果这条链路里任何一层边界不清,Agent 就会退化成大黑盒。

Skill 设计原则

1. 能力可拆分

把复杂任务拆成独立、可复用的能力单元。例如:

  • 查询订单 → 解释物流状态 → 判断是否需要升级人工

2. 边界可治理

每个 Skill 必须有清晰的:

  • 输入范围:接受什么、不接受什么
  • 输出约束:返回什么格式、什么精度
  • 失败条件:什么情况下必须回退或交还给人

3. 执行可回退

每个 Skill 必须有明确的回退机制:

  • 失败时如何回退
  • 超时时如何处理
  • 结果不可信时如何降级

技术层 vs 方法层

技术层会持续变化: n- 单智能体 vs 多智能体

  • Planner / Executor / Router 等不同编排结构
  • Function Calling vs MCP 等不同动作连接方式
  • 提示词技能 vs 代码技能的不同封装方式

方法层更长期稳定: n- 能力如何拆分

  • 调用如何授权
  • 执行如何回退
  • 过程如何观测
  • 责任如何界定

输出物:能力编排方案

  1. 任务拆解图:复杂任务如何拆成子任务
  2. Agent 角色定义:目标理解、任务规划、Skill 选择、结果组织
  3. Skill 清单:每个 Skill 的输入、输出、失败条件
  4. Tool 映射:每个 Skill 调用哪些 Tool
  5. 边界与回退设计:什么情况下必须停下并交还给人

使用方式

当用户提供任务场景时,自动执行:

  1. 判断是否真的需要 Agent(还是单轮问答就足够)
  2. 将复杂任务拆解为子任务
  3. 为每个子任务设计 Skill(输入、输出、失败条件)
  4. 映射 Skill 到具体 Tool
  5. 设计 Agent 的任务编排逻辑
  6. 设计边界与回退机制
  7. 输出能力编排方案

示例

示例1:AI 客服任务编排设计

场景描述: 用户说"我的订单怎么还没到货",系统需要完成多步骤任务。

用户输入: "我的订单怎么还没到货?已经等了5天了"

Skill 执行流程:

  1. 判断是否需要 Agent

    • ❌ 单轮问答:只回答"一般配送时间是3-7天"
    • ✅ 需要 Agent:查询订单→查物流→判断异常→提供解决方案
  2. 任务拆解

用户目标:了解订单未到货原因并解决
  ├─ 步骤1:识别用户身份和订单号
  ├─ 步骤2:查询订单状态
  ├─ 步骤3:查询物流轨迹
  ├─ 步骤4:判断异常类型
  └─ 步骤5:提供解决方案或升级
  1. Skill 设计
Skill输入输出Tool失败条件
IdentifyUser会话上下文用户ID、身份置信度CRM查询置信度<0.8时请求确认
QueryOrder用户ID、时间范围订单列表订单系统无订单时给出引导
TrackLogistics订单号物流状态、轨迹物流系统超时未返回时降级
AnalyzeException物流状态异常类型、原因规则引擎无法归类时标记"未知"
GenerateResponse异常类型回复内容、建议动作-高风险时转人工
  1. Agent 编排逻辑
yaml
Agent: CustomerServiceAgent
目标理解: "用户询问订单未到货原因"
任务规划:
  - 先执行 IdentifyUser(若失败则请求确认)
  - 再执行 QueryOrder(若多订单则请用户选择)
  - 然后执行 TrackLogistics
  - 根据物流状态决定后续:
      - 正常运输中 → GenerateResponse(解释预计时间)
      - 物流异常 → GenerateResponse(说明异常+解决方案)
      - 丢件/破损 → 标记升级人工
技能选择策略: 按依赖顺序串行执行,每步检查失败条件
结果组织: 结构化回复 + 可选操作按钮
  1. 边界与回退设计
场景边界规则回退动作
用户身份不确定置信度<0.8请求提供手机号/订单号
订单查询失败系统超时告知"系统繁忙"并提供自助链接
物流信息缺失3PL未返回提供官方物流查询方式
涉及赔付/退款高风险承诺必须人工确认
用户情绪升级检测到负面情绪自动转人工

输出结果:

yaml
# 能力编排方案:AI 客服 Agent

Agent:
  name: CustomerServiceAgent
  role: 客服任务编排与协调
  objectives:
    - 理解用户问题
    - 查询相关信息
    - 提供准确回答
    - 控制服务风险

Skills:
  - name: IdentifyUser
    input: [user_message, session_id]
    output: 
      user_id: string
      confidence: float
    failure: confidence < 0.8
    fallback: request_explicit_identification

  - name: QueryOrder  
    input: [user_id, time_range="30d"]
    output:
      orders: [{id, status, amount, items}]
    failure: orders.length == 0
    fallback: guide_no_order

  - name: TrackLogistics
    input: [order_id]
    output:
      status: enum[运输中,已签收,异常]
      events: [{time, location, status}]
    failure: timeout > 5s
    fallback: provide_official_tracking_link

  - name: AnalyzeException
    input: [logistics_status, events]
    output:
      exception_type: enum[延迟,丢件,破损,其他]
      severity: enum[低,中,高]
    failure: exception_type == "其他"
    fallback: mark_unknown_escalate

  - name: GenerateResponse
    input: [analysis_result, user_intent]
    output:
      message: string
      actions: [{type, label, payload}]
      risk_level: enum[低,中,高]
    failure: risk_level == "高"
    fallback: escalate_to_human

Tools:
  CRM.query: 用户信息查询
  OrderSystem.query: 订单状态查询
  Logistics.track: 物流轨迹查询
  RuleEngine.classify: 异常类型判断

边界控制:
  max_turns: 10
  escalation_triggers:
    - risk_level == "高"
    - user_sentiment < -0.5
    - mention_keywords: ["投诉", "法院", "媒体"]
    - 连续3次未能解决问题

示例2:AIOps 故障诊断编排

场景描述: 告警系统收到多条告警,需要自动诊断并提供分诊建议。

用户输入: "收到告警:服务A响应超时、数据库连接池耗尽、CPU使用率95%"

Skill 执行流程:

  1. 任务拆解
目标:分析告警并给出故障分诊建议
  ├─ 步骤1:聚类告警(识别相关性)
  ├─ 步骤2:查询服务依赖拓扑
  ├─ 步骤3:检索相关日志
  ├─ 步骤4:召回历史相似案例
  ├─ 步骤5:生成故障摘要
  └─ 步骤6:推荐处置优先级
  1. Skill 清单
Skill功能输入输出Tool
ClusterAlerts告警聚类告警列表告警组、根因候选聚类算法
QueryDependency依赖查询服务名上下游服务图CMDB
FetchLogs日志检索服务+时间窗口相关日志片段ELK
RecallCases案例召回告警特征相似历史案例向量检索
SummarizeFault故障摘要多源信息故障描述LLM
RecommendAction处置建议故障类型优先级+建议规则引擎
  1. 关键边界设计
yaml
高风险边界:
  - 禁止技能: 任何直接操作生产的动作
  - 输出性质: 永远是建议,不是命令
  - 置信度阈值: <70% 时必须标注"不确定,需人工确认"
  
回退机制:
  - 案例召回为空时: 标记"无历史参考,依赖专家判断"
  - 日志查询失败时: 降级为"基于告警的初步判断"
  - 多源信息冲突时: 列出矛盾点,不强行统一

输出结果:

yaml
# 能力编排方案:AIOps 诊断 Agent

Agent:
  name: AIOpsDiagnosisAgent  
  type: Observation-Only(仅观察,不执行)
  principles:
    - 只组织信息,不下达指令
    - 只提供建议,不做决策
    - 所有输出供参考,必须由工程师确认

Skills:
  ClusterAlerts:
    input: [alerts, correlation_rules]
    output: 
      clusters: [{root_alert, related_alerts}]
      timeline: [event_sequence]

  QueryDependency:
    input: [service_name]
    output:
      upstream: [services]
      downstream: [services]
      impact_radius: string

  FetchLogs:
    input: [services, time_window="-30m,+5m"]
    output:
      log_snippets: [text]
      error_patterns: [{pattern, count}]

  RecallCases:
    input: [alert_signature, vectors]
    output:
      similar_cases: [{case_id, similarity, resolution}]
      top_recommendation: string

  SummarizeFault:
    input: [clusters, logs, cases]
    output:
      summary: string
      confidence: float
      evidence_chain: [sources]

  RecommendAction:
    input: [fault_type, severity]
    output:
      priority: enum[P0,P1,P2]
      suggested_actions: [strings]
      escalation_path: string

边界协议:
  no_execution: true
  confidence_threshold: 0.7
  uncertainty_handling: explicit_flag
  audit_required: true

Frequently asked questions

What does the Ai Native Agent Skill Design AI skill do?

AI Native 产品方法论——智能体与技能单元设计的实操 Skill。 用户提供任务场景,Skill 自动执行能力编排设计流程: 任务拆解 → Agent 角色定义 → Skill 拆分 → Tool 映射 → 边界与回退设计 → 输出能力编排方案。 基于《AI Native 产品方法论》第12章。

Why use Ai Native Agent Skill Design on TypingMind?

Because you install it once and use it with any model. Ai Native Agent Skill Design is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ai Native Agent Skill Design in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/gmaxxxie/ai-native-product-agent-skills/tree/main/skills/ai-native-agent-skill-design. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Ai Native Agent Skill Design?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ai Native Agent Skill Design?

As many as you like. As long as a model supports skills, you can use Ai Native Agent Skill Design with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ai Native Agent Skill Design AI skill free?

It is published on GitHub by gmaxxxie. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇