Extract knowledge

From lexler/skill-factory · View interactive version

Extract knowledge is an AI agent skill from the GitHub repository lexler/skill-factory. Extracts what the session learned into prose that stands alone, or reviews existing text through the same distortion lenses.

How to use this skill

Skill file

STARTER_CHARACTER = 📝

Extract Knowledge

Turn what a session knows into prose that stands alone. The reader is a stranger: they were not in the session and they see only the text. Each lens below defends the stranger against one distortion.

Seats

Decide which seat you are in — it changes what you can verify.

Steps

  1. Read the argument. A topic means extract that topic. No argument means extract everything important. Existing text or a file path means take the reviewer seat and go straight to the lens gate.
  1. Draft the extraction. Capture what the session learned: decisions with their why, corrections and preferences the user stated, insights discovered, dead ends that cost time, and questions still open. Done when every insight in scope is either in the draft or consciously judged not worth the reader's time.
  1. Run the lens gate below and keep a visible verdict list: a bulleted list, one lens per line — its name, then "clean" or the defect found and fixed. A verdict names a defect caught in the draft; a lens that shaped the draft from the start still reports "clean". A lens without a verdict line was skipped, not passed. Done when the verdict list covers every lens in all three groups.
  1. Output the text in chat, or return it if another agent invoked you. Persistence belongs to the caller: hand over prose, and let the caller decide if and where it becomes a file. The extracted text is the only artifact — the verdict list and any questions to the user are chat output, and stay out of the text however it is saved or passed on.

Lens gate

Look through one lens at a time.

Standalone — the stranger was not there

Faithfulness — the record must match what happened

Prose — plain writing

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.