Create Skill Agent
Objective
To assist the user in defining and creating a new Agent Skill by generating the required folder structure and SKILL.md file.
Workflow
- •
Analyze Request:
- •Identify the desired Skill Name (should be
snake_case). - •Identify the Description (Trigger condition).
- •Identify the Instructions/Rules (What the skill actually does).
- •If any info is missing, ask the user or infer reasonable defaults based on context.
- •Identify the desired Skill Name (should be
- •
Scaffold:
- •Target Directory:
.gemini/skills/<skill_name>/(Project local) or~/.gemini/skills/<skill_name>/(Global, if requested). Defaults to Project local. - •Action: Create the directory using
mkdir -p.
- •Target Directory:
- •
Generate Content: Construct the
SKILL.mdcontent using this template:markdown--- name: <skill_name> description: <description> --- # <Skill Name> ## Goal <Detailed goal based on user input> ## Guidelines <The specific instructions provided by the user>
- •
Execute:
- •Write the file using
write_file. - •Notify the user that the skill is created and ready (might require CLI restart or reload depending on the system).
- •Write the file using
Example
User: "Create a skill called 'python_refactor' that always enforces PEP8." Action:
- •mkdir -p .gemini/skills/python_refactor
- •write_file .gemini/skills/python_refactor/SKILL.md with instructions to enforce PEP8.