How To: Create Project Rules for an Existing Project (Astro + Typescript + Tailwind)

This educational module is built only from the transcript. It shows how to create and maintain a Warp.md file so Warp agents always understand your project’s setup, commands, architecture, and structure.


What Project Rules Are

A Project Rules file (Warp.md) acts as your project’s AI onboarding guide. Instead of re‑explaining your setup on every prompt, you document it once and Warp will always have that context. The transcript demo walks through creating the file, opening it in a side editor, and organizing it with standard Markdown headings for clear sections.


Generate Warp.md

Run the following verbatim prompts in Warp to create and verify your rules file, then open it in the editor:

  • /init generates a starter Warp.md in your project root.

  • /open project rules opens it in a side editor where you can scroll and edit the content.

You'll get something that looks like this:


Keep the File Lean and Intentional

1

Start Lean

Everything in warp.md is prepended to your prompt. A longer file consumes more tokens and can increase compute cost. Keep only what truly matters.

2

Iterate and Maintain

Start with /init boilerplate, then treat the file as a living document. Add the rules that help your team ship faster (e.g., branching, PR guidelines) and prune anything redundant.


Use Sub‑directory Rules for Monorepos

For large repos, you can generate localized rule files in sub‑trees. Navigate into a subfolder and run /init again to create a directory‑scoped Warp.md tailored to that area:

Last updated

Was this helpful?