Use this skill when you need to find information about:
Run a PostgreSQL query against the knowledge_base table using the bash tool:
bash
psql "$DATABASE_URL" \
-c "SELECT content::text, source, data_type FROM knowledge_base WHERE content::text ILIKE '%SEARCH_TERM%' LIMIT 5;"
Replace SEARCH_TERM with the relevant keyword(s).
TableDescriptionKey Columnsknowledge_baseRAG chunks (3,800+)content, source, data_type``team_membersTeam roster (6 active)name, role, title, email, department, equity_percent``team_meetingsMeeting notes (5)title, date, summary, key_insights, decisions``meeting_action_itemsAction items (32)title, assignee, status, priority, due_date``team_goalsCompany goals (4)title, status, target_date, progress_percent
TableDescriptionKey ColumnspagesCMS pages (155)slug, title, content, zone, cluster_id, status``productsProducts (2)name, price_cents, description, sku``ordersOrders (11)total, status, customer_name, created_at``customersCustomers (10)name, email, created_at``clustersTopic clusters (20)name, slug, description
TableDescriptionrag_memory_objectsLearned lessons & policiesscience_articlesScientific contentnewsletter_subscribersEmail subscribers
bash
psql "$DATABASE_URL" \
-c "SELECT name, title, department, equity_percent FROM team_members WHERE is_active = true;"
bash
psql "$DATABASE_URL" \
-c "SELECT LEFT(content::text, 300) as content, source FROM knowledge_base WHERE content::text ILIKE '%chris%' LIMIT 5;"
bash
psql "$DATABASE_URL" \
-c "SELECT slug, title, zone FROM pages WHERE status = 'published' ORDER BY slug LIMIT 20;"
bash
psql "$DATABASE_URL" \
-c "SELECT COUNT(*) as orders, SUM(total)/100.0 as revenue_eur, AVG(total)/100.0 as avg_order FROM orders;"
bash
psql "$DATABASE_URL" \
-c "SELECT title, status, priority, due_date FROM meeting_action_items WHERE assignee ILIKE '%chris%';"
bash
psql "$DATABASE_URL" \
-c "SELECT title, LEFT(content, 500) as content_preview FROM pages WHERE slug = '/ion/overview';"
LEFT(content::text, 300) to truncate long content fields (content is jsonb, must cast to text)ILIKE for case-insensitive text searchespages tableknowledge_base WHERE data_type = 'research' OR search science_articles