본문으로 건너뛰기
cccskills
무료GitHub에 공개

library-skill

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".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md10.3 KB
  • references/examples.md2.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Library Skill

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.

Hard Rules

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.

Workflow

1. Scan all skills

Read every .agents/skills/*/SKILL.md. For each skill, extract:

  • name (from frontmatter)
  • description (from frontmatter)
  • category (from frontmatter metadata.category; default project-specific)
  • Trigger phrases (from description)
  • Call relationships: grep for skill names invoked (invoke, call, load, →)
  • Called-by relationships: which other skills reference this skill

Store as an in-memory skill registry.

2. Update docs/SKILL-INDEX.md

  • Ensure every scanned skill has an entry with correct name, description, category, and triggers.
  • Remove entries for skills that no longer exist on disk.
  • Rebuild the Call Graph section from the extracted call relationships.
  • Preserve any hand-written prose sections (e.g., intro, conventions).

3. Update AGENTS.md

  • Ensure the User Entry Points table reflects current routing triggers.
  • Ensure the Security Enforcement list matches all skills that call secure-* skills.
  • Do not rewrite unrelated sections — make minimal, targeted edits.

4. Update README.md

  • Ensure skill tables list every current skill with correct name and one-line description.
  • Remove rows for deprecated/removed skills.
  • Add rows for new skills in the correct category section.
  • Rewrite skill counts — but only in lockstep with the tables they label. Compute N per category and overall from the step-1 registry (.agents/skills/*/SKILL.md, exclude .deprecated/). Standalone prose counts (e.g. "the library contains 90 skills" in an intro / What's-New / suite blurb that does not head a table) — rewrite freely to the registry. Table-labeling counts (a heading like "Meta Skills (22)" or "(5 skills)" sitting directly above a skill table) MUST equal the rows beneath them — NEVER bump the heading number without adding/removing the matching rows in the same edit. If the table cannot be synced this run, leave the heading number unchanged and flag the gap in the Impact Report; a heading that disagrees with its own table is worse than a stale-but-consistent one. Don't invent a count line where none exists.

5. Generate skill graph → docs/skill-graph.md

Create or overwrite docs/skill-graph.md with a Mermaid flowchart LR:

  • Header: # Skill Call Graph + Generated by library-skill on YYYY-MM-DD.
  • Every skill is a node; every call relationship is a directed edge (caller --> callee).
  • Group nodes by category using Mermaid subgraph blocks (meta, thinking, project-specific, domain).

5b. Sync knowledge graph

If .agents/skills/knowledge-graph/ exists, run incremental rebuild so call-graph.json and graph.json match the new skill-graph.md:

python3 .agents/skills/knowledge-graph/scripts/build_graph.py --incremental

Append graph outputs to Step 9 log. Skip if build script missing (consumer project without knowledge-graph).

6. Update docs/architecture.md

If 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:

  • Key Components: Add/remove/rename skill entries.
  • Execution Architecture: Update flow descriptions if a skill's role in the pipeline changed.
  • Process-and-Agent Design Layer: Update if process/agent skills changed.
  • Do not rewrite sections unrelated to the structural change.

7. Update docs/prd/PRD.md

If 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 context
  • Any existing point-in-time PRDs (docs/prd/YYYY-MM-DD-*.md) as historical context — caution: these may be outdated; treat as directional input, not ground truth
  • The skill registry (from step 1) as the current skill inventory
  • Session context, README, AGENTS.md, and any other project documentation available

Make 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:

  • Section 4 (Skill Inventory): Add/remove/rename skills in the correct category table. Update the total count.
  • Section 5 (Architecture Overview): Update if the execution flow or layer structure changed.
  • Section 9 (Post-Creation/Update Maintenance): Update if the maintenance pipeline changed.
  • Update the Last updated date in the header.
  • Do not rewrite sections unrelated to the structural change — minimal, targeted edits only.
  • Never touch point-in-time PRDs (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.

8. Validate cross-references

  • Check every skill name referenced in SKILL-INDEX.md, AGENTS.md, README.md, PRD.md, and architecture.md against the registry.
  • Flag broken references (skill name not found on disk).
  • Flag orphaned entries (index entry with no matching SKILL.md).
  • Report findings — do not auto-fix SKILL.md files.

9. Log outputs

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 |

10. Invoke generate-changelog

Call generate-changelog with a summary of structural changes made. Final step — never skip.

Gotchas

  • Stale frontmatter: Some skills have category nested under metadata, others at top level. Check both.
  • Changelog skill location: The skill named generate-changelog lives in .agents/skills/generate-changelog/ — use the directory name for path, frontmatter name for references.
  • Partial runs: If scanning finds zero skills, abort — the path is likely wrong. Never wipe reference files.
  • Concurrent edits: Another agent may be editing AGENTS.md simultaneously. Read → diff → write, never overwrite wholesale.
  • Never make a heading lie about its own table. Sync heading counts only with matching rows; otherwise flag the gap in Impact Report.

Example

<examples> <example> <input>universal-skill-creator just created a new skill called `library-skill`. Run library-skill to sync the library.</input> <output> Librarian sync triggered by: new skill added (library-skill) Skills scanned: 35 New entries added: library-skill (meta) Removed entries: none

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>

Common Rationalizations

ExcuseReality
"INDEX can wait"Drifted INDEX misroutes every agent in the library.
"Bump count without rows"Table heading counts must match rows beneath.
"Edit SKILL.md while syncing"Librarian reads skills — never writes SKILL.md bodies.

Verification

  • Every on-disk skill appears in SKILL-INDEX with correct category
  • README table row counts match heading numbers
  • docs/skill-graph.md regenerated with dated header
  • SKILL-OUTPUTS.md + generate-changelog invoked

Red Flags

  • Scan aborted at zero skills without path verification
  • Category read from wrong frontmatter nesting level
  • Reference index wiped on partial or failed run
  • Changelog skill path assumed wrong directory name

Prune Log

Last pruned: 2026-07-04

  • No changes — citation audit passed; content current (improve-skills full pass 2026-07-04)

Impact 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-O...

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Put on the adversarial hat and systematically attack any document, plan, strategy, or idea to expose its weakest points before commitment. Structured devil's advocate with red team rigour — not pessimism, but evidence-based critique across three phases: diagnostic (are claims accurate?), creative (is the problem artificially constrained?), challenge (are solutions robust?). Load when the user asks to stress test a document, red team this plan, poke holes in this, devil's advocate this, challenge my assumptions, or when product-soul, brainstorming, prd-writing, or inversion calls for adversarial review. Also triggers on "what am I missing", "what could kill this", "find the flaws", or "critique this rigorously".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

dvy1987/agent-loom32026년 8월 8일 업데이트

Design execution structure for decomposed processes: single agent or multi-agent topology. Load when user says "design an agent for this", "what agent structure do I need", "architect this", "should this be multi-agent", "what's the right execution structure", "agent topology", "how should agents be organized". Takes process-decomposer output as primary input. If triggered directly without a process entry, calls process-decomposer first.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

dvy1987/agent-loom32026년 8월 8일 업데이트

Internal skill. Called by setup-evaluation after a PASS. Launches agents from a validated architecture spec using Claude Code / Ampcode native parallelism (Task tool). Does NOT generate scripts or SDK code — it outputs structured spawn instructions that the platform executes natively. Never invoked directly by the user. Never launches without a setup-evaluation PASS.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

dvy1987/agent-loom32026년 8월 8일 업데이트

Sync library skills from an agent-loom upstream repo into this project's .agents/skills while preserving project-local and forked skills. Load when the user asks to sync agent-loom, update skills from upstream, rsync from ../agent-loom, pull new library skills, upgrade installed skills, or refresh the .agents folder without losing custom project skills. Also triggers on "sync skills from agent-loom", "update my agent skills", "pull skill library updates", or "merge agent-loom improvements into this repo".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

dvy1987/agent-loom32026년 8월 8일 업데이트

Instrument a shipped product's AI agents with tracing and observability so you can see what they did, why outputs happened, and what each run cost. Plain-language primer plus free-tier-first backend selection (Langfuse, Phoenix, LangSmith, Braintrust) and OpenTelemetry/OpenInference instrumentation. Load when the user asks to add observability, add tracing, instrument my agents, see what my agent is doing in production, set up Langfuse or Phoenix or LangSmith, debug why my agent gave a bad answer, or track LLM cost per request. Also fires when agent-system-architecture or setup-evaluation requires an observability plan for an agent-chain product. NOT for tracing the coding agent itself — that is run-trace. Precondition for runtime-learning-loop.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

dvy1987/agent-loom32026년 8월 8일 업데이트

Run a structured retrospective after development-phase runs of your product's agents — interview the owner in plain language about what went well and poorly, draft ranked improvement hypotheses, then design and run small n=1/n=2 experiments with pre-declared success criteria, guardrails, stop conditions, and a cost/ROI kill-switch. Load when the user says how did that run go, retro this run, the agent output was bad, what should we improve, draft hypotheses, run a small experiment, or after repeated dev runs of an agentic system produce uneven quality. Priority: output quality over performance over cost, each with diminishing-returns stops. NOT a product A/B test (experimentation), NOT coding-agent harness repair (harness-evolution), NOT production-scale learning (runtime-learning-loop).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

dvy1987/agent-loom32026년 8월 8일 업데이트

dvy1987의 스킬 모두 보기

이 스킬의 문제 신고