forge-template
БесплатноЗапускает вложенные скриптыНе проверенForge, sanitize, and lint a complete solo-ready OpenClaw Agent Template (package.json, CLAW.md, profiles/openclaw.yml, workspace/, and skills) from an idea, a…
от saariuslystoned261 установка в других каталогахОб этом скилле
Forge Template (forge-template)
Use this skill whenever creating, crystallizing, or hardening an OpenClaw Agent Template (templates/<agent-id>/). Every mode outputs a complete upstream-valid OpenClaw Template that works out-of-the-box on any local/solo OpenClaw install (openclaw templates validate, dev, build, add) with zero shared-gateway lock-in.
Step 0: Pick the Right Starting Mode & Lock Name + Description
Across all three modes, always give the user a clear chance before writing files to choose or confirm:
- Bot Name (
agent.name, deriving a clean lowercaseagent.idslug likerelease-radarautomatically unless they specify one) - Brief Description (
1–2plain sentences forCLAW.mdagent.descriptionand ClawHub cards—draft a crisp suggestion if they haven't provided one yet so they can approve or edit quickly)
Mode 1 — Start From an Idea (One Job Per Bot)
- Ask one short, plain-English intake round:
- Name & Brief Description: What do you want to call this bot, and how would you describe it in one sentence?
- Job: What concrete output does this bot produce (briefing, triage queue, PR review, draft reply)?
- Trigger & Approval Gate: Interactive local chat, one scheduled 5-field
automationsentry withdelivery: { mode: none }, or opt-in room@mention—and which actions stay draft-first until a human approves?
- Keep One Job Per Bot (
Poteto-ModeTightness):- Default to 1 focused standalone OpenClaw Template: one job, one voice, explicit
## Anti-jobs (hard), no leftover tools. - Require every forged
workspace/AGENTS.mdto include an explicit## Anti-jobs (hard)section listing concrete domain actions the bot must never take (not just generic safety boilerplate). - If the user bundles 3–4 separate jobs into one mega-prompt, recommend splitting into 2–3 single-purpose Templates aligned with OpenClaw's role presets (
coordinator,researcher,writer,reviewer). - Add
groupChat.mentionPatternsand polite room handoff rules only if the user asks to run them together in a shared multi-agent room. Whenever shared-room support is enabled, include the"One-Bot-Acts"rule inworkspace/AGENTS.md:"Only the bot whose job it is acts; the others stay quiet. Never pick up a task another bot already has, and never send the same update or ask for the same confirmation another bot just posted."
- Default to 1 focused standalone OpenClaw Template: one job, one voice, explicit
Mode 2 — Crystallize From a Past Session (Session -> Reusable Skill & Template)
When the user points at an existing working folder, transcript, or rough prototype:
- Read & Diagnose the Session:
- Trace what the task tried to accomplish, where it stumbled or looped, what fixed it, and which manual steps can be tightened into deterministic checks.
- Lock four plain boundaries: Input (what kicks it off), Job (the repeatable steps), Output (exact artifact/format), and Authority (what stays human-gated).
- Sanitize Before Packaging:
- Strip personal names, machine-local paths (
/Users/<user>/,/home/<user>/,C:\Users\<user>\), internal hostnames/URLs, session history,.envvalues, and tokens.
- Strip personal names, machine-local paths (
- Write a 6-Section
workspace/skills/<skill-name>/SKILL.md:## When to Use·## Inputs & Access·## Step-by-Step Sequence·## Deterministic Validation·## Return Format·## Approval Boundary- Wrap the skill inside a complete OpenClaw Template (
package.json,CLAW.md,profiles/openclaw.yml,workspace/).
Mode 3 — Build Around an API or CLI Tool (Agent-First CLI & MCP Wrapper)
When equipping an agent with an external service, API, or local CLI (guided by smoky-cli-creator and mvanhorn/cli-printing-press):
- Reuse Before Wrapping Raw REST 1:1:
- Check whether an official CLI, ClawHub
packagesentry, or agent-friendlycli-printing-presstool already exists before writing thin 1:1 curl wrappers around raw REST endpoints.
- Check whether an official CLI, ClawHub
- Wire Clean OpenClaw Manifests:
- Declare
mcpServersinCLAW.mdusing only unresolved"${ENV_VAR}"placeholders forenvand auth headers (never literal secrets) and/orpackagesdependencies. - Restrict
profiles/openclaw.ymlagent.tools.allowto the exact tools needed (workspaceOnly: true).
- Declare
- Enforce Agent-Native CLI Ergonomics in
SKILL.md& Helper Scripts:- Compound workflows over chatty micro-calls: Prefer one high-signal command that returns the decision-ready payload over 5 pagination round-trips.
- Clean stream split: Structured
--jsondata goes tostdout; progress notes, warnings, and errors go tostderrwith distinct exit codes (0ok,1check failure,2usage/setup missing). - Non-interactive by default: Always pass explicit flags (
--yesonly after approval,--format json,--no-input) so cron/background sessions never hang forever on a[y/N]prompt. - **
--dry-runbefore writes & truthful f
Установить forge-template в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл forge-template?
Forge, sanitize, and lint a complete solo-ready OpenClaw Agent Template (package.json, CLAW.md, profiles/openclaw.yml, workspace/, and skills) from an idea, a past session, or an API/CLI tool.
Как установить скилл forge-template?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл forge-template запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic