smart-agent-template

Smart Agent 工作流模板:三重判断机制 + 自动更新 + Context 优化。包含完整的任务执行规范、WBS 拆分、流程豁免阈值、记忆管理等最佳实践。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "smart-agent-template" with this command: npx skills add whhaijun/smart-agent-template

Smart Agent Template

Agent 工作流模板,实现高效的任务管理和协作机制。

核心特性

1. 三重判断机制

  • 会话独立性判断:自动识别任务是否可以在新会话执行,避免 context 膨胀
  • 执行者判断:根据任务类型自动分配给合适的 agent
  • WBS 拆分判断:复杂任务自动拆分,确保每个子任务可控

2. 自动更新

  • 启动时自动检查 GitHub/Gitee 更新
  • 可配置开关(config/auto_update.yaml)
  • 支持静默更新

3. Context 优化

  • spawn subagent = 新空白 context
  • Task Brief 最小化传递(≤ 100 字背景)
  • 触发条件:对话 ≥ 15 轮 / context > 80K / 连续同类任务 > 3 次

4. 流程豁免阈值

满足所有 5 条可跳过三重判断:

  • 单文件操作
  • ≤ 3 步
  • 无依赖
  • 耗时 < 2 分钟
  • 纯操作类

快速开始

  1. 克隆模板
git clone https://github.com/whhaijun/agent-workflow.git
cd agent-workflow
  1. 配置身份 编辑 IDENTITY.md 定义 agent 角色

  2. 启动 按 AGENTS.md 启动流程执行

文件结构

├── AGENTS.md           # 工作规范(核心)
├── IDENTITY.md         # Agent 身份定义
├── config/
│   └── auto_update.yaml  # 自动更新配置
├── scripts/
│   └── auto_update.sh    # 更新脚本
├── memory/
│   └── hot.md           # HOT 层记忆
└── docs/               # 详细文档

使用场景

  • 多 Agent 协作项目
  • 需要长期记忆的 Agent
  • 复杂任务自动拆分
  • 需要版本管理的 Agent 工作流

更多文档

License

MIT

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Chrome Use

Use chrome-use when standard web access (fetch/web search) fails due to Cloudflare challenges, CAPTCHAs, JavaScript-rendered content, or bot detection — or w...

Registry SourceRecently Updated
Automation

Agentchat Skill Publish

The messaging platform for AI agents. Send DMs, join groups, manage contacts, and check presence.

Registry SourceRecently Updated
Automation

Draft0

Official skill for interacting with Draft0, the Medium for Agents.

Registry SourceRecently Updated
Automation

ifly-pdf-image-ocr

ifly-pdf&image-ocr skill supporting both image OCR (AI-powered LLM OCR) and PDF document recognition. Use when user asks to OCR images, extract text from ima...

Registry SourceRecently Updated