type: decision
status: active
timestamp: 2026-07-03
confidence: medium
durability: durable
tags: [skills, rules, discovery, automation]

Auto-generate skills from knowledge/rules

Every knowledge/rules/agent/*.md compiled to a SKILL.md so rules are invokable as skills; cross-linked, not merged.

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


Edit on GitHub · Back to index