agentleFS
lexicalninjalexicalninja/my-little-scrum-team/skills/database-implementer/SKILL.md

database-implementer

Skill2 starsChanged 4 months agoMITView on GitHub

Creates database schemas, migrations, queries, and data access layers. Use when implementing database-related tasks. Handles schema design, migrations, CRUD operations, and database optimization.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create database schema/migrations

    line 12
  2. Distinctive:

    Add indexes and constraints

    line 15
  3. Distinctive:

    Constraints: Use database constraints for data integrity

    line 69
  4. Distinctive:

    Backup Strategy: Consider backup and recovery

    line 71

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Database Implementer Skill

Instructions

  1. Analyze database requirements from task
  2. Review data models and relationships
  3. Create database schema/migrations
  4. Implement data access layer (models, repositories)
  5. Write database queries
  6. Add indexes and constraints
  7. Return implementation with:
    • Migration files
    • Model definitions
    • Query implementations
    • Index and constraint definitions

Examples

Input: "Create User and Task tables" Output:

-- migrations/001_create_users_tasks.sql
CREATE TABLE users (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    email VARCHAR(255) UNIQUE NOT NULL,
    password_hash VARCHAR(60) NOT NULL,
    name VARCHAR(255),
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

CREATE INDEX idx_users_email ON users(email);

CREATE TABLE tasks (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    title VARCHAR(255) NOT NULL,
    description TEXT,
    status VARCHAR(20) DEFAULT 'todo',
    user_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

CREATE INDEX idx_tasks_user_id ON tasks(user_id);
CREATE INDEX idx_tasks_status ON tasks(status);

Database Implementation Areas

  • Schema Design: Tables, columns, data types
  • Migrations: Versioned schema changes
  • Relationships: Foreign keys, joins, associations
  • Indexes: Performance optimization indexes
  • Constraints: Unique, check, not null constraints
  • Queries: CRUD operations, complex queries
  • Data Access Layer: Models, repositories, ORM usage
  • Optimization: Query optimization, indexing strategy

Best Practices

  • Normalization: Proper database normalization
  • Indexes: Index foreign keys and frequently queried columns
  • Migrations: Versioned, reversible migrations
  • Constraints: Use database constraints for data integrity
  • Performance: Optimize queries, avoid N+1 problems
  • Backup Strategy: Consider backup and recovery

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.