Schema

From sdemyanov/retriever · View interactive version

Schema is an AI agent skill from the GitHub repository sdemyanov/retriever. Use this skill when creating, inspecting, or migrating Retriever's SQLite schema. It is the source of truth for table layouts, path rules, custom field registry behavior, manual field locks, and schema-version behavior.

How to use this skill

Skill file

Operates under retriever:routing. If the user's intent actually fits a different tier — another retriever:* skill, a Tier 2 slash, a Tier 3 tools.py subcommand, or (last resort) direct DB access — stop and re-route against the ladder before continuing.

Retriever Schema

Use this skill whenever a task touches:

Required references

  1. Treat ../tool-template/src/10_core.py, ../tool-template/src/40_schema_runtime.py, and the generated ../tool-template/tools.py as the current source of truth.
  2. Use python3 skills/tool-template/tools.py schema-version to confirm the current schema_version and tool_version.
  3. Read schema.md for background terminology only; if it conflicts with the source fragments or schema-version, the code wins.

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.