Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Examples

Ready-to-run agents that demonstrate common axe patterns. Copy any agent's directory into your axe config and go.

Setup

  1. Find your config directory:

    axe config path

    If it doesn't exist yet:

    axe config init
  2. Copy the example agents and skills into your config:

    cp examples/code-reviewer/code-reviewer.toml "$(axe config path)/agents/"
    cp examples/commit-msg/commit-msg.toml "$(axe config path)/agents/"
    cp examples/summarizer/summarizer.toml "$(axe config path)/agents/"
    cp -r examples/code-reviewer/skills/code-review "$(axe config path)/skills/"
    cp -r examples/commit-msg/skills/commit-msg "$(axe config path)/skills/"
    cp -r examples/summarizer/skills/summarizer "$(axe config path)/skills/"
  3. Set your API key:

    export ANTHROPIC_API_KEY="your-key-here"
  4. Run:

    axe run code-reviewer

Agents

code-reviewer

Reviews code diffs for bugs, style issues, and improvements.

git diff | axe run code-reviewer
git diff main..feature | axe run code-reviewer

commit-msg

Generates conventional commit messages from staged changes.

git diff --cached | axe run commit-msg

Use it in a git hook — add to .git/hooks/prepare-commit-msg:

#!/bin/sh
git diff --cached | axe run commit-msg > "$1"

summarizer

Condenses text into key points. Works with any text input.

cat article.md | axe run summarizer
curl -s https://example.com/page | axe run summarizer
pbpaste | axe run summarizer