Skill creator

From gabrielmoreira/agent-skills-mirror · View interactive version

Skill creator is an AI agent skill from the GitHub repository gabrielmoreira/agent-skills-mirror. Create, revise, and validate AstrBot Skills built around SKILL.md instruction bundles. Use when the user asks to create, scaffold, improve, package, or review a Skill for an AstrBot workspace, local installation, or plugin.

How to use this skill

Skill file

Create AstrBot Skills

Build small, reusable instruction bundles that another agent can discover and follow reliably.

Follow the core design rules

Establish the intended behavior

Before writing files, identify:

  1. Concrete requests that should trigger the Skill.
  2. Expected outputs or actions.
  3. Required tools, permissions, and runtime assumptions.
  4. Failure cases that need explicit guardrails.

Ask only for information that materially changes the result. Infer ordinary details from the current task and environment.

Choose the target

Use the runtime declared in the system instructions and the location requested by the user. Do not infer the runtime from filesystem paths.

In local mode, common targets are:

If no location is specified in local mode, create the Skill under skills/<skill-name> in the current AstrBot workspace. Creating or modifying a locally installed Skill requires administrator access and is enforced by the filesystem tools. If permission is denied, use the workspace target and explain the fallback.

In sandbox mode, do not use <astrbot-data> or attempt to install a Skill into the host AstrBot instance. Create it under skills/<skill-name> in the current sandbox workspace, and treat it as sandbox-scoped unless the runtime provides a dedicated persistence or release workflow.

Treat plugin-provided Skills as read-only during normal runtime. Modify a plugin Skill only when the user is working in that plugin's source tree and has explicitly requested the change. If the requested target is not writable, create the Skill in the workspace and explain how to install or move it.

Name the Skill

Plan only necessary resources

For each repeated operation, decide whether plain instructions are sufficient:

Do not create empty resource directories.

Write SKILL.md

Start with YAML frontmatter containing only name and description:

---
name: example-skill
description: Describe what the Skill does and the concrete requests or situations that should trigger it.
---

Make the description specific enough for discovery. Put all trigger guidance in the description because AstrBot loads the body only after the Skill is selected.

Write the body as direct instructions:

Initialize or update files

For a new Skill, prefer the bundled initializer when Python and shell execution are available:

python <this-skill-directory>/scripts/init_skill.py <skill-name> --path <target-skills-root> --description <description>

Add --resources scripts,references,assets with only the directories that are needed. The initializer refuses to overwrite an existing Skill.

If shell execution is unavailable, create the directory and UTF-8 SKILL.md with astrbot_file_write_tool. Create optional resources only after their content is known.

When updating a Skill, read its complete SKILL.md and directly referenced resources before editing. Preserve useful behavior and avoid unrelated restructuring.

Validate

When Python and shell execution are available, run:

python <this-skill-directory>/scripts/validate_skill.py <created-skill-directory>

Otherwise verify manually:

Run any bundled scripts on representative safe inputs. Fix validation or execution failures before presenting the Skill.

Finish

Report the created or updated location, included resources, validation performed, and any runtime or activation step still required. Do not enable a globally installed Skill or change an AstrBot configuration unless the user requested it.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.