web-development
Skill78 starsChanged 2 months agoMITView on GitHub
Use when users need to implement, integrate, debug, build, deploy, or validate a Web frontend after the product direction is already clear, especially for React, Vue, Vite, browser flows, or CloudBase Web integration.
- Installs packages
3 other projects use a version of this.
Adopted by
Most recently taken up by
- prangishviliAbe/agent-skillstheir own version, first seen Sep 26, 2026
- Marnie0415/pi-skillstheir own version, first seen Jun 13, 2026
- Mindrally/skillstheir own version, first seen Jan 23, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- Mindrally/skills★ 266same name
- prangishviliAbe/agent-skills★ 7same name
- Marnie0415/pi-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository33 other files it gives its agents.
- ai-model-nodejsSkill
- ai-model-webSkill
- ai-model-wechatSkill
- auth-nodejs-cloudbaseSkill
- auth-tool-cloudbaseSkill
- auth-web-cloudbaseSkill
- auth-wechat-miniprogramSkill
- cloud-api-operationsSkill
- cloudbase-agent-pythonSkill
- cloudbase-agentSkill
- cloudbase-agentSkill
- cloudbase-cliSkill
- cloudbase-code-reviewSkill
- cloudbase-declarative-deploySkill
- cloudbase-document-database-in-wechat-miniprogramSkill
- cloudbase-document-database-web-sdkSkill
- cloudbase-platformSkill
- cloudbaseSkill
- cloudbase-wechat-integrationSkill
- cloud-functionsSkill
- cloudrun-developmentSkill
- cloud-storage-webSkill
- data-model-creationSkill
- http-api-cloudbaseSkill
- minimal-web-baas-demoSkill
- miniprogram-developmentSkill
- ops-inspectorSkill
- postgresql-best-practices-cloudbaseSkill
- postgresql-development-cloudbaseSkill
- relational-database-mcp-cloudbaseSkill
- relational-database-web-cloudbaseSkill
- spec-workflowSkill
- ui-designSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
32 rules. About 0 are common, 20 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈20
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
If a referenced sibling skill file is missing from this environment, ask the user to install the full CloudBase plugin (or the missing …
- Distinctive: line 64
When a type error appears, fix the root cause:
- Very specific: line 70
If you genuinely cannot avoid any for a specific line (extremely rare), leave a one-line comment with why and what would remove it, so …
- Very specific: line 75
Before making any non-trivial code or configuration change, you must first follow the Change Safety Protocol in …
- Very specific: line 76
Before any static hosting publish or custom domain work, complete the checks in cloudbase-platform/references/protocols/deployment-gate.md.
- Very specific: line 89
Use the agent-browser tool to actually open the page and reproduce the user-visible flow.
- Very specific: line 97
Do not wrap broken logic in try { ...
- Distinctive: line 98
Do not delete or skip a failing test to make CI green — fix it, or explain why the test is actually wrong and change the test with …
- Distinctive: line 99
Do not mark a task complete because "the code compiles".
- Distinctive: line 103
Use this skill for Web engineering work such as:
- Distinctive: line 120
Keep the work scoped to the actual Web app surface instead of spreading into unrelated backend changes.
- Distinctive: line 121
If the workspace is an existing application with TODOs, treat it as a targeted repair task, not a greenfield build.
- Distinctive: line 124
Prefer the existing project stack if one already exists.
- Very specific: line 126
Put reusable app code under src and build output under dist unless the repo already uses a different convention.
- Distinctive: line 131
Prefer lightweight smoke validation for changed flows before claiming the frontend work is complete.
- Distinctive: line 134
Use CloudBase Web SDK and static hosting guidance only when the project actually needs CloudBase platform features.
- Distinctive: line 142
New Web app: prefer Vite unless the repo already standardizes on another toolchain
- Distinctive: line 148
Follow the repo's package manager, scripts, and lint/test patterns
- Distinctive: line 149
Avoid framework rewrites unless the user explicitly asks for one
- Very specific: line 150
Prefer the smallest viable page/component/config change that satisfies the task
- Very specific: line 155
Run the relevant local build / lint / typecheck / test command when available.
- Distinctive: line 161
Use this section only when the Web project needs CloudBase platform features.
- Very specific: line 165
Prefer npm installation for React, Vue, Vite, and other bundler-based projects: npm install @cloudbase/js-sdk
- Very specific: line 166
Use the CDN only for static HTML pages, quick demos, embedded snippets, or README examples: …
- Distinctive: line 167
Only use documented CloudBase Web SDK APIs.
- Very specific: line 168
Keep a shared app or auth instance instead of re-initializing on every call
- Very specific: line 169
If the user only provides an environment alias, nickname, or other shorthand, resolve it to the canonical full EnvId before writing SDK …
- Distinctive: line 174
Do not move Web login logic into cloud functions
- Distinctive: line 180
Prefer relative asset paths for static hosting compatibility
- Distinctive: line 181
Use hash routing by default when the project lacks server-side route rewrites
- Distinctive: line 182
If the user does not specify a root path, avoid deploying directly to the site root by default
- Distinctive: line 185
Use the MCP tool to apply this:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Sibling skills (local only)
Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../auth-tool-cloudbase/SKILL.md.
If a referenced sibling skill file is missing from this environment, ask the user to install the full CloudBase plugin (or the missing skill). Do not HTTP-fetch remote skill or protocol markdown into the agent context.
Cross-cutting protocols (required before code changes or deployments):
- Change Safety Protocol:
../cloudbase-platform/references/protocols/change-safety-protocol.md - Deployment Gate:
../cloudbase-platform/references/protocols/deployment-gate.md
Web Development
Activation Contract
Use this first when
- The request is to implement, integrate, debug, build, deploy, or validate a Web frontend or static site.
- The design direction is already decided, or the user is asking for engineering execution rather than visual exploration.
- The work involves React, Vue, Vite, routing, browser-based verification, or CloudBase Web integration.
Read before writing code if
- The task includes project structure, framework conventions, build config, deployment, routing, or frontend test and validation flows.
- The request includes UI implementation but the visual direction is already fixed; otherwise read
ui-designfirst. - ⚠️ Any task involving interface styling, layout, color scheme, or font selection — before writing the first line of CSS/Tailwind, you MUST load the
ui-designskill and output a Design Specification. Skipping this step causes frontend styling to degrade to generic AI template defaults. Theui-designskill must be loaded before any visual implementation begins, not retroactively after the user complains about the appearance.
Then also read
- General React / Vue / Vite guidance ->
frameworks.md - Browser flow checks or page validation ->
browser-testing.md - Login flow ->
../auth-tool-cloudbase/SKILL.md, then../auth-web-cloudbase/SKILL.md - Official Account JSAPI Pay, Native QR-code Pay, or WeChat OAuth on CloudBase ->
../cloudbase-wechat-integration/SKILL.md(official docs:https://docs.cloudbase.net/integration/introduce.md) - CloudBase database work -> matching database skill
Do NOT use for
- Visual direction setting, prototype-first design work, or pure aesthetic exploration.
- Mini programs, native Apps, or backend-only services.
- WeChat payment or Official Account OAuth contract details; use
cloudbase-wechat-integrationafter identifying the Web surface.
Common mistakes / gotchas
- Starting implementation before clarifying whether the task is design or engineering execution.
- Mixing framework setup, deployment, and CloudBase integration concerns into one vague change.
- Treating cloud functions as the default solution for Web authentication.
- Skipping browser-level validation after a UI or routing change.
- History mode SPA with CloudBase static hosting: deploying a single-page app using History mode (React Router / Vue Router) without configuring the static hosting "404 error document" to
index.html. This causesNoSuchKey/ 404 errors when users refresh or directly visit any sub-route. - In an existing application, detouring into UI redesign or broad repo sweeps before patching the current handlers and services.
Engineering constitution (non-negotiable)
These rules override convenience. Treat them as a gate before saying "done".
1. TypeScript — do not silence the type system
- Do NOT use
anyto bypass type errors. Not: any, notas any, not@ts-ignore, not@ts-nocheck, not@ts-expect-errorwithout a written justification.anypropagates silently and defeats the only compile-time safety net this project has. - When a type error appears, fix the root cause:
- Missing / wrong library types → install
@types/..., or narrow the import, or write a preciseinterface/typefor the shape you actually use. - Shape is genuinely unknown at the boundary (JSON from an API,
postMessagepayload,window.*injection) → type it asunknownand narrow with a type guard (typeof,in, a discriminator field, orzod/ equivalent). - Third-party type is wrong → augment via
declare modulein a local.d.ts, notany. - Truly dynamic case (e.g. generic event bus) → use a generic
<T>with a constraint, notany.
- Missing / wrong library types → install
unknown+ narrowing is the acceptable escape hatch.anyis not.- If you genuinely cannot avoid
anyfor a specific line (extremely rare), leave a one-line comment with why and what would remove it, so reviewers can audit. - The same spirit applies to ESLint: do not sprinkle
// eslint-disableto mute the real signal. Fix the rule violation, or discuss before disabling.
2. Self-verify before claiming done
Before making any non-trivial code or configuration change, you must first follow the Change Safety Protocol in cloudbase-platform/references/protocols/change-safety-protocol.md (declare impact → user confirmation → post-edit verification).
Before any static hosting publish or custom domain work, complete the checks in cloudbase-platform/references/protocols/deployment-gate.md.
Saying "I've implemented it" / "fixed it" / "it should work" without evidence is not acceptable. Before declaring completion, you must actually run the checks and report the result.
Static / build layer (always, when applicable):
tsc --noEmit(orvue-tsc --noEmit) passes cleanly — zero errors, zero suppressed diagnostics you added.eslint/ project linter passes on changed files.- The project's build command (
npm run build/pnpm build/vite build) completes without new warnings that you introduced. - The project's unit tests pass if they exist and cover the touched area.
Runtime / browser layer (whenever the change affects rendering, routing, forms, auth, or async flows):
- Use the
agent-browsertool to actually open the page and reproduce the user-visible flow. Followbrowser-testing.mdfor the concrete workflow. - Confirm: the target route loads, the interaction you claim to have fixed behaves the way you claim, no new console errors are introduced, and no regression in the adjacent routes you touched.
- Record what you checked (route, action, expected result, actual result).
Only after both layers pass may you say the task is done. If either layer cannot be executed locally (e.g. blocked by credentials, missing backend, paid API), say so explicitly and list exactly which step is still unverified — do not gloss over it.
3. Do not paper over failures
- Do not wrap broken logic in
try { ... } catch {}to make the error go away. - Do not delete or skip a failing test to make CI green — fix it, or explain why the test is actually wrong and change the test with justification.
- Do not mark a task complete because "the code compiles". Compilation is the bare minimum, not the goal.
When to use this skill
Use this skill for Web engineering work such as:
- Implementing React or Vue pages and components
- Setting up or maintaining Vite-based frontend projects
- Handling routing, data loading, forms, and build configuration
- Running browser-based validation and smoke checks
- Integrating CloudBase Web SDK and static hosting when the project needs CloudBase capabilities
Do NOT use for:
- UI direction or visual system design only; use
ui-design - Mini program development; use
miniprogram-development - Backend service implementation; use
cloudrun-developmentorcloud-functions
How to use this skill (for a coding agent)
- Clarify the execution surface
- Confirm whether the task is framework setup, page implementation, debugging, deployment, validation, or CloudBase integration.
- Keep the work scoped to the actual Web app surface instead of spreading into unrelated backend changes.
- If the workspace is an existing application with TODOs, treat it as a targeted repair task, not a greenfield build.
- Follow framework and build conventions
- Prefer the existing project stack if one already exists.
- For new work, treat Vite as the default bundler unless the repo or user constraints say otherwise.
- Put reusable app code under
srcand build output underdistunless the repo already uses a different convention. - In an existing application with fixed structure, inspect the files that already own the flow before reading broad docs:
src/lib/backend.*,src/lib/auth.*,src/lib/*service.*, route guards, and the page handlers bound to submit buttons.
- Validate through the browser, not only by reading code
- For interaction, routing, rendering, or regression checks, use
agent-browserworkflows frombrowser-testing.md. - Prefer lightweight smoke validation for changed flows before claiming the frontend work is complete.
- For interaction, routing, rendering, or regression checks, use
- Treat CloudBase as an integration branch
- Use CloudBase Web SDK and static hosting guidance only when the project actually needs CloudBase platform features.
- Reuse
auth-tool-cloudbaseandauth-web-cloudbasefor login or provider readiness instead of re-describing those flows here.
Core workflow
1. Choose the right engineering path
- React / Vue feature work: implement within the app's existing component, routing, and state conventions
- New Web app: prefer Vite unless the repo already standardizes on another toolchain
- Debugging and regressions: reproduce in browser, narrow to a specific page or interaction, then patch
- CloudBase integration: wire in Web SDK, auth, data, or static hosting only after the base frontend path is clear
2. Keep implementation grounded in project reality
- Follow the repo's package manager, scripts, and lint/test patterns
- Avoid framework rewrites unless the user explicitly asks for one
- Prefer the smallest viable page/component/config change that satisfies the task
- In TODO-based apps, complete the existing implementation directly instead of creating parallel helpers, sample pages, or detached prototypes
3. Validate changed flows explicitly
- Run the relevant local build / lint / typecheck / test command when available. A clean
tsc --noEmitand a clean project build are the minimum bar — not proof of correctness. - For anything user-visible (routing, forms, rendering, auth, async flows), open the affected page or flow in a browser with
agent-browser. Code reading alone is not sufficient evidence — see the Engineering constitution above. - Record what was checked: route, action, expected result, actual result, and any remaining gap.
CloudBase Web integration
Use this section only when the Web project needs CloudBase platform features.
Web SDK rules
- Prefer npm installation for React, Vue, Vite, and other bundler-based projects:
npm install @cloudbase/js-sdk - Use the CDN only for static HTML pages, quick demos, embedded snippets, or README examples:
https://static.cloudbase.net/cloudbase-js-sdk/latest/cloudbase.full.js - Only use documented CloudBase Web SDK APIs; do not invent methods or options
- Keep a shared
apporauthinstance instead of re-initializing on every call - If the user only provides an environment alias, nickname, or other shorthand, resolve it to the canonical full
EnvIdbefore writing SDK init code, console links, or config files. Do not pass alias-like short forms directly intocloudbase.init({ env }).
Authentication boundary
- Authentication must use CloudBase SDK built-in features
- Do not move Web login logic into cloud functions
- For provider readiness, login method setup, or publishable key issues, route to
auth-tool-cloudbaseandauth-web-cloudbase
Static hosting defaults
- Build before deployment
- Prefer relative asset paths for static hosting compatibility
- Use hash routing by default when the project lacks server-side route rewrites
- If the user does not specify a root path, avoid deploying directly to the site root by default
SPA routing (History mode): when using React Router / Vue Router in History mode (not hash mode), configure the CloudBase static hosting "404 error document" to
index.html. Otherwise refreshing or directly visiting any sub-route returnsNoSuchKey/ 404 error, because the static hosting looks for a file at that path instead of falling through toindex.htmlfor the SPA to handle routing.Use the MCP tool to apply this:
manageHosting({ action: "setWebsiteDocument", indexDocument: "index.html", errorDocument: "index.html" })Then verify with:
queryHosting({ action: "websiteConfig" })
CloudBase quick start
// npm install @cloudbase/js-sdk
import cloudbase from "@cloudbase/js-sdk";
const app = cloudbase.init({
env: "your-full-env-id", // Canonical full CloudBase environment ID resolved from queryEnv or the console
});
const auth = app.authDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

