用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/voidvec/fulla --skill create-migration命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
构建和测试C++ OAuth2后端,包含正确的依赖管理
重置测试数据库(清空并重新初始化所有表结构和数据)
在Docker Compose环境中执行OAuth2系统的完整集成测试和健康检查。当用户需要在代码变更后验证功能、运行端到端测试、检查Docker环境健康状态、或需要验证整个OAuth2系统(前端+后端+数据库+缓存)的集成时使用此技能。确保在Docker环境中测试所有组件的集成,包括健康检查、OAuth2流程、API端点、数据库连接、Redis缓存和前后端通信。
正在显示 SKILL.md
| name | create-migration |
| description | Create versioned SQL migration files for database schema changes, following project conventions |
| disable-model-invocation | true |
Create versioned SQL migration files for the OAuth2 database schema.
When adding, modifying, or dropping database tables/columns/indexes. Triggered by /create-migration.
Pattern: apps/server/migrations/V{NNN}__descriptive_name.sql
Check existing migrations before creating to determine the next number:
ls -1 apps/server/migrations/ | sort | tail -1
The next migration number is one higher than the latest file found above.
-- Migration: V{NNN}__{description}
-- Created: {date}
-- Purpose: {why this change is needed}
-- === UP ===
-- Forward migration: apply changes
{SQL statements here}
-- === DOWN ===
-- Rollback migration: revert changes
-- (optional but recommended for production)
{ROLLBACK SQL here}
Before finalizing, verify:
V{NNN}__snake_case.sql patternIF NOT EXISTS / IF EXISTS where appropriatemodel.jsonSchemaManager (when FULLA_AUTO_MIGRATE=true) or via fulla-server --migrate-only / scripts/backend/setup-database.{sh,bat}; no build-file change required.CREATE TABLE IF NOT EXISTS new_table (
id SERIAL PRIMARY KEY,
name VARCHAR(100) NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
ALTER TABLE existing_table ADD COLUMN IF NOT EXISTS new_column VARCHAR(50);
CREATE INDEX IF NOT EXISTS idx_table_column ON existing_table(column);
ALTER TABLE child_table
ADD CONSTRAINT fk_child_parent
FOREIGN KEY (parent_id) REFERENCES parent_table(id) ON DELETE CASCADE;
/build-and-test or run SchemaManager/orm-genmodel.json if new tables added/openapi-update