Skip to content
Back to skills

Schema

ASecurity

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.

  • 25 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 8, 2026
databasespythonsql

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned June 8, 2026

npx -y skills add sdemyanov/retriever --skill schema --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Schema?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Schema
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sdemyanov-schema/badge)](https://www.skillsdirectory.com/skills/sdemyanov-schema)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: schema
description: >
  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.
metadata:
  version: "1.1.17"
---

> 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:

- SQLite table definitions
- schema migrations
- relative path rules
- preview records
- chunk storage
- custom field registry entries
- manual-value overwrite protection rules
- structured filter validation rules

## Required references

1. Treat [../tool-template/src/10_core.py](../tool-template/src/10_core.py), [../tool-template/src/40_schema_runtime.py](../tool-template/src/40_schema_runtime.py), and the generated [../tool-template/tools.py](../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](schema.md) for background terminology only; if it conflicts with the source fragments or `schema-version`, the code wins.

## Rules

- Do not invent new table names when an existing table fits the need.
- Keep document paths relative to the workspace root.
- Keep preview paths relative to `.retriever/`.
- Preserve manual edits by locking corrected document fields until explicitly overwritten.
- Prefer structured filter contracts over raw SQL filter strings.
- Make migrations idempotent.
- Prefer additive schema changes over destructive rewrites.

Files in this skill

  • SKILL.md1.8 KB
  • schema.md27.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.