From a56f26662cd819fb2c574fe00234bf798cbe6c26 Mon Sep 17 00:00:00 2001 From: Dev Agrawal Date: Sat, 28 Nov 2026 20:18:27 -0600 Subject: [PATCH] docs: recommend scaffolding Solid apps before agent edits --- src/routes/(5)guides/(17)ai-tools.mdx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/routes/(5)guides/(17)ai-tools.mdx b/src/routes/(5)guides/(17)ai-tools.mdx index ce6161335c..a97bb0f5ec 100644 --- a/src/routes/(5)guides/(17)ai-tools.mdx +++ b/src/routes/(5)guides/(17)ai-tools.mdx @@ -1,13 +1,22 @@ --- title: "Solid for AI tools" version: "2.0" -description: "Point a coding assistant at the cheatsheet, skills, diagnostics, lint configs, and Markdown docs that ship with Solid 2.0, and paste a rules block into its instructions file." +description: "Start new Solid 2.0 apps from an official template, then use the shipped skills, cheatsheet, diagnostics, and lint rules when working with coding assistants." --- AI assistants mostly learned Solid from 1.x code and from other frameworks, so they tend to destructure props, write single-function effects, and reach for APIs that 2.0 does not have. Some of those mistakes run without an error and leave a value that never updates. Solid 2.0 ships docs written for assistants inside its packages, so they always match the version in `node_modules`. -This page lists what is there and ends with a block to paste into your assistant's instructions file. + +## Start new apps from an official template + +When setting up a new Solid 2.0 app, run `npm init solid@latest` before writing app code. +Choose a [project shape](/getting-started/project-shapes) that fits the app: choose `fullstack` if you need server rendering or server functions. +Keep the generated `AGENTS.md` and lint config. +Read the installed [Solid 2.0 primer](#skills) before the first Solid code edit, and run the project's linter before handing off changes. + +If you're adding Solid to an existing app or can't use the starter, follow [Manual setup](/getting-started/manual-setup). +Add the [instructions below](#rules-to-paste-into-an-instructions-file) to the project's `AGENTS.md` and enable the [Solid 2.0 lint rules](#lint). ## What ships with the packages