tc-protohub
在 ProtoHub 上管理原型。当用户想要上传目录或 ZIP 文件作为原型、更新现有原型、列出原型或获取预览链接时,请使用此技能。它支持自动打包文件夹、强制校验入口文件 (index.html),以及按名称搜索原型以便更新。
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/airclear/tc-protohubWhat This Skill Does
The tc-protohub skill is a specialized automation tool designed for AI agents to interface directly with the ProtoHub environment. Its primary purpose is to streamline the lifecycle of web-based prototypes, from initial directory packaging and upload to seamless updates and preview generation. By integrating this skill, the AI agent gains the ability to treat local code directories or ZIP files as formal prototypes, ensuring that mandatory requirements like the root-level index.html are validated before submission. It serves as a bridge between a developer's local file system and the ProtoHub Private Sandbox, handling the complexities of API authentication, project discovery, and version management via the publish.py script.
Installation
To integrate this skill into your environment, run the following command in your terminal: clawhub install openclaw/skills/skills/airclear/tc-protohub
Ensure you have your environment variables set correctly after installation: export PROTOHUB_API_KEY="your-api-key" export PROTOHUB_URL="http://localhost:48080" Without these, the skill will remain locked to prevent unauthorized access or configuration errors.
Use Cases
This skill is highly effective for rapid prototyping workflows. Developers can use it to:
- Deploy experimental frontend builds directly from a development folder for team review.
- Update existing hosted prototypes without needing to manually copy files or navigate web dashboards.
- Automate the discovery of projects by searching for names, enabling the AI to manage multiple concurrent iterations of the same project.
- Share live preview links instantly by generating access URLs via the command line.
Example Prompts
- "Upload the folder ./dist as a new prototype named 'Client Dashboard Beta' to ProtoHub."
- "Find the 'Login Page' prototype and update it using the files in my current directory."
- "Could you fetch the preview link for the prototype with ID 1024?"
Tips & Limitations
- Pre-Validation: Always confirm your project structure contains an 'index.html' file in the root folder, as the tool will fail if this is missing to prevent non-functional previews.
- Search Logic: When updating, if the AI finds multiple prototypes with the same name, it will pause to ask for clarification. Name your prototypes uniquely to allow for fully autonomous updates.
- Security: Never hardcode your API keys in scripts. Always verify that your PROTOHUB_URL is pointing to the correct environment, especially when switching between local testing and production sandboxes.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-airclear-tc-protohub": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, external-api, code-execution