Gemini Skill Creator
When to use this skill
- User asks to create a new skill for the Antigravity agent
- User mentions building agent capabilities or extending agent functionality
- User requests skill templates or skill structure guidance
- User wants to standardize skill creation across projects
Core Structural Requirements
Every skill you generate must follow this folder hierarchy:
<skill-name>/
āāā SKILL.md (Required: Main logic and instructions)
āāā scripts/ (Optional: Helper scripts)
āāā examples/ (Optional: Reference implementations)
āāā resources/ (Optional: Templates or assets)
YAML Frontmatter Standards
The SKILL.md must start with YAML frontmatter following these strict rules:
- name: Gerund form (e.g.,
testing-code, managing-databases). Max 64 chars. Lowercase, numbers, and hyphens only. No "claude" or "anthropic" in the name.
- description: Written in third person. Must include specific triggers/keywords. Max 1024 chars.
- Example: "Extracts text from PDFs. Use when the user mentions document processing or PDF files."
Writing Principles (The "Claude Way")
When writing the body of SKILL.md, adhere to these best practices:
Conciseness
- Assume the agent is smart
- Do not explain basic concepts (what a PDF is, what a Git repo is)
- Focus only on the unique logic of the skill
Progressive Disclosure
- Keep
SKILL.md under 500 lines
- If more detail is needed, link to secondary files (e.g.,
[See ADVANCED.md](ADVANCED.md))
- Only one level deep for references
Path Standards
- Always use
/ for paths, never \
Degrees of Freedom
Choose the right format based on task flexibility:
- Bullet Points: High-freedom tasks (heuristics, decision-making)
- Code Blocks: Medium-freedom (templates, structured examples)
- Specific Bash Commands: Low-freedom (fragile operations, exact sequences)
Workflow & Feedback Loops
For complex tasks, include:
- Checklists: A markdown checklist the agent can copy and update to track state
- Validation Loops: A "Plan-Validate-Execute" pattern
- Example: Run a script to check a config file BEFORE applying changes
- Error Handling: Instructions for scripts should be "black boxes"
- Tell the agent to run
--help if they are unsure
Skill Creation Workflow
When creating a new skill, follow these steps:
1. Understand Requirements
2. Design Structure
3. Write SKILL.md
4. Create Supporting Files
5. Validate
Output Template
When creating a skill, use this structure:
---
name: [gerund-name]
description: [3rd-person description with triggers]
---
# [Skill Title]
## When to use this skill
- [Trigger 1]
- [Trigger 2]
## Workflow
- [ ] [Step 1]
- [ ] [Step 2]
- [ ] [Step 3]
## Instructions
[Specific logic, code snippets, or rules]
## Resources
- [Link to scripts/ or resources/]
Example Skill Names
Good examples:
testing-code
managing-databases
deploying-applications
processing-pdfs
analyzing-logs
Bad examples:
test (not gerund)
DatabaseManager (not lowercase)
claude-helper (contains "claude")
do_deployment (uses underscore)
Location Guidelines
Project-Specific Skills
Store in: .agent/skills/<skill-name>/
Global Skills
Store in: ~/.agent/skills/<skill-name>/
Global skills are available across all projects and should be used for:
- Universal development workflows
- Cross-project utilities
- Standardized processes
- Reusable templates
Best Practices
- Start Simple: Begin with minimal structure, add complexity only when needed
- Be Specific: Include exact commands for critical operations
- Provide Context: Add "When to use" sections with clear triggers
- Enable Self-Service: Include
--help references for scripts
- Maintain Consistency: Follow naming and structure conventions
- Think Reusability: Design skills to work across different projects
- Document Assumptions: State prerequisites clearly
- Test Instructions: Ensure steps are reproducible
Common Patterns
For Testing Skills
- Include setup/teardown steps
- Provide example test cases
- Document assertion patterns
For Deployment Skills
- Add validation checkpoints
- Include rollback procedures
- Document environment requirements
For Processing Skills
- Define input/output formats
- Include error handling
- Provide sample data
Error Handling
When scripts fail:
- Check script exists and is executable
- Run with
--help to understand usage
- Verify prerequisites are met
- Check environment variables
- Review error messages for specific issues
References
- Original skill creation guide:
/home/bamboosam/teddy/skillcreateinfo.md
- Skills directory:
.agent/skills/ (project) or ~/.agent/skills/ (global)