Agent skill

Production Awid DB

by awebai in awebai/aweb

Connect to the awid.ai production database for migrations, audits, and data operations.

MITAuto-check: notes

Install Production Awid DB

skills CLI
$ npx skills add awebai/aweb --skill production-awid-db -a claude-code

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

GitHub CLI
$ gh skill install awebai/aweb production-awid-db --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/awebai/aweb.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/production-awid-db .claude/skills/production-awid-db && 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
production-awid-db
GitHub stars
115
Token cost
~685 tokens
SKILL.md length
169 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
MIT

At a glance

Connect to the awid.ai production database for migrations, audits, and data operations.

  • Works in 6 steps: Dump current data with --column-inserts → Transform the dump to match the new… → Drop the schema: DROP SCHEMA awid CASCADE; → …
  • SKILL.md covers Credentials, Connecting, Common operations and Schema reset (consolidation), plus 1 more section
  • Calls psql, uv and pg_dump

What it does

Production Awid DB is an agent skill from awebai/aweb. Connect to the awid.ai production database for migrations, audits, and data operations. Credentials at .env.awid-production.

Its SKILL.md is about 690 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Communication for AI agents: stable identity, durable mail and chat, and wake-up events across sessions, runtimes, machines, and organizations. MIT, self-hostable. The licence is MIT.

Example prompts

  • “/production-awid-db”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Dump current data with --column-inserts
  2. Transform the dump to match the new schema (strip dropped columns)
  3. Drop the schema: DROP SCHEMA awid CASCADE;
  4. Run the migration (see above)
  5. Load the transformed data
  6. Verify counts and orphans

What it can do on your machine

Read from SKILL.md and the folder at commit 3fbb43c. 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

    Shell commands in SKILL.md call:

    • psql
    • uv
    • pg_dump

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

  • Network

    No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.

    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

Production Awid DB loads about 685 tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 169 words of instructions outside code blocks.

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

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

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:3
    its, and data operations. Credentials at .env.awid-production.
  • NoteMentions a .env fileSKILL.md:12
    /Users/juanre/prj/awebai/aweb/.env.awid-production
  • NoteMentions a .env fileSKILL.md:22
    grep AWID_DATABASE_URL .env.awid-production
  • NoteMentions a .env fileSKILL.md:85
    osted ac database configured from `../ac/.env.production` is SEPARATE.
  • NoteMentions a .env fileSKILL.md:90
    - Do NOT use `source .env.awid-production` directly — the URL

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 awebai/aweb at commit 3fbb43c, republished under its MIT licence (© awebai). 169 words, ~685 tokens.

Download SKILL.mdSave it as .claude/skills/production-awid-db/SKILL.md (or your agent's skills folder).
name
production-awid-db
description
Connect to the awid.ai production database for migrations, audits, and data operations. Credentials at .env.awid-production.

awid.ai production database operations

Credentials

Production credentials are at the repo root:

/Users/juanre/prj/awebai/aweb/.env.awid-production

The key variable is AWID_DATABASE_URL — a Neon Postgres connection string. The schema name is awid (not aweb).

Connecting

bash
# Read the URL
grep AWID_DATABASE_URL .env.awid-production

# Connect with psql (strip the channel_binding parameter if psql complains)
psql 'postgresql://...'

Common operations

Audit table counts
sql
SELECT 'did_aw_mappings' as tbl, count(*) FROM awid.did_aw_mappings
UNION ALL SELECT 'did_aw_log', count(*) FROM awid.did_aw_log
UNION ALL SELECT 'dns_namespaces', count(*) FROM awid.dns_namespaces
UNION ALL SELECT 'public_addresses', count(*) FROM awid.public_addresses
UNION ALL SELECT 'teams', count(*) FROM awid.teams
UNION ALL SELECT 'team_certificates', count(*) FROM awid.team_certificates
ORDER BY tbl;
Check for orphan addresses (FK violation candidates)
sql
SELECT pa.name, ns.domain, pa.did_aw
FROM awid.public_addresses pa
JOIN awid.dns_namespaces ns ON ns.namespace_id = pa.namespace_id
LEFT JOIN awid.did_aw_mappings m ON m.did_aw = pa.did_aw
WHERE m.did_aw IS NULL;
Run migrations
bash
AWID_DATABASE_URL='...' AWID_DB_SCHEMA=awid uv run --project awid python - <<'PY'
import asyncio, os
from awid_service.db import AwidDatabaseInfra

async def main():
    infra = AwidDatabaseInfra(schema=os.environ.get('AWID_DB_SCHEMA', 'awid'))
    await infra.initialize(run_migrations=True)
    await infra.close()

asyncio.run(main())
PY
Dump data
bash
pg_dump 'postgresql://...' --schema=awid --data-only --column-inserts -f /tmp/awid-dump.sql

Schema reset (consolidation)

When consolidating migrations into a single 001_registry.sql:

  1. Dump current data with --column-inserts
  2. Transform the dump to match the new schema (strip dropped columns)
  3. Drop the schema: DROP SCHEMA awid CASCADE;
  4. Run the migration (see above)
  5. Load the transformed data
  6. Verify counts and orphans

This was done for awid 0.3.1. See commit cd01fac for the consolidation.

Notes

  • The hosted ac database configured from ../ac/.env.production is SEPARATE. It has an embedded awid copy with minimal data. The external awid.ai registry database is what matters for production.
  • Always verify orphan addresses before deploying migrations that add FK constraints.
  • Do NOT use source .env.awid-production directly — the URL contains & which breaks shell parsing. Use grep or inline the URL.

© awebai, 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/production-awid-db of awebai/aweb.

Open the folder on GitHubat commit 3fbb43c

Compare with similar skills

Production Awid DB 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.

Production Awid DB compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Production Awid DB this skillawebai/aweb115—~685Automated safety check: NotesMIT
Reversible MigrationJuliusBrussee/caveman111k1 repos~196Automated safety check: PassApache-2.0
ConnectComposioHQ/awesome-claude-skills77k3 repos~987Automated safety check: PassNone
Database Migrationsaffaan-m/ECC277k4 repos~3kAutomated safety check: PassMIT
Database Migrationsaffaan-m/ECC277k1 repos~2.4kAutomated safety check: PassMIT
Safe Database Migration Patternsaffaan-m/ECC276k—~3.3kAutomated safety check: PassMIT

Similar skills

  • Reversible Migration

    JuliusBrussee/caveman

    Implement reversible compatibility-safe transitions. Use for schema, data, API, protocol, configuration, or dependency migrations requiring rollback and…

    111k GitHub starsUsed in 1 repo~196 tokens
    DevelopmentAuto-check passed
  • Connect

    ComposioHQ/awesome-claude-skills

    Connect Claude to any app. An agent skill from ComposioHQ/awesome-claude-skills.

    77k GitHub starsUsed in 3 repos~987 tokens
    Productivity & AutomationAuto-check passed
  • Safe, reversible database migration patterns: forward-only production changes, expand-contract zero-downtime renames, concurrent indexes, batched backfills, and per-tool workflows for PostgreSQL…

    277k GitHub starsUsed in 4 repos~3k tokens
    DatabasesAuto-check passed
  • Şema değişiklikleri, veri migration'ları, rollback'ler ve PostgreSQL, MySQL ve yaygın ORM'ler (Prisma, Drizzle, Django, TypeORM, golang-migrate) arasında sıfır kesinti deployment'ları için…

    277k GitHub starsUsed in 1 repo~2.4k tokens
    DatabasesAuto-check passed
  • Rules and examples for safe, reversible schema changes in production: zero-downtime column and index changes, large data backfills and ORM migration workflows.

    276k GitHub stars~3.3k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Migrate Create

    ruvnet/ruflo

    Create a new sequentially numbered database migration with up/down SQL files

    74k GitHub stars~583 tokensUpdated yesterday
    DatabasesAuto-check: notes

More from awebai/aweb

All 17 skills in this repo
  • Recognizes old aweb bootstrap-era `agents/` directories and migrates them to current team and identity primitives, since the old command family is retired.

    115 GitHub stars~701 tokensUpdated today
    Auto-check passed
  • Guides decisions for agents working in an aweb team: when to check shared state, claim tasks, take locks, read team roles and instructions, and open separate worktrees.

    115 GitHub stars~4k tokensUpdated today
    Auto-check passed
  • aweb Messaging

    awebai/aweb

    Guides how an agent reads and responds to aweb mail and chat events, choosing between asynchronous mail and synchronous chat and respecting sender verification and encryption boundaries.

    115 GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • This skill should be used when joining or being added to an aweb team, picking the correct invite/add-member path for the team's authority model (hosted vs BYOT), accepting invites, fetching team…

    115 GitHub stars~5.4k tokensUpdated today
    Auto-check passed
  • Creates or appends a folio document from the built-in pitch, memo or metrics templates by sending schema-checked slots that folio renders to Markdown.

    115 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Present To Human

    awebai/aweb

    A skill your agent uses when an agent needs to show a human an folio document: mint a document-bound capability link with POST /v1/present, open the returned URL for the human, print it as fallback…

    115 GitHub stars~590 tokensUpdated today
    Auto-check passed

Questions about Production Awid DB

What does Production Awid DB do?

Connect to the awid.ai production database for migrations, audits, and data operations. Production Awid DB is an agent skill from awebai/aweb.ai production database for migrations, audits, and data operations.

How do I install Production Awid DB in Claude Code?

Run `npx skills add awebai/aweb --skill production-awid-db -a claude-code`. Or copy the skill folder (.claude/skills/production-awid-db in awebai/aweb) into .claude/skills/production-awid-db in your project. Claude Code loads it when a task matches its description.

How do I install Production Awid DB in Codex?

Run `npx skills add awebai/aweb --skill production-awid-db -a codex`. Or copy the skill folder (.claude/skills/production-awid-db in awebai/aweb) into .agents/skills/production-awid-db in your project. Codex loads it when a task matches its description.

Can I use Production Awid DB 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 awebai/aweb --skill production-awid-db -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/production-awid-db, .gemini/skills/production-awid-db, .github/skills/production-awid-db and .opencode/skills/production-awid-db in your project.

What does Production Awid DB need to run?

Going by SKILL.md and its folder, Production Awid DB needs the command-line tools its instructions call (psql, uv and pg_dump). Our summary lists: Python 3.

Does Production Awid DB access the network?

SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Production Awid DB safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Production Awid DB use?

Production Awid DB 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 Production Awid DB use?

About 685 tokens (SKILL.md is roughly 2.7k 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 Production Awid DB?

Skills that share tags, products or a category with Production Awid DB: Reversible Migration (JuliusBrussee/caveman, 111k stars), Connect (ComposioHQ/awesome-claude-skills, 77k stars), Database Migrations (affaan-m/ECC, 277k stars) and Database Migrations (affaan-m/ECC, 277k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Production Awid DB?

awebai (a GitHub organization) maintains it in awebai/aweb, which has 115 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 10, 2026.

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