agentleFS
po4ykapo4yka/llm-wiki-skills/skills/llm-wiki-skill-compiler/SKILL.md

llm-wiki-skill-compiler

Skill6 starsChanged 5 months agoMITView on GitHub

Compile procedural knowledge from an LLM-Wiki into installable Agent Skills. Use when wiki pages, runbooks, checklists, recurring workflows, troubleshooting notes, or query answers should become SKILL.md files with evidence links and validation.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 8 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not use this skill to answer a one-off question or to publish domain facts as-is.

    line 24
  2. Distinctive:

    Search for pages containing:

    line 38
  3. Distinctive:

    Keep in the skill:

    line 50
  4. Distinctive:

    Keep in the wiki or references:

    line 58
  5. Distinctive:

    Use one skill per coherent user intent.

    line 75
  6. Very specific:

    Add links back to source wiki pages in a ## Source knowledge section when useful.

    line 96
  7. Very specific:

    If writing files, update skills.sh.json, then validate the generated skills with the bundled read-only auditor:

    line 100
  8. Distinctive:

    Do not compile private or sensitive wiki content into distributable skills without approval.

    line 126
  9. Very specific:

    Do not embed large volatile knowledge dumps in SKILL.md.

    line 127
  10. Distinctive:

    Do not create a skill from a weak or unreviewed page without marking it draft.

    line 128
  11. Distinctive:

    Do not overwrite existing skills without diff review.

    line 129

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

LLM-Wiki Skill Compiler

Goal

Turn reusable procedural knowledge from the wiki into small, triggerable Agent Skills without moving domain knowledge into hidden prompts.

When to use

  • A wiki page or folder captures a repeated step-by-step workflow, runbook, checklist, or troubleshooting routine worth reusing across sessions or agents.
  • A saved query answer keeps getting re-asked and should become a triggerable skill instead of a synthesis note.
  • An existing skills/ directory needs a new candidate evaluated against skills.sh.json before writing anything.
  • Someone wants to compile a batch of wiki pages into SKILL.md files and needs the propose-only vs. write-mode boundary made explicit first.
  • Do not use this skill to answer a one-off question or to publish domain facts as-is; use it only when the target output is a procedural, triggerable skill.

Inputs

  • Candidate wiki pages or folders.
  • Existing skills/ directory.
  • skills.sh.json if present.
  • Target agent(s).
  • Desired mode: propose-only or write skill files.

Procedure

1. Find procedural candidates

Search for pages containing:

  • step-by-step workflows;
  • repeated troubleshooting routines;
  • runbooks;
  • checklists;
  • project conventions;
  • saved query answers that are reused;
  • scripts or command sequences.

2. Separate procedure from knowledge

Keep in the skill:

  • trigger conditions;
  • required inputs;
  • deterministic procedure;
  • output contract;
  • safety gates.

Keep in the wiki or references:

  • domain facts;
  • long examples;
  • historical background;
  • volatile current-state claims;
  • source excerpts.

3. Design skill boundary

For each candidate, propose:

| Candidate | Skill name | Trigger | Inputs | Risks | Evidence pages |
|---|---|---|---|---|---|

Use one skill per coherent user intent. Do not create one giant skill.

4. Generate SKILL.md

Create valid frontmatter:

---
name: example-skill
description: Trigger-rich description.
license: MIT
compatibility: Designed for Agent Skills-compatible coding agents.
metadata:
  author: po4yka
  version: "0.1.0"
  install_scope: self-contained
---

Set install_scope: self-contained when the skill bundles everything it references; use pack-install-only and explain the requirement in compatibility when it depends on a full repository install.

Add links back to source wiki pages in a ## Source knowledge section when useful.

5. Update package metadata and validate

If writing files, update skills.sh.json, then validate the generated skills with the bundled read-only auditor:

node scripts/audit-skills.mjs <path-to-generated-skills>

Fix every reported error before delivering; treat warnings as review items. Do not declare a generated skill valid without running the script.

Output

Deliver the summary in chat; the persisted artifacts are the generated skill directories and the updated skills.sh.json.

## Candidate skills

## Generated skills

## Source knowledge used

## Validation status

## Review required

Safety gates

  • Do not compile private or sensitive wiki content into distributable skills without approval.
  • Do not embed large volatile knowledge dumps in SKILL.md.
  • Do not create a skill from a weak or unreviewed page without marking it draft.
  • Do not overwrite existing skills without diff review.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.