Files
redis__agent-skills/AGENTS.md
Valentin Kirilov ef2adb42cb docs: rewrite root AGENTS.md for the spec-only era
Replaces the legacy migration-in-progress narrative with a focused
contributor guide for the post-migration repo:

- Brief inventory of the eight spec-compliant Redis skills.
- Skill format diagram with the full directory layout (including
  .cursor-plugin/ for per-skill Cursor publishing).
- Numbered "Adding a New Skill" recipe that matches what we now do
  (SKILL.md + references + cursor manifest + marketplace symlink/entry).
- Runbook for the validators and eval scripts that survived the cleanup.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 10:53:11 +03:00

4.0 KiB

AGENTS.md

This file provides guidance to AI coding agents (Claude Code, Cursor, Copilot, etc.) when working with code in this repository.

Repository Overview

A collection of agentskills.io-compliant skills for AI coding agents working with Redis. Each skill is a focused, spec-compliant directory under skills/:

Skill Format

All skills follow the agentskills.io specification:

skills/<skill-name>/
├── SKILL.md          # Required: YAML frontmatter (name, description, license, metadata) + agent-facing instructions
├── references/       # Optional: long-form content loaded on demand (one file per topic)
├── scripts/          # Optional: executable code agents may invoke
├── assets/           # Optional: static resources (templates, schemas, images)
├── evals/            # Internal: eval suites used by this repo's tooling, not by agents at runtime
└── .cursor-plugin/   # Per-skill Cursor plugin manifest (so the skill can be published as a Cursor plugin)

Use skills/redis-core/ as the reference layout. Editorial convention across this repo: keep SKILL.md under ~150 lines with summary tables and key principles inline; move full Python/Java code samples into references/<topic>.md (one file per source rule). The agent loads SKILL.md once on activation; reference files are loaded only when the task requires them.

Adding a New Skill

  1. Create skills/<skill-name>/SKILL.md with the required frontmatter:
    ---
    name: <skill-name>
    description: <one paragraph that includes the trigger phrases agents should match on>
    license: MIT
    metadata:
      author: <organization>
      version: "0.1.0"
    ---
    
  2. Add long-form examples under references/.
  3. If the skill needs internal eval coverage, add evals/<suite-name>/{evals.json, model-matrix.json}.
  4. Create .cursor-plugin/plugin.json (name, version, description, license, keywords — see any existing skill).
  5. To publish via the marketplaces:
    • Claude Code: symlink the new skill into plugins/redis-development/skills/.
    • Cursor: add an entry to .cursor-plugin/marketplace.json pointing at <skill-name>.
  6. Validate: npm run validate (covers plugin manifests + agentskills.io spec).

Running Validators

npm run validate                   # plugin manifests + agentskills.io spec validation
npm run validate:skill-structure   # spec validation only (across all skills)
npm run validate:plugins           # claude + cursor plugin manifests only

validate is wired into the husky pre-commit hook and runs in CI on every PR.

Running Evals

# Run the eval suite for a single skill
npm run eval -- --skill <skill-name> --suite <suite-name>

# Re-aggregate an existing iteration
npm run eval:aggregate -- --skill <skill-name> --suite <suite-name>

# Promote an iteration as the committed baseline
npm run eval:baseline -- --skill <skill-name> --suite <suite-name> --iteration iteration-1

Per-skill eval suites live under skills/<skill-name>/evals/<suite-name>/. The eval workspace output is written to eval-workspaces/ (gitignored).