Knowledge > Runbooks > Content Ops > Add New Sermon Illustrations
Add New Sermon Illustrations
Add new sermon illustrations to the ITW (IllustrateTheWord) database. Illustrations are stored in unified_rag_content with category='illustration'.
Prerequisites
- Supabase MCP or direct DB access
- Illustration content prepared (title, body, scripture reference, topic tags, theological lens)
- Theological lens ID from
sai_theological_lenses(18 options — 17 traditions + universal) - For batch generation: access to
sermon-illustrations/scripts/and Claude CLI (claude -p)
Steps
Option A: Add a Single Illustration Manually
-
Look up the theological lens ID:
SELECT id, name, tradition FROM sai_theological_lenses ORDER BY name; -
INSERT the illustration:
INSERT INTO unified_rag_content (category,title,content,scripture_reference,theological_lens_id,topic_tags,is_public,source,created_at,updated_at) VALUES ('illustration','[Illustration Title]','[Full illustration text — 200–800 words recommended]','[e.g., John 3:16 or Romans 8:28-30]',[lens_id],ARRAY['grace', 'redemption', 'forgiveness'], -- adjust topicstrue,'editorial',now(),now()); -
Verify the illustration appears in the database:
SELECT id, title, scripture_reference, is_public, created_atFROM unified_rag_contentWHERE category = 'illustration'ORDER BY created_at DESCLIMIT 5;
Option B: Batch Generation via Script
-
Navigate to the ITW codebase:
cd /c/dev/sermon-illustrations -
Unset Claude CLI env vars before running (required for nested CLI invocation):
unset CLAUDE_CODE_ENTRYPOINTunset CLAUDECODE -
Run the generation script (uses
claude -pinternally — never the Anthropic API directly):node scripts/generate-illustrations.js \--count 10 \--lens "universal" \--topic "grace" -
Review the generated output before inserting — check for:
- Theological accuracy
- Appropriate length (200–800 words)
- No hallucinated scripture references (verify the reference exists)
- No repetition of existing illustrations
-
Approve and insert the reviewed content using the INSERT statement above, or use the script's
--insertflag if available.
Add an Image (Optional)
See illustration-images.md for adding illustration cover images after the content is inserted.
Content Quality Standards
- Scripture accuracy: Always verify the quoted reference matches the actual text.
- Length: 200–800 words per illustration for optimal embedding quality.
- Topics: Use consistent tag vocabulary (check existing tags in the DB for established terms).
- Theological lens: Match the tradition's hermeneutical emphasis — do not use
universalfor content that is tradition-specific.
Verification
- New row appears in
unified_rag_contentwithcategory='illustration'andis_public=true. - Illustration is findable on the ITW site via scripture or topic search.
- No broken scripture references or placeholder text in the
contentfield.
See Also
- regenerate-stubs.md — fix incomplete illustrations
- illustration-images.md — add cover images
- audit-content.md — systematic content quality review
- generate-by-scripture.md — generate by specific passage