Viewcomfy Api Rules
Provides API guidance and assistance for agent workflows.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add viewcomfy-api-rules npx -- -y @trustedskills/viewcomfy-api-rules
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"viewcomfy-api-rules": {
"command": "npx",
"args": [
"-y",
"@trustedskills/viewcomfy-api-rules"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill provides expert guidance and assistance for integrating the ViewComfy API into web applications using Python. The ViewComfy API is a serverless FastAPI service that executes custom ComfyUI workflows, and this skill helps developers understand its technical details, operational considerations (like cold starts), and best practices for implementation. It focuses on enabling integration via Python and utilizes the httpx library for making requests.
When to use it
- When building a web application that needs to execute ComfyUI workflows programmatically.
- If you are encountering performance issues, such as cold starts or long generation times, when using the ViewComfy API.
- To understand and correctly handle the API's response format, including prompt IDs, status updates, and file outputs.
- When needing to implement streaming (SSE) functionality for real-time workflow tracking.
Key capabilities
- Expertise in Python, FastAPI integrations, and web app development related to ViewComfy API integration.
- Guidance on handling cold start delays and variable generation times.
- Explanation of parameter requirements, specifically that the
paramsobject cannot be empty. - Detailed description of the API response format (prompt_id, status, completed, execution_time_seconds, prompt, outputs).
- Best practices for secure credential storage and error handling.
Example prompts
- "Explain how to handle cold start delays when using the ViewComfy API."
- "What is the structure of a typical ViewComfy API response?"
- "How do I use the
infer_with_logsendpoint for streaming workflow updates?"
Tips & gotchas
- Be prepared for potential cold starts, especially on initial API calls.
- Always validate parameters before sending requests to avoid unnecessary API usage and errors.
- The
paramsobject in your request must not be empty; if it is, consider modifying the seed value instead.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.