creating-webapp

Installation
SKILL.md

First Steps (MUST FOLLOW)

Always run npm install before doing anything else when working in a web app directory (e.g. force-app/main/default/webapplications/<appName>/ or a dist app path). Dependencies must be installed before running npm run dev, npm run build, npm run lint, or any other script. If node_modules is missing or stale, commands will fail.

Skills-First (MUST FOLLOW)

Before writing any code or running any command, search for relevant skills (SKILL.md files) that cover your task. Read the full skill and follow its instructions. Skills live in .a4drules/skills/ and feature/*/skills/.

  • Do not write custom scripts or complex bash commands for a workflow already covered by a loaded skill.
  • Only proceed with manual execution after confirming no relevant skill exists.

Deployment Order (MUST FOLLOW)

Metadata deployments must complete before fetching GraphQL schema or running codegen. The schema reflects the current org state; custom objects and fields appear only after metadata is deployed. Running schema fetch or codegen too early produces incomplete or incorrect types.

Invoke the deploying-to-salesforce skill (.a4drules/skills/deploying-to-salesforce/) whenever the task involves:

  • Deploying metadata (objects, permission sets, layouts)
  • Fetching GraphQL schema (npm run graphql:schema)
  • Running GraphQL codegen (npm run graphql:codegen)
Related skills

More from forcedotcom/afv-library

Installs
4
GitHub Stars
290
First Seen
Mar 23, 2026