Fantasia Flatten Database Schemas
vishiri/fantasia-archive
Collapses .faproject SQLite PRAGMA userversion ladders into a single bootstrap schema (procedure sets max to 1) during pre-release dev resets.
Design or review schemas for crates/cloudsync using SQLite Sync constraints, not generic SQLite advice.
$ npx skills add fastrepl/anarlog --skill sqlite-schema-design -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install fastrepl/anarlog sqlite-schema-design --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/fastrepl/anarlog.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/sqlite-schema-design .claude/skills/sqlite-schema-design && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "sqlite-schema-design" agent skill from https://github.com/fastrepl/anarlog/tree/main/.agents/skills/sqlite-schema-design into .claude/skills/sqlite-schema-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sqlite-schema-design", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/fastrepl/anarlog/tree/main/.agents/skills/sqlite-schema-designType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add fastrepl/anarlog --skill sqlite-schema-design -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install fastrepl/anarlog sqlite-schema-design --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/fastrepl/anarlog.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/sqlite-schema-design .agents/skills/sqlite-schema-design && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "sqlite-schema-design" agent skill from https://github.com/fastrepl/anarlog/tree/main/.agents/skills/sqlite-schema-design into .agents/skills/sqlite-schema-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sqlite-schema-design", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add fastrepl/anarlog --skill sqlite-schema-design -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install fastrepl/anarlog sqlite-schema-design --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/fastrepl/anarlog.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/sqlite-schema-design .cursor/skills/sqlite-schema-design && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "sqlite-schema-design" agent skill from https://github.com/fastrepl/anarlog/tree/main/.agents/skills/sqlite-schema-design into .cursor/skills/sqlite-schema-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sqlite-schema-design", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/fastrepl/anarlog.git --path .agents/skills/sqlite-schema-design--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add fastrepl/anarlog --skill sqlite-schema-design -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install fastrepl/anarlog sqlite-schema-design --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/fastrepl/anarlog.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/sqlite-schema-design .gemini/skills/sqlite-schema-design && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "sqlite-schema-design" agent skill from https://github.com/fastrepl/anarlog/tree/main/.agents/skills/sqlite-schema-design into .gemini/skills/sqlite-schema-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sqlite-schema-design", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install fastrepl/anarlog sqlite-schema-designInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add fastrepl/anarlog --skill sqlite-schema-design -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/fastrepl/anarlog.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/sqlite-schema-design .github/skills/sqlite-schema-design && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "sqlite-schema-design" agent skill from https://github.com/fastrepl/anarlog/tree/main/.agents/skills/sqlite-schema-design into .github/skills/sqlite-schema-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sqlite-schema-design", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add fastrepl/anarlog --skill sqlite-schema-design -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install fastrepl/anarlog sqlite-schema-design --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/fastrepl/anarlog.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/sqlite-schema-design .opencode/skills/sqlite-schema-design && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "sqlite-schema-design" agent skill from https://github.com/fastrepl/anarlog/tree/main/.agents/skills/sqlite-schema-design into .opencode/skills/sqlite-schema-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sqlite-schema-design", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
sqlite-schema-designDesign or review schemas for crates/cloudsync using SQLite Sync constraints, not generic SQLite advice.
Sqlite Schema Design is an agent skill from fastrepl/anarlog. Design or review schemas for crates/cloudsync using SQLite Sync constraints, not generic SQLite advice. Use when adding synced tables, changing synced columns, or planning CloudSync-safe migrations.
Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Databases, covering Database schema design. It works with SQLite. The repository describes itself as: Open source Granola AI Alternative. The licence is MIT.
10 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 259a04e. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are sql).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Sqlite Schema Design loads about 1.9k tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 924 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from fastrepl/anarlog at commit 259a04e, republished under its MIT licence (© fastrepl). 924 words, ~1,903 tokens.
.claude/skills/sqlite-schema-design/SKILL.md (or your agent's skills folder).Design tables that behave correctly under SQLite Sync's CRDT replication model.
This skill is specifically for CloudSync-backed schemas:
cloudsync_init(...)cloudsync_enable(...)cloudsync_uuid()cloudsync_begin_alter(...) and cloudsync_commit_alter(...)Do not treat this as ordinary SQLite schema design. SQLite Sync imposes extra rules around keys, defaults, foreign keys, and schema evolution.
Before proposing DDL, classify the table:
Only apply this skill to synced tables or to tables that may become synced soon.
For synced tables:
TEXT PRIMARY KEY NOT NULLcloudsync_uuid()SQLite Sync docs explicitly recommend UUIDv7-style globally unique ids for CRDT workloads. Integer autoincrement ids are a bad fit because multiple devices can create rows independently.
CREATE TABLE document (
id TEXT PRIMARY KEY NOT NULL DEFAULT (cloudsync_uuid()),
workspace_id TEXT NOT NULL,
title TEXT NOT NULL DEFAULT '',
body TEXT NOT NULL DEFAULT '',
archived INTEGER NOT NULL DEFAULT 0,
created_at INTEGER NOT NULL DEFAULT (unixepoch()),
updated_at INTEGER NOT NULL DEFAULT (unixepoch())
) STRICT;If the environment cannot use a function call in DEFAULT, generate the id in application code, but still use cloudsync_uuid() as the canonical id strategy.
SQLite Sync best practices call out a non-obvious CRDT constraint: merges can happen column-by-column, so missing values are much more dangerous than in a single-node SQLite app.
For synced tables:
NOT NULL column should have a meaningful DEFAULTGood:
title TEXT NOT NULL DEFAULT ''
archived INTEGER NOT NULL DEFAULT 0
sort_order INTEGER NOT NULL DEFAULT 0Bad:
title TEXT NOT NULL
archived INTEGER NOT NULLwithout defaults on a synced table.
The getting-started docs require the local synced database and the SQLite Cloud database to share the same schema.
When designing or reviewing a schema:
If a field is only needed locally, it likely belongs in a separate non-synced table.
SQLite Sync best practices explicitly warn that foreign keys can interact poorly with CRDT replication.
Use foreign keys on synced tables only when the integrity guarantee is worth the operational cost.
If you keep them:
DEFAULT, that default must be NULL or reference an actually valid parent row'root' unless that parent row is guaranteed to exist everywherePrefer ownership patterns that tolerate out-of-order arrival between related rows.
SQLite Sync best practices advise minimizing triggers because they make replicated writes harder to reason about.
For synced tables:
If a trigger is unavoidable, review it as part of the replication design, not as a local SQLite convenience.
The introduction docs emphasize row-level security and multi-tenant access patterns.
That changes uniqueness design:
Prefer:
UNIQUE (workspace_id, slug)over:
slug TEXT UNIQUEwhen data is tenant-scoped.
Schema changes for synced databases are not ordinary ALTER TABLE work. Use:
cloudsync_begin_alter('table_name')cloudsync_commit_alter('table_name')Design implications:
When reviewing a migration plan, reject any synced-table schema change that skips the CloudSync alter flow.
SQLite Sync already exposes its own metadata and helpers:
cloudsync_siteid()cloudsync_db_version()cloudsync_version()cloudsync_is_enabled()Do not duplicate these concepts as app-managed columns on synced tables unless there is a very specific product requirement.
The API set includes network setup and sync transport functions such as:
cloudsync_network_init(...)cloudsync_network_set_token(...)cloudsync_network_set_apikey(...)cloudsync_network_sync(...)cloudsync_network_has_unsent_changes()These matter operationally, but they are not substitutes for sound schema design.
Do not design tables that assume:
Assume offline creation, delayed delivery, retries, and independent merges.
Unless the user explicitly asks otherwise:
TEXT PRIMARY KEY NOT NULLcloudsync_uuid()STRICT tablesDEFAULT on every non-key NOT NULL columnWhen reviewing a CloudSync schema, ask:
cloudsync_begin_alter / cloudsync_commit_alter?© fastrepl, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/sqlite-schema-design of fastrepl/anarlog.
Open the folder on GitHubat commit 259a04e
Sqlite Schema Design next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Sqlite Schema Design this skillfastrepl/anarlog | 9.4k | — | ~1.9k | Automated safety check: Pass | MIT | |
| Fantasia Flatten Database Schemasvishiri/fantasia-archive | 409 | — | ~653 | Automated safety check: Pass | GPL-3.0 | |
| Sqlite Map Parserbenchflow-ai/skillsbench | 1.8k | — | ~1k | Automated safety check: Pass | Apache-2.0 | |
| Add Memory KindEverMind-AI/EverOS | 13k | — | ~2.6k | Automated safety check: Pass | Apache-2.0 | |
| Cursor BYOK Database Schemaleookun/cursor-byok | 3.2k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Golang Databaseunxed/f4 | 240 | 2 repos | ~2.9k | Automated safety check: Pass | MIT |
vishiri/fantasia-archive
Collapses .faproject SQLite PRAGMA userversion ladders into a single bootstrap schema (procedure sets max to 1) during pre-release dev resets.
benchflow-ai/skillsbench
Parse SQLite databases into structured JSON data. An agent skill from benchflow-ai/skillsbench.
EverMind-AI/EverOS
Walks through adding a new persisted memory kind to EverOS: choose storage among Markdown, SQLite and LanceDB, pick a Markdown strategy, then wire schemas, repos and writers.
leookun/cursor-byok
Guides SQLite schema changes in the Cursor BYOK server, keeping SQLx migrations, the Rust store, API contracts and fixtures aligned.
unxed/f4
Comprehensive guide for Go database access — parameterized queries, struct scanning, NULLable columns, transactions, isolation levels, SELECT FOR UPDATE, connection pool, batch processing, context…
cin12211/orca-q
Database performance optimization, schema design, query analysis, and connection management across PostgreSQL, MySQL, MongoDB, and SQLite with ORM integration.
fastrepl/anarlog
Use only in the Anarlog repository when the active checkout branch is exactly gitbutler/workspace.
fastrepl/anarlog
Use only in the Anarlog repository when the active checkout branch is exactly gitbutler/workspace.
fastrepl/anarlog
Inspect every open non-draft PR for CI failures and unresolved Cursor Bugbot findings, then fix them on the existing PR branches.
fastrepl/anarlog
Avoid direct React useEffect usage when writing or reviewing React components and hooks.
fastrepl/anarlog
QA Anarlog's critical Pro user journey on a signed staging candidate — onboarding, responsive launch, microphone and system-audio capture, automated summaries, and cloud sync.
fastrepl/anarlog
Build SQLite-backed reactive UI in apps/desktop using stable patterns for reads, selection, forms, writes, and loading states.
Works with
Categories
Design or review schemas for crates/cloudsync using SQLite Sync constraints, not generic SQLite advice. Sqlite Schema Design is an agent skill from fastrepl/anarlog. Design or review schemas for crates/cloudsync using SQLite Sync constraints, not generic SQLite advice.
Sqlite Schema Design fits situations like: adding synced tables; changing synced columns; planning CloudSync-safe migrations.
Run `npx skills add fastrepl/anarlog --skill sqlite-schema-design -a claude-code`. Or copy the skill folder (.agents/skills/sqlite-schema-design in fastrepl/anarlog) into .claude/skills/sqlite-schema-design in your project. Claude Code loads it when a task matches its description.
Run `npx skills add fastrepl/anarlog --skill sqlite-schema-design -a codex`. Or copy the skill folder (.agents/skills/sqlite-schema-design in fastrepl/anarlog) into .agents/skills/sqlite-schema-design in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add fastrepl/anarlog --skill sqlite-schema-design -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sqlite-schema-design, .gemini/skills/sqlite-schema-design, .github/skills/sqlite-schema-design and .opencode/skills/sqlite-schema-design in your project.
SKILL.md names no scripts, command-line tools or credentials: Sqlite Schema Design is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Sqlite Schema Design is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.9k tokens (SKILL.md is roughly 7.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Sqlite Schema Design: Fantasia Flatten Database Schemas (vishiri/fantasia-archive, 409 stars), Sqlite Map Parser (benchflow-ai/skillsbench, 1.8k stars), Add Memory Kind (EverMind-AI/EverOS, 13k stars) and Cursor BYOK Database Schema (leookun/cursor-byok, 3.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
fastrepl (a GitHub organization) maintains it in fastrepl/anarlog, which has 9,445 GitHub stars. The repository holds 32 skills in this directory. The repository was last updated on October 7, 2026.
Source: fastrepl/anarlog on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.