lightsound

Solid2 Agent Kit — AI skill for Claude Code

AI community

Teach AI coding agents (Cursor, Claude Code) to write correct Solid 2.0 — always-applied rules, an agent skill, a mechanical pattern gate, and docs-drift CI.

How to install Solid2 Agent Kit

This entry records only its repository, not the path inside it, so there is no exact command to give. Open lightsound/solid2-agent-kit and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Solid2 Agent Kit does

Teach AI coding agents (Cursor, Claude Code) to write correct Solid 2.0 — always-applied rules, an agent skill, a mechanical pattern gate, and docs-drift CI.

Alternatives in AI

  • Skill MODE Pattern — V1.0 — Stolen from: everything-claude-code (ECC) runtime profile system Applied to: AI marketing skills 164 ★
  • FriesTrader — Robinhood Agentic Trading agent — a fully automated AI trading bot placing real orders through Robinhood's Age 157 ★
  • Suomi Finnish Skill — Finnish language skill for AI — teach Claude, Codex etc. to write correct Finnish 60 ★

README

solid2-agent-kit

Teach AI coding agents to write correct **Solid 2.0** — not React, and not Solid 1.x.

LLMs are heavily biased toward React when writing TSX, and their Solid knowledge is mostly Solid 1.x, which is incompatible with Solid 2.0. This kit installs layered guardrails into a project so agents stop destructuring props, reaching for `useEffect`/`createResource`, or writing `className` — and start writing idiomatic Solid 2.0.

Supported agents: **Cursor** and **Claude Code**.

What it installs

Layer Cursor Claude Code Role
Always-applied hard rules .cursor/rules/solid-2.mdc (glob-attached to *.tsx/*.jsx) managed block in CLAUDE.md 23 hard rules + banned Solid 1.x API table + eslint-plugin-solid lint-heritage table. Injected without the agent having to decide to read anything
Agent skill .cursor/skills/solid-2/ .claude/skills/solid-2/ Execution-model primer, decision tables, canonical patterns, a “still runs / write the other form” table, review checklist, official-doc URL index
Shared agent context managed block in AGENTS.md same (Claude Code users can reference it from CLAUDE.md) Core principles and pointers, always in context
Mechanical gate solid2-kit check same Comment-stripped regex guard over src/**/*.{ts,tsx,jsx} (or explicit [paths...] — files are checked, directories are walked, a missing path fails): fails on props destructuring (including multi-line signatures), { ...props } rest copies, {list().map(...)} in JSX, React imports/hooks/JSX props/React.lazy/useOptimistic/onDoubleClick, Solid 1.x imports/APIs/components/JSX namespaces (valueless use:x included), Solid 1.x createEffect(fn) / createEffect(fn, init) / createMemo(fn, init) signatures, const [x] = createProjection(...) (it returns the store, not a tuple), vite-plugin-solid, old-router ///, MetaProvider, Context.Provider, camelCas