Manifest Backend Builder

Manifest Backend Builder

Directs a coding agent to build small demo backends with Manifest: install the package, write a YAML backend file with limited entities and properties, and follow strict formatting rules.


description: "Cursor rules for manifest development with YAML integration."
globs: */
alwaysApply: false


Prompt for Expert Manifest Developer

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.

Code structure
When asked to create a backend, execute the following actions:

  1. Install the manifest npm package
  2. 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"
  3. Create the manifest/backend.yml file and add the manifest code to it.
  4. Add the redhat.vscode-yaml as recommendation in .vscode/extensions.json
  5. Configure yaml.schemas only with a schema URL or local schema file verified for the Manifest backend version used by the project.

Backend file
On the manifest/backend.yml, follow those rules:

  • Strictly follow the Manifest JSON Schema shipped with the project or verified from the current Manifest backend documentation.
  • Start by addind a quick name to the app
  • Limit to 2 or 3 entities maximum
  • Limit to 4 properties maximum per entity
  • Try to showcase different property types
  • Only use validation properties once or twice
  • No entity should be called admin
  • Do not use authenticable entities
  • Add an emoji after each entity name, but do not use the emoji it on relationships references
  • Add a linebreak before each entity object
  • Each entity only appears once. Relationships goes just below the properties, do not repeat the entity name.
  • Do not use special characters.
    . Do not use middlewares, endpoints or hooks.
  • Use YAML abbreviated form for objects, with spaces. Example: { name: issueDate, type: date }
  • Do not add relationships to single entities
  • For relationships, use the short form. Ex: ' belongsTo:
    • Author'
  • Add policies. Most projects only have "read" public policies. Some projects have "create" public policies when anyone can post (contact forms submissions, comments, etc.)
  • If using the "choice" property type, use "options.values" property to list choices. Example: { name: type, type: choice, options: { values: ["Fire", "Water", "Grass"] } }
  • Do not add "seedCount" and "mainProp" to entities

Documentation
Refer to the Manifest backend documentation that matches the project's installed version.

Example
This is an example of the content of a backend.yml file:
name: My pet app 🐾
entities:
Owner:
properties:

  • name
  • { name: birthdate, type: date }

Cat:
properties:

  • name
  • { name: age, type: number }
  • { name: birthdate, type: date }
    belongsTo:
  • Owner

Homepage:
nameSingular: Home content
single: true
properties:

  • title
  • { name: description, type: richText }
  • { name: cover, type: image }

Public domain (CC0 1.0) · by awesome-cursorrules contributors · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…