The mini-a toolkit

Make mini-a
your own.

Reusable agents, slash commands, hooks, and skills. Find a template, make it yours, and put it to work.

ONE FILE. YOUR WAY OF WORKING.
# Start with an agent template
mini-a --agent > my-agent.agent.md

# Customize it, then run your goal
mini-a agent=my-agent.agent.md \
  goal="Review this project"
Model, tools, rules, and persona — together in one portable file.
Explore the agents gallery for ready-to-use configurations.

Add Them To mini-a

Use the default home folder when you want the customization available in every session:

mkdir -p ~/.openaf-mini-a/commands ~/.openaf-mini-a/skills ~/.openaf-mini-a/hooks
1. Add a slash command

Create a markdown template in ~/.openaf-mini-a/commands/<name>.md:

Follow these instructions exactly.

Target: {{arg1}}
Raw args: {{args}}
Parsed args: {{argv}}

Run it in the console:

/my-command repo-a --fast "include docs"

Run it directly from the CLI:

mini-a exec="/my-command repo-a --fast \"include docs\""

Load commands from extra directories:

mini-a extracommands=/path/to/team-commands,/path/to/project-commands

Notes:

2. Add a skill

mini-a supports classic markdown skills and self-contained YAML skills. Common layouts:

~/.openaf-mini-a/skills/my-skill/SKILL.yaml
~/.openaf-mini-a/skills/my-skill/SKILL.md
~/.openaf-mini-a/skills/my-skill.md

Generate a starter YAML skill:

mkdir -p ~/.openaf-mini-a/skills/my-skill
mini-a --skills > ~/.openaf-mini-a/skills/my-skill/SKILL.yaml

Minimal YAML skill example:

schema: mini-a.skill/v1
name: my-skill
summary: Review a change carefully

body: |
  Review the current change carefully.
  Focus on correctness, edge cases, and missing tests.

Invoke it with either form:

/my-skill src/auth
$my-skill src/auth

Load skills from extra directories:

mini-a extraskills=/path/to/shared-skills,/path/to/project-skills

Notes:

3. Add a hook

Create a hook definition in ~/.openaf-mini-a/hooks/*.yaml, *.yml, or *.json:

name: block-dangerous-shell
event: before_shell
command: "echo \"$MINI_A_SHELL_COMMAND\" | grep -E '(rm -rf|mkfs|dd if=)' >/dev/null && exit 1 || exit 0"
timeout: 1500
failBlocks: true

Common hook events:

Load hooks from extra directories:

mini-a extrahooks=/path/to/team-hooks,/path/to/project-hooks

Notes:

4. Keep custom files in your repo instead of your home folder

This is useful for team-shared skills, commands, and hooks:

mini-a \
  extracommands=.mini-a/commands \
  extraskills=.mini-a/skills \
  extrahooks=.mini-a/hooks

You can combine repo-local folders with the defaults in ~/.openaf-mini-a/ on the same run.


Add Your Own

Have an agent, slash command, hook or skill worth sharing? Open a pull request on GitHub.