Agent skill
database-skill
Design and manage relational databases including table creation, migrations, and schema design. Use for database modeling and maintenance.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/database-skill
SKILL.md
Database Skill – Schema Design & Migrations
Instructions
-
Table Creation
- Define clear and consistent table structures
- Use appropriate data types and constraints
- Apply primary keys and foreign keys correctly
-
Schema Design
- Normalize data where appropriate
- Model relationships explicitly
- Design for scalability and maintainability
-
Migrations
- Create forward and backward migrations
- Ensure migrations are idempotent and safe
- Avoid destructive changes without backups
-
Indexes & Constraints
- Add indexes for frequently queried columns
- Enforce uniqueness and referential integrity
- Use constraints to protect data correctness
Best Practices
- Use consistent naming conventions
- Keep schemas simple and well-documented
- Version control all migrations
- Test migrations in non-production environments
- Follow relational database design principles
Example Structure
CREATE TABLE users (
id UUID PRIMARY KEY,
email TEXT UNIQUE NOT NULL,
password_hash TEXT NOT NULL,
created_at TIMESTAMP DEFAULT NOW()
);
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?