| name | agentskills |
| description | Utilizes the agentskills CLI tool to recursively scan local directories or public GitHub profiles for workspace rule conventions (GEMINI.md), parsing them with gemini-3.5-flash to aggregate capabilities and identify duplication. |
| license | Apache-2.0 |
| metadata | {"version":"1.0.0"} |
Skill: Utilizing the agentskills CLI Tool 🧠
This global skill instructs AI agents on when and how to leverage the agentskills CLI tool to inspect workspace rule patterns, query repository stacks, and coordinate instruction-sets dynamically.
🎯 Intent & Trigger Conditions
AI agents should invoke this skill when:
- Entering a New Workspace: To discover local tech stack boundaries, linter parameters, or custom developer rules.
- Evaluating Instruction Duplication: Before writing redundant READMEs, guidelines, or testing criteria inside a repository.
- Auditing Codebase Standards: To generate executive landscapes of a developer's local code directory or GitHub profile.
📋 Supported Agent & Workspace Rule Files
The CLI tool dynamically walks local directories or crawls GitHub repositories to locate and aggregate workspace rule formats for different agent models:
- Gemini:
GEMINI.md
- Claude:
CLAUDE.md
- OpenCode / Beads:
AGENTS.md
- Codex / Cursor:
.cursorrules, individual rules inside .cursor/rules/*.mdc, and SYSTEM_PROMPT.md
🛠️ Execution & Commands
0. Download & Installation (If CLI is Missing)
If the agentskills CLI is not installed on the system, download and install the latest release with:
curl -fsSL https://raw.githubusercontent.com/ghchinoy/agentskills/main/install.sh | bash
This script resolves the latest GitHub release, downloads and extracts the appropriate binary for your system architecture, installs it to /usr/local/bin (falling back to ~/.local/bin), and registers the global agent skills to ~/.config/agentskills/skills/.
Alternatively, if you have Go installed on your system, you can compile and install agentskills directly from source:
go install github.com/ghchinoy/agentskills@latest
1. Locate the Binary
- When working directly in the development repository, compile the latest state using
make build and invoke the compiled binary using its local path: ./bin/agentskills.
- If installed globally via the script, invoke it directly as
agentskills.
2. Verify Config State
Before calling Vertex AI or the Gemini API, confirm the backend configuration is correct:
./bin/agentskills config show
Expected default values:
backend: vertex
location: global
project_id: your active GCP Project ID (auto-detected if unset)
📂 Operational Workflows
Crawl & Analyze Public Profiles
To compile an agent landscape, tech stack, and duplication analysis of a public GitHub profile:
./bin/agentskills scan --github <target-username> -o ./reports/skills_report.md
Scan Local Workspaces Recursively
To map and analyze local developer files on your computer recursively:
./bin/agentskills scan --local <path-to-directory> -o ./reports/local_skills_report.md
Deep Codebase Analysis (Deep Scan)
To perform deep codebase analysis (cloning remote repositories or scanning local build files to extract file structures, project dependencies like go.mod or package.json, and sample scripts to enrich analysis):
./bin/agentskills scan --github <target-username> --deep -o ./reports/deep_skills_report.md
Programmatic JSON Outputs (For Consuming Agents)
For automated agent workflows, run scans with the --json flag. This outputs clean structured JSON to stdout (suitable for piping to jq or custom tools) while printing status logs to stderr:
./bin/agentskills scan --local . --json -o ./reports/my_report.md
JSON Schema:
{
"files": [
{
"source": "local|github",
"name": "File display name",
"path": "/absolute/path/to/rule/file",
"tokens": 1234
}
],
"total_input_tokens": 1234,
"report_tokens": 3400,
"reduction_percentage": -45.0,
"report": {
"summary": {
"key_findings": ["string"],
"tech_stack": ["string"]
},
"skills": [
{
"name": "string",
"description": "string",
"capabilities": ["string"]
}
],
"duplications": [
{
"description": "string",
"files_affected": ["string"]
}
],
"structure_recommendations": [
{
"file": "string",
"target_directory": "scripts|references|assets",
"recommendation": "string",
"rationale": "string"
}
]
},
"output_file": "./reports/my_report.md"
}
Force Cache Refresh
To bypass local cached copies of GEMINI.md files (stored under ~/.cache/agentskills/) and perform a fresh download from GitHub raw CDN:
./bin/agentskills scan --force-refresh
Querying the Discovered Skills Catalog
The tool automatically compiles and updates a persistent catalog of all unique discovered skills under ~/.config/agentskills/catalog.json on every scan. Consuming agents can inspect this registry without making any AI or network calls:
agentskills catalog
agentskills catalog --json
⚠️ Hygiene & Safety Gates
- Never Check in Reports: All generated reports (e.g.
skills_report.md or files inside ./reports/) are dynamically generated run outputs. Do NOT commit them to Git.
- API Rate Limiting: Avoid using
--force-refresh repeatedly to prevent hitting public GitHub API endpoints. Leverage the default local XDG cache where possible.
- ADC Validation: If you encounter
credentials not found or 404 Not Found API errors, ensure that gcloud auth application-default login is valid and the aiplatform.googleapis.com service is fully enabled on the active Google Cloud project.
- Auto-created Directories: The tool automatically runs
os.MkdirAll on the parent directories of the output path (-o). Consuming agents do not need to call mkdir manually before saving.
- GCP Project Auto-detection: If the
project_id key in the configuration is empty, the tool will query gcloud config get-value project and automatically save the active project to the config, eliminating configuration friction.
- Scale Safety Gate: Scans are capped at 10 files to prevent API rate-limiting and context window bloat. If a recursive scan path yields more than 10 agent rule files, the command will fail. To bypass this check for broad scans, pass the
--force-scan flag:
agentskills scan --local /path --force-scan