Builds Strapi content types, extends controllers and services, implements lifecycle hooks, and configures REST/GraphQL APIs. Use when creating content types, writing custom controllers, developing Strapi plugins, or querying the API.
74
93%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
Project config, content types, and deployment details: cms-config.md. Docs: https://docs.strapi.io/
Strapi discovers code by path — a correct file in the wrong place is simply ignored.
src/api/<type>/content-types/<type>/schema.json — content type (or use Content-Type Builder, then commit the generated schema)src/api/<type>/controllers/<type>.js — thin wrapper, wraps createCoreController('api::<type>.<type>', ({ strapi }) => ({ ... })); call super.find(ctx) then modify the responsesrc/api/<type>/services/ — all business logicsrc/api/<type>/content-types/<type>/lifecycles.js — beforeCreate/afterUpdate side effects, mutating event.params.datasrc/api/<type>/graphql/ — custom resolversconfig/env/<env>/ — per-environment config; config/plugins.ts registers plugins?populate=author,categories, or ?populate=deep for everything.?filters[status][$eq]=published&filters[views][$gte]=100. Operators include $eq, $contains, $in, $gte.?fields[0]=title&fields[1]=slug.?pagination[page]=1&pagination[pageSize]=10.@strapi/plugin-graphql; it auto-generates types and resolvers from content types with filters/pagination/sort args.strapi generate plugin <name> → admin/, server/, content-types/. Keep server logic in server/ so admin code is not bundled into the server build.yarn develop, confirm the type appears in admin, create a test entry, then assert GET /api/<type>?pagination[page]=1 returns 200 with a data array and GET /api/<type>?populate=* returns the expected relations. Schema errors surface under yarn build.
fa0c341
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.