dama-cyber/magic-distillation — explained in plain English
Analysis updated 2026-05-18
Extract the style fingerprint of a favorite novel and write a new original story in that style.
Generate a style model card summarizing an author's sentence patterns and rhetorical habits.
Write genre specific fiction, such as long form, short form, or web fiction, using a shared style pipeline.
| dama-cyber/magic-distillation | 0xsha/cve-2026-6307 | 1061700625/github_vps | |
|---|---|---|---|
| Stars | 38 | 38 | 38 |
| Language | — | HTML | Shell |
| Setup difficulty | easy | hard | moderate |
| Complexity | 2/5 | 5/5 | 2/5 |
| Audience | writer | developer | ops devops |
Figures from each repo's GitHub metadata at analysis time.
Requires opencode or Claude Code with the skill files placed in the expected .opencode or .claude directory.
This repository, called fiction-distiller, is a skill for AI coding assistants that analyzes the writing style of a piece of fiction and then uses that style to write a brand new, original story. It works with two agent platforms, opencode and Claude Code. The core idea is simple: you give it a novel or story, it extracts a kind of style fingerprint from the text, and then it writes a completely different story using that same fingerprint. It is explicitly not meant to copy plot, characters, or dialogue, only to carry over narrative rhythm, sentence patterns, rhetorical habits, and sensory focus. Every generated piece comes with an originality statement and passes a self-check before being finished. The knowledge the skill draws on is organized into three layers that load only as needed rather than all at once. A base layer, always loaded, covers general style theory such as narratology, rhetoric, and an author's fingerprint in vocabulary, sentence structure, and punctuation. A genre layer loads depending on whether the text is long fiction, short fiction, or web fiction, each with its own structural concerns. A method layer loads during the actual writing stage and covers feature extraction, fingerprint verification, imitation strategy, and originality assessment. In total there are 32 topic files, each about 3500 characters, loaded in four strict steps so the system never pulls everything into context at once. The overall process runs through six steps: building a knowledge index, receiving and splitting the source text, distilling style across eleven dimensions into a style model card, planning an original story that only inherits style rules, writing that new story from the point of view of the original author writing something new, and finally running a self-check against six hard rules, including never copying ten or more consecutive words from the source or reusing its plot, scenes, dialogue, or proper names. The output of the distillation step is a style model card containing five to eight core style tags, fifteen must-follow style rules, a short style fingerprint summary, and a list of five forbidden writing behaviors. Generated chapters and cards are saved into an output folder per platform. The project is licensed under MIT.
An AI agent skill that extracts a novel's writing style fingerprint and uses it to write a brand new, original story in that style.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly writer.
This repo across BitVibe Labs
Verify against the repo before relying on details.