Skip to content
logos-reader-architect logo

Logos Reader Architect

logos-reader-architect

Design-only architecture skill for Bible reading systems. Use when (1) designing verse reference data models, (2) planning reader component hierarchies, (3) architecting audio playback contracts, (4) designing embed/share URL schemes, (5) planning outlook/presentation systems, (6) analyzing netwo...

SKILL.md

Full skill instructions

Logos Reader Architect

Design-only architecture skill for future-proof Bible reading systems.

Constraints

MUST NOT:

  • Modify existing code
  • Refactor components
  • Write production implementations
  • Change database schemas
  • Touch Supabase, RPCs, or Edge Functions

MUST:

  • Design abstractions
  • Define data models and contracts
  • Name components clearly
  • Explain relationships between parts
  • Think ahead to embedding, sharing, and audio playback

Design Tasks

Execute these in order when designing a Bible reader architecture:

1. Canonical Data Model

Design first-class types for:

  • Verse reference (single verse, range)
  • Ordered verse sets
  • Optional labels/​metadata
  • Version handling (KR92, KJV, etc.)
// Example structure - customize per requirements
type VerseRef = { book: string; chapter: number; verse: number }
type VerseRange = { start: VerseRef; end: VerseRef }
type VerseSet = { refs: (VerseRef | VerseRange)[]; version: string; label?: string }

2. Reader Component Taxonomy

Design hierarchy:

  • VerseRow - single verse display
  • VerseGroup - contiguous verses
  • VerseSetReader - arbitrary verse collections
  • ChapterReader - full chapter (specialization)

Clarify: compositional vs specialized, chapter-awareness boundaries.

3. Outlook Model (5-Tier Template System)

Primary reference: Docs/​context/​reader-templates.md

Read Docs/​context/​reader-templates.md for complete template specifications including:

  • Template hierarchy and breakpoints
  • Visual differences (verse numbers, spacing, padding, font, actions)
  • OutlookConfig type definition
  • OUTLOOK_PRESETS values
  • CSS mapping
  • Key implementation files

Design principles:

  • Independent of reader type
  • Consistent across app, embed, widget
  • Changes: layout, spacing, actions
  • Preserves: semantics, verse identity

4. Audio Playback Contract

Design abstraction that:

  • Operates on ordered verse lists (not chapters)
  • Emits verse cue events
  • Drives active verse highlighting
  • Reusable by any reader component
// Example interface
interface AudioController {
  play(verses: VerseRef[]): void
  onVerseCue: (ref: VerseRef) => void
  onComplete: () => void
}

5. Linking & Embedding Model

Design:

  • URL encoding for verse sets
  • Embed data delivery mechanism
  • App vs external site differences

Output Format

Produce:

  1. Conceptual overview - Architecture summary
  2. Type definitions - TypeScript-style
  3. Component diagram - ASCII relationships
  4. Design rationale - Why this scales
  5. Deferred items - What's intentionally not designed

Review Workflow

When reviewing a design document, identify issues and present them as actionable questions with options. This makes decisions faster and clearer.

Question Format

For each issue found, use AskUserQuestion tool with 2-4 concrete options:

Issue: Audio segments keyed by rangeIndex break if ranges reorder.

Question: "How should audio segments be keyed?"
Options:
- "By book.chapter identity (Recommended)" - Survives reordering, more robust
- "Keep rangeIndex" - Simpler, reordering not expected
- "Defer decision" - Mark as TODO, decide later

Review Categories

Group issues into these categories and present as multi-select or sequential questions:

Architecture Decisions - Coupling, extensibility, component boundaries API Surface - What's exposed, what's internal, response shapes Edge Cases - Errors, empty states, limits, overrides Missing States - Loading, error, empty handling

Final Confirmation

After collecting decisions, always ask:

"Update the design document with these decisions?"
Options:
- "Yes, update now"
- "Show me the changes first"
- "No, just note for later"

Example Review Output

Instead of:

"Line 56: rangeIndex ties audio directly to parsing order. If you reorder ranges, audio breaks. Consider keying by book.chapter identity instead."

Use AskUserQuestion:

Audio Segment Keying rangeIndex ties audio to parsing order - reordering ranges breaks playback.

Options:

  1. "Key by book.chapter identity (Recommended)" - Survives reordering
  2. "Keep rangeIndex" - Simpler if reorder never happens
  3. "Add both keys" - rangeIndex for order, identity for lookup

Network Optimization Analysis

When analyzing duplicate requests or designing lean data fetching:

  1. Capture network log - Filter by domain, sort by timestamp
  2. Identify duplicates - Same endpoint multiple times
  3. Trace call sites - grep -rn "functionName" src/
  4. Apply fix patterns - Lift state up, remove nested fetches, consolidate providers

For detailed patterns and checklist, see references/​network-optimization.md.

Quick Diagnostic Questions

  • Is the same data fetched by multiple hooks?
  • Does a service function fetch data that React Query also manages?
  • Are there provider wrappers whose context is never consumed?
  • Do child components fetch data they already receive as props?

Context Files

For project context, read from Docs/​context/:

  • Docs/​context/​reader-templates.md - 5-tier template system (primary reference for outlook design)
  • Docs/​context/​db-schema-short.md - Database tables (verses, chapters, audio)
  • Docs/​context/​supabase-map.md - Edge Functions (embed, etc.)
  • Docs/​context/​packages-map.md - Shared packages (shared-voice, etc.)

For reader-specific patterns, see references/​current-architecture.md. For network optimization patterns, see references/​network-optimization.md.

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View