# Infrastructure Skills

> Programmatic discovery of agent SKILL.md files under configured public repo roots (infrastructure, scripts, projects/templates, resource-pool templates, docs/prompts, .agents/skills, and .agents/workflows). Use when enumerating skills, validating .agents/skill_manifest.json, writing docs/_generated/skills_index.md, checking docs/prompts workflow contracts, or wiring editor/Codex/Hermes/MCP automation. Exposes discover_skills, write_skill_manifest, manifest_matches_discovery, and check_skill_contracts.

- Skill: `docxology/infrastructure-skills` (Agent Skill, multi-file: 11 files)
- Install (CLI): `npx get-skill add docxology/infrastructure-skills`
- Raw SKILL.md: https://api.skillmd.com/api/skills/docxology/infrastructure-skills/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Product & Planning
- Author: docxology (https://skillmd.com/u/docxology)
- Updated: 2026-11-16
- Page: https://skillmd.com/skills/docxology/infrastructure-skills

---


# Skill Descriptor — infrastructure/skills

## Module Overview

Machine-readable discovery for all `SKILL.md` descriptors used by Cursor and similar agents.

## Capabilities

- **Recursive scan**: `**/SKILL.md` under the default roots `infrastructure/`, `scripts/`, `projects/templates/`, `fonds/templates/`, `rules/templates/`, `tools/templates/`, `docs/prompts/`, `.agents/skills/`, and `.agents/workflows/` (configurable)
- **Agent Skills lanes**: root and public-exemplar `.agents/skills/<name>/SKILL.md` files are included so Codex/Hermes descriptors also appear in `.agents/skill_manifest.json` and MCP `list_skills`
- **Frontmatter parsing**: YAML `name` and `description` (full dict available)
- **Manifest I/O**: Write or verify `.agents/skill_manifest.json`
- **Generated index**: Write `docs/_generated/skills_index.md` for human browsing
- **Workflow contracts**: Validate `docs/prompts/**/SKILL.md` metadata (`version`, `last_updated`, `status`, `data_access_level`, `task_type`, `modes`, `related_skills`)
- **Runtime parity**: Audit or reversibly link the pinned `.agents/skills`
  collection into Codex, Claude Code, and Hermes with
  `python -m infrastructure.skills runtime-status|runtime-install`

## CLI

```bash
uv run python -m infrastructure.skills write
uv run python -m infrastructure.skills write-index
uv run python -m infrastructure.skills write --roots infrastructure docs/prompts .agents/workflows
uv run python -m infrastructure.skills check
uv run python -m infrastructure.skills check-contracts
uv run python -m infrastructure.skills list-json
uv run python -m infrastructure.skills runtime-status
```

## See Also

- [`discovery.py`](discovery.py) — API implementation
- [`contracts.py`](contracts.py) — docs/prompts workflow metadata contracts
- [`infrastructure/SKILL.md`](../SKILL.md) — human-oriented hub list

