Cometchat React V7 Patterns
cometchat/cometchat-skills
Framework wiring for the React v7 UI Kit across Vite, Create React App, Next.js, React Router (incl.
Local browser verification for the lobe-ui component library and documentation site.
$ npx skills add lobehub/lobe-ui --skill local-testing -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install lobehub/lobe-ui local-testing --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/lobehub/lobe-ui.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/local-testing .claude/skills/local-testing && 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 "local-testing" agent skill from https://github.com/lobehub/lobe-ui/tree/master/.agents/skills/local-testing into .claude/skills/local-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "local-testing", 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/lobehub/lobe-ui/tree/master/.agents/skills/local-testingType 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 lobehub/lobe-ui --skill local-testing -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install lobehub/lobe-ui local-testing --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lobehub/lobe-ui.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/local-testing .agents/skills/local-testing && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "local-testing" agent skill from https://github.com/lobehub/lobe-ui/tree/master/.agents/skills/local-testing into .agents/skills/local-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "local-testing", 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 lobehub/lobe-ui --skill local-testing -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install lobehub/lobe-ui local-testing --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lobehub/lobe-ui.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/local-testing .cursor/skills/local-testing && 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 "local-testing" agent skill from https://github.com/lobehub/lobe-ui/tree/master/.agents/skills/local-testing into .cursor/skills/local-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "local-testing", 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/lobehub/lobe-ui.git --path .agents/skills/local-testing--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 lobehub/lobe-ui --skill local-testing -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install lobehub/lobe-ui local-testing --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lobehub/lobe-ui.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/local-testing .gemini/skills/local-testing && 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 "local-testing" agent skill from https://github.com/lobehub/lobe-ui/tree/master/.agents/skills/local-testing into .gemini/skills/local-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "local-testing", 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 lobehub/lobe-ui local-testingInstalls 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 lobehub/lobe-ui --skill local-testing -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/lobehub/lobe-ui.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/local-testing .github/skills/local-testing && 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 "local-testing" agent skill from https://github.com/lobehub/lobe-ui/tree/master/.agents/skills/local-testing into .github/skills/local-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "local-testing", 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 lobehub/lobe-ui --skill local-testing -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install lobehub/lobe-ui local-testing --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lobehub/lobe-ui.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/local-testing .opencode/skills/local-testing && 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 "local-testing" agent skill from https://github.com/lobehub/lobe-ui/tree/master/.agents/skills/local-testing into .opencode/skills/local-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "local-testing", 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.
local-testingLocal browser verification for the lobe-ui component library and documentation site.
Local Testing is an agent skill from lobehub/lobe-ui. Local browser verification for the lobe-ui component library and documentation site. Uses agent-browser against the React Router and Vite development server, including component pages, manifest-backed standalone demos, theme states, and responsive layouts. Trigger on local test, UI test, verify component, test in browser, visual check, or screenshot demo.
Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Frontend & Design, covering Design systems, Browser automation and Static sites and blogs. It works with Vite, React Router, React and TypeScript. The repository describes itself as: 🍭 Lobe UI - an open-source UI component library for building AIGC web apps. The licence is MIT.
8 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 6b4ecd3. 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:
pnpmjqcurlrgFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pnpm and curl, 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.
Local Testing loads about 2.1k tokens when it runs. Until then it costs about 93 tokens; SKILL.md has 526 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 lobehub/lobe-ui at commit 6b4ecd3, republished under its MIT licence (© lobehub). 526 words, ~2,078 tokens.
.claude/skills/local-testing/SKILL.md (or your agent's skills folder).Use agent-browser to verify the local documentation site visually and programmatically.
| Layer | Command or tool | Authority |
|---|---|---|
| Development server | pnpm run docs:dev | React Router and Vite |
| Documentation routes | site/content/compatibility.json | Frozen path authority |
| Navigation and document registry | Compiled content manifest | Runtime result |
| Standalone demo routes | site/content/compatibility.json | Frozen compatibility inventory |
| Browser automation | agent-browser | Chromium through CDP |
Do not assume a fixed port or derive standalone IDs from filenames. The server selects the first available port, while the compatibility manifest is the route authority.
Prefer the server already associated with the current task. Otherwise start one in the background and retain its log for port discovery and error inspection:
LOG=/tmp/lobe-ui-docs-dev.log
nohup pnpm run docs:dev > "$LOG" 2>&1 &
disownWait for the actual URL emitted by Vite. The log contains a value matching
http://localhost:[0-9]+; never substitute a hard-coded default.
LOG=/tmp/lobe-ui-docs-dev.log
for i in $(seq 1 60); do
URL=$(grep -Eo 'http://localhost:[0-9]+' "$LOG" | head -1)
[ -n "$URL" ] && curl -fsS -o /dev/null "$URL" && break
sleep 1
done
test -n "$URL"
printf '%s\n' "$URL"If no URL appears, inspect the complete log before retrying. Do not start multiple servers merely because an expected port is occupied.
Documentation pathnames are frozen in site/content/compatibility.json; this is the path authority.
The content manifest is the compiled runtime result. For a known document source, query its canonical
public path before opening it:
SOURCE='src/Button/index.mdx'
DOC_PATH=$(jq -r --arg source "$SOURCE" \
'.documents[] | select(.source == $source) | .pathname' \
site/content/compatibility.json)
test -n "$DOC_PATH"
agent-browser open "$URL$DOC_PATH"Standalone demo IDs come from site/content/compatibility.json. Query the manifest by source path:
SOURCE='src/Button/demos/index.tsx'
jq -r --arg source "$SOURCE" \
'.demoReferences[] | select(.source == $source) | "/~demos/" + .legacyId' \
site/content/compatibility.jsonOpen the returned route directly. This preserves legacy IDs such as /~demos/docs-demo-docs and
avoids reimplementing the canonical-ID algorithm in shell code.
agent-browser open "$URL/~demos/docs-demo-docs"
agent-browser wait --load networkidle
agent-browser snapshot -iUse the full documentation page when verifying navigation, API tables, search, table of contents, or the relationship between several demos. Use the standalone route for isolated component interaction and rendering checks.
Prefer accessible names and repository-owned state attributes over generated class names.
| Surface | Stable selector |
|---|---|
| Active documentation link | [aria-current="page"] |
| Standalone demo root | [data-standalone-demo] |
| Demo appearance | [data-demo-appearance="light"] or [data-demo-appearance="dark"] |
| Demo editability | [data-demo-editable="true"] or [data-demo-editable="false"] |
| Demo layout | [data-demo-layout] |
| Live preview state | [data-live-state="active"] |
| Documentation navigation | [aria-label="Component documentation"] |
| Search dialog | [aria-label="Search documentation"] |
| Source editor | [aria-label="Demo source editor"] |
Use role and accessible-name queries for desktop controls:
agent-browser click 'button[aria-label="Search documentation"]'
agent-browser fill 'input[aria-label="Search documentation"]' 'Button'
agent-browser click 'button[aria-label="Use dark demo theme"]'
agent-browser eval 'document.querySelector("[aria-current=page]")?.textContent'After switching to a mobile viewport, use button[aria-label="Open search"] from the header.
Re-run agent-browser snapshot -i after every navigation or hot update because element references
may have been invalidated.
Install an interceptor before interaction when the scenario can trigger asynchronous rendering:
agent-browser eval --stdin << 'EVALEOF'
(function () {
window.__CAPTURED_ERRORS = [];
var originalError = console.error;
console.error = function () {
var message = Array.from(arguments).map(function (value) {
if (value instanceof Error) return value.stack || value.message;
return typeof value === 'object' ? JSON.stringify(value) : String(value);
}).join(' ');
window.__CAPTURED_ERRORS.push(message);
originalError.apply(console, arguments);
};
window.addEventListener('error', function (event) {
window.__CAPTURED_ERRORS.push('window.onerror: ' + (event.error?.stack || event.message));
});
window.addEventListener('unhandledrejection', function (event) {
window.__CAPTURED_ERRORS.push('unhandledrejection: ' + (event.reason?.stack || event.reason));
});
return 'installed';
})()
EVALEOFAfter interaction, collect browser and server evidence:
agent-browser eval 'JSON.stringify(window.__CAPTURED_ERRORS || [])'
tail -n 100 /tmp/lobe-ui-docs-dev.log | rg -i 'error|warn|failed'Treat hydration warnings, uncaught exceptions, unhandled rejections, and failed module loads as test failures. A screenshot without these checks is insufficient.
For a component change, exercise the smallest complete flow:
[aria-current="page"].[data-standalone-demo] exists.[data-demo-appearance].eval.Example semantic inspection:
agent-browser eval --stdin << 'EVALEOF'
JSON.stringify({
activeLink: document.querySelector('[aria-current="page"]')?.textContent?.trim(),
appearance: document.querySelector('[data-demo-appearance]')?.getAttribute('data-demo-appearance'),
editable: document.querySelector('[data-demo-editable]')?.getAttribute('data-demo-editable'),
standalone: Boolean(document.querySelector('[data-standalone-demo]')),
})
EVALEOFKeep the server alive across related iterations. When explicit cleanup is required, derive its port from the same log and stop only that listener:
PORT=$(grep -Eo 'http://localhost:[0-9]+' /tmp/lobe-ui-docs-dev.log | head -1 | sed 's/.*://')
PIDS=$(lsof -nP -iTCP:"$PORT" -sTCP:LISTEN -t)
[ -n "$PIDS" ] && kill $PIDSDo not close all browser sessions or terminate unrelated development servers.
© lobehub, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/local-testing of lobehub/lobe-ui.
Open the folder on GitHubat commit 6b4ecd3
Local Testing 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 |
|---|---|---|---|---|---|---|
| Local Testing this skilllobehub/lobe-ui | 2.2k | — | ~2.1k | Automated safety check: Pass | MIT | |
| Cometchat React V7 Patternscometchat/cometchat-skills | 129 | — | ~1.2k | Automated safety check: Notes | MIT | |
| Frontend Design UltimateaAAaqwq/AGI-Super-Team | 105 | 2 repos | ~2.7k | Automated safety check: Pass | MIT | |
| Shadcn Tailwind UILiarMTTT/TavernWeave | 148 | — | ~1.7k | Automated safety check: Pass | Custom licence | |
| Redesign My Landingpageinstructa/agent-skills | 139 | — | ~1.8k | Automated safety check: Pass | None | |
| Devwaynesutton/markdown-site | 628 | — | ~854 | Automated safety check: Pass | MIT |
cometchat/cometchat-skills
Framework wiring for the React v7 UI Kit across Vite, Create React App, Next.js, React Router (incl.
aAAaqwq/AGI-Super-Team
Create distinctive, production-grade static sites with React, Tailwind CSS, and shadcn/ui — no mockups needed.
LiarMTTT/TavernWeave
Build, restyle, or review accessible React interfaces that use shadcn/ui, Radix UI primitives, and Tailwind CSS.
instructa/agent-skills
Build, critique, and iterate high-converting marketing or product landing pages using React + Vite + TypeScript + Tailwind and shadcn/ui components, with all icons sourced from Iconify.
waynesutton/markdown-site
Full-stack Convex development guidelines covering React, Vite, TypeScript, mutations, auth, design system, and documentation practices.
IgorWarzocha/Opencode-Workflows
Initialize shadcn/ui + Tailwind CSS v4 in Vite projects (Vite-specific, not Next.js/Remix).
lobehub/lobe-ui
Build UI with the LobeHub design ecosystem — @lobehub/ui (plus its base-ui, chat, mobile, awesome, brand, mdx, i18n namespaces), @lobehub/icons, @lobehub/charts, @lobehub/fluent-emoji and…
lobehub/lobe-ui
Set up and author a documentation site with @lobehub/docs-kit (the lobedocs CLI, React Router + Vite static docs used by ui.lobehub.com).
Local browser verification for the lobe-ui component library and documentation site. Local Testing is an agent skill from lobehub/lobe-ui. Local browser verification for the lobe-ui component library and documentation site.
Local Testing fits situations like: verify component; test in browser; screenshot demo.
Run `npx skills add lobehub/lobe-ui --skill local-testing -a claude-code`. Or copy the skill folder (.agents/skills/local-testing in lobehub/lobe-ui) into .claude/skills/local-testing in your project. Claude Code loads it when a task matches its description.
Run `npx skills add lobehub/lobe-ui --skill local-testing -a codex`. Or copy the skill folder (.agents/skills/local-testing in lobehub/lobe-ui) into .agents/skills/local-testing 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 lobehub/lobe-ui --skill local-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/local-testing, .gemini/skills/local-testing, .github/skills/local-testing and .opencode/skills/local-testing in your project.
Going by SKILL.md and its folder, Local Testing needs the command-line tools its instructions call (pnpm, jq, curl and rg).
SKILL.md contains no URLs. Its commands use curl, 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.
Local Testing is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.1k tokens (SKILL.md is roughly 8.3k 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 Local Testing: Cometchat React V7 Patterns (cometchat/cometchat-skills, 129 stars), Frontend Design Ultimate (aAAaqwq/AGI-Super-Team, 105 stars), Shadcn Tailwind UI (LiarMTTT/TavernWeave, 148 stars) and Redesign My Landingpage (instructa/agent-skills, 139 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
lobehub (a GitHub organization) maintains it in lobehub/lobe-ui, which has 2,217 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 7, 2026.
Source: lobehub/lobe-ui on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.