lattice-php/lattice/documentation
Claude Code and agent skill by lattice-php/lattice
- community
Checking that the SKILL.md file is still in the repository.
Use when writing or editing the Lattice documentation site under docs/ — authoring or changing pages in docs/content/docs, adding live component examples with ComponentExample and test-generated fixtures, emphasizing caveats with the Info/Warning callouts, updating the sidebar, and verifying the docs build.
Install
npx vskill@latest install lattice-php/lattice/documentationSKILL.md
Lattice Documentation
The docs are an Astro + Starlight site living in docs/. Content is Markdown under docs/content/docs/**; the config (and sidebar) is astro.config.mjs. Build artifacts go to dist-docs/ (git-ignored — never commit it).
docs:build runs npm run analyze first (Sonda bundle-bench builds that write one docs/public/bundle-report-<target>.html per analyze target — the framework plus each first-party package), so the first run is slower and leaves those generated reports behind — expected, not a change to commit.
Path aliases available in docs files: @components → docs/components, @lib → docs/lib, @lattice/lattice → resources/js (the actual package, so previews render real components).
Authoring a page
- Every page starts with frontmatter:
```md
title: Select description: One-line summary used in the sidebar and search.
```
- Use `.md` for plain prose. Use `.mdx` when the page imports a component
(ComponentExample, Info, Warning) — components do not work in .md.
- Register new pages in the
sidebararray inastro.config.mjs, or they won't appear. - Link between pages with a root-relative path and a trailing slash:
[Toasts](/core/toasts/).
Cross-link related pages generously.
- Keep it concise and match the voice of the surrounding pages. Show, don't pad.
Live examples — ComponentExample + fixtures
This is how the docs render real, test-generated components instead of hand-maintained JSON. Use it (in an .mdx page) for anything visual:
It renders four tabs: PHP (the php string — display only), Preview (the live render), Tree (the serialized node JSON), and Style (the theme tokens used).
The fixture names a file in docs/fixtures/<key>.json. Fixtures are generated by a Pest test — never hand-write or edit them. A describe('docs fixtures', …) block builds the component and dumps it with dumpFixture():
The loop for a new example:
- Add/extend a
docs fixturestest that builds the component and callsdumpFixture('your.key', [...]),
plus an expect('docs/fixtures/your.key.json')->toBeReadableFile() assertion (the CI guard).
- Run it to generate the file:
vendor/bin/pest --filter="docs fixtures". - Reference it:
fixture="your.key", and keep thephpstring in sync with what the test builds. values={{ … }}seeds initial form state so field previews render with data.
Commit the generated docs/fixtures/*.json alongside the page.
Emphasize important parts with callouts
Pull caveats, footguns, and helpful context out of the prose into a callout. Two reusable boxes live in docs/components/:
- `<Info>` — helpful context, defaults, "good to know". (Wraps Starlight's blue
noteaside.) - `<Warning>` — gotchas, security/authorization notes, destructive or irreversible behavior,
required setup. (Wraps the yellow caution aside.)
- Both take an optional
title:<Warning title="Authorization">…</Warning>. - In a plain `.md` page (no imports), use the Markdown equivalents instead:
:::notefor Info and
:::caution for Warning.
- Use them where they earn attention. A page drowning in callouts emphasizes nothing.
Verify before committing
npm run docs:buildpasses (broken links, MDX, or imports fail the build).- If you added or changed a fixture, run the
docs fixturestests and commit the regenerated JSON. - Do not commit
dist-docs/.
Security
- Security scanPassed, 96 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.ai/skills/documentation/SKILL.md
Popularity
- Repository stars
- 63
- Repository forks
- 6
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lattice-php/lattice/documentation)