# worldwonderer/oh-story-claudecode architecture

> Architecture diagram of the GitHub repository worldwonderer/oh-story-claudecode, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/worldwonderer/oh-story-claudecode
- Repository: https://github.com/worldwonderer/oh-story-claudecode

## Overview

Oh Story is a file-system-based web-fiction writing skill package for coding agents. Its principal workflow moves from platform ranking research to long- or short-form analysis, then outlining and drafting, deterministic prose checks, and continuity/tracking updates. Separate capabilities include importing existing manuscripts, agent setup and hooks, a local dashboard, and cover generation. The README documents the product stages; sampled scripts and the source index clarify selected scraper, analysis, lint, and hook internals. Several capabilities are represented at their skill-directory level because their implementation was not sampled.

Main entry points: [`skills/story-long-write`](https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-long-write) (Draft writing), [`skills/story-long-analyze`](https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-long-analyze) (Long analysis), [`skills/story-deslop`](https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-deslop) (Prose cleanup), [`skills/story-long-scan`](https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-long-scan) (Long scan)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_research["Research and analysis"]
  node_longscan["Long scan"]
  node_shortscan["Short scan"]
  node_rankaggregate["Rank aggregation<br/>[aggregate-rank.js]"]
  node_longanalyze["Long analysis"]
  node_shortanalyze["Short analysis"]
  node_chapterindex["Chapter indexing"]
  node_analysisrun["Analysis runs"]
end

subgraph group_writing["Writing lifecycle"]
  node_import["Manuscript import"]
  node_outline["Outline planning"]
  node_draft["Draft writing"]
  node_shortwrite["Short writing"]
end

subgraph group_quality["Quality and continuity"]
  node_deslop["Prose cleanup"]
  node_patterncheck["Pattern checking"]
  node_tracking["Continuity tracking<br/>[tracking_commit.py]"]
  node_review["Story review"]
end

subgraph group_agent["Agent integration"]
  node_setup["Agent setup"]
  node_hooks["Agent hooks<br/>[story_hook_core.js]"]
end

subgraph group_workspace["Local workspace"]
  node_dashboard["Local dashboard"]
  node_cover["Cover generation"]
end

node_author(("Author"))
node_platforms(("Writing platforms"))

node_author -->|"scans rankings"| node_longscan
node_author -->|"scans rankings"| node_shortscan
node_longscan -->|"aggregates results"| node_rankaggregate
node_shortscan -->|"aggregates results"| node_rankaggregate
node_author -->|"analyzes fiction"| node_longanalyze
node_author -->|"analyzes fiction"| node_shortanalyze
node_longanalyze -->|"indexes chapters"| node_chapterindex
node_longanalyze -->|"manages batches"| node_analysisrun
node_author -->|"imports manuscript"| node_import
node_author -->|"plans story"| node_outline
node_outline -->|"guides drafting"| node_draft
node_author -->|"writes short fiction"| node_shortwrite
node_draft -->|"cleans prose"| node_deslop
node_shortwrite -->|"cleans prose"| node_deslop
node_deslop -->|"checks patterns"| node_patterncheck
node_draft -->|"commits continuity"| node_tracking
node_author -->|"reviews writing"| node_review
node_author -->|"deploys skills"| node_setup
node_setup -->|"deploys hooks"| node_hooks
node_hooks -->|"guards writing"| node_draft
node_author -->|"opens workspace"| node_dashboard
node_author -->|"generates cover"| node_cover
node_draft -.->|"publishes toward"| node_platforms

click node_longscan "https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-long-scan"
click node_shortscan "https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-short-scan"
click node_rankaggregate "https://github.com/worldwonderer/oh-story-claudecode/blob/main/skills/story-long-scan/scripts/aggregate-rank.js"
click node_longanalyze "https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-long-analyze"
click node_shortanalyze "https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-short-analyze"
click node_chapterindex "https://github.com/worldwonderer/oh-story-claudecode/blob/main/skills/story-long-analyze/scripts/build_chapter_index.py"
click node_analysisrun "https://github.com/worldwonderer/oh-story-claudecode/blob/main/skills/story-long-analyze/scripts/manage_analysis_run.py"
click node_import "https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-import"
click node_outline "https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-long-write"
click node_draft "https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-long-write"
click node_shortwrite "https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-short-write"
click node_deslop "https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-deslop"
click node_patterncheck "https://github.com/worldwonderer/oh-story-claudecode/blob/main/skills/story-deslop/scripts/check-ai-patterns.js"
click node_tracking "https://github.com/worldwonderer/oh-story-claudecode/blob/main/skills/story-long-write/scripts/tracking_commit.py"
click node_review "https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-review"
click node_setup "https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-setup"
click node_hooks "https://github.com/worldwonderer/oh-story-claudecode/blob/main/skills/story-setup/references/templates/hooks/story_hook_core.js"
click node_dashboard "https://github.com/worldwonderer/oh-story-claudecode/blob/main/skills/story/scripts/dashboard-server.mjs"
click node_cover "https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-cover"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_longscan,node_shortscan,node_rankaggregate,node_longanalyze,node_shortanalyze,node_chapterindex,node_analysisrun toneBlue
class node_import,node_outline,node_draft,node_shortwrite toneAmber
class node_deslop,node_patterncheck,node_tracking,node_review toneMint
class node_setup,node_hooks toneRose
class node_dashboard,node_cover,node_author,node_platforms toneIndigo
```

## Components

### Research and analysis

- [Long scan](https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-long-scan): `skills/story-long-scan`
- [Short scan](https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-short-scan): `skills/story-short-scan`
- [Rank aggregation](https://github.com/worldwonderer/oh-story-claudecode/blob/main/skills/story-long-scan/scripts/aggregate-rank.js): `skills/story-long-scan/scripts/aggregate-rank.js`
- [Long analysis](https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-long-analyze): `skills/story-long-analyze`
- [Short analysis](https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-short-analyze): `skills/story-short-analyze`
- [Chapter indexing](https://github.com/worldwonderer/oh-story-claudecode/blob/main/skills/story-long-analyze/scripts/build_chapter_index.py): `skills/story-long-analyze/scripts/build_chapter_index.py`
- [Analysis runs](https://github.com/worldwonderer/oh-story-claudecode/blob/main/skills/story-long-analyze/scripts/manage_analysis_run.py): `skills/story-long-analyze/scripts/manage_analysis_run.py`

### Writing lifecycle

- [Manuscript import](https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-import): `skills/story-import`
- [Outline planning](https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-long-write): `skills/story-long-write`
- [Draft writing](https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-long-write): `skills/story-long-write`
- [Short writing](https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-short-write): `skills/story-short-write`

### Quality and continuity

- [Prose cleanup](https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-deslop): `skills/story-deslop`
- [Pattern checking](https://github.com/worldwonderer/oh-story-claudecode/blob/main/skills/story-deslop/scripts/check-ai-patterns.js): `skills/story-deslop/scripts/check-ai-patterns.js`
- [Continuity tracking](https://github.com/worldwonderer/oh-story-claudecode/blob/main/skills/story-long-write/scripts/tracking_commit.py): `skills/story-long-write/scripts/tracking_commit.py`
- [Story review](https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-review): `skills/story-review`

### Agent integration

- [Agent setup](https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-setup): `skills/story-setup`
- [Agent hooks](https://github.com/worldwonderer/oh-story-claudecode/blob/main/skills/story-setup/references/templates/hooks/story_hook_core.js): `skills/story-setup/references/templates/hooks/story_hook_core.js`

### Local workspace

- [Local dashboard](https://github.com/worldwonderer/oh-story-claudecode/blob/main/skills/story/scripts/dashboard-server.mjs): `skills/story/scripts/dashboard-server.mjs`
- [Cover generation](https://github.com/worldwonderer/oh-story-claudecode/tree/main/skills/story-cover): `skills/story-cover`

### Other components

- **Author**
- **Writing platforms**

## Connections

- Author → Long scan: scans rankings (evidence: `README.md`)
- Author → Short scan: scans rankings (evidence: `README.md`)
- Long scan → Rank aggregation: aggregates results (evidence: `skills/story-long-scan/scripts/fanqie-rank-scraper.js`)
- Short scan → Rank aggregation: aggregates results (evidence: `README.md`)
- Author → Long analysis: analyzes fiction (evidence: `README.md`)
- Author → Short analysis: analyzes fiction (evidence: `README.md`)
- Long analysis → Chapter indexing: indexes chapters (evidence: `skills/story-long-analyze/scripts/inspect_existing_assets.py`)
- Long analysis → Analysis runs: manages batches (evidence: `skills/story-long-analyze/scripts/manage_analysis_run.py`)
- Author → Manuscript import: imports manuscript (evidence: `README.md`)
- Author → Outline planning: plans story (evidence: `README.md`)
- Outline planning → Draft writing: guides drafting (evidence: `README.md`)
- Author → Short writing: writes short fiction (evidence: `README.md`)
- Draft writing → Prose cleanup: cleans prose (evidence: `README.md`)
- Short writing → Prose cleanup: cleans prose (evidence: `README.md`)
- Prose cleanup → Pattern checking: checks patterns (evidence: `skills/story-deslop/scripts/check-ai-patterns.js`)
- Draft writing → Continuity tracking: commits continuity (evidence: `README.md`)
- Author → Story review: reviews writing (evidence: `README.md`)
- Author → Agent setup: deploys skills (evidence: `README.md`)
- Agent setup → Agent hooks: deploys hooks (evidence: `README.md`)
- Agent hooks → Draft writing: guards writing
- Author → Local dashboard: opens workspace (evidence: `README.md`)
- Author → Cover generation: generates cover (evidence: `README.md`)
- Draft writing → Writing platforms: publishes toward
