[{"data":1,"prerenderedAt":1115},["ShallowReactive",2],{"\u002Fdocs\u002Fadvanced\u002Fai-tuning":3,"dl-navigation-docs":769,"surroundings-\u002Fdocs\u002Fadvanced\u002Fai-tuning":1110},{"id":4,"title":5,"_llmSection":6,"_local":7,"_schemaOrg":6,"_seo":6,"body":9,"description":760,"extension":761,"ignore":6,"meta":762,"navigation":763,"path":764,"seo":765,"sitemap":766,"stem":767,"__hash__":768},"docs\u002Fdocs\u002F09.advanced\u002F06.ai-tuning.md","AI Tuning",null,{"maxHeight":8},"21rem",{"type":10,"value":11,"toc":746},"minimark",[12,16,19,22,197,262,342,375,409,455,590,708],[13,14,15],"dl-prompter",{},"how to set up AGENTS.md for DocLayer",[13,17,18],{},"how to use coding agents with DocLayer",[13,20,21],{},"AI instructions for writing DocLayer content",[23,24,26,30,52,72,102,109,152,169,181],"dl-section",{"id":25},"introduction",[27,28,29],"h2",{"id":25},"Introduction",[31,32,33,34,38,39,38,42,38,45,38,48,51],"p",{},"This page explains how to work effectively with modern AI coding tools such as ",[35,36,37],"dl-link",{},"$cursor",", ",[35,40,41],{},"$windsurf",[35,43,44],{},"$github-copilot",[35,46,47],{},"$claude-code",[35,49,50],{},"$open-code",", etc., and agent-style editors.",[31,53,54,55,59,60,63,64,67,68,71],{},"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 ",[56,57,58],"strong",{},"clear operating contract",", the ",[56,61,62],{},"relevant and condensed project context",", and a ",[56,65,66],{},"repeatable verification workflow",". Use this page as ",[56,69,70],{},"source material"," for repo-level instruction files. Copy the templates into your project; do not mix them.",[73,74,77],"dl-callout",{"title":75,"type":76},"We got you covered","note",[31,78,79,80,84,85,88,89,93,94,97,98,101],{},"The ",[35,81,83],{"label":82},"Boilerplate app","$dl-boilerplate"," ",[56,86,87],{},"already ships with the important agent files",": root ",[90,91,92],"code",{},"AGENTS.md",", nested ",[90,95,96],{},"content\u002FAGENTS.md",", and the skills under ",[90,99,100],{},".agents\u002Fskills\u002F",". 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.",[31,103,104,105,108],{},"DocLayer content is read by ",[56,106,107],{},"three different AI surfaces",". Keep their setup separate:",[110,111,112,122,131],"ol",{},[113,114,115,118,119,121],"li",{},[56,116,117],{},"Coding agents"," working on app or module code - this page, ",[90,120,92],{},", and skills.",[113,123,124,127,128,130],{},[56,125,126],{},"Content authors"," writing Markdown with an editor - nested ",[90,129,96],{},".",[113,132,133,136,137,38,141,145,146,151],{},[56,134,135],{},"In-app assistant and external LLMs"," - ",[35,138,140],{"label":139},"`DlPrompter`","$docs-components-prompter",[35,142,144],{"label":143},"Search","$docs-search",", and ",[35,147,150],{"label":148,"hash":149},"`llms.txt`","nuxtllms","$docs-guidelines-internals",". Configure those elsewhere; link them from here.",[31,153,154,155,162,163,166,167,130],{},"Use the ",[156,157,159],"a",{"href":158},"#consumer-app",[56,160,161],{},"AGENTS.md template"," below for any project that consumes ",[90,164,165],{},"@vuehouse\u002Fdl",", including the ",[35,168,83],{"label":82},[31,170,171,172,176,177,180],{},"Then add the ",[156,173,175],{"href":174},"#content-author-mode","content-author contract"," under ",[90,178,179],{},"content\u002F"," directory (DocLayer-based apps only), if your intention is to have people writing any type of content.",[73,182,184,191],{"title":183,"type":76},"Important note",[31,185,186,187,190],{},"Good AI instructions are usually short and scoped. ",[56,188,189],{},"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.",[31,192,193,196],{},[56,194,195],{},"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.",[23,198,200,203,210,213,251],{"id":199},"mental-model",[27,201,202],{"id":199},"Mental model",[31,204,205,206,209],{},"Modern ",[56,207,208],{},"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.",[31,211,212],{},"You should prefer this mental model (the agent should):",[214,215,216,222,228,234,240,245],"ul",{},[113,217,218,221],{},[56,219,220],{},"inspect before editing",",",[113,223,224,227],{},[56,225,226],{},"start from the named files",", then search and follow imports,",[113,229,230,233],{},[56,231,232],{},"patch, never rewrite",", unless it's explicitly requested,",[113,235,236,239],{},[56,237,238],{},"state uncertainty clearly"," instead of guessing,",[113,241,242,221],{},[56,243,244],{},"verify after each logical change",[113,246,247,250],{},[56,248,249],{},"stop before destructive or high-cost actions",", unless you asked.",[73,252,255],{"title":253,"type":254},"Don't be lazy, don't be inert!","warn",[31,256,257,258,261],{},"Stay actively in control: let the agent do the work, but make the key decisions. ",[56,259,260],{},"Apply judgment, review skeptically, think critically",". Always ask if something's unclear or uncertain. Always be hungry for knowledge.",[23,263,265,268,281,309],{"id":264},"instruction-hierarchy",[27,266,267],{"id":264},"Instruction hierarchy",[31,269,270,271,274,275,278,279,130],{},"When working with coding agents, ",[56,272,273],{},"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 ",[56,276,277],{},"recommended order",". Skills load on demand; they are not a substitute for a short ",[90,280,92],{},[110,282,283,286,291,297,300,303,306],{},[113,284,285],{},"Editor or user-level rules (personal preferences only).",[113,287,288,289,130],{},"Repository-level ",[90,290,92],{},[113,292,293,294,296],{},"Nested ",[90,295,92],{}," in a subdirectory.",[113,298,299],{},"Optional editor-specific adapters.",[113,301,302],{},"Skills, loaded on demand.",[113,304,305],{},"Task-specific user request.",[113,307,308],{},"Nearby code, context-specific files, and existing examples.",[73,310,312],{"title":311,"type":76},"false",[31,313,314,315,84,317,320,321,38,323,326,327,330,331,334,335,338,339,341],{},"Root ",[90,316,92],{},[56,318,319],{},"should point at skills",", but only as an index: the skills folder (",[90,322,100],{},[90,324,325],{},".cursor\u002Fskills\u002F",", or your editor’s equivalent), plus the skill ",[90,328,329],{},"name"," and when to use it. Do ",[56,332,333],{},"not"," copy the full ",[90,336,337],{},"SKILL.md"," text into ",[90,340,92],{}," — that defeats on-demand loading and bloats every chat.",[23,343,345,348,355,368],{"id":344},"agent-workflow",[27,346,347],{"id":344},"Agent workflow",[31,349,350,351,354],{},"Ask the agent to follow this workflow for any non-trivial coding task. These can ",[56,352,353],{},"serve as general rules across projects",". Improve if needed.",[356,357,358],"dl-code",{},[359,360,366],"pre",{"className":361,"code":363,"language":364,"meta":365},[362],"language-markdown","1. Discover and read relevant instruction files first: `AGENTS.md`, nested `AGENTS.md`, and any matching skill.\n2. Start from the files named in the task. Then search and follow imports as needed. Do not explore unrelated packages or apps.\n3. Read the relevant code and content files, including an existing example if the task is to write content.\n4. Restate the task, scope, and assumptions.\n5. Propose the smallest valid change set.\n6. Apply minimal edits with focused patches.\n7. Verify with the narrowest command that is not a production build. Do not run `pnpm build` or `pnpm docs:build`.\n8. If tests are needed, use one Node process and close it before starting another.\n9. If a new file or directory seems required, ask first.\n10. Always explain new concepts, patterns, approaches or ideas.\n11. Report:\n    - what changed,\n    - which files changed,\n    - what was verified,\n    - what remains unverified,\n    - any risks or assumptions.\n\"cref:celt5a\"\n","markdown","",[90,367,363],{"__ignoreMap":365},[31,369,370,371,374],{},"This ",[56,372,373],{},"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.",[23,376,378,381,390],{"id":377},"consumer-app",[27,379,380],{"id":377},"Consumer app",[31,382,383,384,166,386,389],{},"These templates apply to any DocLayer consumer: a Nuxt app that extends or installs ",[90,385,165],{},[35,387,83],{"label":388},"Boilerplate",". Copy or compare against the agent files in your project root.",[356,391,392,398],{"tabs":92},[359,393,396],{"className":394,"code":395,"language":364,"meta":365},[362],"# About DocLayer\n\nDocLayer is a content framework for documentation sites and blogs. Authors write Markdown; the module turns that into a themed app with navigation, layout, and `Dl*` content components.\n\nIt is built on Vue, Nuxt, Nuxt Content, and Nuxt UI. The published module is `@vuehouse\u002Fdl`. Product docs: https:\u002F\u002Fdoclayer.dev\u002Fdocs\n\nThis repository is a standalone boilerplate that consumes `@vuehouse\u002Fdl`. Prefer existing module primitives over local replacements. Do not treat this repo as the module source.\n\n## Agent rules\n\n- Treat `@vuehouse\u002Fdl` (`node_modules\u002F@vuehouse\u002Fdl`) as the source of truth for theme, schema, utilities, and content components.\n- Configure the module before duplicating functionality locally.\n- Keep local overrides minimal and intentional.\n- Prefer existing content components over custom markup.\n- Avoid broad global style overrides unless necessary.\n- Keep changes scoped. Inspect nearby files before editing.\n- Start from the files named in the task, then search and follow imports. Do not explore unrelated files.\n- Patch, do not rewrite, unless a rewrite is requested.\n- If requirements are unclear, ask or stop instead of inventing behavior.\n- Ask before creating new files or directories.\n- Do not add one-off hardcoded workarounds, `node_modules` patches, or commented-out hacks.\n- Do not perform destructive git operations.\n\n## Where to look first\n\n- App content: `content\u002F` (starter collection is `content\u002Fdocs\u002F`)\n- Content contract: `content\u002FAGENTS.md`\n- App config: `app\u002Fapp.config.ts` (main customization); `nuxt.config.ts` stays minimal\n- Env: `.env.example` (`DL_*` branding, SEO, search, and related settings)\n- Local styles: `app\u002Fassets\u002Fstyles.css`\n- Local components: `app\u002Fcomponents\u002F` (custom content components go in `app\u002Fcomponents\u002Fcontent\u002F`)\n- Installed module: `node_modules\u002F@vuehouse\u002Fdl\u002F` (this app only ships `@vuehouse\u002Fdl`; do not assume optional add-ons)\n- Content component sources: `node_modules\u002F@vuehouse\u002Fdl\u002Fdist\u002Fruntime\u002Fcomponents\u002Fcontent\u002F`\n- Writing guide: https:\u002F\u002Fdoclayer.dev\u002Fdocs\u002Fguidelines\u002Fwriting-content\n- Components index: https:\u002F\u002Fdoclayer.dev\u002Fdocs\u002Fcomponents\n- Utilities index: https:\u002F\u002Fdoclayer.dev\u002Fdocs\u002Futilities\n- Package manager: `pnpm`\n- On-demand skills: `.agents\u002Fskills\u002F` (see ##Skills for details).\n\n## Commands\n\n- Dev: `pnpm dev`\n- Lint: `pnpm lint`\n- Build: `pnpm build`\n- Preview: `pnpm preview`\n- Do not run `pnpm build` to verify work.\n- When running tests, use a single Node process. Close it before starting another.\n\n## Skills\n\nRead the matching `SKILL.md` from '.agents\u002Fskills\u002F' when the task fits. Do not paste skill bodies into chat.\n\n- `write-doclayer-content-page` — create or edit Markdown in `content\u002F`\n- `reuse-doclayer-content-component` — prefer existing `Dl*` components before custom markup\n- `create-doclayer-content-component` — new Vue content components in `app\u002Fcomponents\u002Fcontent\u002F`\n\n## Optimize for\n\n- Keep the app building cleanly with the module\n- Reuse module primitives before adding local abstractions\n- Keep edits easy to review\n\"cref:dryu56\"\n",[90,397,395],{"__ignoreMap":365},[399,400,401],"template",{"v-slot:props":365},[31,402,403,404,408],{},"{ \"maxHeight\": \"",[405,406],"binding",{"value":407},"$doc._local.maxHeight","\" }",[23,410,412,416,433,441],{"id":411},"content-author-mode",[413,414,415],"h3",{"id":411},"Content author mode",[31,417,418,419,422,423,425,426,429,430,432],{},"Regular users writing Markdown with an agent need a ",[56,420,421],{},"content contract",", not a package map. Put this file at ",[90,424,96],{}," so it applies when the agent is editing that tree. The Boilerplate already includes this file. Add it only if your app was not started from the Boilerplate. Do ",[56,427,428],{},"not put any code conventions here",". Those belong in the root ",[90,431,92],{}," for TypeScript work.",[31,434,435,436,440],{},"The extra project data that actually helps writers is voice, required MDC components, frontmatter, navigation, and pointers to real example pages. Do not dump Vue source paths or a rewrite of the ",[35,437,439],{"label":438},"Writing Content","$docs-guidelines-writing-content"," guide.",[356,442,443,449],{"tabs":92},[359,444,447],{"className":445,"code":446,"language":364,"meta":365},[362],"\u003C!-- content\u002FAGENTS.md -->\n\n# Content author rules\n\nDocLayer is a content framework on top of Vue, Nuxt, Nuxt Content, and Nuxt UI. Pages are Markdown rendered by `@vuehouse\u002Fdl`.\n\nWrite for the readers of this site, not for people reading Vue source.\n\n## Voice:\n\n- Be precise and instructional. Prefer examples over theory.\n- Do not invent APIs, props, or components. Read the writing guide and an existing page first.\n\n## Where to look first:\n\n- Before writing or editing a page, read:\n  - https:\u002F\u002Fdoclayer.dev\u002Fdocs\u002Fguidelines\u002Fwriting-content,\n  - https:\u002F\u002Fdoclayer.dev\u002Fdocs\u002Fcomponents.\n- One existing page in the same collection.\n- For step-by-step page work, use the `write-doclayer-content-page` skill in `.agents\u002Fskills\u002F` (see root `AGENTS.md`).\n\n## Hard rules:\n\n- Required frontmatter: `title`, `description`.\n- Put a `.navigation.yml` (`title`, `icon`) in each collection section (e.g. `content\u002Fdocs\u002F\u003Csection>\u002F\u003Cpage>.md`).\n- Always follow the `.markdownlint.js` rules.\n- Starter collection is `content\u002Fdocs\u002F`. Add `blog` or another collection only when asked.\n- Treat `content\u002Fdocs\u002Flanding\u002Findex.md` as the landing page. It uses landing blocks; do not treat it like a normal docs page.\n- Nest at most two levels: `content\u002Fdocs\u002Fsection\u002Fpage.md`.\n- Order files and folders with numeric prefixes (`01.`, `02.`); group by context with tenths (`10.`, `11.`, `20.`, `21.`).\n- Start in-page headings at `H2`. Keep hierarchy consecutive.\n- Always use `DlLink` for internal links (path map markers come from `app\u002Fapp.config.ts` and `.nuxt\u002Fdoclayer\u002Fpath-map.json`); verify them.\n- Always wrap code samples in `DlCode`; never within the standalone backticks (```).\n- Use `DlCallout` for notes (`note` for internal tips, `info` for general knowledge, `warning` for risk).\n- Use `DlTooltip` for short inline definitions.\n- Use `DlRenderer` for repeated Markdown snippets, located within the `content\u002F_shared` directory; prefer using\u002Fcreating them; verify names.\n- Use `DlPrompter` for hidden synonyms and assistant recall. Do not put secrets there.\n- Use `pnpm` to define commands.\n\n## Optional rules:\n\n- If a DocLayer component already covers the need, use it. Do not drop to raw HTML or ad-hoc Markdown layouts.\n- Verify in the running app (`pnpm dev`).\n- Check heading hierarchy, sidebar order, links and its structure, callout types, and that no required component was replaced with raw markup. Do not run `pnpm build` to verify.\n\"cref:t7laim\"\n",[90,448,446],{"__ignoreMap":365},[399,450,451],{"v-slot:props":365},[31,452,403,453,408],{},[405,454],{"value":407},[23,456,458,461,473,500,518,528,543,558,573,579,582],{"id":457},"skills",[413,459,460],{"id":457},"Skills",[31,462,463,464,84,467,84,469,472],{},"Finally, ",[56,465,466],{},"keep deeper procedures in",[90,468,337],{},[56,470,471],{},"files",". This is how different AI agents load them (double-check preferred tool documentation for details):",[214,474,475,483,490],{},[113,476,477,479,480,221],{},[35,478,37],{},": ",[90,481,482],{},".cursor\u002Fskills\u002F\u003Cname>\u002FSKILL.md",[113,484,485,479,487,221],{},[35,486,47],{},[90,488,489],{},".claude\u002Fskills\u002F\u003Cname>\u002FSKILL.md",[113,491,492,493,495,496,499],{},"other agents: ",[90,494,100],{},", or ",[90,497,498],{},"skills\u002F"," directories.",[31,501,502,503,506,507,510,511,513,514,517],{},"Do ",[56,504,505],{},"not use"," a single ",[90,508,509],{},"SKILLS.md"," dump (all in one file). The agent should see only the skill ",[90,512,329],{}," and ",[90,515,516],{},"description"," until the task matches.",[31,519,79,520,522,523,527],{},[35,521,83],{}," already includes these skills. Copy them only if your app was not started from it. Omit ",[35,524,47],{"label":525,"path":526},"`disable-model-invocation`","docs\u002Fen\u002Fskills#control-who-invokes-a-skill"," so they can load when the description matches.",[356,529,531,537],{"tabs":530},"write-doclayer-page\u002FSKILL.md",[359,532,535],{"className":533,"code":534,"language":364,"meta":365},[362],"---\nname: write-doclayer-content-page\ndescription: Write or edit DocLayer Markdown content pages using MDC components, frontmatter, navigation.yml, and existing pages as examples. Use when creating, updating, or restructuring docs, blog, or landing Markdown in content\u002F.\n---\n\n# Write a DocLayer content page\n\nRead first:\n\n- `content\u002FAGENTS.md`,\n- https:\u002F\u002Fdoclayer.dev\u002Fdocs\u002Fguidelines\u002Fwriting-content,\n- https:\u002F\u002Fdoclayer.dev\u002Fdocs\u002Fcomponents,\n- one (or more) existing page(s) in the same collection.\n\nThen:\n\n1. Reuse `DlCode`, `DlCallout`, `DlLink`, `DlTooltip`, `DlImage`, `DlStepper`, `DlPrompter`, `DlRenderer` as documented.\n2. The landing page is `content\u002Fdocs\u002Flanding\u002Findex.md` and may also use `DlHero`, `DlHeading`, `DlFeaturesGrid`, `DlNewsletter`, `DlTypeman`. Do not treat it like a normal docs page.\n3. Stay in `content\u002Fdocs\u002F` unless asked to add another collection.\n4. Always try to reuse the shared Markdown components from the `_shared` directory; render them with `DlRenderer`.\n5. Copy structure from a nearby page instead of inventing a new layout.\n6. Do not guess props. Open the component docs, or the Vue source in `node_modules\u002F@vuehouse\u002Fdl\u002Fdist\u002Fruntime\u002Fcomponents\u002Fcontent\u002F` only if the docs page is not enough.\n7. Add `DlPrompter` phrases for questions a reader would actually ask.\n8. Keep frontmatter to `title` and `description` plus `_local` when page-scoped data is needed.\n9. When styling inside the table, and rules should propagate for the whole table (e.g. cell `min-width`), apply CSS only for the first row and the first column, as it propagates to the rest of the table.\n10. Report which example page you copied and what remains unverified in `pnpm dev`. Do not run `pnpm build`.\n11. Never write:\n    - `~` or `@` characters for relative paths (aliases),\n    - HTML like characters like: →, …, etc. (not allowed in comments, use native characters instead).\n\"cref:3ap29h\"\n",[90,536,534],{"__ignoreMap":365},[399,538,539],{"v-slot:props":365},[31,540,403,541,408],{},[405,542],{"value":407},[356,544,546,552],{"tabs":545},"reuse-doclayer-component\u002FSKILL.md",[359,547,550],{"className":548,"code":549,"language":364,"meta":365},[362],"---\nname: reuse-doclayer-content-component\ndescription: Reuse components instead of adding local HTML or Vue replacements. Use when the task involves Dl* components, custom content components, slots, props, or styling content blocks.\n---\n\n# Reuse a DocLayer content component\n\nRead first:\n\n- `content\u002FAGENTS.md`,\n- https:\u002F\u002Fdoclayer.dev\u002Fdocs\u002Fguidelines\u002Fwriting-content.\n\nBefore adding custom markup or a local component, check:\n\n1. Does DocLayer already provide this pattern? See https:\u002F\u002Fdoclayer.dev\u002Fdocs\u002Fcomponents\n2. Can the result be achieved through props, slots, or content structure?\n3. Is the requirement truly app-specific?\n4. Would a local implementation create duplication or drift?\n\nWhen a local component is required:\n\n- Ask before creating the file.\n- Keep overrides local and minimal.\n- Do not duplicate module behavior in the app.\n- Do not guess props, slots, or supported patterns. Read the source:\n  - `node_modules\u002F@vuehouse\u002Fdl\u002Fdist\u002Fruntime\u002Fcomponents\u002Fcontent\u002F`\n- Inspect current usage in `content\u002F` before inspecting module internals.\n\nIf reuse is possible, prefer the existing DocLayer component. If module behavior is unclear, report uncertainty, keep the change small, and ask before inventing a solution.\n\"cref:2if8mn\"\n",[90,551,549],{"__ignoreMap":365},[399,553,554],{"v-slot:props":365},[31,555,403,556,408],{},[405,557],{"value":407},[356,559,561,567],{"tabs":560},"create-doclayer-content-component\u002FSKILL.md",[359,562,565],{"className":563,"code":564,"language":364,"meta":365},[362],"---\nname: create-doclayer-content-component\ndescription: Create a new custom Vue content component for this DocLayer app using DlWrapper and defineDoclayerComponentUi, and put it in app\u002Fcomponents\u002Fcontent\u002F. Use when adding a block or inline MDC component, extending content presentation, or building on DlWrapper instead of raw HTML in Markdown.\n---\n\n# Create a DocLayer content component\n\nRead first:\n\n- `AGENTS.md` and `content\u002FAGENTS.md`,\n- https:\u002F\u002Fdoclayer.dev\u002Fdocs\u002Fcomponents (restricted names),\n- https:\u002F\u002Fdoclayer.dev\u002Fdocs\u002Fcomponents\u002Fbuilding,\n- the nearest existing component in `node_modules\u002F@vuehouse\u002Fdl\u002Fdist\u002Fruntime\u002Fcomponents\u002Fcontent\u002F` or `app\u002Fcomponents\u002Fcontent\u002F` (if available).\n\nBefore writing code:\n\n1. Run the reuse check from `reuse-doclayer-content-component`. Do not add a component if a built-in `Dl*` block already fits.\n2. Ask before creating a new file or directory.\n3. Do **not** use a reserved `Dl*` name. Built-in names always win. Use your own PascalCase filename under `app\u002Fcomponents\u002Fcontent\u002F` (MDC resolves it as kebab-case, for example `MyComponent.vue` > `::my-component`). Built-in module components live under `node_modules\u002F@vuehouse\u002Fdl\u002Fdist\u002Fruntime\u002Fcomponents\u002Fcontent\u002F`.\n4. Do **not** use `DlWrapper` directly in Markdown. It is only a foundation inside Vue SFCs.\n\nImplementation checklist:\n\n1. Add `app\u002Fcomponents\u002Fcontent\u002F\u003CComponentName>.vue` for app-specific blocks. Do not edit or extend the installed module.\n2. Follow SFC order: `\u003Cscript lang=\"ts\">` (UI macro) > `\u003Cscript setup lang=\"ts\">` > `\u003Ctemplate>` > `\u003Cstyle>` (scoped).\n3. Define UI with `defineDoclayerComponentUi`, props with `UiProps\u003Ctypeof ui>`, defaults with `ui` in `withDefaults`.\n4. Wrap markup in `DlWrapper`, pass `:ui=\"resolvePropsUi(props)\"` from `useComponentUi()`, and bind classes from the slot (`$ui.\u003Cpart>.base`).\n5. Keep `ui` internal. Content authors override styling via `#ui` (block) or `:iui` (inline) in Markdown, not via ad-hoc props unless the component needs them.\n6. Use utilities or composables only if necessary or asked.\n7. Match code style, import order, and JSDoc rules from root `AGENTS.md` when editing TypeScript.\n\nAfter implementation:\n\n1. Use the component once in `content\u002F` with a minimal example (block or inline, matching the component type).\n2. If the component is user-facing, add or extend a docs page under `content\u002F`, only when asked.\n3. Verify in `pnpm dev` (layout, `#ui` \u002F `:iui`, default slot). Do not run `pnpm build`.\n\"cref:rxgfe1\"\n",[90,566,564],{"__ignoreMap":365},[399,568,569],{"v-slot:props":365},[31,570,403,571,408],{},[405,572],{"value":407},[574,575,576],"blockquote",{},[31,577,578],{},"Change paths accordingly to the context of the app and agent setup.",[31,580,581],{},"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.",[356,583,584],{},[359,585,588],{"className":586,"code":587,"language":364,"meta":365},[362],"## Agent behavior for component work\n\n- Inspect current usage in the app before inspecting module internals.\n- Reuse DocLayer components when they fit the requirement.\n- Keep overrides local and minimal.\n- Do not duplicate component behavior in the app unless necessary.\n- Do not guess props, slots, or supported patterns from memory. Read from the source.\n- If module behavior is unclear, report uncertainty, keep the change small, and ask before inventing a solution.\n\"cref:6baag0\"\n",[90,589,587],{"__ignoreMap":365},[23,591,593,596,599,602,705],{"id":592},"docs-as-an-interface",[27,594,595],{"id":592},"Docs as an interface",[31,597,598],{},"DocLayer pages are not only human docs. They are also the interface for agents and assistants. Do not mix those setups in one file.",[31,600,601],{},"[[esc]]",[603,604,605,621],"table",{},[606,607,608],"thead",{},[609,610,611,615,618],"tr",{},[612,613,614],"th",{},"Surface",[612,616,617],{},"What to add",[612,619,620],{},"Where it lives",[622,623,624,649,670],"tbody",{},[609,625,626,632,643],{},[627,628,629],"td",{},[31,630,117],{"style":631},"white-space: nowrap;min-width: 8rem",[627,633,634],{},[31,635,637,638,93,640,642],{"style":636},"min-width: 15rem","Short ",[90,639,92],{},[90,641,96],{},", on-demand skills.",[627,644,645],{},[31,646,648],{"style":647},"white-space: nowrap;min-width: 15rem","This page",[609,650,651,656,663],{},[627,652,653],{},[31,654,655],{},"In-app assistant",[627,657,658],{},[31,659,660,661,130],{"style":636},"Hidden synonyms and recall phrases via ",[35,662,140],{"label":139},[627,664,665],{},[31,666,667,668,130],{},"The content page itself; model setup on ",[35,669,144],{"label":143},[609,671,672,677,693],{},[627,673,674],{},[31,675,676],{},"External LLMs",[627,678,679],{},[31,680,681,682,685,686,689,690,130],{},"Build-time ",[90,683,684],{},"llms.txt"," via ",[90,687,688],{},"dl.llms"," \u002F ",[35,691,692],{},"$nuxt-llms",[627,694,695],{},[31,696,697,513,700],{},[35,698,150],{"label":699,"hash":149},"Internals",[35,701,704],{"label":702,"hash":703},"Configuration","dlllms","$docs-guidelines-configuration",[31,706,707],{},"[[\u002Fesc]]",[23,709,711,714,721,735],{"id":710},"definition-of-done",[27,712,713],{"id":710},"Definition of done",[31,715,716,717,720],{},"A coding task is not complete when the edit is written. ",[56,718,719],{},"It is complete when the result is explained and verified",". Ask the agent to finish with:",[214,722,723,726,729,732],{},[113,724,725],{},"a short summary of what changed,",[113,727,728],{},"the list of changed files,",[113,730,731],{},"the result of that verification,",[113,733,734],{},"any remaining risks, assumptions, or unverified behavior.",[31,736,737,738,742,743,130],{},"For content work, also confirm heading hierarchy, sidebar order, links, and that no required ",[35,739,741],{"label":740},"DocLayer component","$docs-components"," was replaced with raw markup. Always ",[56,744,745],{},"verify in the running app, not with a production build",{"title":365,"searchDepth":747,"depth":747,"links":748},2,[749,750,751,752,753,758,759],{"id":25,"depth":747,"text":29},{"id":199,"depth":747,"text":202},{"id":264,"depth":747,"text":267},{"id":344,"depth":747,"text":347},{"id":377,"depth":747,"text":380,"children":754},[755,757],{"id":411,"depth":756,"text":415},3,{"id":457,"depth":756,"text":460},{"id":592,"depth":747,"text":595},{"id":710,"depth":747,"text":713},"Templates and rules for AGENTS.md, coding agents, and content-author AI","md",{},true,"\u002Fdocs\u002Fadvanced\u002Fai-tuning",{"title":5,"description":760},{"loc":764},"docs\u002F09.advanced\u002F06.ai-tuning","b_sOez2dXvHRMho_76Ks6XzkvMtmMyVYEwpCvOMAJ0E",[770],{"title":771,"path":772,"stem":773,"children":774,"page":821},"Docs","\u002Fdocs","docs",[775,793,822,933,962,993,1016,1031,1069,1090],{"title":776,"path":777,"stem":778,"children":779,"description":6,"icon":792},"Getting Started","\u002Fdocs\u002Fgetting-started","docs\u002F01.getting-started\u002F01.index",[780,782,787],{"title":29,"path":777,"stem":778,"description":781},"What DocLayer is, who it’s for, and how it can help",{"title":783,"path":784,"stem":785,"description":786},"Installation","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F01.getting-started\u002F02.installation","How to install and run DocLayer",{"title":788,"path":789,"stem":790,"description":791},"FAQ","\u002Fdocs\u002Fgetting-started\u002Ffaq","docs\u002F01.getting-started\u002F03.faq","Frequently asked questions about DocLayer","rocket",{"title":794,"description":6,"icon":795,"path":796,"stem":797,"children":798,"page":821},"Guidelines","file-pen-line","\u002Fdocs\u002Fguidelines","docs\u002F02.guidelines",[799,803,807,811,816],{"title":699,"path":800,"stem":801,"description":802},"\u002Fdocs\u002Fguidelines\u002Finternals","docs\u002F02.guidelines\u002F02.internals","How DocLayer's structure, its architecture and internals fit together",{"title":702,"path":804,"stem":805,"description":806},"\u002Fdocs\u002Fguidelines\u002Fconfiguration","docs\u002F02.guidelines\u002F03.configuration","Customize DocLayer via `app.config.ts` and its configuration",{"title":438,"path":808,"stem":809,"description":810},"\u002Fdocs\u002Fguidelines\u002Fwriting-content","docs\u002F02.guidelines\u002F04.writing-content","Write Markdown with Nuxt Content, DocLayer and prebuilt utilities",{"title":812,"path":813,"stem":814,"description":815},"Defining Metadata","\u002Fdocs\u002Fguidelines\u002Fdefining-metadata","docs\u002F02.guidelines\u002F05.defining-metadata","Set global and per-page SEO metadata for your DocLayer app",{"title":817,"path":818,"stem":819,"description":820},"Theming","\u002Fdocs\u002Fguidelines\u002Ftheming","docs\u002F02.guidelines\u002F06.theming","Customize DocLayer’s look with CSS variables and utility classes",false,{"title":823,"path":824,"stem":825,"children":826,"description":6,"label":29,"icon":932},"Components","\u002Fdocs\u002Fcomponents","docs\u002F03.components\u002F01.index",[827,830,836,841,846,851,856,861,866,871,876,881,886,891,897,902,907,912,917,922,927],{"title":828,"path":824,"stem":825,"description":829,"label":29},"Components Introduction","Overview of DocLayer’s built-in Markdown content components",{"title":831,"path":832,"stem":833,"description":834,"label":835},"Components Building & Styling","\u002Fdocs\u002Fcomponents\u002Fbuilding","docs\u002F03.components\u002F02.building","Create custom content components with DlWrapper","DlWrapper",{"title":837,"path":838,"stem":839,"description":840},"DlRenderer","\u002Fdocs\u002Fcomponents\u002Frenderer","docs\u002F03.components\u002F03.renderer","Render reusable, shareable Markdown fragments anywhere in your content",{"title":842,"path":843,"stem":844,"description":845},"DlLink","\u002Fdocs\u002Fcomponents\u002Flink","docs\u002F03.components\u002F04.link","Create internal links resolved from the global path registry",{"title":847,"path":848,"stem":849,"description":850},"DlCode","\u002Fdocs\u002Fcomponents\u002Fcode","docs\u002F03.components\u002F05.code","Display your code snippets with syntax highlighting, copy, tabs, transformations and more",{"title":852,"path":853,"stem":854,"description":855},"DlCodeInline","\u002Fdocs\u002Fcomponents\u002Finline-code","docs\u002F03.components\u002F05.inline-code","Display inline code that stays on one line",{"title":857,"path":858,"stem":859,"description":860},"DlCallout","\u002Fdocs\u002Fcomponents\u002Fcallout","docs\u002F03.components\u002F06.callout","Display notes, warnings, and alerts as type-based callout blocks",{"title":852,"path":862,"stem":863,"description":855,"badge":864},"\u002Fdocs\u002Fcomponents\u002Fcode-inline","docs\u002F03.components\u002F06.code-inline",{"label":865,"glow":763},"new",{"title":867,"path":868,"stem":869,"description":870},"DlBadge","\u002Fdocs\u002Fcomponents\u002Fbadge","docs\u002F03.components\u002F07.badge","Show compact type-based status labels",{"title":872,"path":873,"stem":874,"description":875},"DlImage","\u002Fdocs\u002Fcomponents\u002Fimage","docs\u002F03.components\u002F08.image","Present optimized, responsive images with optional caption and inline styling",{"title":877,"path":878,"stem":879,"description":880},"DlStepper","\u002Fdocs\u002Fcomponents\u002Fstepper","docs\u002F03.components\u002F09.stepper","List vertical step sequences using named slots",{"title":882,"path":883,"stem":884,"description":885},"DlTooltip","\u002Fdocs\u002Fcomponents\u002Ftooltip","docs\u002F03.components\u002F10.tooltip","Annotate with contextual configurable tooltips",{"title":887,"path":888,"stem":889,"description":890},"DlPrompter","\u002Fdocs\u002Fcomponents\u002Fprompter","docs\u002F03.components\u002F11.prompter","Prompt the search index and AI Assistant with hidden, removable content inserts",{"title":892,"path":893,"stem":894,"description":895,"badge":896},"DlFormat","\u002Fdocs\u002Fcomponents\u002Fformat","docs\u002F03.components\u002F12.format","Format Markdown content into a structured HTML output",{"label":865,"glow":763},{"title":898,"path":899,"stem":900,"description":901},"DlSection","\u002Fdocs\u002Fcomponents\u002Fsection","docs\u002F03.components\u002F13.section","Wrap and demarcate content sections",{"title":903,"path":904,"stem":905,"description":906},"DlGrid","\u002Fdocs\u002Fcomponents\u002Fgrid","docs\u002F03.components\u002F14.grid","Lay out named content items in a responsive grid",{"title":908,"path":909,"stem":910,"description":911},"DlHero","\u002Fdocs\u002Fcomponents\u002Fhero","docs\u002F03.components\u002F20.hero","Present a prominent page hero with title, lead and CTA",{"title":913,"path":914,"stem":915,"description":916},"DlHeading","\u002Fdocs\u002Fcomponents\u002Fheading","docs\u002F03.components\u002F21.heading","Divide content with section headings",{"title":918,"path":919,"stem":920,"description":921},"DlFeaturesGrid","\u002Fdocs\u002Fcomponents\u002Ffeatures-grid","docs\u002F03.components\u002F22.features-grid","Render a responsive features grid with animated and formatted tiles",{"title":923,"path":924,"stem":925,"description":926},"DlNewsletter","\u002Fdocs\u002Fcomponents\u002Fnewsletter","docs\u002F03.components\u002F23.newsletter","Collect newsletter subscriptions with a styled form",{"title":928,"path":929,"stem":930,"description":931},"DlTypeman","\u002Fdocs\u002Fcomponents\u002Ftypeman","docs\u002F03.components\u002F24.typeman","Animate rotating words with a blinking cursor effect","brick-wall",{"title":934,"path":935,"stem":936,"children":937,"description":6,"label":29,"icon":961},"Utilities","\u002Fdocs\u002Futils","docs\u002F04.utils\u002F01.index",[938,941,945,950,955],{"title":939,"path":935,"stem":936,"description":940,"label":29},"Utilities Introduction","Helpers, composables, macros, and types for extending DocLayer beyond Markdown",{"title":934,"path":942,"stem":943,"description":944},"\u002Fdocs\u002Futils\u002Futilities","docs\u002F04.utils\u002F02.utilities","Auto-imported helper functions for common tasks across DocLayer",{"title":946,"path":947,"stem":948,"description":949},"Composables","\u002Fdocs\u002Futils\u002Fcomposables","docs\u002F04.utils\u002F03.composables","Vue composables for collections, UI resolution, navigation, and content",{"title":951,"path":952,"stem":953,"description":954},"Macros","\u002Fdocs\u002Futils\u002Fmacros","docs\u002F04.utils\u002F04.macros","Compile-time macros for typed app config, adapters, and component UI",{"title":956,"path":957,"stem":958,"description":959,"label":960},"Utility Types","\u002Fdocs\u002Futils\u002Ftypes","docs\u002F04.utils\u002F05.types","TypeScript utilities for safer DocLayer development","Types","tool-case",{"title":963,"path":964,"stem":965,"children":966,"description":6,"label":970,"icon":992},"Adapters","\u002Fdocs\u002Fadapters","docs\u002F05.adapters\u002F01.index",[967,971,976,982,987],{"title":968,"path":964,"stem":965,"description":969,"label":970},"Building Adapters","Build type-safe adapters to plug external services into DocLayer","Building",{"title":972,"path":973,"stem":974,"description":975},"Google","\u002Fdocs\u002Fadapters\u002Fgoogle","docs\u002F05.adapters\u002F10.google","Connect DocLayer to Google products through built-in adapters",{"title":977,"path":978,"stem":979,"description":980,"label":977,"badge":981},"PostHog","\u002Fdocs\u002Fadapters\u002Fposthog","docs\u002F05.adapters\u002F11.posthog","Record product analytics with the PostHog analytics adapter",{"label":865,"glow":763},{"title":983,"path":984,"stem":985,"description":986},"Resend","\u002Fdocs\u002Fadapters\u002Fresend","docs\u002F05.adapters\u002F20.resend","Send newsletter emails with the Resend newsletter adapter",{"title":988,"path":989,"stem":990,"description":991},"Substack","\u002Fdocs\u002Fadapters\u002Fsubstack","docs\u002F05.adapters\u002F21.substack","Subscribe users to Substack via DocLayer’s adapter","circle-fading-plus",{"title":994,"path":995,"stem":996,"children":997,"description":6,"label":29,"icon":1015},"Search ✨","\u002Fdocs\u002Fsearch","docs\u002F06.search\u002F01.index",[998,1001,1006,1010],{"title":999,"path":995,"stem":996,"description":1000,"label":29},"Search Module Introduction","Brief intro into built-in DocLayer’s Search Module",{"title":1002,"path":1003,"stem":1004,"description":1005},"Installation & Usage","\u002Fdocs\u002Fsearch\u002Fusage","docs\u002F06.search\u002F02.usage","Wire DocLayer’s Search Module into your app",{"title":702,"path":1007,"stem":1008,"description":1009},"\u002Fdocs\u002Fsearch\u002Fconfiguration","docs\u002F06.search\u002F03.configuration","Configure static search, indexing, and the AI assistant in DocLayer's Search Module",{"title":1011,"path":1012,"stem":1013,"description":1014},"API Reference","\u002Fdocs\u002Fsearch\u002Freference","docs\u002F06.search\u002F04.reference","API reference for DocLayer’s Search Module","scan-search",{"title":1017,"path":1018,"stem":1019,"children":1020,"description":6,"icon":1030},"Deployment","\u002Fdocs\u002Fdeployment","docs\u002F07.deployment\u002F01.index",[1021,1024],{"title":1022,"path":1018,"stem":1019,"description":1023},"Building & Preparations","Build a static DocLayer app and prepare it for hosting",{"title":1025,"path":1026,"stem":1027,"description":1028,"label":1029},"Vercel Deployment","\u002Fdocs\u002Fdeployment\u002Fvercel","docs\u002F07.deployment\u002F02.vercel","Deploy DocLayer to Vercel via UI, CLI, or CI","Vercel","server-crash",{"title":1032,"description":6,"icon":1033,"path":1034,"stem":1035,"children":1036,"page":821},"Advanced","file-terminal","\u002Fdocs\u002Fadvanced","docs\u002F09.advanced",[1037,1043,1048,1053,1058,1059,1064],{"title":1038,"path":1039,"stem":1040,"description":1041,"label":1042},"DocLayer Monorepo","\u002Fdocs\u002Fadvanced\u002Fmonorepo","docs\u002F09.advanced\u002F02.monorepo","pnpm workspaces, Turborepo, and workflows for the DocLayer monorepo","Monorepo",{"title":1044,"path":1045,"stem":1046,"description":1047},"Globals","\u002Fdocs\u002Fadvanced\u002Fglobals","docs\u002F09.advanced\u002F03.globals","DocLayer’s global instances for easy and quick access",{"title":1049,"path":1050,"stem":1051,"description":1052},"CLI","\u002Fdocs\u002Fadvanced\u002Fcli","docs\u002F09.advanced\u002F04.cli","Use Command Line Interface to extensively menage your DocLayer project",{"title":1054,"path":1055,"stem":1056,"description":1057},"Security","\u002Fdocs\u002Fadvanced\u002Fsecurity","docs\u002F09.advanced\u002F05.security","Security defaults DocLayer ships with Nuxt Security",{"title":5,"path":764,"stem":767,"description":760},{"title":1060,"path":1061,"stem":1062,"description":1063},"Error Handling","\u002Fdocs\u002Fadvanced\u002Ferror-handling","docs\u002F09.advanced\u002F07.error-handling","How DocLayer validates and reports errors in authoring, build, and production",{"title":1065,"path":1066,"stem":1067,"description":1068},"Troubleshooting","\u002Fdocs\u002Fadvanced\u002Ftroubleshooting","docs\u002F09.advanced\u002F08.troubleshooting","Known DocLayer issues and quick fixes",{"title":1070,"description":6,"icon":1071,"path":1072,"stem":1073,"children":1074,"page":821},"Project","shield-ellipsis","\u002Fdocs\u002Fproject","docs\u002F10.project",[1075,1080,1085],{"title":1076,"path":1077,"stem":1078,"description":1079},"Contribution","\u002Fdocs\u002Fproject\u002Fcontribution","docs\u002F10.project\u002F01.contribution","How to report issues and when contributions are welcome",{"title":1081,"path":1082,"stem":1083,"description":1084},"Principles","\u002Fdocs\u002Fproject\u002Fethos","docs\u002F10.project\u002F02.ethos","Who we are, what we care about, and how we treat each other",{"title":1086,"path":1087,"stem":1088,"description":1089},"Support","\u002Fdocs\u002Fproject\u002Fsupport","docs\u002F10.project\u002F03.support","Join the Early Supporter Program and help fund DocLayer’s development",{"title":1011,"description":6,"icon":1091,"path":1092,"stem":1093,"children":1094,"page":821},"file-type","\u002Fdocs\u002Freference","docs\u002F99.reference",[1095,1100,1105],{"title":1096,"path":1097,"stem":1098,"description":1099},"App Config","\u002Fdocs\u002Freference\u002Fapp-config","docs\u002F99.reference\u002F01.app-config","API Reference for DocLayer’s AppConfig",{"title":1101,"path":1102,"stem":1103,"description":1104},"Module Options","\u002Fdocs\u002Freference\u002Fmodule-options","docs\u002F99.reference\u002F01.module-options","API Reference for DocLayer’s ModuleOptions",{"title":1106,"path":1107,"stem":1108,"description":1109},"Content Schema","\u002Fdocs\u002Freference\u002Fcontent-schema","docs\u002F99.reference\u002F02.content-schema","API Reference for DocLayer’s Content Schema",[1111,1112,1113,1114],{"title":1049,"path":1050,"stem":1051,"description":1052,"children":-1},{"title":1054,"path":1055,"stem":1056,"description":1057,"children":-1},{"title":1060,"path":1061,"stem":1062,"description":1063,"children":-1},{"title":1065,"path":1066,"stem":1067,"description":1068,"children":-1},1795796072852]