Skip to content

Latest commit

 

History

History
104 lines (74 loc) · 5 KB

File metadata and controls

104 lines (74 loc) · 5 KB

Agent Skills

中文文档

A collection of AI agent skills — self-contained knowledge bases that can be loaded by AI coding assistants (e.g., Claude Code, Copilot CLI, Cursor) to gain expertise on specific topics.

What is a Skill?

A skill is a structured Markdown document with YAML frontmatter that serves as a comprehensive reference on a topic. AI agents load skills to provide more accurate, context-aware assistance without needing to search documentation in real time.

Each skill lives in its own directory under skills/<name>/ and consists of:

  • SKILL.md — Entry point with frontmatter metadata and a quick-reference guide
  • references/ — Modular deep-dive files for detailed syntax, edge cases, and workflows

Available Skills

Skill Description
hugo-to-markdown Hugo documentation and content conversion reference — inspect local Hugo config, shortcodes, render hooks, front matter, and mounted content roots to produce safe standard Markdown exports
postgresql-cli PostgreSQL interactive terminal (psql) reference — meta-commands, CLI options, formatting, data import/export, scripting, and advanced workflows
rclone-cli Rclone cloud storage manager reference — terminal-based upload, download, sync, copy, move, mount, backup, filtering, encryption, bisync, and multi-provider remote management
redis-cli Redis command-line interface reference — Redis querying, keyspace inspection, monitoring, latency analysis, ACL and cluster management, scripting, and module workflows

Installation

npx skills (Recommended)

The skills CLI is a universal installer that supports Claude Code, Cursor, Copilot, Codex, and 40+ other agents.

# Install all skills from this repo
npx skills add chaunsin/agent-skills

# Install a specific skill
npx skills add chaunsin/agent-skills --skill postgresql-cli

# List available skills before installing
npx skills add chaunsin/agent-skills --list

# Install globally (available across all projects)
npx skills add chaunsin/agent-skills -g

# Install to specific agents
npx skills add chaunsin/agent-skills -a claude-code -a cursor

# Check if any installed skills have updates
npx skills check

# Update all installed skills to the latest version
npx skills update

# List all installed skills (project + global)
npx skills list

# Remove a specific skill
npx skills remove postgresql-cli

Manual

# Copy a skill into the Claude Code skills directory
cp -r skills/<skill-name> ~/.claude/skills/

Usage

Once installed, skills activate automatically based on their trigger keywords (defined in the description frontmatter field). No manual configuration is needed — when you ask a question related to a skill's domain, the agent will load the relevant reference.

For example, with the postgresql-cli skill installed, asking "how to list all tables in psql" or "psql \d commands" will trigger the skill.

Repository Structure

agent-skills/
├── skills/                  # Skill directories
│   ├── postgresql-cli/      # PostgreSQL interactive terminal (psql)
│   │   ├── SKILL.md         # Skill entry point
│   │   └── references/      # Detailed reference files
│   ├── hugo-to-markdown/    # Hugo docs and content to standard Markdown
│   │   ├── SKILL.md         # Skill entry point
│   │   ├── references/      # Hugo conversion rules
│   │   └── scripts/         # Rule inventory and validation helpers
│   ├── rclone-cli/          # Rclone cloud storage manager
│   │   ├── SKILL.md         # Skill entry point
│   │   ├── references/      # Detailed reference files
│   │   └── scripts/         # Helper scripts
│   └── redis-cli/           # Redis command-line interface
│       ├── SKILL.md         # Skill entry point
│       └── references/      # Detailed reference files
├── CLAUDE.md                # Claude Code workspace instructions
├── LICENSE                  # Apache 2.0
└── README.md                # This file

License

Apache License 2.0