SkilVaultSign inStart free

Catalogue / scoped-reusable-skill-authoring

scoped-reusable-skill-authoring

Older skill: source not recordedSignedCreates reusable skill drafts from task intent with clear triggers, bounded permissions, valid metadata, and tested packaging. Use for a new capability or workflow skill. Not for silently installing skills or granting unrestricted tools.
---
name: scoped-reusable-skill-authoring
description: Creates reusable skill drafts from task intent with clear triggers, bounded permissions, valid metadata, and tested packaging. Use for a new capability or workflow skill. Not for silently installing skills or granting unrestricted tools.
---

Author a reusable capability

Infer a useful contract

Read the request and relevant conversation to infer purpose, users, inputs, outputs, activation conditions, and exclusions. Propose a descriptive lowercase hyphenated name no longer than 64 characters. Ask only about ambiguities that materially affect behavior; do not make the user repeat clear context. For example, a request to summarize laboratory run logs could become a bounded log-inspection skill rather than an unrelated general automation package.

Obtain explicit human confirmation before creating/overwriting files, installing or enabling a skill, creating supporting files, running commands/tests that change state, or contacting services. Prepare a reviewable draft first. User approval of a draft's purpose is not automatic authorization to execute the skill's future actions.

Match permissions to the purpose

Start with the smallest actual tool set needed. Inspection generally needs read/search tools; generation adds controlled file creation; transformation adds editing; testing/automation may need command execution; interviews may need the runtime's question tool. Distinguish shell permission from permission to run arbitrary commands. Check the target runtime's actual tool names and permission semantics; do not copy a historical capitalization list blindly.

If supported, allowed-tools may express the approved scope. Omitting that field does not reliably mean unrestricted access and cannot override runtime policy. Explain any proposed expansion and keep explicit confirmation gates in the body for writes, deletes, installs, network requests, publishing, and other state changes. Avoid exposing credentials or weakening protections for convenience.

Write metadata that routes correctly

Use name and a third-person description describing capability, useful invocation contexts, key outputs, and what it should not handle. Keep description below 1,024 characters where required and avoid broad trigger words that activate for unrelated tasks. Prefer a YAML folded block when punctuation could break a plain scalar.

An original metadata draft:

---
name: experiment-log-brief
description: >-
  Summarizes approved experiment logs into outcomes, anomalies, and open checks.
  Use for run review or a handoff. Not for altering logs or running experiments.
---

Keep both keys at the same YAML mapping level and parse the result; never rely on visual inspection alone.

Design the operational body

State required context, an ordered method with evidence checks, failure/ambiguity handling, output shape, limitations, and approval boundaries. Use one or two genuinely new scenarios. Teach domain best practices that matter to the task rather than generic claims of expertise. Explain how to report partial results and missing tools without fabricating execution.

Inspect the intended packaging constraints. A single-file skill must include all essential examples, templates, reference knowledge, and compact helper logic inline. Do not reference non-existent bundled files. If the user's runtime explicitly supports and approves a multi-file package, optional templates, reference material, tested scripts, and examples may be created only when they add value; ensure every path is real, included, and described. This authoring workflow itself has no companion helpers.

Choose storage and validate before saving

Offer project storage, commonly .claude/skills/<name>/SKILL.md for a compatible runtime, versus personal storage, commonly ~/.claude/skills/<name>/SKILL.md. A repository suggests project scope but does not authorize sharing through git. Verify actual runtime discovery paths and resolve ownership/conflicts; ask when the choice is ambiguous. Do not overwrite a skill of the same name silently.

Before the approved write, parse frontmatter, validate name/description/tool entries, check parent path and destination containment, and review body for runnable completeness, secrets, approval gates, and a short Never list. Confirm the file's resulting contents after writing. Show created paths and essential behavior, not a claim that the skill is installed if it is merely saved.

Test activation and outcomes

Propose direct invocation, a natural matching request, and a nearby request that should not activate the skill. Test a representative task with controlled inputs and inspect output structure, accuracy, and side effects. Run any executable helper in an approved local sandbox only when its tools are available. Record untested assumptions and missing dependencies. Refine the trigger or method based on observed failure rather than adding arbitrary keywords.

Deliver the draft, permission rationale, intended location, packaged-file inventory, validation results, and suggested trial prompts. Activation/discovery can be runtime-dependent, so verify instead of claiming immediate availability.

Never

  • Install, enable, overwrite, run tests, contact services, or create supporting files without explicit human confirmation.
  • Give blanket tool access because a task sounds complex or assume metadata overrides runtime policy.
  • Ship invalid YAML, fabricated tool names, missing helper paths, or untested code as working.
  • Create a broad keyword-triggered skill that routinely handles unrelated requests.