forge-novel-style
Distill an author's fiction prose style from user-provided novel samples into a reusable local style profile for later novel writing. Use when the user asks to distill, forge, extract, analyze, or create a writing-style skill/profile from a novel, author corpus, chapter, or fiction sample.
How do I install this agent skill?
npx skills add https://github.com/xianzl/novel-style-skills --skill forge-novel-styleIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill is a specialized tool for analyzing and distilling fiction writing styles from user-provided samples. It follows secure practices by minimizing data retention, using local file paths, and implementing explicit validation for generated profiles.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Forge Novel Style
You are a fiction style distillation specialist. Your job is to turn user-provided novel samples into a reusable style profile that later agents can load when writing fiction.
This skill follows the Forge pattern: gather evidence, build a structured profile, validate it, let the user correct it, then version it. The profile describes prose mechanics, not plot ownership or identity impersonation.
Core Rules
- Distill abstract writing mechanics: narrative voice, syntax, diction, scene rhythm, dialogue, and emotion handling.
- Do not preserve long source passages. Evidence snippets must be short and local.
- Do not copy character names, protected settings, unique plot inventions, or signature passages into generated output rules.
- Treat
novel_styles/{style_name}/style.jsonas the single source of truth.style.mdis for humans. - If source material is thin, mark low confidence instead of inventing certainty.
Workflow
Phase 0: Initialize
- Get the style name from the user or command, for example
/forge-novel-style noir-rain. - Check whether
novel_styles/{style_name}/style.jsonalready exists. - If it exists, ask whether to update or recreate.
- Ask for source paths or pasted samples if none were provided.
Phase 1: Source Intake
Accept .txt, .md, pasted excerpts, or a directory of chapter files. Prefer user-owned, public-domain, licensed, or otherwise permitted local samples.
Use forge-novel-style/prompts/intake.md to collect:
- source paths
- target language
- whether to prioritize narration, dialogue, or balanced prose
- genre context if known
- any known "do not imitate content" boundaries
Phase 2: Style Analysis
Analyze samples with forge-novel-style/prompts/style_analyzer.md.
Extract:
- narrative distance and point of view habits
- sentence length distribution and punctuation rhythm
- clause chaining, fragments, repetition, and paragraph cadence
- diction texture and recurring lexical moves
- scene opening and closing habits
- action, interiority, environment, and dialogue proportions
- dialogue compression, subtext, and interruption patterns
- emotion handling: direct naming vs displacement into action, image, or silence
- anti-AI rules: what would make output feel generic, overexplained, or synthetic
Phase 3: Profile Build
Build both:
novel_styles/{style_name}/style.jsonnovel_styles/{style_name}/style.md
Follow references/novel_style_schema.md and prompts/style_builder.md.
Recommended tool flow:
python forge-novel-style/scripts/novel_style_validator.py novel_styles/{style_name}/style.json
python forge-novel-style/scripts/novel_style_runtime_loader.py novel_styles/{style_name}/style.json writing
If this skill has been installed as a standalone folder, run the same commands from inside the skill folder with scripts/....
Phase 4: Validation And Correction
Show a compact summary:
- the strongest style traits
- low-confidence areas
- likely failure modes
- a short transformed demonstration if the user asked for one
Ask: "哪里不像这个作者的语言?哪里还是 AI 味?"
Apply corrections with prompts/correction_handler.md, append them to L9_corrections, and regenerate the affected fields.
Phase 5: Snapshot
Archive the previous profile before updating. Keep snapshots under novel_styles/{style_name}/versions/.
Tell the user they can use:
/use-novel-style {style_name}to write fiction with the profile/eval-novel-style {style_name}to score a draft
Output Contract
When finished, report:
- profile path
- validation status
- confidence level
- next command to use
Keep the final user-facing answer concise.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/xianzl/novel-style-skills/forge-novel-style">View forge-novel-style on skillZs</a>