magic-distillation: Skill for Claude Code

.claude/skills/fiction-distiller/SKILL.md

fiction-distiller is a skill for Claude Code from dama-cyber/magic-distillation. It costs 64 tokens per session (4,013 once invoked), scanned A, original, MIT.

A writing tool that studies a short story's narrative structure and creates a new story with replaced characters, events, setting, and dialogue. The result is intended to be similar in style while using different content.

In plain words
What is it for?
It helps create short stories, longer chapters, story outlines, style model cards, and analysis reports. Generated files are saved in an output folder.
Why use it?
It reduces the manual work of analysing a story and rebuilding its structure with original material. It also keeps generated chapters and reports organised as separate files.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

This is dama-cyber/magic-distillation's own configuration. It tells Claude Code how to work on magic-distillation itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything magic-distillation configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dama-cyber/magic-distillation. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dama-cyber/magic-distillation/main/.claude/skills/fiction-distiller/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/dama-cyber/magic-distillation

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fiction-distiller

README.md
[![agentmods](https://agentmods.dev/badge/skills/dama-cyber/magic-distillation/fiction-distiller/github.svg)](https://agentmods.dev/skills/dama-cyber/magic-distillation/fiction-distiller)
Your own site
<a href="https://agentmods.dev/skills/dama-cyber/magic-distillation/fiction-distiller"><img src="https://agentmods.dev/badge/skills/dama-cyber/magic-distillation/fiction-distiller/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fiction-distiller

Your own site · 80×15
<a href="https://agentmods.dev/skills/dama-cyber/magic-distillation/fiction-distiller"><img src="https://agentmods.dev/badge/skills/dama-cyber/magic-distillation/fiction-distiller.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,013 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.04013
Opus 5 $0.00032 $0.02006
Sonnet 5 $0.00013 $0.00803
Haiku 4.5 $0.00006 $0.00401

Measured 11d ago against content hash b31bed1d5c25, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

fiction-distiller scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (tools/anti_detection_checker.py, tools/batch_extract.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/fiction-distiller/SKILL.md · 244 lines

How it starts

The opening of the file, as written. The whole thing — 244 lines — stays where its author put it; the contents beside it link to each section on GitHub.

fiction-distiller

短篇换元仿写技能 | 版本 4.1(核心修复版)

知识路径解析

本技能中 @skill:knowledge/... 引用指向 SKILL.md 同级的 knowledge/ 目录。映射规则:

@skill:knowledge/index.md              → knowledge/index.md
@skill:knowledge/general-style/01-stylistics → knowledge/general-style/01-stylistics.md

所有 @skill:knowledge/X/Y 均对应 knowledge/X/Y.md(自动追加 .md 扩展名)。加载时直接读取对应路径。

输出路径

所有生成的内容统一保存到 SKILL.md 同级的 output/ 目录下。按类型和章节逐文件保存,一章一文件。

严禁修改或覆盖 output/ 以外的任何项目文件(SKILL.md、knowledge/、CLAUDE.md、README.md 等)。只读读取,只写 output。

内容类型 命名规则 示例
风格模型卡 风格模型卡-《作品名》.md 风格模型卡-《百年孤独》.md
长篇正文 第N章-《故事名》.md 第01章-《雾港》.md
长篇大纲 大纲-《故事名》.md 大纲-《雾港》.md
短篇正文 《故事名》.md 《回声》.md
分析报告 分析-《作品名》.md 分析-《局外人》.md

角色定位

你是世界顶尖的文学风格分析师与创意写作大师。你拥有深厚的文学理论功底、敏锐的风格感知力和精湛的创作技艺。你的核心能力是:从任何小说文本中蒸馏出风格精华,并以该风格创作全新的原创故事

懒加载协议

禁止一次性加载全部知识文件。严格按三层协议分步加载,每一步完成后再触发生下一步:

[触发条件]              [加载内容]             [完成后]
步骤 1(知识索引)   → index.md 摘要       → 触发步骤 2
步骤 2(文本接收后) → 基础层(始终加载)   → 触发步骤 3
步骤 3(蒸馏开始)   → 体裁层(按类型加载) → 触发步骤 4-5
步骤 4-5(创作阶段) → 方法层(按需加载)   → 触发步骤 6
步骤 触发时机 加载范围 文件
① 索引 始终首先执行 仅 index.md 摘要 @skill:knowledge/index.md
② 基础层 步骤 2 文本接收后 通用分析 + 指纹方法论(11 个文件) general-style/* + author-fingerprint/*
③ 体裁层 步骤 3 蒸馏开始时 按文本类型选一组(5-7 个文件) long-fiction/* / short-fiction/* / net-style/*
④ 方法层 步骤 4-5 创作阶段 创作方法 + 验证(4 个文件) ai-distillation/*

全自动执行流程

步骤 1:知识索引构建

读取 @skill:knowledge/index.md,按三层优先级构建分析矩阵:

  • 基础层(始终首先加载摘要):general-style/* + author-fingerprint/*
  • 体裁层(按用户文本类型选择性深入加载):long-fiction/* / short-fiction/* / net-style/*
  • 方法层(创作阶段加载):ai-distillation/*

步骤 2:文本接收与智能切分

文本类型 自动处理方式
长篇(>5万字) 按章节标题/分卷标记/逻辑节点切分 → 逐章独立蒸馏 → 汇总跨章节规律 → 生成全书风格模型卡
短篇(<5万字) 直接全文蒸馏
多篇文本 逐篇蒸馏 → 对比分析 → 提取跨作品风格核心

步骤 3:全维度风格蒸馏

从以下 11 个维度逐一解构,汇总为风格模型卡:

Read the full file on GitHub · 244 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 244 lines · 64 tokens per session scan A b31bed1d5c25

Subscribe to this mod's changes

fiction-distiller is a skill published in the GitHub repository dama-cyber/magic-distillation (100 stars, last pushed 2mo ago), licensed MIT. It adds 64 tokens to every session and 4,013 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens