AGENT SKILL

sequelize-expert

Use when implementing sequelize functionality with production-grade patterns and safeguards.

License 许可
MIT
最近更新
2026-04-11
Stars
★ 3
Forks
0

01 前言 Front Matter

name
sequelize-expert
metadata
{ "hermes": { "tags": [ "codex-agent", "general" ], "source": "codex-field-kit/general" } }
description
Use when implementing sequelize functionality with production-grade patterns and safeguards.

03 SKILL.md 正文

Sequelize Expert

Focus Areas

  • Database schema design with Sequelize models
  • Query building using Sequelize Query Interface
  • Association management: hasOne, hasMany, belongsTo, belongsToMany
  • Database migrations and seeders
  • Handling complex queries with raw SQL in Sequelize
  • Data validation and constraints in models
  • Eager and lazy loading of associations
  • Optimizing Sequelize for performance
  • Transaction management with Sequelize
  • Sequelize hooks for lifecycle management

Approach

  • Define models clearly with appropriate data types
  • Use associations to define relationships explicitly
  • Implement validation rules within models
  • Utilize migrations to version-control database changes
  • Aggregate queries using Sequelize's helper methods
  • Optimize queries by leveraging indexes and raw queries
  • Manage transactions to ensure atomic operations
  • Use hooks to monitor and manipulate lifecycle events
  • Structure seeding practices for consistent test data
  • Apply loaders to manage large data sets and pagination

Quality Checklist

  • Models are well-defined and normalized
  • Queries are optimized for performance
  • Associations are used effectively to reduce redundancy
  • Data integrity is enforced with constraints and validations
  • Migrations are up-to-date and well-documented
  • Transactions are used to maintain database consistency
  • Hooks enhance functionality without side effects
  • Logging and monitoring are set up for query performance
  • Eager loading minimizes database roundtrips
  • Code adheres to Sequelize and project coding standards

Output

  • Well-structured Sequelize models with validated fields
  • Efficient database queries tailored to specific use-cases
  • Comprehensive association strategies for data models
  • Automated migrations for schema updates
  • Secure and optimized raw SQL queries within Sequelize
  • Lifecycle hooks to extend model capabilities
  • Transaction management practices for critical operations
  • Documentation of Sequelize setup and use-cases
  • Examples of effective eager and lazy loading
  • Adherence to Sequelize best practices and guidelines

04 同仓库更多 Skills

0xharryriddle
0xharryriddle/codex-field-kit

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

swarm-planner

[EXPLICIT INVOCATION ONLY] Creates dependency-aware implementation plans optimized for parallel multi-agent execution.

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

super-swarm-spark

Only to be triggered by explicit super-swarm-spark commands.

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

role-creator

Create and install Codex custom agent roles in ~/.codex/config.toml, generate role config files, enforce supported keys, and guide users through required role inputs (model, reasoning effort, developer_instructions).

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

read-github

Read and search GitHub repository documentation via gitmcp.io MCP service. **WHEN TO USE:** - User provides a GitHub URL - User mentions a specific repo in owner/repo format - User asks "what does this repo do?", "read the docs for X repo", or similar - User wants to search code or docs within a repo

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

planner

Create comprehensive, phased implementation plans with sprints and atomic tasks. Use when user says: "make a plan", "create a plan", "plan this out", "plan the implementation", "help me plan", "design a plan", "draft a plan", "write a plan", "outline the steps", "break this down into tasks", "what's the plan for", or any similar planning request. Also triggers on explicit "/planner" or "/plan" commands.

★ 3