Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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…

saariuslystonedот 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 lowercase agent.id slug like release-radar automatically unless they specify one)
  • Brief Description (1–2 plain sentences for CLAW.md agent.description and 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)

  1. 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 automations entry with delivery: { mode: none }, or opt-in room @mention—and which actions stay draft-first until a human approves?
  2. Keep One Job Per Bot (Poteto-Mode Tightness):
    • Default to 1 focused standalone OpenClaw Template: one job, one voice, explicit ## Anti-jobs (hard), no leftover tools.
    • Require every forged workspace/AGENTS.md to 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.mentionPatterns and 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 in workspace/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."

Mode 2 — Crystallize From a Past Session (Session -> Reusable Skill & Template)

When the user points at an existing working folder, transcript, or rough prototype:

  1. 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).
  2. Sanitize Before Packaging:
    • Strip personal names, machine-local paths (/Users/<user>/, /home/<user>/, C:\Users\<user>\), internal hostnames/URLs, session history, .env values, and tokens.
  3. 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):

  1. Reuse Before Wrapping Raw REST 1:1:
    • Check whether an official CLI, ClawHub packages entry, or agent-friendly cli-printing-press tool already exists before writing thin 1:1 curl wrappers around raw REST endpoints.
  2. Wire Clean OpenClaw Manifests:
    • Declare mcpServers in CLAW.md using only unresolved "${ENV_VAR}" placeholders for env and auth headers (never literal secrets) and/or packages dependencies.
    • Restrict profiles/openclaw.yml agent.tools.allow to the exact tools needed (workspaceOnly: true).
  3. 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 --json data goes to stdout; progress notes, warnings, and errors go to stderr with distinct exit codes (0 ok, 1 check failure, 2 usage/setup missing).
    • Non-interactive by default: Always pass explicit flags (--yes only after approval, --format json, --no-input) so cron/background sessions never hang forever on a [y/N] prompt.
    • **--dry-run before writes & truthful f
Полный SKILL.md на ClawHub

Установить 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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить forge-template с