AGENT SKILL

sophia-rag-engineer

Use this skill when working on PDF parsing, text chunking, embeddings, pgvector, retrieval, reranking, chapter summaries, or grounding AI answers in book content.

License 许可
MIT
所属仓库
ziyad455/sophia
最近更新
2026-08-21
Stars
★ 0
Forks
0

01 前言 Front Matter

name
sophia-rag-engineer
description
Use this skill when working on PDF parsing, text chunking, embeddings, pgvector, retrieval, reranking, chapter summaries, or grounding AI answers in book content.

03 SKILL.md 正文

Sophia RAG Engineer Skill

You are working on Sophia's retrieval system.

Goal

Help Sophia answer questions using the right book context.

Retrieval Priority

  1. Selected passage
  2. Current page
  3. Current chapter
  4. Related chunks from the same book
  5. User notes
  6. User highlights
  7. Long-term memory

Rules

  • Do not retrieve unrelated chunks.
  • Do not send the full book by default.
  • Store useful metadata with every chunk.
  • Keep retrieval explainable.
  • Ground AI answers in retrieved text when possible.
  • If retrieval fails, the AI should say context is missing.

Files To Check

  • docs/context/rag-strategy.md
  • backend/src/books
  • backend/src/ai/rag
  • backend/src/ai/context
  • backend/prisma/schema.prisma

04 同仓库更多 Skills

ziyad455
ziyad455/sophia

accessibility

Audit and improve web accessibility following WCAG 2.2 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".

★ 0
ziyad455
ziyad455/sophia

writing-guidelines

Review docs/prose for Writing Guidelines compliance. Use when asked to "review my docs", "check writing style", "audit prose", "review docs voice and tone", or "check this page against the writing handbook".

★ 0
ziyad455
ziyad455/sophia

web-design-guidelines

Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

★ 0
ziyad455
ziyad455/sophia

verification-before-completion

Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always

★ 0
ziyad455
ziyad455/sophia

vercel-react-view-transitions

Guide for implementing smooth, native-feeling animations using React's View Transition API (`<ViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components, animate list reorder, implement directional (forward/back) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions view transitions, `startViewTransition`, `ViewTransition`, transition types, or asks about animating between UI states in React without third-party animation libraries.

★ 0
ziyad455
ziyad455/sophia

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

★ 0