Skills system for context-aware prompt injection.
Skills are Markdown files that provide specialized instructions for
specific tasks. They live in ~/.config/minga/skills/ (global) and
.minga/skills/ (project-local). Each skill is a directory containing
a SKILL.md file with YAML-style frontmatter and instruction body.
Skill format
---
name: plan
description: Plan mode for complex tasks
activates_on:
- plan
- design
- scope
- feature
---
# Planning Instructions
When planning a feature, always...Loading
Skills can be activated:
- Explicitly via
/skill:namein chat - Automatically when user prompts match
activates_onkeywords
Multiple skills can be active simultaneously.
Summary
Functions
Returns skills whose activates_on keywords match the given text.
Discovers all available skills from global and project directories.
Finds a skill by name from the discovered skills.
Formats active skills into a system prompt section.
Parses a SKILL.md file into a skill struct.
Returns a human-readable summary of all discovered skills.
Types
Functions
Returns skills whose activates_on keywords match the given text.
Performs case-insensitive word boundary matching. A keyword "plan" matches "let's plan this" but not "airplane".
Discovers all available skills from global and project directories.
Project-local skills override global skills with the same name.
Finds a skill by name from the discovered skills.
Formats active skills into a system prompt section.
Parses a SKILL.md file into a skill struct.
Extracts YAML-style frontmatter (between --- delimiters) for metadata
and uses the remainder as instruction text.
Returns a human-readable summary of all discovered skills.