Skip to content

User's Guide: agentskills 📖

Welcome to the agentskills user manual. This guide outlines everything you need to build, configure, authorize, and run the tools to scan and analyze agent rule files.


Before using agentskills, ensure your system meets the following requirements:

  • Go Runtime: Go 1.26.4 or higher installed and added to your $PATH. This is the version go.mod declares, and the Go toolchain enforces it: a build on an older toolchain fails with go.mod requires go >= 1.26.4 unless it is allowed to download the declared version automatically (the default GOTOOLCHAIN=auto does; GOTOOLCHAIN=local does not).
  • Google Cloud SDK (For Vertex AI Backend): The gcloud command line interface installed.
  • GitHub Access: Public repositories containing a GEMINI.md file in their root directories (or matching local files).

To install the latest pre-compiled binary globally:

Terminal window
curl -fsSL https://raw.githubusercontent.com/ghchinoy/agentskills/main/install.sh | bash

Alternatively, if you have Go installed on your system, you can compile and install agentskills directly from source:

Terminal window
go install github.com/ghchinoy/agentskills@latest

We provide a standard Makefile to automate compilation:

This compiles the application and outputs the binary inside the ./bin/ directory:

Terminal window
make build

To wipe compiled binaries and start fresh:

Terminal window
make clean

Verify code correctness and adhere to coding gates:

Terminal window
make test
make lint

agentskills conforms to the XDG Base Directory Specification, which separates runtime configurations and heavy cache stores on your operating system:

  • Config File: ~/.config/agentskills/config.yaml
  • Cache Directory: ~/.cache/agentskills/

To display your active workspace parameters, run:

Terminal window
./bin/agentskills config show

You can set configuration keys globally using the CLI:

Terminal window
# Set your active Google Cloud Project ID
./bin/agentskills config set project_id <your-gcp-project-id>
# Set your target generative backend (vertex or gemini)
./bin/agentskills config set backend vertex
# Set the serving endpoint location
./bin/agentskills config set location global
# Set your default target GitHub username
./bin/agentskills config set github_user ghchinoy

agentskills supports two generative AI backend pathways depending on your credentials:

Section titled “1. Vertex AI Backend (Recommended / Default)”

This backend routes prompts through enterprise Google Cloud Vertex AI infrastructure.

  1. Authorize your personal SDK profile:
    Terminal window
    gcloud auth login
  2. Generate local Application Default Credentials (ADC) files: This allows the unified Go GenAI SDK to discover your authentication token:
    Terminal window
    gcloud auth application-default login
  3. Ensure Vertex AI API is enabled on your target project:
    Terminal window
    gcloud services enable aiplatform.googleapis.com --project=<your-project-id>
  4. Configure the CLI:
    Terminal window
    ./bin/agentskills config set project_id <your-project-id>
    ./bin/agentskills config set location global
    ./bin/agentskills config set backend vertex

This backend targets the direct Google AI Studio developer API endpoints.

  1. Obtain a Gemini API key from Google AI Studio.
  2. Configure the key inside the configuration file:
    Terminal window
    ./bin/agentskills config set backend gemini
    ./bin/agentskills config set api_key <your-api-key>
    Alternatively, you can export the key as an environment variable:
    Terminal window
    export GEMINI_API_KEY="AIzaSy..."

The scan command runs file discovery, caches downloads locally, and generates the Markdown report.

1. Scan your GitHub Profile (using Config Defaults)

Section titled “1. Scan your GitHub Profile (using Config Defaults)”

If you have set github_user in your config file, you can run the scan directly:

Terminal window
./bin/agentskills scan

To override the default config and crawl a different public profile:

Terminal window
./bin/agentskills scan --github <another-username>

To parse workspace rules on your local drive (such as your projects workspace folder):

Terminal window
./bin/agentskills scan --local /home/user/projects

By default, the report writes to ./skills_report.md. To direct the final Markdown to a custom path:

Terminal window
./bin/agentskills scan -o /path/to/custom_report.md

If you have recently added or edited a GEMINI.md file in one of your online repositories and want the scanner to bypass local XDG cache files and fetch fresh copies from GitHub raw CDN:

Terminal window
./bin/agentskills scan --force-refresh

For scripting or automated pipelines, run the scan with the --json flag. The tool outputs a structured JSON document of file details and analyzed skills to stdout while routing log messages to stderr:

Terminal window
./bin/agentskills scan --local . --json -o ./reports/json_report.json

To prevent accidental API rate-limiting or large context token charges, scans are restricted to 10 files. If a recursive scan yields more than 10 agent rule files, it fails. Use the --force-scan flag to bypass this gate:

Terminal window
./bin/agentskills scan --local /broad/path --force-scan

8. Progressive Disclosure & Spec Alignment

Section titled “8. Progressive Disclosure & Spec Alignment”

In accordance with the Agent Skills Specification, rule files should follow progressive disclosure (keeping instructions/SKILL.md under 5,000 tokens / 500 lines) to prevent context bloat and ensure fast, accurate agent retrieval.

The scan command automatically evaluates each rule file against these limits. If a file is too large or contains dense inline code/tables, the report outputs specific restructuring recommendations:

  • scripts/: Recommends extracting inline shell/Python scripts.
  • references/: Recommends moving detailed technical instructions, APIs, or secondary specs.
  • assets/: Recommends moving configuration profiles, data tables, or templates.

agentskills maintains a persistent database of all unique discovered skills under the user's XDG config folder (~/.config/agentskills/catalog.json). Scans automatically upsert new capabilities and merge duplicate listings.

Consuming agents or human developers can query this database instantly without making network or AI API calls.

To print a formatted list of all unique skills, their descriptions, capabilities, and sources:

Terminal window
./bin/agentskills catalog

To fetch the raw JSON catalog:

Terminal window
./bin/agentskills catalog --json