Use Mateu with AI assistants
AI coding assistants generate much better Mateu code when they have the API in their context. This page provides ready-to-use reference files for the most common tools.
Reference files
Section titled “Reference files”| File | Size | Best for |
|---|---|---|
| Compact reference | ~2 500 tokens | Day-to-day code generation, tools with small context windows |
| Full reference | ~9 000 tokens | Thorough assistance, broad feature coverage, Gemini 1.5 / Claude Projects |
Both files are plain Markdown — paste them directly, link to them, or download them.
How to use with each tool
Section titled “How to use with each tool”Claude Projects (claude.ai)
Section titled “Claude Projects (claude.ai)”- Open claude.ai and create or open a Project.
- In the project’s Instructions section, paste the compact or full reference.
- Every conversation in that project will have Mateu context automatically.
Gemini Gems (gemini.google.com)
Section titled “Gemini Gems (gemini.google.com)”- Open Gemini and click Explore Gems → New gem.
- Paste the reference file content in the Instructions field.
- Save the Gem as “Mateu developer”. Use it for every Mateu coding session.
Gemini 1.5 Pro and 2.0 Flash both have large enough context windows for the full reference.
ChatGPT / Custom GPT
Section titled “ChatGPT / Custom GPT”- Go to chatgpt.com, open Explore GPTs → Create a GPT.
- In the Configure tab, paste the reference in the Instructions field.
- Or, in any regular conversation, paste the compact reference at the start and then ask your question.
Cursor (cursor.sh)
Section titled “Cursor (cursor.sh)”Add a .cursor/rules file (or .cursorrules at the project root) with the compact reference content. Cursor will include it as context in every AI request for that project.
# In .cursor/rules or .cursorrules[paste the contents of mateu-ai-compact.md here]GitHub Copilot
Section titled “GitHub Copilot”Copilot reads /.github/copilot-instructions.md for project-level context. Copy the compact reference there:
mkdir -p .githubcurl -o .github/copilot-instructions.md https://mateu.io/mateu-ai-compact.mdAny other tool
Section titled “Any other tool”Paste the compact reference at the start of your conversation before your first question. Most models will retain it for the session.
What to ask
Section titled “What to ask”Once the context is loaded, you can ask directly:
Create a CRUD for a Product entity with id, name, price, and active fields.Add a wizard with 3 steps: account details, plan selection, and a success screen.Build a dense multi-zone check-in form with @Compact and @Zones.Add a @Banner that warns when the service is in maintenance mode.Create a custom listing for orders with a status filter and server-side pagination.llms.txt
Section titled “llms.txt”Mateu publishes an llms.txt at the site root following the llms.txt proposal. AI crawlers and tools that support the standard can discover the reference files automatically from there.