← 返回
未分类 中文

Acrid's Skill Creator

Creates robust, production-grade agent skills from natural language requests, handling design, error management, and code scaffolding for immediate use.
从自然语言请求快速生成稳健、生产级的代理技能,自动完成设计、错误管理与代码脚手架,直接可用。
acrid-auto acrid-auto 来源
未分类 clawhub v2.0.0 1 版本 99751.2 Key: 无需
★ 0
Stars
📥 401
下载
💾 0
安装
1
版本
#latest

概述

SKILL: skill-creator

Description

The foundational meta-skill that architects and generates production-grade agent skills from natural language. This is the factory floor — every skill in the Acrid ecosystem is born here. It doesn't just scaffold files; it thinks through design, enforces quality gates, generates battle-tested logic, and outputs skills that work on first run.

Usage

Invoke this skill when:

  • You need to create a new capability, tool integration, or automation
  • You're converting a manual workflow into a repeatable skill
  • You want to prototype a skill idea rapidly with full documentation
  • You need to refactor or rebuild an existing skill from scratch

Trigger phrases: "Create a skill...", "Build me a skill...", "I need a skill that...", "Scaffold a new skill for..."

Inputs

ParameterRequiredFormatDescription
------------------------------------------
nameYeskebab-caseSkill identifier (e.g., stock-checker, deploy-monitor)
descriptionYesNatural languageWhat the skill does, in detail
requirementsNoNatural languageTools, APIs, constraints, languages, auth needs
outputsNoNatural languageWhat the skill should return (defaults to structured text)
complexityNosimple \standard \advancedDetermines scaffold depth (default: standard)

Steps

Phase 1: Intelligence Gathering

  1. Parse the request — Extract:
    • Core purpose (single sentence, verb-first: "Fetches...", "Monitors...", "Generates...")
    • Required external APIs or services
    • Required tools (Bash, WebFetch, WebSearch, Read, Write, Grep, Glob, etc.)
    • Input parameters with types and validation rules
    • Expected output format (JSON, markdown, plain text, file)
    • Error scenarios (API down, bad input, rate limits, auth failure, empty results)
    • Edge cases specific to the domain
  1. Determine complexity tier:
    • Simple: Single tool, no external APIs, <20 lines of logic (e.g., file formatter)
    • Standard: 1-2 tools, may call external APIs, needs error handling (e.g., stock checker)
    • Advanced: Multiple tools, chained API calls, stateful logic, helper scripts required (e.g., deploy pipeline)
  1. Identify the execution model:
    • Direct: Skill logic runs entirely within SKILL.md steps (preferred for simple/standard)
    • Scripted: Complex logic lives in src/ scripts, SKILL.md orchestrates (required for advanced)
    • Hybrid: SKILL.md handles orchestration, delegates specific computations to scripts

Phase 2: Architecture

  1. Design the skill contract:
    • Define exact input schema with types, defaults, and validation
    • Define exact output schema — what does success look like?
    • Define error responses — what does each failure mode return?
    • Map the dependency chain (what calls what, in what order)
  1. Scaffold the directory:

For simple skills:

```

skills//

SKILL.md

README.md

```

For standard skills:

```

skills//

SKILL.md

README.md

src/ # Only if computation is complex

```

For advanced skills:

```

skills//

SKILL.md

README.md

src/

main.py|js # Core logic

utils.py|js # Shared helpers (only if genuinely needed)

config/

defaults.json

```

Phase 3: Generation

  1. Generate SKILL.md — The skill definition must include ALL of these sections:

```markdown

# SKILL:

## Description

Second sentence adds context. Third sentence covers key differentiator.>

## Usage

## Inputs

## Outputs

## Steps

  • Actionable (starts with a verb)
  • Atomic (does one thing)
  • Error-aware (includes failure handling where relevant)
  • Tool-specific (names the exact tool to use when applicable)>

## Error Handling

  • What to do when an API is unreachable
  • What to do with malformed input
  • What to do when results are empty
  • Retry logic if applicable>

```

SKILL.md generation rules:

  • Steps MUST be deterministic — no ambiguity in what the agent does
  • Every external call MUST have a failure path
  • Steps should reference specific tools by name (WebFetch, Bash, Grep, etc.)
  • Include concrete examples of expected input/output in the steps where helpful
  • Never use vague instructions like "process the data" — specify HOW
  • If a step involves parsing, specify the exact format and extraction method
  • Rate limiting: if the skill calls external APIs, include a note about respecting rate limits
  1. Generate README.md:

```markdown

#

## Quick Start

## Parameters

## Example Usage

<2-3 real-world invocation examples with expected outputs>

## Setup

## How It Works

## Limitations

```

  1. Generate helper scripts (if complexity requires):

Python scripts must:

  • Use argparse for CLI arguments
  • Output JSON to stdout (parseable by the agent)
  • Include a if __name__ == "__main__" guard
  • Handle exceptions with meaningful error messages in JSON format: {"error": "...", "code": "..."}
  • Use type hints
  • Include a docstring

Node.js scripts must:

  • Parse args from process.argv or use a minimal arg parser
  • Output JSON to stdout
  • Handle errors with try/catch, output: {"error": "...", "code": "..."}
  • Use strict mode

Phase 4: Quality Gates

  1. Run the Acrid Quality Checklist — Every generated skill must pass ALL gates:

| Gate | Check | Fail Action |

|------|-------|-------------|

| Atomic | Does it do exactly ONE thing? | Split into multiple skills |

| Named | Is the name self-documenting? Does tell you what it does? | Rename |

| Inputs Valid | Are all inputs typed with clear validation rules? | Add missing validation |

| Outputs Defined | Is the output format explicitly documented? | Add output spec |

| Error-Proof | Does every external call have a failure path? | Add error handling |

| Documented | Does README.md have Quick Start + Examples? | Flesh out docs |

| Deterministic | Given the same input, does it always produce the same flow? | Remove ambiguity |

| No Dead Code | Are all generated files actually used? | Remove unused files |

| Dependency-Light | Does it minimize external dependencies? | Simplify |

| First-Run Ready | Can someone use this skill with zero setup beyond what's documented? | Fix setup docs |

  1. Final review — Read through the complete generated skill one more time. Ask:
    • Would this work if I ran it right now?
    • Is there anything I'd need to guess or assume?
    • Are the steps clear enough that a different agent could execute them?
    • If any answer is "no", fix it before delivering.

Phase 5: Delivery

  1. Write all files to the target directory using the Write tool.
  1. Report to user with:
    • Skill name and location
    • Quick summary of what was generated
    • Any setup steps required (API keys, env vars)
    • A ready-to-use invocation example

Error Handling

ScenarioAction
------------------
Name is not kebab-caseAuto-convert and warn user
Description is vague (<10 words)Ask for clarification before proceeding
Requested API has no free tierWarn user, suggest alternatives, proceed if confirmed
Complexity mismatch (user says simple but needs advanced)Override to correct tier, explain why
Generated skill fails quality gateFix automatically, do not deliver broken skills

Anti-Patterns — Do NOT Generate Skills That:

  • Have steps like "analyze the data" without specifying HOW
  • Depend on tools not available to the agent
  • Require manual intervention mid-execution (unless explicitly designed as interactive)
  • Have undocumented environment variables or secrets
  • Contain placeholder logic ("TODO: implement this")
  • Over-engineer with abstractions for single-use operations
  • Include unnecessary comments or boilerplate

Examples

Input:

name: stock-checker
description: Fetches the current price of a stock by ticker symbol using a free API
requirements: Must use a free API, return price in USD

Output: See examples/stock-checker/ for the complete generated skill.

版本历史

共 1 个版本

  • v2.0.0 当前
    2026-05-03 10:23 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,233 📥 268,712
ai-agent

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。适用于以下场景:创建/查询实体(人物、项目、任务、事件、文档)、关联相关对象、强制执行约束、将多步操作规划为图谱变换,或当技能需要共享状态时。触发关键词包括"记住""我知道关于什么""将X链
★ 725 📥 245,381
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,388 📥 321,422