Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:3641397194 wq Gpt6 Astra Skill Catalog Emission

From Leeroopedia
Knowledge Sources
Domains Skill_Catalog, Code_Generation
Last Updated 2026-10-26 14:00 GMT

Overview

Technique for generating a suite of structured skill-definition files from a single authored catalog, ensuring every generated artifact stays in sync with the source of truth.

Description

Skill catalog emission separates the authoring of skill definitions (a curated catalog of attack-surface leaves) from their materialization (one Markdown file per leaf plus a master index). The catalog is a single source of truth: each entry contains all metadata needed for the generated file (id, parent route, title, keywords, and the three workflow beats). The emitter writes one file per entry and a summary index, cleaning stale files first so the output directory is an exact projection of the catalog.

This pattern guarantees that editing one catalog row produces a consistent update across all downstream artifacts, eliminates hand-editing of generated files, and makes coverage auditable at a glance via the index table.

Usage

Use this principle when you need to:

  • Maintain a large set of skill files: editing one catalog and re-running is safer than hand-editing 80 files.
  • Ensure catalog-output sync: the emitter cleans stale files before writing, so the output directory is always a faithful projection.
  • Audit skill coverage: the generated index table maps every leaf to its parent route and keywords.

Theoretical Basis

The emission pattern is a build-step: the catalog is the input model, the generator is a pure function, and the files are the output artifacts. Stale outputs are removed before regeneration so the output set is exactly the projection of the catalog — no orphan files survive.

Pseudo-code Logic:

# Abstract algorithm (NOT real implementation)
def emit(catalog, out_dir):
    clear_stale(out_dir)              # remove old generated files
    for entry in catalog:
        text = render_skill(entry)   # template + entry -> Markdown
        write(out_dir / f"{entry.id}.md", text)
    write(out_dir / "INDEX.md", render_index(catalog))

The three-beat structure (scope → investigate → deliver) is a workflow contract: each leaf defines what to pin, how to proceed, and what to hand off.

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment