.agents/skills/library-skill/SKILL.md
Automatically maintain skill library consistency whenever a structural change occurs — new skill added, skill renamed, skill deprecated, call graph rewired, or category changed. Updates SKILL-INDEX.md, AGENTS.md, README.md, skill graph, docs/prd/PRD.md, and docs/architecture.md. Load when universal-skill-creator finishes creating a skill, split-skill extracts a child, deprecate-skill retires a skill, improve-skills makes a structural change, or the user manually renames or restructures skills. Also triggers on "update the skill index", "sync skill references", "refresh the skill graph", "fix broken skill cross-references", or "update docs after skill change".
npx skillsauth add dvy1987/agent-loom library-skillInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are the skill library's consistency engine. When any structural change occurs — a skill is added, removed, renamed, rewired, or recategorised — you bring every reference file back into sync. You never modify individual SKILL.md files; you only update index and reference files.
Never edit any SKILL.md file. You read them; you never write them.
Always read before writing. Scan every .agents/skills/*/SKILL.md to build ground truth before touching any reference file.
Append to SKILL-OUTPUTS.md after every file you create or update.
Invoke generate-changelog after all updates are complete — never before.
Conditional calls: Steps 6-7 may invoke codebase-understanding or prd-writing to create missing docs. These are conditional — they only fire when the target file does not exist.
Read every .agents/skills/*/SKILL.md. For each skill, extract:
name (from frontmatter)description (from frontmatter)category (from frontmatter metadata.category; default project-specific)invoke, call, load, →)Store as an in-memory skill registry.
docs/SKILL-INDEX.mdAGENTS.mdsecure-* skills.README.mddocs/skill-graph.mdCreate or overwrite docs/skill-graph.md with a Mermaid flowchart:
# Skill Call Graph
Generated by `library-skill` on YYYY-MM-DD.
```mermaid
flowchart LR
universal-skill-creator --> validate-skills
universal-skill-creator --> library-skill
split-skill --> library-skill
deprecate-skill --> library-skill
improve-skills --> library-skill
library-skill --> generate-changelog
...
```
caller --> callee).subgraph blocks.docs/architecture.mdIf docs/architecture.md does not exist, invoke codebase-understanding to create it, then continue with step 7.
Update when structural changes affect the execution flow or layer structure:
docs/prd/PRD.mdIf docs/prd/PRD.md does not exist, invoke prd-writing in non-interactive mode — do NOT ask the user clarifying questions. Instead, infer all answers from:
docs/architecture.md (from step 6) as architectural contextdocs/prd/YYYY-MM-DD-*.md) as historical context — caution: these may be outdated; treat as directional input, not ground truthMake best-guess decisions where information is missing. The user can refine the PRD later — a reasonable first draft is better than blocking the pipeline.
Then continue.
This is the living PRD — the source of truth for both agents and humans. Update:
Last updated date in the header.docs/prd/YYYY-MM-DD-*.md) — those are historical snapshots. Exception: global skill renames — update the old name in all files including point-in-time PRDs to prevent stale references causing confusion.Append each updated file to docs/skill-outputs/SKILL-OUTPUTS.md:
| YYYY-MM-DD HH:MM | library-skill | docs/SKILL-INDEX.md | Synced after [trigger] |
| YYYY-MM-DD HH:MM | library-skill | AGENTS.md | Updated entry points |
| YYYY-MM-DD HH:MM | library-skill | README.md | Updated skill tables |
| YYYY-MM-DD HH:MM | library-skill | docs/skill-graph.md | Rebuilt call graph |
| YYYY-MM-DD HH:MM | library-skill | docs/prd/PRD.md | Updated skill inventory |
| YYYY-MM-DD HH:MM | library-skill | docs/architecture.md | Updated key components |
generate-changelogCall generate-changelog with a summary of structural changes made. This is the final step — never skip it.
category nested under metadata, others at top level. Check both.generate-changelog lives in .agents/skills/generate-changelog/ — use the directory name for path, frontmatter name for references.Files updated: docs/SKILL-INDEX.md — added library-skill entry, updated call graph AGENTS.md — added library-skill to user entry points README.md — added library-skill row to meta skills table docs/skill-graph.md — rebuilt with 35 nodes, 48 edges docs/prd/PRD.md — added library-skill to meta skills table, count 35→36 docs/architecture.md — no structural flow change, skipped
Cross-reference check: Broken references: 0 Orphaned entries: 0
Logged to docs/skill-outputs/SKILL-OUTPUTS.md. Invoking generate-changelog... </output> </example> </examples>
After completing, always report:
Librarian sync complete: YYYY-MM-DD
Trigger: [what caused the run]
Skills scanned: N
Entries added: N
Entries removed: N
Entries updated: N
Files modified: [list]
Broken cross-references: N
Orphaned entries: N
SKILL-OUTPUTS.md updated: yes
generate-changelog invoked: yes
development
Run a fast, read-only health check across all skills in the library and produce a structured quality report — without modifying anything. Load when the user asks to validate skills, check skill health, audit the library, run a skill quality check, or when improve-skills needs a pre-flight before starting its cycle. Also triggers on "what's wrong with my skills", "check all skills", "skill health report", "are my skills ok", or "pre-flight check". Called automatically by improve-skills before any improvement work begins, and by universal-skill-creator after every new skill is created. Never modifies any file — only reads and reports.
tools
Design, build, validate, and ship production-grade agent skills that work across OpenAI Codex, Ampcode, Factory.ai Droids, Google Gemini, Warp, Bolt.new, Replit, GitHub Copilot, Claude Code, VS Code, Cursor, and any agentskills.io compliant platform. Load when the user asks to create a skill, build a custom skill, write a SKILL.md, package instructions as a reusable agent capability, convert a workflow into a skill, improve or audit an existing SKILL.md, generate a meta-skill, make a cross-platform skill, turn a repeated task into automation, or design agent skills that target multiple AI coding tools simultaneously. Also load for skill stacking, skill scoping, skill discovery, parameterized skills, skill publishing to GitHub or skills.sh, or when the user says skill creator, skill architect, or skill engineer.
tools
Identify the right tool for a process step. Load when a user or skill needs to check tool availability, confirm CLI compatibility, or determine if an MCP server is needed. Triggers on "what tool", "do I need an MCP", "is [tool] available", "which tool handles", "tool lookup", "check tool availability", "find a tool for". Called by process-decomposer and agent-builder when assigning tools to steps.
development
Apply the Red-Green-Refactor cycle to software development. Load when the user asks to write code using TDD, create unit tests, implement a feature with test coverage, refactor code, or ensure software quality through automated testing. Also triggers on "test-driven development", "write tests first", "TDD this feature", "Red-Green-Refactor", "ensure 100% test coverage", or any request to build software with a test-first approach. Supports unit, integration, and end-to-end testing strategies.