whatisgithub

What is magic-distillation?

dama-cyber/magic-distillation — explained in plain English

Analysis updated 2026-05-18

38Audience · writerComplexity · 2/5LicenseSetup · easy

In one sentence

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.

Mindmap

mindmap
  root((fiction-distiller))
    What it does
      Style extraction
      Original story generation
      Self-check originality
    Tech stack
      opencode skill
      Claude Code skill
      Markdown knowledge base
    Use cases
      Style transfer for fiction
      Genre specific writing
      Author fingerprint analysis
    Audience
      Writers
      Vibe coders
      AI agent users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Extract the style fingerprint of a favorite novel and write a new original story in that style.

USE CASE 2

Generate a style model card summarizing an author's sentence patterns and rhetorical habits.

USE CASE 3

Write genre specific fiction, such as long form, short form, or web fiction, using a shared style pipeline.

What is it built with?

opencodeClaude CodeMarkdown

How does it compare?

dama-cyber/magic-distillation0xsha/cve-2026-63071061700625/github_vps
Stars383838
LanguageHTMLShell
Setup difficultyeasyhardmoderate
Complexity2/55/52/5
Audiencewriterdeveloperops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires opencode or Claude Code with the skill files placed in the expected .opencode or .claude directory.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

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.

Copy-paste prompts

Prompt 1
Analyze the style of this novel excerpt and produce a style model card with its core rules.
Prompt 2
Use the fiction-distiller skill to write a new short story that matches this author's rhythm and tone.
Prompt 3
Run the six step distillation pipeline on this text and show me the resulting style fingerprint summary.
Prompt 4
Check this generated chapter against the originality red lines before I finalize it.

Frequently asked questions

What is magic-distillation?

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.

What license does magic-distillation use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is magic-distillation to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is magic-distillation for?

Mainly writer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.