← knowledge.oriz.in

Auto-generate skills from knowledge/rules

decision skillsrulesdiscoveryautomation

Rules → skills auto-gen

Decision

Every knowledge/rules/agent/*.md gets a corresponding SKILL.md auto-generated in repos/own/infra/agent-skills/rules/<slug>/. Rules become invokable as skills.

Script: scripts/gen-rule-skills.mjs. Runs on every commit touching knowledge/rules/.

Why

Confidence: medium

Structure

agent-skills/
  rules/
    ponytail/
      SKILL.md      # generated
      _source        # softlink to knowledge/rules/agent/ponytail.md
    caveman/
      SKILL.md
      _source
    ...

SKILL.md body:

---
name: <slug>
description: <one-line from rule frontmatter>
---
# <title>
See `_source` for the rule text. On invocation, read _source fully.

Skill.md acts as a wrapper — the real content stays in knowledge/ (single source of truth).

Anti-patterns

Cross-refs