Skip to content

Latest commit

 

History

History
151 lines (108 loc) · 5.82 KB

File metadata and controls

151 lines (108 loc) · 5.82 KB

AI Agent Skills & Sub-Agents

Central repository for managing AI agent skills and sub-agents. Designed to be symlinked into tool-specific configuration directories (Cursor, Claude Code, etc.).

Skills Overview

General Skills

Skill Description
git-commit-messages Commit message structure, wording, and conventions.
git-branch-workflow Best practices for creating, naming, and managing Git branches.
create-pull-request Creates a draft pull request.
list-pull-requests Lists all open pull requests and their descriptions for a repository.
fix-npm-security-vulnerabilities Full workflow: audits and fixes npm security vulnerabilities in repositories containing a package.json, through changelog review and PR creation.
slack Interact with Slack - read conversations, threads, and messages, and reply to messages.
code-reviewer Reviews changed files and presents findings as a human-readable report grouped by severity.
review-bitbucket-pr Reviews a Bitbucket pull request end-to-end and posts accepted findings as inline comments on the PR.

JSON Output Skills

Skills intended for programmatic use by other skills. They return structured JSON and have user-invocable: false set so they are hidden from the / menu and only invoked by other skills.

Skill Description
code-reviewer-json Reviews changed files and outputs findings as a structured JSON array (file, line, severity, description). Used by review-bitbucket-pr.

Agents Overview

Agent Description
code-reviewer Expert code reviewer providing constructive feedback on correctness, maintainability, security, and performance.

Structure

skills/          # One subdirectory per skill, each containing a SKILL.md
agents/          # One .md file per sub-agent

Skills

Each skill is a directory with a SKILL.md file (and optional supporting files):

skills/
└── my-skill/
    ├── SKILL.md          # Required — instructions and metadata
    ├── reference.md      # Optional — detailed docs
    └── scripts/          # Optional — utility scripts

SKILL.md uses YAML frontmatter:

---
name: my-skill
description: What this skill does and when to use it.
---

# My Skill

Instructions for the agent...

Agents

Each sub-agent is a single .md file with YAML frontmatter and a system prompt body:

agents/
├── code-reviewer.md
└── debugger.md
---
name: code-reviewer
description: Reviews code for quality and best practices.
permissionMode: plan        # Claude Code — restrict permissions (see table below)
readonly: true              # Cursor — restrict write access
---

You are a code reviewer. When invoked, analyze the code and provide
specific, actionable feedback.

Tool-specific frontmatter

Field Tool Values
permissionMode Claude Code default, acceptEdits, dontAsk, delegate, bypassPermissions, plan
readonly Cursor true / false — restricts the sub-agent to read-only operations
model Both Claude Code: sonnet, opus, haiku, inherit. Cursor: fast, inherit, or model ID
is_background Cursor true / false — run the sub-agent in the background without blocking

Unknown fields are ignored by each tool, so both can coexist in the same file.

Skill vs. Sub-Agent

Skills and sub-agents solve different problems:

Aspect Skill Sub-Agent
What it is Reusable instructions, knowledge, or workflows Isolated worker with its own context
Key benefit Share content across contexts Context isolation — only a summary returns to caller
Interaction Interactive — runs inside the main agent, which keeps talking to the user Autonomous — works on its own and presents a finished outcome
Best for Reference material, invocable workflows Tasks that read many files, parallel work, specialized workers

Skills come in two flavors:

  • Reference skills provide knowledge the agent uses throughout a session (e.g., an API style guide).
  • Action skills tell the agent to do something specific (e.g., a /deploy workflow).

Sub-agents are useful when you need context isolation or when the context window is getting full. A sub-agent might read dozens of files or run extensive searches, but the main conversation only receives a summary.

Symlink Setup

Symlink the directories into your AI tool's config location. Back up any existing directories first.

Codex CLI

mkdir -p ~/.codex
ln -s /path/to/ai/skills ~/.codex/
ln -s /path/to/ai/agents ~/.codex/

Claude Code / GitHub Copilot CLI

mkdir -p ~/.claude
ln -s /path/to/ai/skills ~/.claude/
ln -s /path/to/ai/agents ~/.claude/

Cursor

ln -s /path/to/ai/skills ~/.cursor/
ln -s /path/to/ai/agents ~/.cursor/

Removing symlinks

To remove a symlink without deleting the repo contents, use rm on the link itself (adjust the path for your tool):

rm ~/.cursor/skills
rm ~/.cursor/agents