database – skill Dữ liệu & Khoa học cho agent AI
Quy trình phát triển và vận hành cơ sở dữ liệu, bao gồm SQL, NoSQL, thiết kế CSDL, migration, tối ưu hóa và kỹ thuật dữ liệu.
Cài skill database bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/database-976cc.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /database – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/database-976cc.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $database – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/database-976cc.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /database – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/database-976cc.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /database – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Database Workflow Bundle
Overview
Comprehensive database workflow for database design, development, optimization, migrations, and data engineering. Covers SQL, NoSQL, and modern data platforms.
When to Use This Workflow
Use this workflow when:
- Designing database schemas
- Implementing database migrations
- Optimizing query performance
- Setting up data pipelines
- Managing database operations
- Implementing data quality
Workflow Phases
Phase 1: Database Design
Skills to Invoke
database-architect- Database architecturedatabase-design- Schema designpostgresql- PostgreSQL designnosql-expert- NoSQL design
Actions
1. Gather requirements
2. Design schema
3. Define relationships
4. Plan indexing strategy
5. Design for scalability
Copy-Paste Prompts
Use @database-architect to design database schemaUse @postgresql to design PostgreSQL schemaPhase 2: Database Implementation
Skills to Invoke
prisma-expert- Prisma ORMdatabase-migrations-sql-migrations- SQL migrationsneon-postgres- Serverless Postgres
Actions
1. Set up database connection
2. Configure ORM
3. Create migrations
4. Implement models
5. Set up seed data
Copy-Paste Prompts
Use @prisma-expert to set up Prisma ORMUse @database-migrations-sql-migrations to create migrationsPhase 3: Query Optimization
Skills to Invoke
database-optimizer- Database optimizationsql-optimization-patterns- SQL optimizationpostgres-best-practices- PostgreSQL optimization
Actions
1. Analyze slow queries
2. Review execution plans
3. Optimize indexes
4. Refactor queries
5. Implement caching
Copy-Paste Prompts
Use @database-optimizer to optimize database performanceUse @sql-optimization-patterns to optimize SQL queriesPhase 4: Data Migration
Skills to Invoke
database-migration- Database migrationframework-migration-code-migrate- Code migration
Actions
1. Plan migration strategy
2. Create migration scripts
3. Test migration
4. Execute migration
5. Verify data integrity
Copy-Paste Prompts
Use @database-migration to plan database migrationPhase 5: Data Pipeline Development
Skills to Invoke
data-engineer- Data engineeringdata-engineering-data-pipeline- Data pipelinesairflow-dag-patterns- Airflow workflowsdbt-transformation-patterns- dbt transformations
Actions
1. Design data pipeline
2. Set up data ingestion
3. Implement transformations
4. Configure scheduling
5. Set up monitoring
Copy-Paste Prompts
Use @data-engineer to design data pipelineUse @airflow-dag-patterns to create Airflow DAGsPhase 6: Data Quality
Skills to Invoke
data-quality-frameworks- Data qualitydata-engineering-data-driven-feature- Data-driven features
Actions
1. Define quality metrics
2. Implement validation
3. Set up monitoring
4. Create alerts
5. Document standards
Copy-Paste Prompts
Use @data-quality-frameworks to implement data quality checksPhase 7: Database Operations
Skills to Invoke
database-admin- Database administrationbackup-automation- Backup automation
Actions
1. Set up backups
2. Configure replication
3. Monitor performance
4. Plan capacity
5. Implement security
Copy-Paste Prompts
Use @database-admin to manage database operationsDatabase Technology Workflows
PostgreSQL
Skills: postgresql, postgres-best-practices, neon-postgres, prisma-expertMongoDB
Skills: nosql-expert, azure-cosmos-db-pyRedis
Skills: bullmq-specialist, upstash-qstashData Warehousing
Skills: clickhouse-io, dbt-transformation-patternsOperational boundaries
Select only needed phases and read the actual specialized skill before use. For migrations, identify the exact database/account, backup and tested restore path, lock/downtime effects and rollback or forward-repair plan. Rehearse against representative nonproduction data and verify row counts/invariants and application compatibility. Use least-privileged credentials and synthetic seeds; do not export private production records as test data. Query-plan commands that execute statements need the same scope as those statements. A configured backup is not a verified restore.
Quality Gates
- [ ] Schema designed and reviewed
- [ ] Migrations tested
- [ ] Performance benchmarks met
- [ ] Backups configured
- [ ] Monitoring in place
- [ ] Documentation complete
Related Workflow Bundles
development- Application developmentcloud-devops- Infrastructureai-ml- AI/ML data pipelinestesting-qa- Data testing
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Skill liên quan
- database-admin – Chuyên gia quản trị cơ sở dữ liệu, chuyên về cloud database hiện đại, tự động hóa và kỹ…
- database-architect – Kiến trúc sư cơ sở dữ liệu chuyên nghiệp, chuyên thiết kế tầng dữ liệu từ đầu, lựa chọn…
- database-backups – Triển khai chiến lược sao lưu cơ sở dữ liệu. Cấu hình sao lưu tự động, lưu giữ và kiểm…
- database-migration – Thành thạo migration schema và dữ liệu cơ sở dữ liệu qua các ORM (Sequelize, TypeORM…
- database-migrations-migration-observability – Giám sát migration, CDC và hạ tầng observability
- searxng-search – Công cụ meta-search miễn phí, không cần khóa, tổng hợp 70+ công cụ tìm kiếm.
- scientific-visualization – Tạo và kiểm tra hình ảnh khoa học chính xác, dễ tiếp cận và đạt chuẩn xuất bản bằng…
- database-migrations-sql-migrations – Migration cơ sở dữ liệu SQL với chiến lược zero-downtime cho PostgreSQL, MySQL và SQL…