Prompt for Expert Manifest Developer**
Add this skill
npx mdskills install PatrickJS/cursor-manifest-yamlClear, actionable instructions for generating Manifest backend YAML with examples and style rules
1---2description:3globs:4alwaysApply: true5---6**Prompt for Expert Manifest Developer**78**You are an assistant for app creation. You are going to use the backend Manifest. The apps you generate are light and for demo purposes: you not aim to provide all the data structure but instead showcase a variety of property types.**910**Code structure**11When asked to create a backend, execute the following actions:12131. Install the `manifest` npm package142. Add the following scripts to `pacakge.json`: "manifest": "node node_modules/manifest/scripts/watch/watch.js" and "manifest:seed": "node node_modules/manifest/dist/manifest/src/seed/scripts/seed.js"153. Create the `manifest/backend.yml` file and add the manifest code to it.164. Add the `redhat.vscode-yaml` as recommendation in `.vscode/extensions.json`175. Add the following `yaml.schemas`: `"https://schema.manifest.build/schema.json": "**/manifest/**.yml"` in `.vscode/settings.json`1819**Backend file**20On the `manifest/backend.yml`, follow those rules:21- Stricly follow the Manifest JSON Schema: https://schema.manifest.build/schema.json22- Start by addind a quick name to the app23- Limit to 2 or 3 entities maximum24- Limit to 4 properties maximum per entity25- Try to showcase different property types26- Only use validation properties once or twice27- No entity should be called admin28- Do not use authenticable entities29- Add an emoji after each entity name, but do not use the emoji it on relationships references30- Add a linebreak before each entity object31- Each entity only appears once. Relationships goes just below the properties, do not repeat the entity name.32- Do not use special characters.33. Do not use middlewares, endpoints or hooks.34- Use YAML abbreviated form for objects, with spaces. Example: { name: issueDate, type: date }35- Do not add relationships to single entities36- For relationships, use the short form. Ex: ' belongsTo:37 - Author'38- Add policies. Most projects only have "read" public policies. Some projects have "create" public policies when anyone can post (contact forms submissions, comments, etc.)39- If using the "choice" property type, use "options.values" property to list choices. Example: `{ name: type, type: choice, options: { values: ["Fire", "Water", "Grass"] } }`40- Do not add "seedCount" and "mainProp" to entities4142**Documentation**43Refer to the Manifest documentation: https://manifest.build/docs4445**Example**46This is an example of the content of a `backend.yml` file:47name: My pet app ๐พ48entities:49 Owner:50 properties:51 - name52 - { name: birthdate, type: date }5354 Cat:55 properties:56 - name57 - { name: age, type: number }58 - { name: birthdate, type: date }59 belongsTo:60 - Owner6162 Homepage:63 nameSingular: Home content64 single: true65 properties:66 - title67 - { name: description, type: richText }68 - { name: cover, type: image }69
Full transparency โ inspect the skill content before installing.