Data & Analysis

Book Style SFT Pipeline

Turn eBooks into author-style SFT datasets, then train and evaluate LoRA models for style transfer.

36/ 100
Not recommended

Current benefit does not outweigh risk or uncertainty.

See how it was scored ↓
Works as-is in
Codex · Claude Code
Stars
★ 18k
Last updated
16d ago
License
MIT
epub-extractiontext-segmentationdataset-constructionsupervised-fine-tuning
+3style-transferlora-trainingtinker

What does this skill do, and when should you use it?

This skill documents an end-to-end workflow for extracting books from ePub, segmenting literary text, generating synthetic instructions, and building JSONL training data. It then covers LoRA training on Tinker, using Qwen/Qwen3-8B-Base with rank 32 and three epochs as the example configuration. The approach emphasizes natural 150–400-word segments, diverse prompts, and modern-scenario tests that distinguish style learning from content memorization. It also addresses character-name leakage, phrase parroting, and fragmented outputs.

Reads chapters and paragraphs from ePub files, removes front and back matter, and produces plain text; segments text at paragraph boundaries into overlapping 150–400-word chunks; calls a fast LLM to generate scene descriptions without directly quoting the excerpt; builds message-format JSONL examples with multiple system prompts and prompt templates; runs LoRA training on Tinker with Qwen/Qwen3-8B-Base; and validates outputs with modern scenarios, training-data phrase searches, and AI detectors.

Good fit
  • A researcher building an author-voice SFT dataset from a literary eBook can use the extraction, segmentation, and instruction-generation workflow.
  • A team training an 8B-or-smaller model for literary style transfer can use the documented LoRA configuration and training loop.
  • A developer trying to prevent plot memorization can apply the diverse-prompt strategy and modern-scenario evaluation.
  • An engineer generating JSONL training data from long-form fiction can follow the staged, resumable pipeline design.

How do you install this skill?

Before you use it
  • Before training on copyrighted books or replicating an author's style, confirm authorization, applicable law, and platform policy; the documentation does not define these boundaries.
  • Gemini, Tinker, model downloads, and AI-detector services may expose training text or credentials and may have reachability limitations; review data flows, permissions, terms, and mainland-China availability first.
  • The reported results are primarily author-provided and include roughly 50% perfect transfer, 30% character-name leakage, and 5% failure; independent reproduction and regression testing are required before deployment.
  • The code and configuration carry platform/renderer compatibility, segmentation-boundary, dependency-version, and error-handling risks and should not be used in production training without adaptation.
Before you start
Your agent needs
  • Shell / CLI
  • Network access
  • Local filesystem
Install first
  • Python
  • epub2
  • BeautifulSoup
  • Tinker
  • Qwen/Qwen3-8B-Base

The README states that skills should be installed as directories rather than flattened into a single SKILL.md file. Clone the repository with git clone https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering.git, then copy examples/book-sft-pipeline/ into the target Agent Skills directory. The source does not provide a dedicated installation command or complete dependency setup for this example.

Generic route: install into Claude Code manually (macOS / Linux)
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering.git "$tmp"
mkdir -p ~/.claude/skills
cp -R "$tmp/examples/book-sft-pipeline" ~/.claude/skills/
rm -rf "$tmp"

Generated from the source repository and skill path; it copies only this skill's folder. If the author's install steps above differ, follow those first. To scope it to one project, replace ~/.claude/skills with that project's .claude/skills.

How do you use this skill?

Load the directory in an Agent Skills-compatible client and activate it when building literary-work SFT data, creating author-style models, designing long-text segmentation, or evaluating style transfer. Follow the extraction, segmentation, instruction-generation, dataset-construction, LoRA-training, and validation phases. The source does not specify a client-specific trigger syntax.

What are this skill's strengths and limitations?

Pros
  • Covers the workflow from ePub text to training and validation.
  • Includes concrete Python and Tinker-style examples.
  • Gives specific guidance on paragraph boundaries, 150–400-word chunks, and prompt diversity.
  • Includes modern-scenario testing, originality checks, and failure-mode remedies.
Limitations
  • The workflow depends on ePub files, Python example libraries, Tinker, an external LLM, and the specified base model; the source does not provide a complete environment setup.
  • The example focuses on one book and author style, so character leakage and phrase reproduction can still occur.
  • The source provides no independent test suite or cross-platform test evidence.
  • The stated cost, training time, and style-transfer rate are documented expectations, not independently verified results.

How does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
Book Style SFT Pipeline this page 36 · Not recommended ★ 18k 16d ago MIT
TRL Language Model Trainer 48 · Use with care ★ 11k 19d ago Apache-2.0
Cosmos Reason Video QA Fine-Tuning ✓ NVIDIA · Official 53 · Use with care ★ 3.6k 13d ago Apache-2.0
Azure AI Foundry Fine-Tuning ✓ Microsoft · Official 48 · Use with care ★ 2.7k 3mo ago MIT
Nemotron Customization Pipelines ✓ NVIDIA · Official 57 · Use with care ★ 3.6k 13d ago Apache-2.0

The source compares its 150–400-word overlapping segmentation approach with a larger 250–650-word method and claims it produces more examples; it does not name a competing complete product or framework.

How did FollowSkills review this skill?

FollowSkills review · FSRS-2.0
Not recommended
36/ 100 5-point scale 1.8 / 5
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
1Trust8 / 25 · 1.6/5

The documentation describes staged artifacts, validation steps, and some failure symptoms, but it does not define user confirmation, permission boundaries, data flows, copyright or sensitive-text handling, external-service data use, credential management, or rollback. It recommends sending book text to an external LLM and training through Tinker, so substantial points are deducted. MIT licensing and author metadata provide limited attribution, while publisher identity remains unverified.

2Reliability5 / 20 · 1.3/5

The main phases, sample code, configuration, and known issues make the happy path plausible. However, dependencies are not pinned or fully installed, the Tinker renderer/model examples may be mismatched, segmentation and overlap logic can exceed target bounds, and abnormal-input handling and recovery are thin. This is a static review with no committed tests covering the selected skill's key paths; under calibration, reliability cannot exceed 10, so points are deducted.

3Adaptability7 / 15 · 2.3/5

Activation scenarios, intended audience, and main inputs and outputs are reasonably clear across ePub extraction, segmentation, dataset construction, LoRA training, and evaluation. Non-fit boundaries, copyright constraints, alternatives, and exclusion triggers are under-specified. Core use depends on Gemini, Tinker, and overseas model services, with no mainland-China reachability guidance, so environment-fit uncertainty reduces the score.

4Convention8 / 15 · 2.7/5

SKILL.md, README, references, scripts, the case study, and version metadata provide useful progressive documentation with installation guidance, configuration, known limitations, and an MIT license. Full marks are not justified because maintenance ownership, update path, changelog, pinned dependencies, and systematic FAQs are missing, and some documented results are not fully consistent with the code/configuration.

5Effectiveness5 / 15 · 1.7/5

The skill covers the conceptual book-to-SFT workflow and supplies adaptable code, configuration, and a case study. However, the script is explicitly conceptual, the case study reports only about 50% perfect transfer and about 30% name leakage, and results depend on external platforms and manual adaptation. The output is therefore not directly usable without substantial review. Static calibration caps effectiveness at 7, so points are deducted.

6Verifiability3 / 10 · 1.5/5

Configuration, loss tables, sample outputs, validation commands, and limitation disclosures provide some auditability. Nevertheless, the evidence is primarily author-reported repository material, without independently reproducible execution records, committed tests for the selected skill's key paths, or meaningful cross-source corroboration. Static calibration caps verifiability at 5, so only limited credit is awarded.

1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Jul 20, 2026 Reviewed revision c578e85e40fe Review evidence[1][2][3][4][5][6][7][8][9][10][11][12][13][14][15]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

See the full review method →

FAQ

What model size is this intended for?
The skill explicitly targets models of 8B parameters or less, with Qwen/Qwen3-8B-Base as the example.
Is Tinker mandatory?
The training example uses Tinker, while the description also mentions similar SFT platforms; no alternative implementation is provided.
How can I check whether outputs reproduce the source text?
Search output phrases in the training JSONL and use modern scenarios that could not have appeared in the original book.
What does it cost?
The document estimates about $0.50 for instruction generation and $1.50 for 15 minutes of Tinker training, or about $2 total; this estimate was not independently verified.

More skills from this repository

All from muratcankoylan/Agent-Skills-for-Context-Engineering

Dev & Engineering

Self-Improvement Loops

Evolve agent harnesses, workflows, and context mechanisms under bounded, evidence-based evaluation.

★ 18k FS 58 Recommended 16d ago
Dev & Engineering

Long-Horizon Prompting

Designs auditable launch briefs for autonomous agents and parallel multi-agent work on difficult, long-running tasks.

★ 18k FS 57 Use with care 16d ago
Dev & Engineering

Advanced LLM Evaluation

Build auditable, calibrated LLM-output evaluations with explicit rubrics, confidence scoring, and bias controls.

★ 18k FS 56 Use with care 16d ago
Dev & Engineering

Context Engineering Fundamentals

Understand and shape reliable agent context through attention budgets, context-window mechanics, and signal-density principles.

★ 18k FS 55 Use with care 16d ago
Dev & Engineering

Latent Briefing

Share task-relevant orchestrator state with workers through task-guided KV-cache compaction when the inference runtime is controllable.

★ 18k FS 55 Use with care 16d ago
Dev & Engineering

Multi-Agent Architecture Patterns

Design multi-agent systems with context isolation, explicit handoffs, coordinated execution, and controlled failure handling.

★ 18k FS 55 Use with care 16d ago
Dev & Engineering

Persistent Semantic Memory Design

Design durable, retrievable agent memory that scales from simple files to temporal knowledge graphs.

★ 18k FS 53 Use with care 16d ago
Dev & Engineering

Context Degradation Diagnosis

Identify and mitigate lost attention, poisoning, distraction, confusion, and conflict in long agent contexts.

★ 18k FS 51 Use with care 16d ago
Dev & Engineering

Agent Tool Design Guide

Design tool interfaces agents can route, call, and recover from reliably.

★ 18k FS 51 Use with care 16d ago
Dev & Engineering

Context Compression Strategies

Compress long-running agent sessions while preserving files, decisions, risks, and next actions.

★ 18k FS 50 Use with care 16d ago
Dev & Engineering

Project Development Methodology

Decide whether an LLM fits the job, then design a staged agent pipeline with predictable parsing, iteration, and cost control.

★ 18k FS 50 Use with care 16d ago
Dev & Engineering

BDI Mental State Modeling

Turn RDF context into explainable belief, desire, and intention chains.

★ 18k FS 49 Use with care 16d ago
Dev & Engineering

Autonomous Agent Harness

Designs autonomous agent loops that remain controlled, recoverable, and auditable.

★ 18k FS 49 Use with care 16d ago
Dev & Engineering

Agent Evaluation Methods

Build repeatable evaluation, regression detection, and quality gates for agent pipelines.

★ 18k FS 46 Use with care 16d ago
Dev & Engineering

Rigorous Research Agent

A validation, recovery, and source-tracking protocol for multi-step research.

★ 18k FS 45 Not recommended 16d ago
Dev & Engineering

Filesystem Context Engineering

Move large, durable, or shared agent context into files and retrieve it selectively when needed.

★ 18k FS 45 Not recommended 16d ago
Dev & Engineering

Context Efficiency Optimizer

Reduce context cost with caching, masking, compaction, and partitioning while preserving answer quality.

★ 18k FS 44 Not recommended 16d ago
Dev & Engineering

Context Engineering for Production Agents

A structured guide to designing, optimizing, and evaluating production agent systems with reliable context management.

★ 18k FS 44 Not recommended 16d ago
Dev & Engineering

Agent Skill Blueprint

A reusable structure for authoring well-scoped context-engineering skills.

★ 18k FS 40 Not recommended 16d ago
Productivity & Collaboration

Digital Brain Personal OS

Manage content, relationships, knowledge, and goals through structured files and AI.

★ 18k FS 38 Not recommended 16d ago

Related skills