Skip to content
Agentmart
Submit a tool

db-sync

Applies only to work in the quantum-box/tachyon-apps repository.

Skill by quantum-box

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/quantum-box-db-sync

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Applies only to work in the quantum-box/tachyon-apps repository. Run database migrations and seed data. Use proactively when: (1) Migration files added/modified. (2) Seed YAML files changed. (3) New auth actions added. (4) Database schema needs update. (5) User asks to sync database.

Use cases: backend, data, security

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/db-sync

What's inside

Skill name
db-sync
Description
Applies only to work in the quantum-box/tachyon-apps repository. Run database migrations and seed data. Use proactively when: (1) Migration files added/modified. (2) Seed YAML files changed. (3) New auth actions added. (4) Database schema needs update. (5) User asks to sync database.
License
MIT
Instructions
82 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# DB Sync

Run migrations and seed data synchronization.

## Commands

```bash
# Run migrations
mise run docker-sqlx-migrate

# Apply seeds
yaml-seeder apply dev scripts/seeds/n1-seed

# Create new seed file
mise run seed-create -- NAME=new-feature
```

## Seed File Structure

Location: `scripts/seeds/n1-seed/`

Files are processed in alphabetical order:
```
001-auth-tenants.yaml
002-auth-service-accounts.yaml
003-iac-manifests.yaml  # dev-only IaC fixture; never production
...
008-auth-policies.yaml  # Actions and policies
```

## YAML Seed Format

```yaml
- table: schema_name.table_name
  rows:
    - column1: value1
      column2: value2
    - column1: value3
      column2: value4
```

## Adding New Auth Action

When adding new usecase with policy check:

1. Add to `008-auth-policies.yaml`:
```yaml
- table: tachyon_apps_auth.actions
  rows:
    - name: "context:ActionName"
      description: "What this action allows"

- table: tachyon_apps_auth.policy_actions
  rows:
    - policy_name: "relevant_policy"
      action_name: "context:ActionName"
```

2. Apply seeds:
```bash
yaml-seeder apply dev scripts/seeds/n1-seed
```

## TiDB Notes

- **DDL auto-commits**: Never mix DDL and DML in same migration
- **DDL/DML separation**: Migrations for schema, seeds for data
- **Low-traffic DDL**: Run DDL during low-load periods
- `003-iac-manifests.yaml` is only a local/dev fixture. It contains no Host
  config and no `auth-actions-sample` SeedData manifest. Production seeding
  rejects this file; platform manifest changes use the tenant-scoped API apply
  workflow instead.

## Workflow

1. Create migration if schema change needed
2. Run `mise run docker-sqlx-migrate`
3. Update seed files if data needed
4. Run `yaml-seeder apply dev scripts/seeds/n1-seed`
5. Verify with scenario tests

From quantum-box/tachyon-skills, MIT.

More from quantum-box/tachyon-skills

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Sep 29, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from quantum-box

Cite this page

db-sync skill. Agent Mart. https://agentmart.dev/skills/quantum-box-db-sync (last updated 2026-10-24)