Forge database
Skill is-bo/fullstack-forge-skill/.github/skills/forge-database
A production full-stack engineering skill suite for AI coding agents—covering UI, UX, security, databases, auth, caching, testing, performance, and deployment.
npx -y skills add is-bo/fullstack-forge-skill --skill forge-databaseAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 20 days oldThe repository was created 20 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Inspect schema integrity, migrations, constraints, tenancy, lifecycle, recovery, and production-safe evolution. Activate automatically for applications with a database or durable structured store when that concern is relevant to a software-engineering request.
SKILL.md
4.5 KB, 848 tokens by cl100k_base, as published. Nobody here has run it
forge-database: Database design
Purpose
Inspect schema integrity, migrations, constraints, tenancy, lifecycle, recovery, and production-safe evolution.
This is an agent playbook, not a claim of standalone analyzer coverage. Apply
fullstack-forge/references/shared/module-contract.md
for common applicability, evidence, command-safety, mutation, verification, and completion rules.
Never hide failed checks or claim that an operation ran when it did not.
Automatic activation signals
Activate when a request or direct repository evidence involves database design, when
the user explicitly names forge-database, or when discovery proves an applicable boundary.
- Applications with a database or durable structured store
When not to activate
- Stateless applications proven to store no durable data
Automated support
Relevant discovery inputs are:
- schema and migrations
- ORM metadata
- database configuration and tests
Available deterministic support, where present:
- Use
inspect-database-schemafor its bounded evidence when present; treat unavailable runtime evidence asNOT_VERIFIED.
Agent inspection procedure
- Read the schema (migrations, ORM models, or live catalog) and verify primary keys, foreign keys, unique constraints, and nullability against the domain rules.
- Check types for money (integer minor units or decimal), timestamps (time-zone aware), enums (evolution path), and identifiers.
- Trace referential integrity and cascade behavior for deletion paths, including soft-deletion consistency.
- Review the migration history for destructive operations, lock-heavy changes on large tables, and reversibility.
- Verify tenant-scoping columns and indexes, audit fields, and database-level permissions against least privilege.
Manual inspection requirements:
- Review applied production migration state and large-table risk with operators
- Confirm restore objectives and managed-database settings
Stack-specific guidance:
- Inspect generated SQL and actual constraints, not ORM declarations alone
Evidence to collect
For formal findings, also follow fullstack-forge/references/PROTOCOL.md. Record the module's
inspected boundary, relevant tests, direct observations, and unavailable evidence.
Primary standards used as criteria, not proof of compliance:
- PostgreSQL current documentation
- OWASP Database Security Cheat Sheet
Common production failures
- Inspect keys, types, nullability, defaults, foreign keys, uniqueness, checks, indexes, and cascade behavior
- Review migration ordering, transactional safety, locks, backfills, expand-contract compatibility, and rollback or forward-fix strategy
- Trace tenant isolation, encryption, retention, audit fields, soft deletion, and backup expectations
Missing-control checks
For every applicable criterion below, attach direct evidence or record a reasoned
NOT_APPLICABLE, NOT_VERIFIED, or BLOCKED status. The list is a routing checklist, not
evidence by itself.
- Primary keys
- Foreign keys
- Unique constraints
- Check constraints
- Nullability
- Normalization
- Intentional denormalization
- Cascade behavior
- Data types
- Money representation
- Date representation
- Time zones
- Enum evolution
- Audit fields
- Soft deletion
- Tenant scoping
- Migration history
- Referential integrity
- Database permissions
- Data retention
- Large-table evolution
- Migration safety
- Rollback implications
Commands and tools
- Run
forge database audit --jsonorfullstack-forge database audit --jsonwhen an explicit audit is requested and the CLI is installed. Normal feature work does not require it. - Use the deterministic support named above only for its documented bounded evidence.
Safe fixes
- Add documentation and tests for existing constraints
- Create a new unapplied safe migration when lock and compatibility risk is understood
Approval-required changes
- Editing applied migrations, dropping data, changing ownership, or rewriting architecture
Verification
- Apply migrations to an empty and representative upgraded database
- Run integrity and rollback/forward-fix tests
Completion contract
Apply the shared module contract and the module-specific limitations below.
Known limitations
- Production row counts, locks, and plans cannot be inferred