Introduction
This page explains how to work effectively with modern AI coding tools such as Cursor, Windsurf, GitHub Copilot, Claude Code, Open Code, etc., and agent-style editors.
As AI-assisted programming evolves, prompts should become more concise rather than longer. The objective is not to create an extensive prompts, but to provide the model with a clear operating contract, the relevant and condensed project context, and a repeatable verification workflow. Use this page as source material for repo-level instruction files. Copy the templates into your project; do not mix them.
We got you covered
The Boilerplate app already ships with the important agent files: root AGENTS.md, nested content/AGENTS.md, and the skills under .agents/skills/. If you started from the Boilerplate, you do not need to recreate them - review and adjust what is already there. The templates on this page are for apps created from scratch, or for checking that your copies still match the current contract.
DocLayer content is read by three different AI surfaces. Keep their setup separate:
- Coding agents working on app or module code - this page,
AGENTS.md, and skills. - Content authors writing Markdown with an editor - nested
content/AGENTS.md. - In-app assistant and external LLMs -
DlPrompter, Search, andllms.txt. Configure those elsewhere; link them from here.
Use the AGENTS.md template below for any project that consumes @vuehouse/dl, including the Boilerplate app.
Then add the content-author contract under content/ directory (DocLayer-based apps only), if your intention is to have people writing any type of content.
Important note
Good AI instructions are usually short and scoped. Do not dump every project detail into every chat. Always try to give the model rules and files it needs for the current task, ask it to not inspect too deeply if not necessary.
AI agents are good at reading and understanding codebase context. Avoid providing everything at once or starting with overly broad rulesets. Instead, add instructions incrementally and evaluate the results step by step.
Mental model
Modern AI-based coding tools are no longer just chatbots. Many can inspect files, run commands, apply patches, and verify when done. This changes how instructions should be written. Now, context is the most important resource.
You should prefer this mental model (the agent should):
- inspect before editing,
- start from the named files, then search and follow imports,
- patch, never rewrite, unless it's explicitly requested,
- state uncertainty clearly instead of guessing,
- verify after each logical change,
- stop before destructive or high-cost actions, unless you asked.
Don't be lazy, don't be inert!
Stay actively in control: let the agent do the work, but make the key decisions. Apply judgment, review skeptically, think critically. Always ask if something's unclear or uncertain. Always be hungry for knowledge.
Instruction hierarchy
When working with coding agents, provide instructions in a layered manner, starting from the most global to the most specific. This is better than repeating long prompts in every chat. Below is the recommended order. Skills load on demand; they are not a substitute for a short AGENTS.md.
- Editor or user-level rules (personal preferences only).
- Repository-level
AGENTS.md. - Nested
AGENTS.mdin a subdirectory. - Optional editor-specific adapters.
- Skills, loaded on demand.
- Task-specific user request.
- Nearby code, context-specific files, and existing examples.
Root AGENTS.md should point at skills, but only as an index: the skills folder (.agents/skills/, .cursor/skills/, or your editor’s equivalent), plus the skill name and when to use it. Do not copy the full SKILL.md text into AGENTS.md — that defeats on-demand loading and bloats every chat.
Agent workflow
Ask the agent to follow this workflow for any non-trivial coding task. These can serve as general rules across projects. Improve if needed.
This workflow usually produces better results than open-ended prompts like “fix this page” or “improve the docs”. It also works well as a baseline editor-specific ruleset.
Consumer app
These templates apply to any DocLayer consumer: a Nuxt app that extends or installs @vuehouse/dl, including the Boilerplate. Copy or compare against the agent files in your project root.
Skills
Finally, keep deeper procedures in SKILL.md files. This is how different AI agents load them (double-check preferred tool documentation for details):
- Cursor:
.cursor/skills/<name>/SKILL.md, - Claude Code:
.claude/skills/<name>/SKILL.md, - other agents:
.agents/skills/, orskills/directories.
Do not use a single SKILLS.md dump (all in one file). The agent should see only the skill name and description until the task matches.
The DocLayer Boilerplate already includes these skills. Copy them only if your app was not started from it. Omit disable-model-invocation so they can load when the description matches.
Change paths accordingly to the context of the app and agent setup.
You can also keep these concise behavior rules next to the skills, as they apply directly to content work. Treat them as a skill too.
Docs as an interface
DocLayer pages are not only human docs. They are also the interface for agents and assistants. Do not mix those setups in one file.
| Surface | What to add | Where it lives |
|---|---|---|
Coding agents | Short | This page |
In-app assistant | Hidden synonyms and recall phrases via | The content page itself; model setup on Search. |
External LLMs | Build-time |
Definition of done
A coding task is not complete when the edit is written. It is complete when the result is explained and verified. Ask the agent to finish with:
- a short summary of what changed,
- the list of changed files,
- the result of that verification,
- any remaining risks, assumptions, or unverified behavior.
For content work, also confirm heading hierarchy, sidebar order, links, and that no required DocLayer component was replaced with raw markup. Always verify in the running app, not with a production build.
