Use when: creating a new ElasticSearch database migration file, adding or transforming data at deploy time
61
71%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.github/skills/create-migration/SKILL.mdadd_description_to_user).Use the current timestamp (ms) as prefix.
File: opencti-platform/opencti-graphql/src/migrations/<timestamp>-<description>.ts.
Use the standard template with logging and execution context.
import { logMigration } from '../config/conf';
const message = '[MIGRATION] <Description>';
export const up = async (next: (error?: Error) => void) => {
const startTime = Date.now();
logMigration.info(`${message} > started`);
// Implementation here
// usage: const context = executionContext('migration');
// await someDomainFunction(context, SYSTEM_USER, args);
logMigration.info(`${message} > done in ${Date.now() - startTime} ms`);
next();
};
export const down = async (next: (error?: Error) => void) => {
next();
};cdafc20
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.