Agent skill

Srtd CLI

by t1mmen in t1mmen/srtd

This skill should be used when the user mentions "srtd", "sql templates", "migrations-templates", "live reload sql", "supabase functions", when working with files in supabase/migrations-templates/…

MITAuto-check passedDatabases

Install Srtd CLI

skills CLI
$ npx skills add t1mmen/srtd --skill srtd-cli -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install t1mmen/srtd srtd-cli --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/t1mmen/srtd.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/srtd-cli .claude/skills/srtd-cli && rm -rf skills-src

Use ~/.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/

Facts

Skill name
srtd-cli
GitHub stars
105
Token cost
~360 tokens
SKILL.md length
83 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

This skill should be used when the user mentions "srtd", "sql templates", "migrations-templates", "live reload sql", "supabase functions", when working with files in supabase/migrations-templates/…

  • Migrations-templates
  • SKILL.md covers Workflow, Templates, Commands and State
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Live reload sql

What it does

Srtd CLI is an agent skill from t1mmen/srtd. This skill should be used when the user mentions "srtd", "sql templates", "migrations-templates", "live reload sql", "supabase functions", when working with files in supabase/migrations-templates/, when .buildlog.json or srtd.config.json is detected, or when writing Postgres functions/views/triggers for Supabase.

Its SKILL.md is about 360 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 SQL. It works with SQL, Supabase and PostgreSQL. The repository describes itself as: 🪄 Supabase migrations made magical: Live-reloading SQL + Sane, reviewable diffs + Maintainable templates = Delightful DX. The licence is MIT.

When your agent uses it

  • Migrations-templates
  • Live reload sql
  • Supabase functions
  • Working with files in supabase/migrations-templates/

Example prompts

  • “sql templates”
  • “migrations-templates”
  • “live reload sql”
  • “/srtd-cli”

What it can do on your machine

Read from SKILL.md and the folder at commit 271b138. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Srtd CLI loads about 360 tokens when it runs. Until then it costs about 81 tokens; SKILL.md has 83 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~81
When it runs · the whole SKILL.md, loaded when a task matches
~360

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from t1mmen/srtd at commit 271b138, republished under its MIT licence (© t1mmen). 83 words, ~360 tokens.

Download SKILL.mdSave it as .claude/skills/srtd-cli/SKILL.md (or your agent's skills folder).
name
srtd-cli
description
This skill should be used when the user mentions "srtd", "sql templates", "migrations-templates", "live reload sql", "supabase functions", when working with files in supabase/migrations-templates/, when .buildlog.json or srtd.config.json is detected, or when writing Postgres functions/views/triggers for Supabase.

SRTD - Iterative SQL Template Development

Workflow

Start watch in background immediately:

bash
srtd watch --json

Use run_in_background: true. Monitor with TaskOutput for events: templateApplied (success), templateError (check errorMessage/errorHint).

Templates

Location: supabase/migrations-templates/*.sql. Must be idempotent.

Idempotency patterns:

  • Functions/Views: CREATE OR REPLACE (use DROP only when changing signature)
  • Policies: DROP POLICY IF EXISTS then CREATE POLICY (not replaceable)
  • Triggers: Drop BOTH trigger AND function first

Dependencies: -- @depends-on: other.sql at top

WIP: .wip.sql suffix → applies locally, never builds

Commands

bash
srtd apply [--force] [--json]   # Apply to local DB (use instead of watch for one-off)
srtd build [--bundle]           # Generate migration FILES only (does NOT apply to DB)
srtd clear --reset              # Reset state if confused

State

  • .buildlog.json → commit (tracks built migrations)
  • .buildlog.local.json → gitignored (local DB state)

© t1mmen, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/srtd-cli of t1mmen/srtd.

Open the folder on GitHubat commit 271b138

Compare with similar skills

Srtd CLI 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.

Srtd CLI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Srtd CLI this skillt1mmen/srtd105—~360Automated safety check: PassMIT
Expert DatabaseReJeCtAll/ExpertTeam-Codex113—~692Automated safety check: PassMIT
DB Migratealexeykrol/claude-code-starter194—~405Automated safety check: NotesNone
Stash Postgrescipherstash/stack157—~6.3kAutomated safety check: PassMIT
Memstack Security Rls Guardiancwinvestments/memstack423—~3.4kAutomated safety check: PassProprietary
Firebaseericrisco/rsc-harness156—~3.3kAutomated safety check: PassMIT

Similar skills

  • Expert Database

    ReJeCtAll/ExpertTeam-Codex

    数据库优化专家入口。用于 Codex CLI 的 $expert-database 调用. An agent skill from ReJeCtAll/ExpertTeam-Codex.

    113 GitHub stars~692 tokensUpdated 3 mo ago
    DatabasesAuto-check passed
  • DB Migrate

    alexeykrol/claude-code-starter

    Миграция схемы базы данных: SQLite → PostgreSQL/Supabase. An agent skill from alexeykrol/claude-code-starter.

    194 GitHub stars~405 tokensUpdated 2 mo ago
    DatabasesAuto-check: notes
  • Stash Postgres

    cipherstash/stack

    Query EQL v3 encrypted columns from hand-written Postgres SQL over pg (node-postgres) or postgres (postgres-js) — no ORM.

    157 GitHub stars~6.3k tokensUpdated today
    DatabasesAuto-check passed
  • Memstack Security Rls Guardian

    cwinvestments/memstack

    A skill your agent uses when creating or altering database tables in Supabase or PostgreSQL projects.

    423 GitHub stars~3.4k tokensUpdated 11 days ago
    DatabasesAuto-check passed
  • Firebase

    ericrisco/rsc-harness

    A skill your agent uses when building on Firebase — Firestore data modeling, Security Rules, Auth and custom claims, Cloud Functions, Storage, modular Web/Admin SDK imports — including symptoms like…

    156 GitHub stars~3.3k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Official

    Gives the agent Postgres rules to consult before writing or changing tables, queries, indexes, RLS policies or migrations, and when diagnosing slow queries.

    2.7k GitHub starsUsed in 24 repos~808 tokens
    DatabasesAuto-check passed

More from t1mmen/srtd

  • Srtd Dev

    t1mmen/srtd

    Expert knowledge for developing the SRTD codebase itself. An agent skill from t1mmen/srtd.

    105 GitHub stars~2.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Structured code review workflow for SRTD development. An agent skill from t1mmen/srtd.

    105 GitHub stars~807 tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Srtd CLI

What does Srtd CLI do?

This skill should be used when the user mentions "srtd", "sql templates", "migrations-templates", "live reload sql", "supabase functions", when working with files in supabase/migrations-templates/…. Srtd CLI is an agent skill from t1mmen/srtd.json is detected, or when writing Postgres functions/views/triggers for Supabase.

When should I use Srtd CLI?

Srtd CLI fits situations like: migrations-templates; live reload sql; supabase functions; working with files in supabase/migrations-templates/.

How do I install Srtd CLI in Claude Code?

Run `npx skills add t1mmen/srtd --skill srtd-cli -a claude-code`. Or copy the skill folder (.claude/skills/srtd-cli in t1mmen/srtd) into .claude/skills/srtd-cli in your project. Claude Code loads it when a task matches its description.

How do I install Srtd CLI in Codex?

Run `npx skills add t1mmen/srtd --skill srtd-cli -a codex`. Or copy the skill folder (.claude/skills/srtd-cli in t1mmen/srtd) into .agents/skills/srtd-cli in your project. Codex loads it when a task matches its description.

Can I use Srtd CLI in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add t1mmen/srtd --skill srtd-cli -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/srtd-cli, .gemini/skills/srtd-cli, .github/skills/srtd-cli and .opencode/skills/srtd-cli in your project.

What does Srtd CLI need to run?

SKILL.md names no scripts, command-line tools or credentials: Srtd CLI is instructions for the agent only.

Does Srtd CLI access the network?

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.

Is Srtd CLI safe to install?

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.

What licence does Srtd CLI use?

Srtd CLI is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Srtd CLI use?

About 360 tokens (SKILL.md is roughly 1.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Srtd CLI?

Skills that share tags, products or a category with Srtd CLI: Expert Database (ReJeCtAll/ExpertTeam-Codex, 113 stars), DB Migrate (alexeykrol/claude-code-starter, 194 stars), Stash Postgres (cipherstash/stack, 157 stars) and Memstack Security Rls Guardian (cwinvestments/memstack, 423 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Srtd CLI?

t1mmen (a GitHub user) maintains it in t1mmen/srtd, which has 105 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on September 5, 2026.

Source: t1mmen/srtd on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.