Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/routes/(5)guides/(17)ai-tools.mdx
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Loading