web-development
Web frontend project development rules. Use this skill when developing web frontend pages, deploying static hosting, and integrating CloudBase Web SDK.
Security Assessment
About web-development
The 'web-development' skill is designed to streamline the process of web frontend project development, with an emphasis on static website deployment and integration with CloudBase Web SDK. It provides guidelines on how to structure web frontend projects, utilize modern build systems like Vite, and deploy static websites efficiently. This skill ensures that developers can create and maintain scalable, optimized web applications with ease, utilizing cloud-based tools for enhanced functionality. It also helps in managing routing and build configurations specifically for static hosting environments, making the deployment process smoother and more predictable.
Key features of this skill include a comprehensive approach to project structure, built-in tools for SDK integration, and deployment guidelines for static hosting. Developers can leverage the CloudBase Web SDK for cloud functionalities such as database management, authentication, and cloud functions. The skill also outlines the best practices for local development and previewing web projects before deploying them to CloudBase static hosting. These features make it easier for developers to avoid common pitfalls in static web hosting, such as broken paths or improper deployment configurations. Overall, this skill simplifies the setup, integration, and deployment of frontend web projects.
This skill is targeted at frontend web developers, particularly those working with static sites or looking to integrate cloud services such as databases and authentication in their web applications. It is particularly useful for those using modern web development tools like Vite, Webpack, or similar build systems. The skill helps developers manage the complexities of routing, deployment, and SDK integration, offering a comprehensive guide for deploying scalable web applications that utilize CloudBase’s features.
FAQ
When should I use this skill?
Use this skill when developing web frontend pages, deploying static websites, integrating CloudBase Web SDK for cloud functions and database, and setting up modern frontend build systems like Vite or Webpack.
Can I use this skill for backend development?
No, this skill is specifically designed for frontend development. For backend development, you should use the 'cloudrun-development' skill.
What is the recommended routing strategy for static websites?
For static websites, it is recommended to use hash routing, as it helps prevent 404 errors when refreshing the page in a static hosting environment.
Can I implement my own authentication logic using CloudBase functions?
No, you should use the built-in authentication features of the CloudBase Web SDK. Implementing custom login logic in cloud functions is not allowed.
What should I do if I don’t specify a root directory for deployment?
If no specific root directory is specified, the default behavior is to deploy the project to a subdirectory rather than the root directory of the hosting.
Install web-development
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
TencentCloudBase/CloudBase-MCP