agentleFS
danielvoglerdanielvogler/ai-skills-library/AGENTS.md

ai-skills-library

AGENTS.md0 starsChanged 6 months agoMITView on GitHub

Instructions and workflow rules for any AI agent (Claude Code, Cursor, Codex, etc.) working with this repository. Read this file fully before touching anything. danielvogler/ai-skills-library is a curated, version-locked distribution of Agent Skills — plain Markdown instruction files that AI coding assistants invoke to perform specialised tasks. It aggregates skills from multiple official upstream GitHub repositories and makes them installable with a single command. Canonical skill files live under .agents/skills/<name>/SKILL.md. Agent-specific directories (.claude/skills/, .gemini/skills/, .codex/skills/) contain symlinks into .agents/. Provenance…

  • Reads credentials
  • Installs packages

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

26 rules. About 0 are common, 13 are distinctive, and 13 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 13

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Before working with this repo, verify these tools are available:

    line 17
  2. Distinctive:

    Check everything is present:

    line 27
  3. Very specific:

    All unreleased changes go under ## [Unreleased]

    line 145
  4. Very specific:

    When cutting a release, rename [Unreleased] to ## [x.y.z] — YYYY-MM-DD and add a new empty [Unreleased] section above it

    line 146
  5. Distinctive:

    Do not add changelog entries for CI-only or docs-only changes unless they affect how contributors use the repo

    line 147
  6. Very specific:

    Run npx skills update to lock the hash in skills-lock.json

    line 178
  7. Very specific:

    Update CHANGELOG.md under ## [Unreleased] → ### Added

    line 180
  8. Very specific:

    Update profiles/*.json — add to every profile where this skill belongs

    line 181
  9. Very specific:

    Create .agents/skills/<name>/SKILL.md following the agentskills spec, then add symlinks in .claude/skills/, .gemini/skills/, and …

    line 186
  10. Very specific:

    Do not add it to skills-lock.json manually — local skills are intentionally absent from the lock

    line 187
  11. Very specific:

    Add to CHANGELOG.md, relevant profiles/*.json, and README.md

    line 189
  12. Distinctive:

    Do this before starting any other skill work to avoid stale-hash conflicts.

    line 199
  13. Distinctive:

    Every time you add or remove a skill, ask: does this skill belong in one or more profiles?

    line 213
  14. Distinctive:

    Keep profiles lean: include what the team actually needs, not everything tangentially related

    line 230
  15. Very specific:

    Add or remove the skill row under the correct ### section.

    line 241
  16. Very specific:

    If a new upstream was added: add a row with owner/repo, SPDX license ID, and skill count.

    line 245
  17. Distinctive:

    If a skill count changed: update the count for that upstream.

    line 246
  18. Very specific:

    Update the number in ![Skills] at the top of README.md.

    line 251
  19. Distinctive:

    Do NOT update README for internal refactors, hook changes, or CI-only changes.

    line 257
  20. Distinctive:

    Before committing a skill (local or upstream):

    line 263
  21. Distinctive:

    After opening a PR, do not push additional commits unless addressing review feedback

    line 278
  22. Very specific:

    Do not edit skills-lock.json manually — the CLI manages it

    line 284
  23. Very specific:

    Do not commit .env, *.key, *.pem, or anything under secrets/

    line 285
  24. Distinctive:

    Do not amend commits that have already been pushed

    line 286
  25. Distinctive:

    Do not squash or rebase on main without explicit instruction

    line 287
  26. Distinctive:

    Do not add skills to profiles that haven't been added to the repo yet

    line 288

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

Instructions and workflow rules for any AI agent (Claude Code, Cursor, Codex, etc.) working with this repository. Read this file fully before touching anything.


What this repo is

danielvogler/ai-skills-library is a curated, version-locked distribution of Agent Skills — plain Markdown instruction files that AI coding assistants invoke to perform specialised tasks. It aggregates skills from multiple official upstream GitHub repositories and makes them installable with a single command.

Canonical skill files live under .agents/skills/<name>/SKILL.md. Agent-specific directories (.claude/skills/, .gemini/skills/, .codex/skills/) contain symlinks into .agents/. Provenance and content hashes are locked in skills-lock.json. This repo ships no application code.


Prerequisites

Before working with this repo, verify these tools are available:

ToolPurposeInstall
gitVersion controlpre-installed on most systems
ghGitHub CLI — PRs, releases, API accessbrew install gh or https://cli.github.com
node / npxskills CLI — add, update, remove skillshttps://nodejs.org or brew install node
pipxRun skills-ref validate without a venvbrew install pipx
python3Scripting and hash computationpre-installed on macOS

Check everything is present:

git --version && gh --version && npx --version && pipx --version

Initial setup

# 1. Clone the repo
git clone https://github.com/danielvogler/ai-skills-library.git
cd ai-skills-library

# 2. Pull latest upstream skill content
npx skills update

# 3. Authenticate gh if not already done
gh auth login

Using skills in another project

# Install a single skill into a project — always pass --agent explicitly
# (see "Known issue" notes below for why)
cd ~/work/my-project
npx skills add danielvogler/ai-skills-library --skill terraform-skill --agent claude-code

# Install a curated team profile (see profiles/ directory)
curl -sL https://raw.githubusercontent.com/danielvogler/ai-skills-library/main/scripts/install-profile.sh \
  | bash -s analytics-engineering

# List all available skills
npx skills add danielvogler/ai-skills-library --list

# Global install (all agents on this machine)
npx skills add danielvogler/ai-skills-library --skill karpathy-guidelines -g

# Target a specific agent (Cursor, etc.)
npx skills add danielvogler/ai-skills-library --skill terraform-skill --agent cursor

Known issue: direct GitHub installs from this repo currently fail with No valid skills found — the skills CLI misreads our own skills-lock.json as the target project's "already installed" lock and filters out every skill. Use ./scripts/install-from-clone.sh --skill <name> instead (see the README's Troubleshooting section for details). This is an upstream CLI bug, not a problem with the skill names in this repo.

Always pass --agent explicitly. Omitting it lets the skills CLI auto-detect the agent you're running in and silently install to every "universal" agent directory it knows about (15+ agents) plus the detected one — there's no interactive agent picker once the CLI detects it's running inside an agent. --agent claude-code (or cursor, opencode, gemini, etc.) restricts the install to exactly the agent you name.


Commit convention

Use Conventional Commits.

<type>(<scope>): <short imperative description>

Types:

TypeWhen to use
featA new skill or profile is added
fixA bug or error in an existing skill is corrected
choreDependency sync (npx skills update), lock file update, tooling
docsREADME, CONTRIBUTING, CHANGELOG, or other documentation only
ciGitHub Actions workflow changes
refactorReorganising skill files or profile structure without changing content
removeA skill or profile is deleted

Scopes (use the skill name, profile name, or area):

feat(gcp-bigquery): add BigQuery skill
fix(langgraph-state-machines): correct checkpointer example
chore(lock): sync upstream skills
docs(readme): add team profiles section
ci(validate): add skills validation workflow

One commit per logical unit of work. Do not batch unrelated skill additions into a single commit.


Changelog

Maintain CHANGELOG.md using Keep a Changelog format. Update it in the same commit as the change — never retroactively.

## [Unreleased]

### Added
- `gcp-bigquery` skill — BigQuery SQL, partitioning, cost optimisation

### Changed
- `langgraph-state-machines` — updated checkpointer API examples for LangGraph 0.3

### Fixed
- `gitlab-cicd-basics` — corrected `needs` vs `dependencies` explanation

### Removed
- `deprecated-skill-name` — superseded by `new-skill-name`

Rules:

  • All unreleased changes go under ## [Unreleased]
  • When cutting a release, rename [Unreleased] to ## [x.y.z] — YYYY-MM-DD and add a new empty [Unreleased] section above it
  • Do not add changelog entries for CI-only or docs-only changes unless they affect how contributors use the repo

Skills workflow

Where skills live in this repo

Canonical skill files live in .agents/skills/<name>/SKILL.md. Agent-specific directories (.claude/skills/, .gemini/skills/, .codex/skills/) are symlinks into .agents/ — zero duplication. When downstream projects install FROM this repo, the --agent flag controls where skills land on their machine:

# Claude Code
npx skills add danielvogler/ai-skills-library --skill terraform-skill --agent claude-code
# Cursor
npx skills add danielvogler/ai-skills-library --skill terraform-skill --agent cursor
# OpenCode
npx skills add danielvogler/ai-skills-library --skill terraform-skill --agent opencode
# Gemini CLI
npx skills add danielvogler/ai-skills-library --skill terraform-skill --agent gemini

The CLI reads skill content from .agents/skills/ in this repo and installs it into the agent-appropriate directory in the target project. Skills themselves (SKILL.md) are agent-agnostic Markdown — the directory location is the only agent-specific thing.

Adding a skill from an upstream source

npx skills add <owner>/<repo> --copy --skill <name> --agent claude-code -y

Then immediately — all four steps are mandatory, not optional:

  1. Run npx skills update to lock the hash in skills-lock.json
  2. Validate: pipx run --spec git+https://github.com/agentskills/agentskills.git#subdirectory=skills-ref skills-ref validate .agents/skills/<name>
  3. Update CHANGELOG.md under ## [Unreleased] → ### Added
  4. Update profiles/*.json — add to every profile where this skill belongs
  5. Update README.md — both the "Skills by Domain" table AND the "Upstream sources" table (count + license). The pre-commit hook will block your commit if README.md is not staged when skills-lock.json changes.

Authoring a local skill (no upstream)

  1. Create .agents/skills/<name>/SKILL.md following the agentskills spec, then add symlinks in .claude/skills/, .gemini/skills/, and .codex/skills/ pointing to ../../.agents/skills/<name>
  2. Do not add it to skills-lock.json manually — local skills are intentionally absent from the lock
  3. Validate it: pipx run --spec git+https://github.com/agentskills/agentskills.git#subdirectory=skills-ref skills-ref validate .agents/skills/<name>
  4. Add to CHANGELOG.md, relevant profiles/*.json, and README.md

Syncing upstreams

npx skills update
git add skills-lock.json .agents/skills/ .claude/skills/ .gemini/skills/ .codex/skills/
git commit -m "chore(lock): sync upstream skills"

Do this before starting any other skill work to avoid stale-hash conflicts.

Removing a skill

npx skills remove <name>

Then remove it from any profiles/*.json that reference it, update README.md, and add a ### Removed entry to CHANGELOG.md.


Profiles

Every time you add or remove a skill, ask: does this skill belong in one or more profiles?

Profiles live in profiles/<name>.json. Each file has this shape:

{
  "name": "<profile-name>",
  "description": "One sentence describing the team this is for.",
  "skills": [
    "skill-name-one",
    "skill-name-two"
  ]
}

Rules:

  • Skills in a profile must exist in .agents/skills/ — do not reference skills that haven't been added yet
  • Keep profiles lean: include what the team actually needs, not everything tangentially related
  • full-stack.json is auto-derived — do not hand-edit it; it always lists every skill in the lock file

README maintenance

Every skill addition or removal requires three README changes. This is enforced by the pre-commit hook.

Skills by Domain table

Add or remove the skill row under the correct ### section. If it comes from a new upstream source, add a new section. Keep the skill count in the section heading accurate.

Upstream sources table

  • If a new upstream was added: add a row with owner/repo, SPDX license ID, and skill count.
  • If a skill count changed: update the count for that upstream.
  • License must be the actual SPDX ID from the repo — check with gh api repos/<owner>/<repo> --jq '.license.spdx_id'. If no LICENSE file exists, write no license file and add a footnote.

Skill count badge

Update the number in [![Skills](https://img.shields.io/badge/skills-N-informational)] at the top of README.md.

What else triggers a README update

  • Profile added or changed → update "Team Profiles" section
  • Install command or CLI flags change → update "Quick install" section
  • Do NOT update README for internal refactors, hook changes, or CI-only changes.

Quality bar for skills

Before committing a skill (local or upstream):

  • skills-ref validate passes with no errors
  • The skill has a clear, specific trigger condition — agents must know exactly when to invoke it
  • Examples in the skill use real, runnable commands (not pseudocode)
  • No secrets, tokens, or personal data appear anywhere in the skill files
  • The skill name is kebab-case and matches the directory name exactly

Branch and PR rules

  • Branch name: <type>/<short-description> — e.g. feat/gcp-skills, fix/langgraph-checkpointer, chore/sync-upstreams
  • One PR per domain or logical batch — do not mix GCP skills and GitLab skills in one PR
  • PR title must follow the same conventional commit format as the commit messages
  • After opening a PR, do not push additional commits unless addressing review feedback

What NOT to do

  • Do not edit skills-lock.json manually — the CLI manages it
  • Do not commit .env, *.key, *.pem, or anything under secrets/
  • Do not amend commits that have already been pushed
  • Do not squash or rebase on main without explicit instruction
  • Do not add skills to profiles that haven't been added to the repo yet

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.