npx skills add smithery/pluginagentmarketplace --skill database-integration
pluginagentmarketplace/custom-plugin-fullstack · Archived
database-integration
Database integration - schema design, queries, migrations, optimization
Installation
npx skills add pluginagentmarketplace/custom-plugin-fullstack --skill database-integration
Stronger alternatives
This repository is archived — consider an actively maintained alternative.
Frontend development - React, Vue, component architecture, state management
5 installsFullstack testing - unit, integration, E2E, coverage
4 installsSecurity and performance - hardening, optimization, auditing
4 installsBackend development - APIs, authentication, business logic
4 installsSimilar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill …
391.6K installsPrisma ORM CLI commands reference covering init, generate, migrate, db, dev, complete, studio, …
267K installsUse when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge F…
263K installs>- Guides and best practices for working with Lakebase Postgres, the database behind Neon. Cove…
146.5K installsConfigures Flutter Driver for app interaction and converts MCP actions into permanent integrati…
30.5K installsAlso in this package
Other skills from pluginagentmarketplace/custom-plugin-fullstack.
npx skills add pluginagentmarketplace/custom-plugin-fullstack
Browse all from pluginagentmarketplace/custom-plugin-fullstack
More details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Also listed on
Alternate registries and mirrors of this skill.
Repository health
main
Package contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md4,792 B -
docs
SUMMARY.md99 B
History
- First seen on skills.sh
- First recorded snapshot · 4 installs
SKILL.md
Database Integration Skill
Atomic skill for database operations including schema design, query writing, and performance optimization.
Responsibility
Single Purpose: Design and implement database schemas, queries, and migrations
Actions
design_schema
Design database schema with proper normalization and indexes.
// Input
{
action: "design_schema",
database_type: "postgresql",
orm: "prisma"
}
// Output
{
success: true,
schema: {
models: ["User", "Post", "Comment"],
relationships: ["User hasMany Post", "Post hasMany Comment"],
indexes: ["users_email_idx", "posts_author_idx"]
},
performance_notes: ["Composite index recommended for posts queries"]
}
write_query
Write optimized database queries.
create_migration
Create database migration scripts.
optimize_performance
Analyze and optimize query performance.
Validation Rules
function validateParams(params: SkillParams): ValidationResult {
if (!params.action) {
return { valid: false, error: "action is required" };
}
if (params.action === 'write_query' && !params.query_type) {
return { valid: false, error: "query_type required for write_query" };
}
return { valid: true };
}
Error Handling
| Error Code | Description | Recovery |
|---|---|---|
| INVALID_DATABASE | Unsupported database type | Check supported databases |
| NPLUSONE_DETECTED | N+1 query pattern found | Add eager loading |
| MISSING_INDEX | Query would cause full table scan | Add index recommendation |
| NORMALIZATION_VIOLATION | Schema violates 3NF | Suggest refactoring |
Logging Hooks
{
"on_invoke": "log.info('database-integration invoked', { action, database_type })",
"on_success": "log.info('Database operation completed', { schema, performance_notes })",
"on_error": "log.error('Database skill failed', { error })"
}
Unit Test Template
import { describe, it, expect } from 'vitest';
import { databaseIntegration } from './database-integration';
describe('database-integration skill', () => {
describe('design_schema', () => {
it('should create normalized schema', async () => {
const result = await databaseIntegration({
action: 'design_schema',
database_type: 'postgresql',
orm: 'prisma'
});
expect(result.success).toBe(true);
expect(result.schema.indexes.length).toBeGreaterThan(0);
});
it('should recommend indexes for foreign keys', async () => {
const result = await databaseIntegration({
action: 'design_schema',
database_type: 'postgresql'
});
expect(result.schema.indexes).toContain(expect.stringMatching(/_idx$/));
});
});
describe('optimize_performance', () => {
it('should detect N+1 queries', async () => {
const result = await databaseIntegration({
action: 'optimize_performance',
database_type: 'postgresql'
});
expect(result.success).toBe(true);
expect(result.performance_notes).toBeDefined();
});
});
});
Integration
- Bonded Agent: 04-database-design
- Upstream Skills: backend-development
- Downstream Skills: fullstack-testing
Version History
| Version | Date | Changes |
|---|---|---|
| 1.0.0 | 2024-01 | Initial release |
| 2.0.0 | 2025-01 | Production-grade upgrade with query optimization |