monorepo-sync-types

monorepo-sync-types is a skill for Claude Code, Codex from lukedj78/dev-flow. It costs 209 tokens per session (2,303 once invoked), scanned A, original, MIT.

A tool for keeping database and backend TypeScript types in one shared package inside a Turborepo monorepo, a repository containing multiple related apps and packages.

In plain words
What is it for?
It regenerates types from Supabase, Drizzle, tRPC, or selected custom sources and makes them available through the shared package.
Why use it?
It prevents the web and mobile apps from using different or outdated definitions of the same backend data.

Skill for Claude CodeCodex

Part of the dev-flow plugin — 46 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/lukedj78/dev-flow/monorepo-sync-types
Any agent
npx skills add lukedj78/dev-flow --skill monorepo-sync-types
Clone the repo
git clone --depth 1 https://github.com/lukedj78/dev-flow

Made for: Claude Code, Codex.

Or install dev-flow, the plugin that ships this one along with the rest of its 46 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for monorepo-sync-types

README.md
[![agentmods](https://agentmods.dev/badge/skills/lukedj78/dev-flow/monorepo-sync-types.svg)](https://agentmods.dev/skills/lukedj78/dev-flow/monorepo-sync-types)
Your own site
<a href="https://agentmods.dev/skills/lukedj78/dev-flow/monorepo-sync-types"><img src="https://agentmods.dev/badge/skills/lukedj78/dev-flow/monorepo-sync-types.svg" alt="Measured on agentmods" height="20"></a>
Per session 209 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,303 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00209 $0.02303
Opus 5 $0.00105 $0.01151
Sonnet 5 $0.00042 $0.00461
Haiku 4.5 $0.00021 $0.00230

Measured 4d ago against content hash b91c065b96c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

monorepo-sync-types scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/sync-supabase.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

monorepo-sync-types/SKILL.md · 182 lines

How it starts

The opening of the file, as written. The whole thing — 182 lines — stays where its author put it; the contents beside it link to each section on GitHub.

monorepo-sync-types — regenerate + propagate backend types across the monorepo

Contract

See references/contracts.md (vendored from dev-flow). Key facts:

  • Reads <project-root>/.workflow/meta.json#stack.framework — must be "monorepo".
  • Reads meta.json#stack.db and stack.auth to determine the source of truth:
    • "supabase" → run supabase gen types typescript against the linked project.
    • "neon-drizzle" → introspect/pull via drizzle-kit and re-export InferSelectModel/InferInsertModel from the Drizzle schema (this is the default DB for most projects — see module-add/references/module-db.md).
    • "trpc" → re-import the server router type and re-export it.
    • "firebase" → no auto-gen, but normalize fixed types from Firestore rules (limited).
    • "custom-rest" → ask the user where the schema lives (Zod / OpenAPI / TS source).
  • Writes generated types into packages/shared/src/types/ (NOT into packages/api/, because packages/shared is consumed by BOTH apps including for non-backend code).
  • Idempotent: regenerating overwrites; no-diff prints "already in sync".
  • Does NOT modify phase.

When this skill applies

  • User says: "rigenera i tipi", "sync DB schema", "supabase types update", "the backend changed, update types".
  • Orchestrator does NOT route here automatically — invoked on demand (e.g., after a backend migration).

Knowledge dependencies

  • monorepo-bootstrap/references/structure.md — for packages/shared/src/types/ location.
  • rn-backend/references/<provider>.md — for provider-specific gen commands.
  • module-add/references/module-db.md — for the web side conventions.

Workflow

Step 1 — Verify preconditions

Read .workflow/meta.json. Abort if:

  • stack.framework != "monorepo".
  • stack.db == null AND stack.auth == null → "No backend configured yet. Run module-add db or rn-module-add db first."

Read meta.json#stack_config.supabase_project_ref (or equivalent) for the gen command target.

Read the full file on GitHub · 182 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 182 lines · 209 tokens per session scan A b91c065b96c5

Subscribe to this mod's changes

monorepo-sync-types is a skill published in the GitHub repository lukedj78/dev-flow (6 stars, last pushed yesterday), licensed MIT. It adds 209 tokens to every session and 2,303 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

android-data-persistence

Use when implementing local data storage with Room, DataStore, or offline-first patterns. Covers entities, DAOs, migrations, Paging3, and the repository pattern for data management.

GuillemRoca/agent-skills-android · 41 tokens

rn-data-layer

Expert guidance on building an offline-first data layer in React Native with MMKV, WatermelonDB, or SQLite behind a repository abstraction. Use when asked about persistence, caching, or offline support.

almasumdev/awesome-react-native-agent-skills · 43 tokens

build-teaql-app

Build or change a TeaQL application in Java, Rust, Go, Swift, Python, C#/.NET, or TypeScript, including Kotlin/JVM applications that consume Java-generated libraries. Mandatory order: first draft and save a complete KSML model, then verify the client and evaluate that saved model, repair it through repeated evaluation…

teaql/teaql-agent-kit · 112 tokens

security-engineer

Security-first auditing of AI-generated code — Level 1 quick checks during /toh-dev and /toh-test (hardcoded secrets, dangerous code execution, obvious injection vectors) and Level 2 full audits for /toh-protect (SQL/XSS/command injection, auth and authorization flaws, configuration and dependency risks) with…

wasintoh/toh-framework · 87 tokens

cosmic

Futuristic sci-fi aesthetic with dark themes, vibrant neon accents, and immersive spatial elements.

bergside/awesome-design-skills · 22 tokens

rn-feature-development

This skill should be used when building any new feature in a React Native or Expo app, or when the /rn-dev-agent:rn-feature-dev command runs. Triggers on "build a feature", "add X to the app", "implement Y", "create a new screen", "rn-feature-dev", "feature development", "build me X", "add a screen", "wire up this…

Lykhoyda/rn-dev-agent · 86 tokens