一键导入
build-a-skill
Use when creating or modifying a skill: follow SKILL.md rules, define commands and dependencies, validate locally, version correctly, and publish
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when creating or modifying a skill: follow SKILL.md rules, define commands and dependencies, validate locally, version correctly, and publish
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | build-a-skill |
| slug | build-a-skill |
| description | Use when creating or modifying a skill: follow SKILL.md rules, define commands and dependencies, validate locally, version correctly, and publish |
| version | 1.0.1 |
| author | {"name":"askill","github":"askill"} |
| tags | ["official","development","askill"] |
Use this skill when creating or updating a skill that must work with askill CLI and registry conventions.
A valid skill requires one entry file:
SKILL.md (required)Optional supporting files:
scripts/ for executable commandsassets/ for templates or reference materialRecommended layout:
my-skill/
├── SKILL.md
├── scripts/
│ └── main.js
└── assets/
---
name: my-skill
slug: my-skill
description: One-line purpose of the skill
version: 0.1.0
---
# My Skill
## Overview
What this skill does and when to use it.
## Usage
Step-by-step instructions the agent can execute.
Required:
name - lowercase letters/numbers/hyphens onlydescription - concise summaryStrongly recommended:
version - valid semver (1.0.0, 1.1.0-beta.1)slug - publish identifier (@author/slug)Optional:
author, tags, dependencies, commands, repository, licenseDependencies format:
@author/skill-name or @author/skill-name@^1.2.0gh:owner/repo@skill-name or gh:owner/repo/pathCommands format:
commands:
analyze:
run: node scripts/analyze.js
description: Analyze current repository
_setup:
run: npm ci
description: Install command dependencies
Your markdown body should be executable guidance:
Good instruction pattern:
Use this loop while building:
# 1) scaffold
askill init ./my-skill
# 2) validate schema/fields
askill validate ./my-skill/SKILL.md
# 3) install locally for testing
askill add ./my-skill -a claude-code -y
# 4) run commands
askill run my-skill:<command>
# 5) inspect installed state
askill list
When iterating quickly, reinstall with askill add ./my-skill -y after changes.
Publishing uses slug as publish intent.
askill login --token ask_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
askill whoami
askill publish ./my-skill
Alternative (publish from GitHub SKILL.md URL):
askill publish --github https://github.com/owner/repo/blob/main/path/to/SKILL.md
Important:
askill publish requires name, slug, and valid semver version@author/<slug>version before republishing updatesaskill submit <github-url> requests indexing and can trigger slug-driven publish flowsaskill validate passes with no errorsrun or description in commands.claude/skills/... paths instead of askill runFor updates:
versionFor breaking changes, increment major version.