skilo 0.2.0

CLI tool for Agent Skills development
Documentation

skilo

A CLI tool for Agent Skills development.

Installation

From source

# Clone the repository
git clone https://github.com/manuelmauro/skilo.git
cd skilo

# Install using make
make install

# Or directly with cargo
cargo install --path .

Requirements

  • Rust 1.92.0 (pinned in rust-toolchain.toml)

Usage

Create a new skill

# Create a skill with the default template (hello-world)
skilo new my-skill

# Use a specific template
skilo new my-skill --template minimal

# Specify the script language
skilo new my-skill --lang python

# Add a description and license
skilo new my-skill --description "My awesome skill" --license MIT

Available templates:

  • hello-world (default) - A minimal working skill with a greeting script
  • minimal - Bare-bones skill with only SKILL.md
  • full - Complete skill with all optional directories
  • script-based - Skill focused on script execution

Supported languages: python, bash, javascript, typescript

Validate skills

# Lint a skill directory
skilo lint path/to/skill

# Lint all skills in current directory
skilo lint .

# Strict mode (treat warnings as errors)
skilo lint --strict .

# Auto-fix simple issues
skilo lint --fix .

Format skills

# Format SKILL.md files (includes table alignment)
skilo fmt path/to/skill

# Check formatting without modifying
skilo fmt --check .

# Show diff of changes
skilo fmt --diff .

Formatting includes:

  • YAML frontmatter normalization
  • Markdown table column alignment

Run all checks

# Run lint + format check (ideal for CI)
skilo check .

Output formats

All commands support multiple output formats:

skilo lint --format text .   # Human-readable (default)
skilo lint --format json .   # JSON output
skilo lint --format sarif .  # SARIF for code scanning integrations

Skill Structure

A valid skill follows this structure:

my-skill/
├── SKILL.md           # Required: manifest with YAML frontmatter
├── scripts/           # Optional: executable scripts
├── references/        # Optional: additional documentation
└── assets/            # Optional: static resources

SKILL.md Format

---
name: my-skill
description: A brief description of what the skill does.
license: MIT
---

# My Skill

Detailed documentation goes here.

Configuration

Create a .skilorc.toml file for project-specific settings:

[lint]
strict = true
max_body_lines = 500

[fmt]
sort_frontmatter = true
indent_size = 2
format_tables = true

[new]
default_license = "MIT"
default_template = "hello-world"
default_lang = "python"

CI Integration

Add skilo validation to your GitHub Actions workflow:

# .github/workflows/skills.yml
name: Validate Skills

on:
  push:
    branches: [main]
  pull_request:

jobs:
  validate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Install Rust
        uses: dtolnay/rust-toolchain@stable

      - name: Install skilo
        run: cargo install skilo@0.2.0

      - name: Lint skills
        run: skilo lint . --strict

      - name: Check formatting
        run: skilo fmt . --check

To upload results to GitHub's Security tab, use SARIF output:

      - name: Run skilo check
        run: skilo lint . --format sarif > results.sarif
        continue-on-error: true

      - name: Upload SARIF
        uses: github/codeql-action/upload-sarif@v3
        with:
          sarif_file: results.sarif

Exit Codes

Code Meaning
0 Success
1 Validation errors found
2 Invalid arguments or configuration
3 I/O error

License

MIT OR Apache-2.0