Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

adk-skill-patternsadk 技能模式

Agent Skill

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

总安装

3,659

周安装

154

GitHub Stars

公开资料未说明

下载量

1,281
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:adk-skill-patterns(adk 技能模式)
来源仓库:https://github.com/maxlauriehutchinson/adk-skill-patterns
安装命令:
openclaw skills install adk-skill-patterns
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install adk-skill-patterns

简介

adk-skill-patterns 提供 Google ADK 的 5 种标准化 Agent Skill 设计模式。

  • 适用于构建工具包装器、生成器、审核器等可组合、可靠的技能模块。
  • 通过模板化结构快速开发新技能,提升代码复用与维护效率。
  • 安装后需根据项目需求选择合适模式,并遵循模板规范编写实现逻辑。
  • 建议结合实际用例测试各模式适用性,避免直接套用导致功能偏差。

SKILL.md

name
adk-skill-patterns
description
5 proven agent skill design patterns (Tool Wrapper, Generator, Reviewer, Inversion, Pipeline) from Google's ADK. Build reliable, composable skills with templates, decision trees, and composition guides. Stop cramming logic into prompts—use structured patterns instead.
metadata
openclaw
emoji
🧩
version
1.0.0

ADK Skill Patterns 🧩

Source: Google Cloud Tech — 5 Agent Skill Design Patterns Adapted for: OpenClaw Agent System Purpose: Build reliable, composable agent skills using proven architectural patterns


Overview

The specification explains how to package a skill, but offers zero guidance on how to structure the logic inside it. These 5 patterns solve that problem.

PatternQuestion It AnswersUse When
Tool Wrapper"How do I make my agent an expert on a specific library?"Agent needs deep, contextual knowledge about a technology
Generator"How do I enforce consistent output structure?"Output format must be predictable every time
Reviewer"How do I separate what to check from how to check it?"Code review, quality gates, compliance checking
Inversion"How do I stop the agent from guessing and gather requirements first?"Complex tasks requiring full context before execution
Pipeline"How do I enforce a strict multi-step workflow?"Multi-phase tasks with checkpoints and approvals

Pattern 1: Tool Wrapper

Purpose: Give your agent on-demand context for a specific library/framework.

Mechanism:

  • Listens for library keywords in prompts
  • Dynamically loads documentation from references/
  • Applies conventions as absolute truth only when needed

Example Use Cases:

  • FastAPI conventions
  • Internal coding standards
  • Framework-specific best practices
  • API design guidelines

Template: See templates/tool-wrapper-SKILL.md


Pattern 2: Generator

Purpose: Enforce consistent output via fill-in-the-blank orchestration.

Mechanism:

  • assets/ holds output template
  • references/ holds style guide
  • Instructions act as project manager
  • Asks for missing variables before generating

Example Use Cases:

  • API documentation generation
  • Standardized commit messages
  • Project scaffolding
  • Technical reports

Template: See templates/generator-SKILL.md


Pattern 3: Reviewer

Purpose: Separate review criteria from review execution.

Mechanism:

  • Stores modular rubric in references/review-checklist.md
  • Methodically scores submissions
  • Groups findings by severity
  • Swap checklist = completely different audit

Example Use Cases:

  • PR review automation
  • Security vulnerability scanning
  • Code quality audits
  • Compliance checking

Template: See templates/reviewer-SKILL.md


Pattern 4: Inversion

Purpose: Stop agents from guessing — make them interview first.

Mechanism:

  • Agent acts as interviewer, not executor
  • Structured questions in phases
  • Hard gates prevent premature synthesis
  • User drives through answers, not prompts

Example Use Cases:

  • Project planning/requirements gathering
  • System design interviews
  • Complex task specification
  • Knowledge extraction

Template: See templates/inversion-SKILL.md


Pattern 5: Pipeline

Purpose: Enforce strict sequential workflow with hard checkpoints.

Mechanism:

  • Instructions = workflow definition
  • Diamond gate conditions (user approval required)
  • Cannot bypass steps or present unvalidated results
  • Progressive disclosure keeps context clean

Example Use Cases:

  • Documentation generation workflows
  • Multi-step code generation
  • Complex build/deploy pipelines
  • Research synthesis workflows

Template: See templates/pipeline-SKILL.md


Decision Tree

START: What does your skill need to do?
│
├─→ Provide deep knowledge about a specific library/framework?
│   └─→ Use: TOOL WRAPPER
│
├─→ Produce consistent, templated output?
│   └─→ Use: GENERATOR
│
├─→ Check/audit something against criteria?
│   └─→ Use: REVIEWER
│
├─→ Gather requirements before acting?
│   └─→ Use: INVERSION
│
├─→ Execute strict multi-step workflow?
│   └─→ Use: PIPELINE
│
└─→ Multiple of the above?
    └─→ Patterns COMPOSE (see below)

Pattern Composition

These patterns are not mutually exclusive — they compose:

CombinationEffect
Pipeline + ReviewerMulti-step workflow with quality gate at the end
Generator + InversionGather variables via interview, then fill template
Pipeline + Tool WrapperEach step loads specific expertise as needed
Reviewer + GeneratorReview output before generating final document

Principle: Your agent only spends context tokens on the exact patterns it needs at runtime.


Quick Reference: Pattern Selection

ScenarioPatternWhy
"Teach my agent FastAPI conventions"Tool WrapperContext loads only when FastAPI mentioned
"Generate consistent API docs"GeneratorTemplate + style guide = predictable output
"Automate PR reviews"ReviewerSwap checklist for different audit types
"Plan a new project"InversionGathers full requirements before designing
"Generate docs from code"PipelineParse → Generate → Review → Assemble

Directory Structure

skills/
└── your-skill/
    ├── SKILL.md              # Instructions (implements pattern)
    ├── references/           # Knowledge, checklists, style guides
    │   ├── conventions.md
    │   ├── review-checklist.md
    │   └── style-guide.md
    └── assets/               # Templates, examples
        ├── report-template.md
        └── plan-template.md

Anti-Patterns to Avoid

Cramming everything into system prompt — Use Tool Wrapper instead ❌ Different output every run — Use Generator for consistency ❌ Hardcoded review criteria — Use Reviewer for modularity ❌ Agent assumes context — Use Inversion to gather requirements ❌ Skipped steps in workflows — Use Pipeline for enforcement


Implementation Notes for OpenClaw

  1. File Loading: Use read tool to load references/assets dynamically
  2. Pattern Detection: Check user's intent to determine which pattern to apply
  3. Composition: Chain skills via sessions_spawn for complex workflows
  4. Gates: Explicit user confirmation before proceeding (especially Pipeline/Inversion)

Using This Skill

To Apply a Pattern

Ask me: "Use the [pattern-name] pattern to [task]"

Examples:

  • "Use the Tool Wrapper pattern to create a FastAPI expert skill"
  • "Use the Generator pattern to standardize my report outputs"
  • "Use the Reviewer pattern to build a code quality checker"
  • "Use the Inversion pattern to plan my new project"
  • "Use the Pipeline pattern to create a documentation workflow"

To Get Pattern Advice

Ask: "Which pattern should I use for [scenario]?"

To Compose Patterns

Ask: "How do I combine [pattern-1] and [pattern-2]?"


Source Article: https://x.com/GoogleCloudTech/status/2033953579824758855 Last Updated: March 29, 2026

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

OpenClaw

90.47%
按下载量换算1,159

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills