muratcankoylan avatar

book-sft-pipeline

This skill should be used when the user asks to "fine-tune on books", "create SFT dataset", "train style model", "extract ePub text", or mentions style transfer, LoRA training, book segmentation, or author voice replication.

作者 muratcankoylan|オープンソース

Book SFT Pipeline

A standalone example skill for training language models to write in any author's style. It is not published as a separate Claude Code marketplace plugin from this repository.

Installation

Claude Code / Cursor / Codex

Agent Skills hosts expect a directory containing SKILL.md, not a flat copied markdown file. From the repository root, copy the whole example directory into the target skill root:

# Claude Code project-scoped install
mkdir -p .claude/skills
cp -R examples/book-sft-pipeline .claude/skills/book-sft-pipeline

# Cursor project-scoped install
mkdir -p .cursor/skills
cp -R examples/book-sft-pipeline .cursor/skills/book-sft-pipeline

# Codex / OpenAI Agent Skills install
mkdir -p .agents/skills
cp -R examples/book-sft-pipeline .agents/skills/book-sft-pipeline

Manual

Reference the examples/book-sft-pipeline/SKILL.md file directly only if your agent does not support the Agent Skills directory layout.

What's Included

book-sft-pipeline/
├── README.md                 # This file
├── SKILL.md                  # Complete skill documentation (standalone)
├── examples/
│   └── gertrude-stein/       # Complete case study with real outputs
│       ├── README.md         # Results and analysis
│       ├── sample_outputs.md # Raw model outputs
│       ├── training_config.json
│       ├── dataset_sample.jsonl
│       └── pangram/          # AI detector screenshots
├── scripts/
│   └── pipeline_example.py   # Conceptual implementation
└── references/
    ├── segmentation-strategies.md
    ├── tinker-format.md
    └── tinker.txt

Key Results

Trained Qwen3-8B-Base on Gertrude Stein's "Three Lives" (1909):

MetricValue
Training examples592
Loss reduction97%
Pangram AI detector70% Human
Training time15 minutes
Total cost$2

Related Context Engineering Skills

This skill applies patterns from the Agent Skills for Context Engineering collection:

SkillApplication
project-developmentStaged pipeline architecture
context-compressionSegmentation strategy
multi-agent-patternsOrchestrator pattern
evaluationModern scenario testing
context-fundamentalsPrompt diversity

Resources

License

MIT