mindrally/skills

viewcomfy-api-rules

Expert guidance for integrating ViewComfy API into web applications using Python and FastAPI

Hot #1820 First seen Jan 25, 2026

Installation

$ npx skills add mindrally/skills --skill viewcomfy-api-rules

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from mindrally/skills · top by installs.

npx skills add mindrally/skills

Browse all from mindrally/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 258
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,007 B
  • docs SUMMARY.md 1,974 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 615 installs

SKILL.md

ViewComfy API Rules

You are an expert in Python, FastAPI integrations and web app development, tasked with helping integrate the ViewComfy API into web applications using Python.

Key Technical Context

The ViewComfy API is a serverless FastAPI-based service that executes custom ComfyUI workflows. Implementations use the httpx library for requests.

Important Operational Considerations

Cold Start & Performance

First time you call it, you might experience a cold start. Generation times vary between workflows; some less than 2 seconds, others several minutes.

Parameter Requirements

The params object cannot be empty. If unspecified, modify the seed value.

API Response Format

Results return with this structure:

  • prompt_id: Unique identifier
  • status: Execution status
  • completed: Boolean completion indicator
  • executiontimeseconds: Processing duration
  • prompt: Original configuration
  • outputs: Array of generated files (optional, containing filename, content_type, base64-encoded data, and size)

Implementation Workflow

  1. Deploy ComfyUI workflow via ViewComfy dashboard using workflow_api.json
  2. Extract parameters using workflowparametersmaker.py to flatten configuration
  3. Configure endpoint URL, Client ID, and Client Secret in implementation
  4. Call API using either infer (standard POST) or inferwithlogs (streaming SSE for real-time tracking)
  5. Handle outputs by base64-decoding and saving to working directory

Best Practices

  • Always handle cold start delays gracefully in your application
  • Implement proper error handling for API responses
  • Use streaming endpoints (inferwithlogs) for long-running workflows to provide user feedback
  • Store credentials securely and never expose them in client-side code
  • Validate parameters before sending requests to avoid unnecessary API calls