This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a skills source repository — one of potentially many that feed into the agentic-catalog. It contains agentic packs with skills, MCP server configurations, AI-optimized documentation, and catalog metadata for Red Hat platforms.
Contributors work here to create, improve, and validate skills. An internal process periodically fetches content from this repository (and others like it) to build the unified catalog and marketplace. This repo does not serve the marketplace directly — it is a source of skills that the catalog aggregates.
agentic-plugins/
├── rh-sre/ # Site Reliability Engineering pack (reference implementation)
├── rh-developer/ # Developer tools pack
├── ocp-admin/ # OpenShift administration pack
├── rh-virt/ # Virtualization management pack
├── rh-basic/ # Getting started pack
├── rh-ai-engineer/ # AI Engineering pack
├── rh-automation/ # Automation pack
├── rh-support-engineer/ # Support engineering pack
├── eval/ # Skill evaluation reports (report.json + report.md per skill)
├── scripts/ # Validation and CI helper scripts
├── catalog/ # JSON Schema for .catalog/collection.yaml validation
│ └── schema.yaml
└── .claude/skills/ # Repo-level Claude Code skills (contribution, linting, compliance)
This file defines the JSON Schema used by validate_collection_schema.py and validate_collection_compliance.py to validate each pack's .catalog/collection.yaml. It is not related to the catalog marketplace repository — it is a validation artifact that ensures catalog metadata is well-formed before the catalog build process consumes it.
Each pack is persona-specific and follows this structure:
<pack-name>/
├── AGENTS.md # AI Context Module instruction routing (persona, skills, rules)
├── README.md # Pack description, persona, target marketplaces
├── mcps.json # MCP server configurations (uses env vars for credentials)
├── .catalog/ # Collection metadata consumed by the catalog build process
│ ├── collection.yaml # Pack catalog definition (golden source for catalog)
│ └── collection.json # Deterministic JSON mirror of collection.yaml
├── skills/ # Specialized task executors (including orchestration skills)
│ └── <skill>/
│ └── SKILL.md # Skill definition with YAML frontmatter
└── docs/ # AI-optimized knowledge base (optional, rh-sre reference)
Each pack's .catalog/ directory contains metadata that describes the pack for the marketplace. This metadata stays here, alongside the skills it describes. The catalog build process reads it from this repo to assemble the unified marketplace. The golden sources are always SKILL.md, AGENTS.md, README.md, and mcps.json — .catalog/ is derived from them, never the other way around.
Skills are added directly to this repository, inside an existing pack. The contributor opens a PR, skills are reviewed and merged, and maintainers own them from that point. Use /agentic-contribution-skill in Claude Code or follow CONTRIBUTING.md.
Skills (skills/<skill-name>/SKILL.md):
- Single-purpose task executors
- Encapsulate specific tool access and domain knowledge
- Invoked via the
Skilltool - Structure: YAML frontmatter + implementation guide
Key Pattern: Skills encapsulate tools; orchestration skills invoke other skills. Never call MCP tools directly — always go through skills.
CRITICAL: EVERY SKILL and AGENT must comply with:
- Tier 1: agentskills.io specification (AUTOMATED via linter)
- Tier 2: Repository design principles (MANUAL review)
The catalog's internal process applies its own evaluation and assigns a scorecard, but skills must pass Tier 1 and Tier 2 here before merging.
Before committing any skill:
-
Run automated validation (Tier 1):
uv run python scripts/validate_skills_tier1.py <pack>/skills/<skill-name>/SKILL.md
-
Manual review (Tier 2):
- Review SKILL_DESIGN_PRINCIPLES.md for complete requirements
- Use appropriate template (general or collection-specific)
-
Full validation:
make validate
Documentation:
- SKILL_DESIGN_PRINCIPLES.md - Complete design principles, templates, and rationale
MCP servers are configured in <pack>/mcps.json:
{
"mcpServers": {
"server-name": {
"command": "podman|docker|npx",
"args": ["..."],
"env": {
"VAR_NAME": "${VAR_NAME}"
},
"security": {
"isolation": "container",
"network": "local",
"credentials": "env-only"
}
}
}
}Critical: Never hardcode credentials. Always use ${ENV_VAR} references.
The rh-sre pack demonstrates advanced documentation patterns for token optimization:
Located in docs/.ai-index/:
semantic-index.json- Document metadata with semantic keywordstask-to-docs-mapping.json- Pre-computed doc sets for common workflowscross-reference-graph.json- Document relationship graph
Usage Pattern (for AI agents reading rh-sre docs):
- Read
semantic-index.jsonfirst (~200 tokens) - Match task keywords to relevant docs
- Load only required docs using progressive disclosure
- Follow cross-references for related content
All docs include YAML frontmatter:
---
title: Document Title
category: rhel|ansible|openshift|insights|references
sources:
- title: Official Red Hat Doc Title
url: https://docs.redhat.com/...
date_accessed: YYYY-MM-DD
tags: [keyword1, keyword2]
semantic_keywords: [phrases for AI discovery]
use_cases: [task_ids]
related_docs: [cross-references]
last_updated: YYYY-MM-DD
---Source Attribution: All content derived from official Red Hat documentation (see docs/SOURCES.md)
- Lowercase with dash separators:
rh-sre,ocp-admin - Red Hat prefix:
rh- - Acronyms for brevity:
ocp(OpenShift Container Platform),virt(Virtualization)
- Skills:
skills/<skill-name>/SKILL.md(uppercase SKILL.md) - Docs: Lowercase with dashes, categorized by directory
- Create pack folder:
<pack-name>/ - Add
README.mdwith description, persona, marketplaces - Add
AGENTS.mdwith persona, skill-first rule, intent routing table, MCP servers, and global rules (see rh-ai-engineer/AGENTS.md for reference) - Create
skills/directory - Add
mcps.jsonwhen the pack integrates MCP servers (use${VAR}for secrets) - Update main
README.mdtable with link
- Create
skills/<skill-name>/SKILL.md - Define YAML frontmatter with mandatory fields:
name,description(agentskills.io spec)model(inherit|sonnet|haiku),color(cyan|green|blue|yellow|red|magenta) - Repository requirement- Optional:
metadatafor custom fields (author, priority, version)
- Follow SKILL_DESIGN_PRINCIPLES.md for:
- Section structure and ordering
- Prerequisites with verification
- Workflow with precise parameters
- Dependencies declaration
- Include concrete examples and complete error handling
- Update the pack's
AGENTS.mdintent routing table to include the new skill - Test with
Skilltool invocation - Validate with
uv run python scripts/validate_skills_tier1.py <pack>/skills/<skill-name>/SKILL.md
Collection-Specific Standards:
- rh-virt: Follow
rh-virt/SKILL_TEMPLATE.mdfor enhanced quality standards including mandatory Common Issues and Example Usage sections
- Create doc in appropriate category:
docs/{rhel,ansible,openshift,insights,references}/ - Add complete YAML frontmatter with official sources
- Follow content structure: Overview -> When to Use -> Main Content -> Related Docs
- Lead with code examples (production-ready, not toy examples)
- Update
docs/INDEX.mdnavigation structure - Update
docs/SOURCES.mdwith source URLs
- CVE vulnerability data and risk assessment
- System inventory and compliance
- Remediation playbook generation
- Requires:
LIGHTSPEED_CLIENT_ID,LIGHTSPEED_CLIENT_SECRETenv vars
- Playbook execution and job tracking
- Status monitoring
- Container-isolated execution
The most complete pack, demonstrating:
- Full skill orchestration (10 skills)
- Orchestration skills (remediation skill orchestrates 6 skills)
- AI-optimized documentation system
- MCP server integration
- Red Hat Lightspeed platform integration
When creating new packs, use rh-sre as the architectural reference.
Demonstrates skill quality standardization:
- Comprehensive skill templates (
SKILL_TEMPLATE.md) - Risk-based color coding (cyan/green/blue/yellow/red/magenta)
- Mandatory Common Issues and Example Usage sections
- Consistent section ordering and formatting
Use rh-virt as reference for packs requiring high consistency and maintainability.
- Skills encapsulate tools - Never call MCP tools directly; always invoke skills
- Orchestration skills invoke other skills - Complex workflows delegate to specialized skills
- agentskills.io compliance - All skills follow the official specification
- Progressive disclosure - Load docs incrementally based on task needs
- Environment variables for secrets - Never hardcode credentials
- Never expose credential values - Check env vars are set, but NEVER print their values in output
- MCP server integration - Use
mcps.jsonwith environment variable references
- Official sources only - Document all sources in SOURCES.md
- Production-ready examples - No toy code, include error handling
- Persona-focused design - Each pack serves specific user roles
Validation:
- Design principles and requirements: SKILL_DESIGN_PRINCIPLES.md
- Automated linter (Tier 1):
uv run python scripts/validate_skills_tier1.py - Full validation:
make validate