error-fixer
Spectaculous-Code/raamattu-nyt
Fix JavaScript and HTTP errors flagged for AI in the admin dashboard. Queries the database for
errors with ai_status='flagged_for_ai', analyzes them, and attempts to fix them.
Use for: "fix errors"/"fix flagged errors", "check error queue", AI
error-queue / AI-flagged errors, or after flagging errors in the admin
dashboard.
Triggers: "fix errors", "error queue", "ai errors", "flagged errors", "fix ai errors", "/fix-errors"
security-auditor
Spectaculous-Code/raamattu-nyt
Comprehensive Supabase security auditor for RLS policies, table privileges (GRANTs), and access control validation.
Use for: auditing DB security (RLS + GRANTs), generating an access matrix
(who can SELECT/INSERT/UPDATE/DELETE which tables), finding gaps (missing
RLS, over-permissive GRANTs), validating PostgREST access patterns, writing
security docs for Docs/context/, creating RLS policies, validating user data
protection, checking admin access, identifying vulnerabilities, and triaging
security scanner output (Supabase database linter / advisors and the Lovable
agentic security scanner — RLS-disabled, SECURITY DEFINER executable by
anon/authenticated, mutable search_path, public bucket listing, extension in
public, exposed sensitive columns).
Also use for designing ROLE-PERMISSION TESTS: building the per-role permissions
matrix (anon / authenticated / admin + the plan ladder free/pro/premium), and
obtaining a session per role to run the tests (pgTAP `request.jwt.claims` or
`signInWithPassword`). Knows th
lovable-setup
Spectaculous-Code/raamattu-nyt
Debug and fix Lovable preview/build issues including white screens, module import failures,
and monorepo configuration. Use when: (1) Lovable preview shows white/blank screen,
(2) "Failed to fetch dynamically imported module" errors, (3) Missing script errors,
(4) PostCSS/Tailwind resolution failures, (5) Workspace package resolution errors,
(6) 504 Gateway Timeout on dependencies, (7) Setting up monorepo for Lovable deployment.
Triggers: "lovable broken", "white screen", "preview not loading", "lovable build failed",
"dynamic import error", "module not found lovable".
topic-manager
Spectaculous-Code/raamattu-nyt
Expert assistant for managing biblical topics in the KR92 Bible Voice project. Use when (1) creating/editing topics and their Finnish translations, (2) managing topic relations (related, opposite, broader, narrower), (3) validating Finnish translations and pronunciations with Voikko/Omorfi, (4) reviewing topics marked with qa_status='unchecked', (5) bulk updating topic translations, (6) managing topic aliases and synonyms, (7) fixing incorrectly translated Finnish topic names, or (8) structuring the topic taxonomy — building/auditing the parent_id tree (hierarchy, broader/narrower, roots, orphans, cycles, depth), assigning a coherent root backbone, re-parenting after merges, and linking related/opposite topics. Trigger words — aihe, topic, teema, taksonomia, rakenne, puurakenne, hierarkia, parent, root, liitos, yhdistäminen/merge, relation, alias.
bible-lookup-helper
Spectaculous-Code/raamattu-nyt
Bible reference lookups, full-text/topic/Strong's/Q&A search, and AI semantic search in Raamattu Nyt. Use for fetching verses by reference (Joh 3:16), building/modifying the SearchPage (7 tabs: jakeet/aiheet/Strong's/kysymykset/videot/muut/comparison), calling search RPCs (search_text, search_topics_with_aliases, search_verses_by_strongs, get_approved_ai_summary), classifying queries (verse vs topic vs Strong's vs free-text), anchor questions/AI summaries/topic synonyms, validating OSIS references, and choosing the right lookup pattern.
edge-function-generator
Spectaculous-Code/raamattu-nyt
Expert assistant for creating and maintaining Supabase Edge Functions for the KR92 Bible Voice project. Use when (1) creating new Edge Functions, (2) setting up CORS and error handling, (3) integrating shared modules from _shared/, (4) adding JWT validation, (5) configuring environment variables, (6) auditing or updating dependency versions across functions. Triggers include "edge function", "create function", "serverless", "deno function", "update edge imports", "version drift".