Web Development 标志

Web Development

组织热门
TencentCloudBase
web-development

当产品方向已经明确,用户需要实现、集成、调试、构建、部署或验证 Web 前端时使用,尤其适用于 React、Vue、Vite、浏览器流程或 CloudBase Web 集成。

Add to TypingMind

概览

发布者TencentCloudBase
代码仓库CloudBase-AI-Toolkit
技能名称web-development
星标数
1.1K
复刻数
141
附带文件
2
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 2 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 TencentCloudBase 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Web Development AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/TencentCloudBase/CloudBase-AI-Toolkit/tree/main/config/source/skills/web-development
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/TencentCloudBase/CloudBase-AI-Toolkit.git /tmp/CloudBase-AI-Toolkit
mkdir -p .claude/skills
cp -r /tmp/CloudBase-AI-Toolkit/config/source/skills/web-development .claude/skills/web-development
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Web Development,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Web Development。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Web Development 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

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-design first.
  • ⚠️ Any task involving interface styling, layout, color scheme, or font selection — before writing the first line of CSS/Tailwind, you MUST load the ui-design skill and output a Design Specification. Skipping this step causes frontend styling to degrade to generic AI template defaults. The ui-design skill 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-integration after 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 causes NoSuchKey / 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 any to bypass type errors. Not : any, not as any, not @ts-ignore, not @ts-nocheck, not @ts-expect-error without a written justification. any propagates 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 precise interface / type for the shape you actually use.
    • Shape is genuinely unknown at the boundary (JSON from an API, postMessage payload, window.* injection) → type it as unknown and narrow with a type guard (typeof, in, a discriminator field, or zod / equivalent).
    • Third-party type is wrong → augment via declare module in a local .d.ts, not any.
    • Truly dynamic case (e.g. generic event bus) → use a generic <T> with a constraint, not any.
  • unknown + narrowing is the acceptable escape hatch. any is not.
  • 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 reviewers can audit.
  • The same spirit applies to ESLint: do not sprinkle // eslint-disable to 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 (or vue-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-browser tool to actually open the page and reproduce the user-visible flow. Follow browser-testing.md for 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-development or cloud-functions

How to use this skill (for a coding agent)

  1. 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.
  2. 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 src and build output under dist unless 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.
  3. Validate through the browser, not only by reading code

    • For interaction, routing, rendering, or regression checks, use agent-browser workflows from browser-testing.md.
    • Prefer lightweight smoke validation for changed flows before claiming the frontend work is complete.
  4. 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-cloudbase and auth-web-cloudbase for 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 --noEmit and 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 app or auth instance 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 EnvId before writing SDK init code, console links, or config files. Do not pass alias-like short forms directly into cloudbase.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-cloudbase and auth-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 returns NoSuchKey / 404 error, because the static hosting looks for a file at that path instead of falling through to index.html for the SPA to handle routing.

    Use the MCP tool to apply this:

    json
    manageHosting({ action: "setWebsiteDocument", indexDocument: "index.html", errorDocument: "index.html" })

    Then verify with:

    json
    queryHosting({ action: "websiteConfig" })

CloudBase quick start

js
// 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.auth

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Web Development AI 技能有什么作用?

当产品方向已经明确,用户需要实现、集成、调试、构建、部署或验证 Web 前端时使用,尤其适用于 React、Vue、Vite、浏览器流程或 CloudBase Web 集成。

为什么在 TypingMind 中使用 Web Development?

因为您只需安装一次,就能搭配任何模型使用。Web Development 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Web Development?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/TencentCloudBase/CloudBase-AI-Toolkit/tree/main/config/source/skills/web-development。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Web Development?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Web Development 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Web Development 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Web Development AI 技能免费吗?

是的。TencentCloudBase 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇