A curated registry of rules and commands for AI coding agents (Cursor, Claude Code)
This repository contains the source content for agentlib.sh - an open registry of reusable rules and commands for AI coding agents.
agentlib.sh is a community-driven collection of AI agent resources:
- Commands: Manual slash commands for repeatable workflows
- Skills: Auto-discovered capabilities with supporting files
- Agents/Subagents: Specialized AI assistants with isolated context
- Rules (Cursor only): Persistent guidelines for code generation
These resources help you get more consistent, high-quality output from AI coding assistants.
agentlib.sh/
└── resources/
├── cursor/
│ ├── rules/ # Persistent code guidelines
│ ├── commands/ # Manual slash commands
│ ├── skills/ # Auto-discovered capabilities
│ └── subagents/ # Specialized AI assistants
└── claude-code/
├── commands/ # Manual slash commands
├── skills/ # Auto-discovered capabilities
└── agents/ # Specialized AI assistants
Each resource is a markdown file with frontmatter:
- Frontmatter contains metadata (description, type, etc.)
- Content follows standard markdown format
Visit agentlib.sh to browse, search, and discover resources.
Commands & Rules (single files):
curl https://raw.githubusercontent.com/YOUR_ORG/agentlib.sh/main/resources/cursor/commands/quick-commit/content.md > .cursor/commands/quick-commit.mdSkills (folder with SKILL.md):
mkdir -p .claude/skills/skill-name
curl https://raw.githubusercontent.com/YOUR_ORG/agentlib.sh/main/resources/claude-code/skills/skill-name/content.md > .claude/skills/skill-name/SKILL.mdAgents/Subagents (files with frontmatter):
curl https://raw.githubusercontent.com/YOUR_ORG/agentlib.sh/main/resources/claude-code/agents/agent-name/content.md > .claude/agents/agent-name.mdWe welcome contributions! See CONTRIBUTING.md for detailed guidelines.
- Fork this repository
- Create a new resource:
resources/{platform}/{type}/{resource-name}/content.md - Add frontmatter and content
- Submit a pull request
- Clear and focused on one problem
- Includes examples and use cases
- Tested in target platform
- Properly tagged
All resources use markdown with YAML frontmatter:
---
description: Clear 2-4 sentence description
resource_type: command
command_syntax: /command-name
---
# Command Title
Content here...---
description: Clear 2-4 sentence description
resource_type: skill
---
# Skill Title
Content here...---
name: agent-name
description: When to use this agent
resource_type: agent
tools: Read, Grep, Bash
model: sonnet
---
You are an expert in [domain]...---
description: Clear 2-4 sentence description
resource_type: rule
source_url: https://reference.com # Optional
---
# Rule Title
Content here...Note: Fields like slug, name, tagline, and tags are auto-generated by the registry sync system.
- Website: agentlib.sh
- Community-driven and open source
Made with ❤️ by the Armagnac & AI coding community