← 返回
安全合规 中文

Skill Father

Authoritative skill-creation standards (Boss). Use when creating or updating OpenClaw skills so they are portable, reproducible, include prerequisites checks...
权威的技能创建标准(Boss级)。用于创建或更新OpenClaw技能,确保其具备可移植性、可复现性,并包含前置条件检查……
moodykong
安全合规 clawhub v0.1.0 1 版本 99879.5 Key: 无需
★ 0
Stars
📥 829
下载
💾 10
安装
1
版本
#latest

概述

Skill Father

This skill is Boss’s opinionated, authoritative standard for creating/updating skills.

It is based on the upstream skill-creator guidance, with extra requirements:

  • Always include Prerequisites checks (fail fast).
  • Keep skills portable/shareable: do not bake machine-specific settings into SKILL.md.
  • Always include Initialization / Installation / Onboarding that prompts the user when needed.
  • Make skills reproducible for other people/machines.

Core principles (from skill-creator)

  • Concise is key: minimize context bloat.
  • Progressive disclosure: keep SKILL.md short; put big docs in references/, deterministic code in scripts/.
  • Avoid extra docs (README/CHANGELOG/etc.).

Required sections in every skill

1) Prerequisites

Include a short section with concrete checks/commands.

Examples:

  • 1Password-backed workflows:
  • op whoami must succeed (or, if service accounts are used, required env vars like OP_SERVICE_ACCOUNT_TOKEN must be set).
  • External CLIs:
  • command -v must exist; include install guidance if missing.

2) Configuration (portable)

Rules:

  • Never hardcode machine/user-specific paths, usernames, tenant IDs, tokens, etc. inside SKILL.md.
  • Prefer skill-local config files stored next to SKILL.md, e.g.:
  • config.env (dotenv-style KEY="VALUE")
  • config.json (structured)
  • Config must be split into two files:
  • config.env.example (or config.json.example) — checked-in/shareable example; never mutated by onboarding
  • config.env (or config.json) — real machine-specific values written/updated during onboarding
  • SKILL.md documents:
  • where config lives
  • required keys + defaults
  • which file is the example vs real
  • how to run onboarding to generate/update the real config

3) Initialization / Installation / Onboarding

Provide a guided first-run flow.

  • If setup is trivial and safe: can be silent.
  • Otherwise: ask the user for choices + confirmation.
  • Persist outcomes into the real skill-local config file (not into SKILL.md; do not modify the example file).
  • Prefer discovery + confirmation over assumptions.

Prefer an onboarding helper script when setup touches real machine state.

Chat-first onboarding (Telegram-friendly)

When the primary interface is chat (e.g. Telegram), do not rely on TTY-style interactive prompts.

Requirement: Every child skill should explicitly document a “Preferred (chat-first)” onboarding path.

Preferred pattern:

  1. Agent asks the user the required onboarding questions in chat.
  2. Agent writes/updates the real skill-local config file.
  3. Agent runs a smoke test and reports results.

If you do ship an interactive script, treat it as an optional convenience for users running it in a real terminal (document as “Optional (terminal)”).

Recommended onboarding script behaviors:

  • Generate/update the real config file from prompts and/or auto-discovery.
  • If editing an existing system config file (e.g. ~/.config/openclaw/env, ~/.ssh/config):
  • detect whether the target file exists; create if missing
  • for each key/entry that would change, show current vs new
  • prompt the user per item: keep / override / skip
  • for secrets/tokens, mask values in prompts
  • If a restart/reload is required:
  • first detect whether the service manager is available (e.g. systemctl --user status )
  • ask the user for confirmation before restarting
  • if not detectable/available, print clear manual instructions

Examples of onboarding steps:

  • Detect candidate paths/resources.
  • Present options.
  • Ask for confirmation.
  • Write config.
  • Validate config by running a quick self-test.

4) Reproducibility

  • The skill should work for other people with minimal edits.
  • Prefer parameterization/config + prompts.
  • Avoid environment-specific assumptions unless explicitly documented.

5) Executables / bin placement

  • Any executable scripts/binaries required by the skill should live inside the skill folder (or inside the relevant plugin’s folder).
  • For convenience, you may create a symlink into a common PATH location (e.g. ~/.local/bin/), but the canonical copy should remain in the skill/plugin directory.

Resource layout

Use the standard skill layout:

skill-name/
├── SKILL.md
├── config.env.example    # example (shareable)
├── config.env            # real machine-specific config (generated/updated by onboarding)
├── scripts/              # deterministic code
└── references/           # optional docs, loaded on demand

Process checklist (for the agent)

  1. Understand the task and collect concrete usage examples.
  2. Plan resources (scripts/, references/, assets/) only if they reduce repetition or increase reliability.
  3. Create/confirm required sections: Prerequisites, Config, Installation/Onboarding.
  4. Implement the smallest working version.
  5. Validate with a smoke test.
  6. Iterate.

Example expectations: ssh-op skill

  • Prereqs: confirm op whoami works (or service account env is set) and ssh/ssh-add/ssh-agent exist.
  • Onboarding: proactively discover/confirm:
  • vault name
  • SSH key item
  • host + host aliases stored in the 1Password item
  • Integration: check whether aliases exist in ~/.ssh/config; if missing, offer to add/update entries.
  • Config: store vault/item/host/aliases in a skill-local config file.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-29 14:58 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

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

Task Father

moodykong
基于文件的长期任务状态机生成器(注册表、任务文件夹、生命周期状态、队列文件和 Cron 规格)
★ 0 📥 1,950
security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,607