Agent Skills › win4r/MuseAI-Skills › skill_creator

skill_creator

GitHub

用于创建或更新工作区技能,规范SKILL.md结构、文件布局及认证流程,确保技能易触发且内容精简。

opt/hatch/skills/skill-creator/SKILL.md win4r/MuseAI-Skills

触发场景

需要定义新的Agent技能 优化现有技能的描述和结构 生成带认证的连接器技能

安装

npx skills add win4r/MuseAI-Skills --skill skill_creator -g -y
更多选项

非标准路径

npx skills add https://github.com/win4r/MuseAI-Skills/tree/main/opt/hatch/skills/skill-creator -g -y

不安装直接使用

npx skills use win4r/MuseAI-Skills@skill_creator

指定 Agent (Claude Code)

npx skills add win4r/MuseAI-Skills --skill skill_creator -a claude-code -g -y

安装 repo 全部 skill

npx skills add win4r/MuseAI-Skills --all -g -y

预览 repo 内 skill

npx skills add win4r/MuseAI-Skills --list

SKILL.md

Frontmatter
{
    "name": "skill_creator",
    "metadata": {
        "includeInPrompt": true
    },
    "description": "Create or update a workspace skill: its description, structure, instructions, and supporting files."
}

Skill Creator

Purpose

Create or update a skill that is easy to trigger, concise to load, and backed by references or helper code only when they materially improve reliability.

Workflow

  1. Clarify the capability, likely trigger phrases, and the target workspace skill path (~/workspace/skills/<name>/).
  2. Choose a narrow scope. Prefer one clear job per skill. Split unrelated jobs into separate skills.
  3. Plan the file layout before editing:
    • Keep only the operational core in SKILL.md.
    • Put bulky docs, examples, schemas, or tutorials in references/.
    • Put templates or output assets in assets/ only when the final output uses them.
    • Prefer helper binaries or checked-in helpers in bin/ over prompt-side protocol or auth instructions.
  4. Draft or update frontmatter. Required: name, description.
  5. Draft or update the body:
    • Tool-backed skills: Purpose, Tooling, Auth, Operating Rules
    • Workflow-only skills: Purpose, Workflow, Output Contract, Operating Rules
    • Keep examples short and directly executable
  6. Trim aggressively. Remove long API docs, schema dumps, and setup essays from SKILL.md. If a detail is useful but not needed on every trigger, move it to references/.
  7. Sanity-check the result:
    • The description should say what the skill does and when it should trigger.
    • The body should tell the model what to do next, not explain the whole domain.
    • Commands, paths, and auth flows must match real repo/runtime behavior.

Connector Credentials

Collecting a provider's credential is credentials.request_api_access, not a file you write. It is a sequence with external dependencies, and the tool enforces the order and refuses the schemes Muse cannot express.

Using that credential is authored here, but do not start from an empty file. Once the connector is connected, scaffold it:

/opt/hatch/skills/skill-creator/bin/scaffold-connector-skill --provider <provider>

It reads the connector from authd and writes a SKILL.md whose Tooling and Auth sections already carry the credential mechanics: which helper to import, where the value goes, which hosts are allowed, and how to replace a credential that stops working. Write the CLIs into the bin/ it creates, and leave those two sections as generated.

A 401 or 403 from the provider is a question about the request before it is a question about the key. Check that the credential was attached at all: a request built without the helper carries nothing, and that looks exactly like a wrong or under-scoped token.

Operating Rules

  1. Preserve working commands and repo conventions; do not invent binaries, paths, or auth flows.
  2. Prefer minimal frontmatter and on-demand loading. Only add metadata the skill actually needs.
  3. Give auth its own section instead of burying it in operating rules.
  4. Use existing setup/auth helpers when they exist. Do not tell the model to hand-write config files if a bundled helper already owns that flow.
  5. Create references/ only when it materially shortens SKILL.md; avoid duplicating the same guidance in both places.
  6. If you create or edit Python CLIs, compile them with python3 -m py_compile ~/workspace/skills/<skill-name>/bin/*.py before reporting success.

Reference Guide

For naming rules, resource-splitting heuristics, templates, and a review checklist, read references/authoring_guide.md.

版本历史

  • 38bbb45 当前 2026-10-18 15:48

同 Skill 集合

opt/hatch/skills/apple-healthkit/SKILL.md
opt/hatch/skills/artifacts/markdown/SKILL.md
opt/hatch/skills/artifacts/pdf/SKILL.md
opt/hatch/skills/artifacts/presentation/SKILL.md
opt/hatch/skills/artifacts/spreadsheet/SKILL.md
opt/hatch/skills/artifacts/testing/SKILL.md
opt/hatch/skills/booking/SKILL.md
opt/hatch/skills/calendly/SKILL.md
opt/hatch/skills/device-data/SKILL.md
opt/hatch/skills/duffel/SKILL.md
opt/hatch/skills/facebook-cli/SKILL.md
opt/hatch/skills/facebook/SKILL.md
opt/hatch/skills/flightaware/SKILL.md
opt/hatch/skills/forget/SKILL.md
opt/hatch/skills/function-health/SKILL.md
opt/hatch/skills/generate_podcast/SKILL.md
opt/hatch/skills/gmail/SKILL.md
opt/hatch/skills/goals/SKILL.md
opt/hatch/skills/google-calendar/SKILL.md
opt/hatch/skills/google-contacts/SKILL.md
opt/hatch/skills/google-drive/SKILL.md
opt/hatch/skills/google-forms/SKILL.md
opt/hatch/skills/google-health-connect/SKILL.md
opt/hatch/skills/google-slides/SKILL.md
opt/hatch/skills/google-tasks/SKILL.md
opt/hatch/skills/granola/SKILL.md
opt/hatch/skills/healthex/SKILL.md
opt/hatch/skills/image-search/SKILL.md
opt/hatch/skills/instagram-messages/SKILL.md
opt/hatch/skills/instagram/SKILL.md
opt/hatch/skills/media-library/SKILL.md
opt/hatch/skills/messenger/SKILL.md
opt/hatch/skills/meta-threads/SKILL.md
opt/hatch/skills/muse_db/SKILL.md
opt/hatch/skills/muse-early-access/SKILL.md
opt/hatch/skills/muse-feedback/SKILL.md
opt/hatch/skills/muse-mail/SKILL.md
opt/hatch/skills/notion/SKILL.md
opt/hatch/skills/opentable/SKILL.md
opt/hatch/skills/outlook-calendar/SKILL.md
opt/hatch/skills/outlook-contacts/SKILL.md
opt/hatch/skills/outlook-mail/SKILL.md
opt/hatch/skills/peloton/SKILL.md
opt/hatch/skills/philips-hue/SKILL.md
opt/hatch/skills/places-search/SKILL.md
opt/hatch/skills/plaid/SKILL.md
opt/hatch/skills/podcast/SKILL.md
opt/hatch/skills/printify/SKILL.md
opt/hatch/skills/self-awareness/SKILL.md
opt/hatch/skills/share-ideas/SKILL.md

元信息

文件数
0
版本
38bbb45
Hash
8abe25b2
收录时间
2026-10-18 15:48

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-05 17:23
浙ICP备14020137号-1