skills-managing
2
总安装量
1
周安装量
#67937
全站排名
安装命令
npx skills add https://github.com/vidyfoo/antigravity-skill-engine --skill skills-managing
Agent 安装分布
cline
1
openclaw
1
cursor
1
Skill 文档
ASE Skill Management Guide (V3.1)
Purpose
Comprehensive guide for creating and managing skills in the Antigravity Skill Engine (ASE), following the Registry V3.1 architecture with domain-based organization and semantic matching.
When to Use This Skill
- Creating or adding new skills
- Importing skills from external sources
- Understanding registry structure and routing
- Debugging skill activation issues
- Maintaining skill documentation
System Architecture (V3.1)
Directory Structure
Skills are organized by domain categories:
.agent/skills/
âââ registry.json # V3.1 ç´¢å¼ (å¯ä¸ççæ¥æº)
â
âââ 1-dev/ # å¼åå
â âââ {skill-name}/SKILL.md
âââ 2-audit/ # 审计å
â âââ {skill-name}/SKILL.md
âââ 3-sys/ # ç³»ç»å
â âââ {skill-name}/SKILL.md
âââ 4-tools/ # å·¥å
·å
â âââ {skill-name}/SKILL.md
âââ external/ # å¤é¨ä¾èµ
âââ {skill-name}/SKILL.md
Skill Folder Structure
{skill-name}/
âââ SKILL.md (required) # Main skill content
âââ resources/ # Templates, guides, assets
âââ scripts/ # Optional executable tooling
Registry V3.1 Schema
{
"version": "3.1.0",
"categories": {
"1-dev": "DEV (å¼åå)",
"2-audit": "AUDIT (审计å)",
"3-sys": "SYS (ç³»ç»å)",
"4-tools": "TOOLS (å·¥å
·å)",
"external": "EXTERNAL (å¤é¨ä¾èµ)"
},
"skills": {
"X.Y": {
"id": "skill-name",
"name": "X.Y Display Name",
"category": "category-id",
"description": "Copied from SKILL.md frontmatter",
"skill_path": ".agent/skills/{category}/{skill-name}/SKILL.md"
}
}
}
å ³é®åæ´ (V3.1): ç§»é¤äº
intent_keywordsï¼ä» 使ç¨descriptionè¿è¡è¯ä¹å¹é ã
Mode Selection
| Mode | Trigger | Description |
|---|---|---|
| CREATE | create, new, add | Create a new skill from scratch |
| INGEST | import, clone, ingest | Import an existing skill from git |
| HARVEST | harvest, archive, save resource | Archive a reusable resource to a skill |
1. CREATE Mode (Protocol)
Step 1: Determine Category
| Category | Use When |
|---|---|
1-dev |
åè½æ¶æãå¼åè§èãä¼è¯ç®¡ç |
2-audit |
代ç 审计ãè°è¯ãæµè¯ |
3-sys |
çæç»´æ¤ãæè½ç®¡çãææ¡£åå§å |
4-tools |
ææ¡£å¤çãè§è§è®¾è®¡ |
external |
å ¬å¸ä¸å±ãå¤é¨ä¾èµ |
Step 2: Create Directory
mkdir -p .agent/skills/{category}/{skill-name}/resources
Step 3: Write SKILL.md
Required Frontmatter:
---
name: skill-name
description: Clear description including trigger scenarios. This is used for semantic matching - be descriptive!
---
Body Structure:
- Purpose (what this skill does)
- When to Use (activation conditions)
- Mode Selection (if multi-mode)
- Protocols (step-by-step instructions)
- Resources (links to reference files)
- Anti-Patterns (what to avoid)
Step 4: Register in registry.json
"X.Y": {
"id": "skill-name",
"name": "X.Y Display Name",
"category": "{category}",
"description": "Copy from SKILL.md frontmatter",
"skill_path": ".agent/skills/{category}/{skill-name}/SKILL.md"
}
2. INGEST Mode (Protocol)
- Clone:
git clone {repo} .agent/skills/_import - Select: Ask user which skill to import
- Categorize: Determine target category (1-dev, 2-audit, etc.)
- Install: Move to
.agent/skills/{category}/{skill-name}/ - Register: Add entry to
registry.json - Clean: Remove
_importdirectory
3. HARVEST Mode (Protocol)
When reusable resources are identified during task execution (or manually triggered):
Step 1: Identify Target Skill
- Which skill produced or would benefit from this resource?
- If unclear, default to the currently active skill.
Step 2: Generalize Content
- Remove project-specific references (file paths, names)
- Replace hardcoded values with
{{PLACEHOLDER}}syntax - Add usage instructions as YAML frontmatter or comments
Step 3: Archive
write_to_file .agent/skills/{category}/{skill}/resources/{resource-name}.md
Step 4: Document
Update the skill’s SKILL.md Resource Files section with a link to the new resource.
Key Principles
| Principle | Rule |
|---|---|
| 500-Line Rule | SKILL.md ä¸è¶ è¿ 500 è¡ |
| Progressive Disclosure | è¯¦ç»ææ¡£æ¾ resources/ |
| Gerund Naming | 使ç¨å¨åè¯åç¼ (*-ing) |
| Single Source | description ä» SKILL.md å¤å¶å° registry |
Best Practices
â DO:
- Keep SKILL.md concise and actionable
- Write rich, descriptive
descriptionfor semantic matching - Use gerund naming (e.g.,
architecting,debugging) - Test activation with real prompts
- Include anti-patterns section
â DON’T:
- Exceed 500 lines in SKILL.md
- Use overly generic descriptions
- Create flat directories (use category subdirectories)
- Duplicate description between SKILL.md and registry (copy, don’t rewrite)
Troubleshooting
Quick Debug:
- Is skill listed in
registry.json? - Is
skill_pathpointing to correct location? - Is SKILL.md valid YAML frontmatter + markdown?
- Is
descriptionrich enough for semantic matching?
Resource Files
| Topic | File |
|---|---|
| Ingestion Protocol | ingestion-protocol.md |
| Skill Review Checklist | skill-review.md |
| MCP Integration | mcp-integration-guide.md |
Skill Status: COMPLETE â
Line Count: < 200 â
Registry Version: V3.1 â