tencentcloudbase/cloudbase-ai-toolkit/references
Claude Code and agent skill by tencentcloudbase/cloudbase-ai-toolkit
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install tencentcloudbase/cloudbase-ai-toolkit/referencesSKILL.md
The same SKILL.md was published earlier as tencentcloudbase/cloudbase-ai-toolkit/references.
Add Skill
Function
Add a new skill (prompt rule) to the CloudBase AI Toolkit project.
Trigger Condition
When user inputs /add-skill or needs to add a new skill/prompt rule
Workflow
Step 1: Understand Skill Structure
A skill consists of:
- Configuration entry in
doc/prompts/config.yaml - Rule file(s) in
config/rules/{skill-id}/directory - Generated documentation in
doc/prompts/{skill-id}.mdx(auto-generated) - Generated prompts data in
doc/components/prompts.json(auto-generated from config.yaml) - UI component entry in
doc/components/PromptScenarios.tsx(manual update)
Step 2: Create Rule File(s)
Create the rule file(s) in config/rules/{skill-id}/ directory:
- Main rule file:
config/rules/{skill-id}/rule.md
- Must include frontmatter with
nameanddescription - Should follow the standard structure:
```markdown
name: skill-id description: Brief description of the skill alwaysApply: false
# Skill Title
Brief description of when to use this skill.
## When to use this skill
Use this skill when...
## How to use this skill (for a coding agent)
- First step
- Second step
...
## Core Knowledge
Detailed knowledge and guidelines... ```
- Optional sub-files: If the skill is complex, you can split it into multiple files:
rule.md- Main rule file{topic}.md- Sub-topics (e.g.,crud-operations.md,pagination.md)- All files in the directory will be included in the generated documentation
Step 3: Add Configuration to config.yaml
Add a new entry to doc/prompts/config.yaml:
Important Notes:
idmust match the directory name inconfig/rules/categorymust be one of:auth,database,backend,frontend,toolsorderdetermines the display order within the categorypromptsare example prompts users can try
Step 4: Generate Documentation and Prompts Data
Run the generation scripts to create the MDX documentation and prompts JSON:
This will:
- Generate
doc/prompts/{skill-id}.mdxfrom the rule files - Update
doc/sidebar.jsonautomatically - Generate
doc/components/prompts.jsonfromconfig.yaml(used byAIDevelopmentPromptcomponent)
Step 5: Update PromptScenarios Component
Manually add the new skill to doc/components/PromptScenarios.tsx:
- Find the appropriate category section
- Add a new entry following the existing format:
Category Mapping:
auth→'身份认证'database→'数据库'backend→'后端开发'frontend→'应用集成'tools→'开发工具'
Step 6: Verify Generated Files
Check that:
- ✅
doc/prompts/{skill-id}.mdxexists and has correct content - ✅
doc/sidebar.jsonincludes the new skill in the correct category - ✅
doc/components/prompts.jsonincludes the new skill with all prompts - ✅
doc/components/PromptScenarios.tsxincludes the new skill - ✅ Rule files are properly formatted with frontmatter
Step 7: Test the Skill
- Verify the generated MDX file renders correctly
- Check that the skill appears in the UI components
- Test that example prompts work as expected
Important Notes
Rule File Best Practices
- Frontmatter is required: Every rule file must have YAML frontmatter
- Clear structure: Follow the standard structure (When to use, How to use, Core Knowledge)
- English content: Rule files should be in English (documentation is auto-generated in Chinese)
- Code examples: Include practical code examples when relevant
- Tool references: Reference specific MCP tools when applicable
Category Guidelines
- auth: Authentication-related skills (login, signup, user management)
- database: Database operations (NoSQL, MySQL, data modeling)
- backend: Backend services (cloud functions, cloudrun)
- frontend: Frontend integration (Web, mini program, UI design)
- tools: Development tools and workflows (spec workflow, platform knowledge)
File Naming Conventions
- Skill ID: lowercase, hyphen-separated (e.g.,
cloud-functions,auth-web) - Rule file: Always
rule.mdfor the main file - Sub-files: Descriptive names (e.g.,
crud-operations.md,pagination.md)
Example
Success Criteria
- [ ] Rule file(s) created in
config/rules/{skill-id}/ - [ ] Configuration added to
doc/prompts/config.yaml - [ ] Documentation generated via
node scripts/generate-prompts.mjs - [ ] Prompts data generated via
npm run build:prompts-data - [ ] Entry added to
doc/components/PromptScenarios.tsx - [ ] Generated MDX file exists and is correct
- [ ] Generated
prompts.jsonincludes the new skill - [ ] Sidebar updated automatically
- [ ] All files verified and tested
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/docs-workflows/references/add_skill.md
Popularity
- Repository stars
- 1,130
- Repository forks
- 146
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tencentcloudbase/cloudbase-ai-toolkit/references)