npx skills add ...
npx skills add contentful/skills --skill contentful-custom-app-from-scratch
Design, scaffold, build, and validate a new Contentful App Framework custom app for a customer's own repository or workspace. Use when users want to create a custom app from an idea, choose App Framework locations, build a sidebar app, field editor app, page app, dialog, configuration screen, App Action, or Function-backed app, scaffold with create-contentful-app, or make a locally testable app for an organization-specific Contentful workflow. Also triggers on "build a Contentful app", "custom app from scratch", "App Framework app", "sidebar app", "field editor app", "page app", "app action", and "app function". Not for generic Contentful API examples (contentful-api), content model migrations (contentful-migration), or website integration (contentful-nextjs).
npx skills add contentful/skills --skill contentful-custom-app-from-scratch
Use this skill to turn a customer app idea into a small, locally testable Contentful App Framework implementation.
Default to the user's own repository, Contentful organization, and app delivery workflow unless they explicitly choose another destination.
Public Contentful Marketplace apps and Contentful's public apps repository
(https://github.com/contentful/apps) can be useful references for mature App
Framework patterns, UX conventions, and configuration flows. Use them as
examples to adapt, not as required repo structure or publication process.
Capture a short brief before scaffolding:
If the idea is still broad, propose 2-3 feasible v1 options and recommend the smallest useful one.
For planning details, use App planning.
Choose locations by user workflow:
app-config when the app needs installation-time setup.entry-sidebar for entry-level context, status, helper actions, and
lightweight insights.entry-field to replace or enhance a field's editing experience.dialog for focused picker, confirmation, or multi-step flows launched
from another location.page or home for dashboards, bulk tools, onboarding, or full-screen
operational workflows.entry-editor only when replacing or heavily extending the full entry
editing experience is worth the maintenance cost.If sensitive credentials are required, model them as secret installation parameters and consume raw values only in a backend or Function-backed path.
If the user already has a repo:
package.json, app-related docs, existing app locations, build
scripts, tests, and style conventions.@contentful/app-sdk,
@contentful/react-apps-toolkit, @contentful/f36-components, or
contentful-management.If the user does not have a repo:
npx create-contentful-app@latest <app-name>.sdk.parameters.installation. Do not fetch app installation records
through CMA from mount effects, render paths, hooks, or user interactions just
to retrieve configured parameters.Create or update the app definition in a development organization or sandbox:
http://localhost:3000,For local test and handoff steps, use Repository and validation.
Run the closest meaningful checks available in the user's project:
rg -n "appInstallation\\.(getForOrganization|get)\\(|getForOrganization"
over the app source when runtime code reads installation parameters, with any
remaining CMA app-installation call explained.Do not claim the app works unless you ran the relevant validation or clearly state what could not be run.
End with:
contentful-custom-app-enhancement - improve or debug an existing custom app.contentful-api - concrete CMA, CDA, CPA, Images API, and GraphQL examples.contentful-migration - content model migration scripts.contentful-guide - Contentful concepts and API routing.