When building custom skills for Claude, you might find that the output is too generic or doesn't follow the exact file structure and content format you need. Simple instructions aren't always enough to guarantee precision.
This lesson demonstrates a powerful technique to gain fine-grained control over AI agent behavior: adding an Examples section to your skill's SKILL.md file. By linking to a separate, detailed example markdown file, you can provide a clear blueprint for the AI to follow.
Workflow demonstrated in this lesson:
- Add an 
## Examplessection to an existingSKILL.mdfile. - Create a link within this section to a dedicated example file (e.g., 
GIT-STATUS-EXAMPLES.md). - In the example file, define the exact folder structure and file content template you expect the AI to generate.
 - Run a prompt related to the example, and watch the AI read the linked file and produce output that perfectly matches your specification.
 
Key benefits:
- Achieve Precise Formatting: Enforce specific file naming conventions, directory structures, and content layouts.
 - Improve Reliability: Get consistent, predictable results for complex tasks.
 - Lazy Loading of Context: The AI only reads the detailed example file when it's relevant to the task, saving context window space.
 - Separate Concerns: Keep your main skill file clean by moving complex examples into their own dedicated files.
 
Summary
This lesson teaches you how to improve the precision of AI agent outputs by providing detailed examples within a skill definition. The key technique involves adding an Examples section to your SKILL.md file that links to another markdown file containing a template. This template explicitly defines the desired folder structure and file content. When the AI is given a task that matches the example, it will read the linked file and use it as a strict blueprint, resulting in perfectly formatted and structured output. This approach is highly efficient as the detailed examples are only loaded into context when needed, and it allows for clear separation between the skill's main logic and its complex formatting rules.
Prompts
Terminal Commands
Code Snippets
The SKILL.md file is updated to include a specific example for Git Status which links to another file for more details.
The GIT-STATUS-EXAMPLES.md file provides a detailed template for both the file path and the file content.
