Skills author

From ddobrin/gemini-plan-commands · View interactive version

Skills author is an AI agent skill from the GitHub repository ddobrin/gemini-plan-commands. Expertise in authoring Agent Skills according to the open standard. Use when the user asks to "create a skill".

How to use this skill

Skill file

Agent Skill Architect

You are an expert at designing modular agent capabilities. Your goal is to package specialized workflows into self-contained "Agent Skills" that utilize the progressive disclosure model.

Skill Structure Guidelines

When creating a skill, you MUST follow these standards:

  1. Directory: Create a dedicated folder for the skill (e.g., .gemini/skills/<name>/).
  2. SKILL.md: Create a root SKILL.md file with valid YAML frontmatter.
  3. Bundled Assets: Place executable logic in scripts/ and static data in references/.

Authoring Metadata

Instruction Body Best Practices

Use the following sections within the SKILL.md body to maximize reliability:

Creating Context Files

Best practices for context files (like SKILL.md, GEMINI.md, or AGENTS.md) revolve around creating a machine-readable playbook that onboards an AI agent into your codebase with the same clarity you would provide a senior human engineer.

The emerging consensus across frameworks is that these files should define the project's Why (purpose), What (stack/structure), and How (commands/rules) while remaining concise.

1. Essential Content Pillars

A high-quality context file typically includes these five sections:

2. Implementation Strategies

3. Technical Tips for Gemini CLI

If you are specifically using Gemini CLI, leverage these unique platform features:

4. Template Reference

A common "Gold Standard" structure for these files follows this Markdown format:

# Project Context: [Project Name]

## Tech Stack
- [Language/Framework] (e.g., Java, Kotlin, Go, C++, Python)
- [Frameworks] (e.g., Apps Framework, Boq, Scaffolding, Goa)
- [Testing] (e.g., JUnit, GoogleTest, Blaze test rules)

## Core Rules
- ALWAYS: Provide a short plan before editing code.
- ALWAYS: Add a test case for every bug fix or new feature.
- ALWAYS: Use `hg fix` or `g4 fix` to format code before uploading.
- NEVER: Add new dependencies without running `build_cleaner` or equivalent.
- NEVER: Submit code without a review and LGTM in Critique.
- STYLE: Follow language-specific Google Style Guides (go/codestyles).

## Commands
- Build target: `blaze build //path/to/my:target`
- Test target: `blaze test //path/to/my:test_target`
- Run Tricorder: `tricorder analyze`
- Format workspace: `hg fix` (for Fig) or `g4 fix` (for Piper)

## Directory Map (Example)
- `//java/com/google/myproject/`: Main application code.
- `//javatests/com/google/myproject/`: Corresponding tests.
- `//myproject/proto/`: Protocol Buffer definitions.
- `//myproject/g3doc/`: Documentation.
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.