SILK CLI - Smart Integrated Literary Kit
Modern CLI workflow for authors with LLM integration.
What is SILK?
SILK weaves together all aspects of modern novel writing:
- Smart templates adapted by genre and market
- Integrated workflow from concept to publication
- Literary focus on sophisticated fiction
- Kit complete toolbox for authors
Just like a spider weaves its web, SILK helps you weave together characters, plot, and narrative into compelling fiction.
Installation
pip install silk-cli
Requirements:
- Python 3.11+
- Pandoc (for publishing)
- XeLaTeX (for PDF generation)
Quick Start
# Create new project
silk init "My Novel" --genre polar-psychologique
# Track progress
silk wordcount 80000
# Generate LLM context
silk context -p coherence --chapters 1-10
# Publish professional PDF
silk publish -f digital
Commands
silk init
Create a new SILK project with genre-specific templates.
silk init "My Novel" # Interactive mode
silk init "My Novel" --genre polar --yes # Non-interactive
silk wordcount
Track writing progress with intelligent statistics.
silk wordcount # Default target from config
silk wordcount 100000 # Custom target
silk wordcount --summary # Quick overview
silk wordcount --json # Export data
Features:
- Automatic chapter grouping (Ch23 + Ch23-1 = Ch23)
- Editorial threshold positioning (40k-120k words)
- Regularity analysis with recommendations
- Priority chapters identification
silk context
Generate unified context for LLM assistance.
silk context "Analyze character development" --chapters 1-5
silk context -p coherence --chapters 10-15 # Predefined prompt
silk context -p revision --mode full # Full context mode
Modes:
- nocontext: Prompt + manuscript only
- normal: + main characters + concepts
- full: + all characters + locations + timeline + worldbuilding
silk publish
Generate professional publications in multiple formats.
silk publish -f digital # PDF for digital reading
silk publish -f print # PDF for print
silk publish -f epub # EPUB format
silk publish -f html # HTML format
silk publish --dry-run # Preview without generating
silk config
Manage project configuration.
silk config --list # Show all settings
silk config get title # Get specific value
silk config set author_name "Me" # Set value
silk cache
Manage the chapter cache system.
silk cache # Show cache stats
silk cache --stats # Detailed statistics
silk cache --cleanup # Clean invalid entries
Project Structure
SILK projects follow this structure:
my-novel/
├── .silk/
│ └── config # Project configuration
├── 01-Manuscrit/
│ ├── Ch01.md # Chapter files
│ ├── Ch01-1.md # Multi-part chapters
│ └── ...
├── 02-Personnages/ # Character files
├── 03-Lieux/ # Location files
├── 04-Concepts/ # Concept files
├── 05-Timeline/ # Timeline
└── outputs/ # Generated files
SILK Manuscript Format
Chapters use a special separator to distinguish metadata from content:
# Ch.15 : Title
## SILK Objectives
- Metadata for planning...
## manuscrit
[Pure content - this is what gets published and analyzed]
Supported Genres
- polar-psychologique: French psychological thriller
- fantasy: Fantasy with worldbuilding support
- romance: Romance with relationship arcs
- literary: Literary fiction
- thriller: Action thriller
Development
Setup
git clone https://github.com/oinant/silk-cli
cd silk-cli
poetry install
Testing
poetry run pytest # Run tests
poetry run pytest --cov=silk_cli # With coverage
poetry run pytest silk_cli/tests/unit/ # Unit tests only
poetry run pytest silk_cli/tests/e2e/ # E2E tests only
Type Checking
poetry run mypy silk_cli/
Linting
poetry run ruff check silk_cli/
License
MIT
Author
Antoine Sauvinet
SILK weaves your story together.
Metadata
Release files for silk-cli 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| silk_cli-2.0.0.tar.gz | 49.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| silk_cli-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 115.4 kB
Release files / silk_cli-2.0.0.tar.gz
| Download URL | silk_cli-2.0.0.tar.gz |
|---|---|
| Size | 49.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e43b76fe134cef1f8f33af8251de7a3080b6053f294b068cc6f05a9f2a39595c
|
|
BLAKE2b-256 checksum How to use checksums |
9f5ebd07e9a8f204e7b40673b5cbd17b747d03a02ac6ef63c08a2e99582963f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 30, 2025.
Transparency logRelease files / silk_cli-2.0.0-py3-none-any.whl
| Download URL | silk_cli-2.0.0-py3-none-any.whl |
|---|---|
| Size | 66.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
74aa52848e82fe2f8c7444ab422563e27ddc64a084541bda4aeedf10e548d20d
|
|
BLAKE2b-256 checksum How to use checksums |
443cac6633f3314106ab84ad640b867751f7737a4bf5bd69ac57d23b42d66b34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 30, 2025.
Transparency log