Integrate a new content theme into the portal's taxonomy, terminology bridge, enrichment pipeline, knowledge graph, and worldview pathways. Produces all integration artifacts from a theme proposal or free-text description. Use when adding thematic entry points for seekers.
Read CONTEXT.md and the following FTR files to ground in current theme infrastructure:
/guide)Input: Either a proposal file from .elmer/proposals/ or a free-text theme description in $ARGUMENTS. If a file, read it fully. If free-text, use it as the theme definition.
Identify from the input:
Before generating new artifacts, check for overlap with existing themes:
Report overlaps:
Produce these artifacts, each as a reviewable block:
Artifact 1: Teaching Topics SQL Following FTR-121 multi-category taxonomy pattern:
INSERT INTO teaching_topics (slug, name, category, description, sort_order) VALUES
('[slug]', '[Display Name]', '[category]', '[Description for embedding similarity]', [N]);
Artifact 2: Vocabulary Bridge Entries Following FTR-028 Layer 2 pattern. Map modern/colloquial terms to Yogananda's vocabulary:
INSERT INTO vocabulary_bridge (layer, human_term, yogananda_terms, corpus_territory_primary, sources, language)
VALUES (2, '[modern_term]', ARRAY['[term1]', '[term2]'], ARRAY['[territory]'], ARRAY['[book-slug]'], 'en');
Artifact 3: Enrichment Schema Extension Following FTR-026 unified enrichment pattern. New fields for the enrichment prompt:
// Addition to ChunkEnrichment interface
[field_name]: string[] | boolean | number; // [description]
Artifact 4: Crisis Detection Patterns (only if theme is crisis-adjacent) Following FTR-051 pattern. New query patterns that should trigger safety interstitial:
Patterns: ["pattern1", "pattern2", ...]
Artifact 5: Knowledge Graph Edges Following FTR-034 ontology. New concept nodes and relationships:
(:[NodeType] {name: "[concept]"}) -[:[EDGE_TYPE]]-> (:[NodeType] {name: "[concept]"})
Artifact 6: Worldview Pathway
Following FTR-056 pattern. A new pathway entry for /guide:
Pathway: [Name]
Entry text: [2-3 sentences meeting the seeker in their current framework]
Suggested passages: [3-5 starting points from the corpus]
Progression: [How the pathway deepens]
Artifact 7: Calendar/Seasonal Associations (if applicable) Following FTR-065 calendar-aware surfacing. When this theme has natural seasonal or calendar resonance:
Associations: [season/date → theme connection rationale]
Present each artifact as a numbered, reviewable block. The user can:
On approval, write changes to the appropriate FTR files:
Add revision notes to each amended section: *Theme added: [theme-name], [date]*
After execution, report:
Present all artifacts before writing. Do not execute without explicit approval.
If the theme naturally decomposes into sub-themes (e.g., "self-worth" + "abundance" + "scientific view"), ask the user whether to integrate as one compound theme or as separate themes with cross-links.
State the total count when complete.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer