Skills

Aif Distillation

Distill books, documents, folders, or URLs into compact, practical Agent Skills.

Install

npx skills add lee-to/ai-factory --skill aif-distillation -g -a claude-code -y
Repository
lee-to/ai-factory1.2k
Category
AI and agents
Updated
3d ago
License
See repository
Context cost
Mediumabout 3,000 tokens
Runs scripts
Yes, review before use

What it does

Distill books, documents, folders, or URLs into compact, practical Agent Skills. Use when source material should become either one reusable skill package or a split set of focused skills, each with a concise SKILL.md plus detailed references and examples.

Distillation

Shared project skill-context

Before mode routing or work, read existing files relative to the current project root in this order (reuse them if already loaded):

  1. .ai-factory/skill-context/global-skill-context.md, all bundled skills.
  2. .ai-factory/skill-context/aif-distillation/SKILL.md, this skill.

Missing files are skipped; an existing unreadable file stops dependent work with its path. Precedence: individual > build (when applicable) > global > skill defaults; retain non-conflicting instructions and check all outputs against the effective rules. These layers customize workflow; they do not replace the project's rules/architecture hierarchy or relax explicit requirements, ownership, scope, safety/privacy, validation, or approval boundaries. Report conflicts with those boundaries instead of overriding them. global is a project-local layer, not home-directory configuration. Custom/extension skills do not automatically use it.

Turn source material into a useful skill. The output is not a summary dump: it is an operational skill that captures the best practices, decision rules, workflows, checks, and examples from the material.

Step 0: Load Config and Skill Context

FIRST: Read .ai-factory/config.yaml if it exists to resolve:

  • language.ui for prompts, questions, progress updates, and final summaries
  • language.artifacts for generated skill package content (SKILL.md, references/, examples/)
  • language.technical_terms for translated artifacts; default to keep when absent

If config.yaml doesn't exist, use defaults:

  • language.ui: en
  • language.artifacts: same as language.ui
  • language.technical_terms: keep

Read .ai-factory/skill-context/aif-distillation/SKILL.md - MANDATORY if the file exists.

Treat skill-context rules as project-level overrides for this skill. They apply to all generated skill files, references, examples, source-map policy, and final reports.

Inputs

Read the whole SKILL.md on GitHub

More in AI and agents