Skip to content
bible-lookup-helper logo

Bible Lookup Helper

bible-lookup-helper

Expert assistant for Bible reference lookups and RPC function usage in the KR92 Bible Voice project. Use when fetching Bible verses, generating verse lookups, validating references, working with OSIS format, or choosing optimal lookup patterns.

SKILL.md

Full skill instructions

Bible Lookup Helper

Context Files (Read First)

For schema and API details, read from Docs/​context/:

  • Docs/​context/​db-schema-short.md - Bible schema tables
  • Docs/​context/​supabase-map.md - RPC functions list

Capabilities

  • Generate correct RPC function calls for Bible lookups
  • Validate OSIS reference formats
  • Suggest optimal lookup patterns (verse vs chapter vs range)
  • Provide book name aliases and normalization
  • Convert between different reference formats

Usage Examples

Example 1: Generate RPC call for single verse

User: "How do I fetch John 3:16 in Finnish?" Assistant:

const { data } = await supabase.rpc('get_verse_by_ref', {
  p_ref_book: 'John',
  p_chapter: 3,
  p_verse: 16,
  p_version_code: 'finstlk201',
  p_language_code: 'fi'
});

Example 2: Generate RPC call for chapter

User: "Get all verses from Genesis chapter 1" Assistant:

const { data: verses } = await supabase.rpc('get_chapter_by_ref', {
  p_ref_book: 'Genesis',
  p_chapter: 1,
  p_version_code: 'finstlk201',
  p_language_code: 'fi'
});

Example 3: Validate reference format

User: "Is '1. Joh.4:8' a valid reference?" Assistant: Yes, this is valid. It follows the Finnish format for numbered books:

  • Book: 1. Johannes (1 John)
  • Chapter: 4
  • Verse: 8

Alternative valid formats:

  • 1 Joh.4:8 (without period after number)
  • 1.Joh.4:8 (no space)
  • 1 John 4:8 (English)

Example 4: Convert reference formats

User: "Convert 'Joh.3:16' to OSIS format" Assistant: OSIS format: John.3.16

Finnish formats accepted:

  • Joh.3:16 (with colon)
  • Joh.3.16 (with period)
  • Johannes 3:16 (full name)

Available RPC Functions

Single Verse

get_verse_by_ref(p_ref_book, p_chapter, p_verse, p_version_code, p_language_code)
→ {osis, text_content, verse_id}

Full Chapter

get_chapter_by_ref(p_ref_book, p_chapter, p_version_code, p_language_code)
→ [{book_code, book_name, chapter_number, verse_number, osis, text_content, verse_id, version_code}]

Verse Range

get_verses_by_ref(p_ref_book, p_chapter, p_verses[], p_version_code, p_language_code)
→ Same as chapter but filtered

Verse Study (with Strong's)

get_verse_study_data(p_version_code, p_book_name, p_chapter, p_verse)
→ Full study data including KJV Strong's tags

Text Search

search_text(p_query, p_version_code, p_limit)
search_text_extended(p_query, p_version_code, p_limit)
→ [{book_name, chapter_number, verse_number, osis, text_content, verse_id}]

Supported Bible Versions

CodeNameLanguage
finstlk201Pyhä Raamattu (STLK 2017) - DEFAULTFinnish
finpr_finnPyhä Raamattu (1933/​1938)Finnish
KJVKing James Version with Strong'sEnglish

Book Name Aliases

The system recognizes multiple formats:

  • Finnish: Joh, Johannes, Johanneksen evankeliumi
  • English: John, Jn, Gospel of John
  • Numbered books: 1. Joh, 1 Joh, 1Joh, 1 John
  • Moses books: 1. Moos, 1 Moos, Gen, Genesis

Best Practices

  1. Always use RPC functions - Never query tables directly
  2. Default version - Use finstlk201 for Finnish content
  3. Cache results - Use React Query to cache lookups
  4. Preload - Load next chapter for better UX
  5. Error handling - Check for empty results
  6. OSIS format - Use for cross-version references

Performance Tips

  • Single verse: ~20ms
  • Full chapter: ~50ms
  • Text search: ~100ms
  • Use indexed fields for best performance
  • Limit search results with p_limit parameter

Reference Format Patterns

Valid Formats

  • Book.Chapter:Verse - e.g., Joh.3:16
  • Book.Chapter.Verse - e.g., Joh.3.16
  • Book Chapter:Verse - e.g., John 3:16
  • Number. Book.Chapter:Verse - e.g., 1. Joh.4:8

Range Formats

  • Book.Chapter:Verse-Verse - e.g., Joh.3:16-17
  • Book.Chapter:Verse-Chapter:Verse - e.g., Joh.3:16-4:2

Related Documentation

  • See Docs/​05-DEV.md for detailed lookup patterns
  • See Docs/​03-API.md for complete API reference

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