LobeHub Interactive Prototype
lobehub/lobehub
Builds single-file interactive HTML prototypes rendered with the real LobeHub UI components and written as production-style React, so they can later be split into files.
Collaboratively write a feature spec with the developer. An agent skill from bartstc/vite-ts-react-template.
$ npx skills add bartstc/vite-ts-react-template --skill writing-spec -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install bartstc/vite-ts-react-template writing-spec --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/bartstc/vite-ts-react-template.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/writing-spec .claude/skills/writing-spec && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "writing-spec" agent skill from https://github.com/bartstc/vite-ts-react-template/tree/core/.agents/skills/writing-spec into .claude/skills/writing-spec/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-spec", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/bartstc/vite-ts-react-template/tree/core/.agents/skills/writing-specType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add bartstc/vite-ts-react-template --skill writing-spec -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install bartstc/vite-ts-react-template writing-spec --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bartstc/vite-ts-react-template.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/writing-spec .agents/skills/writing-spec && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "writing-spec" agent skill from https://github.com/bartstc/vite-ts-react-template/tree/core/.agents/skills/writing-spec into .agents/skills/writing-spec/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-spec", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add bartstc/vite-ts-react-template --skill writing-spec -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install bartstc/vite-ts-react-template writing-spec --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bartstc/vite-ts-react-template.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/writing-spec .cursor/skills/writing-spec && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "writing-spec" agent skill from https://github.com/bartstc/vite-ts-react-template/tree/core/.agents/skills/writing-spec into .cursor/skills/writing-spec/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-spec", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/bartstc/vite-ts-react-template.git --path .agents/skills/writing-spec--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add bartstc/vite-ts-react-template --skill writing-spec -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install bartstc/vite-ts-react-template writing-spec --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bartstc/vite-ts-react-template.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/writing-spec .gemini/skills/writing-spec && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "writing-spec" agent skill from https://github.com/bartstc/vite-ts-react-template/tree/core/.agents/skills/writing-spec into .gemini/skills/writing-spec/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-spec", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install bartstc/vite-ts-react-template writing-specInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add bartstc/vite-ts-react-template --skill writing-spec -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/bartstc/vite-ts-react-template.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/writing-spec .github/skills/writing-spec && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "writing-spec" agent skill from https://github.com/bartstc/vite-ts-react-template/tree/core/.agents/skills/writing-spec into .github/skills/writing-spec/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-spec", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add bartstc/vite-ts-react-template --skill writing-spec -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install bartstc/vite-ts-react-template writing-spec --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bartstc/vite-ts-react-template.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/writing-spec .opencode/skills/writing-spec && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "writing-spec" agent skill from https://github.com/bartstc/vite-ts-react-template/tree/core/.agents/skills/writing-spec into .opencode/skills/writing-spec/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-spec", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
writing-specCollaboratively write a feature spec with the developer. An agent skill from bartstc/vite-ts-react-template.
Writing Spec is an agent skill from bartstc/vite-ts-react-template. Collaboratively write a feature spec with the developer. Trigger when a task involves 5+ unconstrained decisions, spans 10+ files, or the developer explicitly asks for a spec. Do NOT trigger for config edits, CSS fixes, helper functions, exploratory prototyping, presentation-only changes, or when the developer explicitly opts out.
Its SKILL.md is about 3.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files (for example `templates/contract-template.md`, `templates/design-template.md` and `templates/requirements-template.md`).
It sits in Frontend & Design, covering PRD writing and Prototyping. It works with React. The repository describes itself as: This project provides a basic dev setup intended for Single Page Application (SPA) development. It contains key tools, settings for seamless DX, and an demo app presenting good… The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 6aa5c9c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Writing Spec loads about 3.4k tokens when it runs. Until then it costs about 86 tokens; SKILL.md has 1,686 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from bartstc/vite-ts-react-template at commit 6aa5c9c, republished under its MIT licence (© bartstc). 1,686 words, ~3,388 tokens.
.claude/skills/writing-spec/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.Guide the developer through writing a feature spec before any code is written. The spec constrains intent and approach so implementation decisions are explicit, reviewed, and traceable. This skill produces three files in specs/NNN-feature-name/ — requirements.md, design.md, tasks.md — using the templates in ./templates/.
./templates/requirements-template.md, ./templates/design-template.md, ./templates/tasks-template.md, and ./templates/contract-template.md before starting — they define the section structure@docs/architecture.md to understand current building block types and project structurespecs/ directory listings AND git log for prior spec-related commits — use the higher of the twoEach phase ends with a human review gate. Do NOT advance to the next phase without explicit developer approval ("continue", "ok", "next", "looks good", or similar). If something goes wrong, STOP and re-plan — do not push forward.
Collaborate with the developer to fill requirements.md.
WHEN [condition] THE SYSTEM SHALL [behavior]. Assign stable IDs (R1, R2, …)requirements.md for reviewWhat to ask if unclear: "What's the observable user behavior when this works correctly?" Never invent requirements — if the developer hasn't specified a behavior, ask about it.
Collaborate on design.md.
Propose a Building Blocks Diff — list every block that is ADDED, MODIFIED, or DELETED. Use the project's building block taxonomy from .agents/skills/building-blocks/SKILL.md. Reference by name and type only — do not define internals. Implementation details belong in coding standards and per-type skills, not specs. For changes that don't map to a typed building block, use the target file path + a short description instead.
Cross-slice concerns — ask whether any new block needs to interact with another feature or sub-feature slice. If yes, decide the wiring point (parent feature or page) and injection mechanism (callback, render prop, slot) in the design — don't defer to implementation.
Identify contract candidates. For each block in the diff, check the signal checklist below. For every block hitting ≥1 signal, present an inline proposal — one line each: `blockName` (type) — <signal(s) hit>; design problem: <one phrase>. The developer approves/rejects each. For approved blocks, create specs/NNN-feature-name/contracts/{block-slug}.md (slug = block name kebab-cased per code-style.md; on a slug collision, suffix the type, e.g. review-form-store.md) from ./templates/contract-template.md, and add a contract link to that block's design.md Building Blocks Diff entry. Contracts are signal-driven, not type-driven — most blocks hit zero signals and get nothing. If no block hits a signal, skip this step entirely: no contracts/ directory, no proposals. When a block hits a signal but the developer rejects the proposal (or you judge it trivial), record the skip reason inline in that block's design.md entry — e.g. `fooStore` (store) — contract skipped: shape is flat.
Signals — a block warrants a contract proposal if ≥1 holds. Signals describe properties of the design problem, not block types:
For non-trivial features, propose two plausible designs with tradeoffs. Let the developer choose. Capture the winner and rationale in Design Decisions
Draft the Boundaries section using the three-tier system:
Present design.md for review
Critical rule for building blocks: Reference names and types. Do NOT define contracts, interfaces, or implementation — those live in separate coding-standards skills and existing code. The spec describes a CHANGE to the status quo. The agent reads relevant code to see the current status quo.
Fill tasks.md.
design.md if any are involved[P] (parallelizable) or [S] (sequential)tasks.md for reviewdesign.md that doesn't exist in the building-blocks catalog — acceptable without a catalog match if the block has a contract (signal 5, no canonical pattern); flag it only if it lacks bothdesign.md block entry; every design.md block that hits a signal either has a contract or an inline skip reason in its entryrequirements.md ≤50, design.md ≤80, tasks.md ≤70, combined ≤200. Contracts are excluded from the combined cap — report each contract's count separately, ≤80 each. If any cap is exceeded, identify which section to compress or extractreview in each Meta table./templates/ before draftingdesign.md — reference name + type only. Internals/pseudocode for complex blocks belong in contracts/; contracts are the one sanctioned place for block-shape detail in a specdesign.md and a contract — cross-block decisions go in design.md Design Decisions; intra-block shape rationale goes in the contract### Added
- `loginMutation` (mutation) — handles POST /auth/login
- `LoginForm` (component) — email/password form with validation### Added
- `loginMutation` (mutation):
```typescript
export const loginMutation = {
mutationFn: (data: LoginData) => api.post("/auth/login", data),
onSuccess: (response) => {
authStore.setToken(response.token);
},
};
```Why wrong: the spec now contains code. The mutation's internals are governed by coding standards, not the feature spec.
### ✅ Correct: EARS requirement
```markdown
- **R3**: WHEN the login form is submitted with an empty email field, THE SYSTEM SHALL display an inline validation error without making an API call.- **R3**: The form should validate inputs properly.Why wrong: "properly" is undefined — the agent will guess what validations to apply and what "proper" error display looks like.
The spec is ready for implementation when:
approved)design.mdrequirements.md ≤50, design.md ≤80, tasks.md ≤70, combined ≤200 lines; each contract ≤80 lines (excluded from the combined cap).agents/skills/building-blocks/SKILL.md — building block type dictionary (names, descriptions, when to use each)./templates/requirements-template.md, ./templates/design-template.md, ./templates/tasks-template.md, ./templates/contract-template.md — section structure and inline guidance@docs/architecture.md — project structure, architectural decisions, conventions© bartstc, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files in .agents/skills/writing-spec of bartstc/vite-ts-react-template.
Open the folder on GitHubat commit 6aa5c9c
Writing Spec next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Writing Spec this skillbartstc/vite-ts-react-template | 122 | — | ~3.4k | Automated safety check: Pass | MIT | |
| LobeHub Interactive Prototypelobehub/lobehub | 83k | — | ~1.6k | Automated safety check: Pass | Custom licence | |
| S2 Docsadobe/spectrum-design-data | 155 | — | ~868 | Automated safety check: Pass | Apache-2.0 | |
| Code to PRDalirezarezvani/claude-skills | 28k | 1 repos | ~4.9k | Automated safety check: Pass | MIT | |
| Product Design Workflow BundleXiaomiMiMo/MiMo-Code | 14k | — | ~721 | Automated safety check: Pass | MIT | |
| React Composition Patternsvercel-labs/openreview | 1.7k | 58 repos | ~721 | Automated safety check: Pass | MIT |
lobehub/lobehub
Builds single-file interactive HTML prototypes rendered with the real LobeHub UI components and written as production-style React, so they can later be split into files.
adobe/spectrum-design-data
Look up Spectrum 2 (S2) component documentation, design guidelines, and usage patterns when building with React Spectrum or Spectrum Web Components.
alirezarezvani/claude-skills
Reverse-engineers a frontend, backend or fullstack codebase into a product requirements document with per-page docs, an enum dictionary and an API inventory.
XiaomiMiMo/MiMo-Code
Entry point to a bundle of product design workflows covering context, research, audits, ideation, URL or image to code, design QA and sharing a prototype.
vercel-labs/openreview
Rules for structuring React components with composition instead of boolean props, covering compound components, lifted state, variants and React 19 changes.
sanity-io/sanity
React and Next.js performance optimization guidelines from Vercel Engineering.
bartstc/vite-ts-react-template
Create production-ready GitHub Actions workflows for automated testing, building, and deploying applications.
bartstc/vite-ts-react-template
Create high-quality git commits: review/stage intended changes, split into logical commits, and write clear commit messages (including Conventional Commits).
bartstc/vite-ts-react-template
A skill your agent uses when creating page objects or refactoring Playwright E2E tests for better maintainability with Page Object Model patterns.
bartstc/vite-ts-react-template
Explains code with visual diagrams and analogies. An agent skill from bartstc/vite-ts-react-template.
bartstc/vite-ts-react-template
Frontend building block catalog — typed patterns for components, hooks, queries, mutations, stores, and models.
bartstc/vite-ts-react-template
Test building block catalog — typed patterns for Storybook play-function tests, Vitest hook tests, Vitest unit tests, MSW handlers, and test data fixtures.
Works with
Collaboratively write a feature spec with the developer. An agent skill from bartstc/vite-ts-react-template. Writing Spec is an agent skill from bartstc/vite-ts-react-template. Collaboratively write a feature spec with the developer.
Writing Spec fits situations like: A task involves 5+ unconstrained decisions; spans 10+ files; the developer explicitly asks for a spec; helper functions.
Run `npx skills add bartstc/vite-ts-react-template --skill writing-spec -a claude-code`. Or copy the skill folder (.agents/skills/writing-spec in bartstc/vite-ts-react-template) into .claude/skills/writing-spec in your project. Claude Code loads it when a task matches its description.
Run `npx skills add bartstc/vite-ts-react-template --skill writing-spec -a codex`. Or copy the skill folder (.agents/skills/writing-spec in bartstc/vite-ts-react-template) into .agents/skills/writing-spec in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bartstc/vite-ts-react-template --skill writing-spec -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/writing-spec, .gemini/skills/writing-spec, .github/skills/writing-spec and .opencode/skills/writing-spec in your project.
Going by SKILL.md and its folder, Writing Spec needs the command-line tools its instructions call (git).
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Writing Spec is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.4k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Writing Spec: LobeHub Interactive Prototype (lobehub/lobehub, 83k stars), S2 Docs (adobe/spectrum-design-data, 155 stars), Code to PRD (alirezarezvani/claude-skills, 28k stars) and Product Design Workflow Bundle (XiaomiMiMo/MiMo-Code, 14k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
bartstc (a GitHub user) maintains it in bartstc/vite-ts-react-template, which has 122 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 6, 2026.
Source: bartstc/vite-ts-react-template on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.