Install any skill in seconds. Free to start, no credit card required.
Get Started Free →opencti-platform/create-creation-form
Use when: scaffolding a creation form drawer with Formik validation and a Relay mutation for a new entity
Passed 19 of 22 test cases with the skill, and 14 of 22 without it.
and 7 more in the full report
7 fixed12 passed either way1 still failing2 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 7 test cases the skill fixed. Same model, same prompt, with and without the skill.
What internationalization helper function is used for string translation in OpenCTI frontend form field labels and drawer titles?
| Checked | Without skill | With skill |
|---|---|---|
| Uses t_i18n for label and title translations | Missed | Passed |
The instructions your model reads when the skill loads.
Use the Codebase Pattern Finder agent to locate a similar existing creation form in opencti-platform/opencti-front/src/private/components/ (look for files ending in Creation.tsx). Model the new form after the existing one to stay idiomatic.
Use Yup for validation schema.
const creationMutation = graphql`
mutation MyEntityCreationMutation($input: MyEntityAddInput!) {
myEntityAdd(input: $input) {
...MyEntityLine_node
}
}
`;
const validationSchema = Yup.object().shape({
name: Yup.string().required(t('This field is required')),
});
Return a Drawer containing a Formik form.
export const MyEntityCreation: React.FC<Props> = ({ paginationOptions }) => {
const [commit] = useApiMutation(creationMutation);
const onSubmit = (values, { setSubmitting, resetForm }) => {
commit({
variables: {
input: values,
},
test cases passed, vs 14 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.