mirror of
https://github.com/Comfy-Org/comfy-skills.git
synced 2026-11-04 23:37:45 +00:00
[PR #40] feat(skills): add a refine step to the generate skills and slash commands #39
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-skills#39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-skills/pull/40
Author: @mattmillerai
Created: 10/5/2026
Status: 🔄 Open
Base:
main← Head:matt/be-18944-refine-step📝 Commits (2)
5344caffeat(skills): add a refine step to the generate skills and slash commands38ff442Merge remote-tracking branch 'origin/main' into matt/be-18944-refine-step📊 Changes
14 files changed (+26 additions, -0 deletions)
View changed files
📝
claude-code/commands/generate-3d.md(+2 -0)📝
claude-code/commands/generate-audio.md(+2 -0)📝
claude-code/commands/generate-image.md(+2 -0)📝
claude-code/commands/generate-video.md(+2 -0)📝
claude-code/commands/help.md(+1 -0)📝
claude-code/commands/remove-background.md(+2 -0)📝
claude-code/commands/upscale-image.md(+2 -0)📝
skills/comfy-generate-3d.md(+2 -0)📝
skills/comfy-generate-audio.md(+2 -0)📝
skills/comfy-generate-image.md(+2 -0)📝
skills/comfy-generate-video.md(+2 -0)📝
skills/comfy-help.md(+1 -0)📝
skills/comfy-remove-background.md(+2 -0)📝
skills/comfy-upscale-image.md(+2 -0)📄 Description
ELI5
When someone generates a picture and then says "same thing, but at night, seed 7", the agent used to rebuild the whole workflow from scratch or paste the graph back in by hand. Now every generate skill has a last step that says: rerun the earlier job and change only the inputs the user asked about.
What changed
skills/comfy-generate-{image,video,3d}.mdget a new step 11, andskills/comfy-generate-audio.mdgets step 10. Each one goes right after the save-and-link step that main added as the previous final step. The step says: for an adjustment rather than a new subject, callsubmit_workflowwithfrom_prompt_id(the run being adjusted) plusinput_overridesholding only the changed inputs. If the node id isn't known, read it fromget_job_statuswithinclude_workflow: truefirst, then go back to the polling step. If the user wants the output itself edited, useuse_previous_output/partner_generate medias[]instead.skills/comfy-upscale-image.mdandskills/comfy-remove-background.mdget the shorter step 11: for a different strength or model, rerun withfrom_prompt_id+input_overrides, and don't re-upload the source.claude-code/commands/*.mdtwin gets the same step, byte-identical to itsskills/counterpart.comfy-help(both copies) gets one new capability line: "Refine a previous result without rebuilding it (rerun with changed inputs)."Judgment calls
include_workflow: true, not"knobs". On the MCP server'smain,get_job_status.include_workflowis az.boolean(). The"knobs"value is still in an open server PR. A skill that tells the agent to pass"knobs"today would fail schema validation, so the step only namestrue.upload_file, and its returned filename is what gets overridden; (2) a result that came from Step 0'spartner_generatehas no submitted workflow to rerun, so the agent callspartner_generateagain with the changed fields. Without (2), the step would send the agent tofrom_prompt_idon a run where it doesn't apply.Residual
/comfy-cloud:generate-image a lighthouse, then "same but at night, seed 7", and check for exactly onesubmit_workflowwithfrom_prompt_idplus a 1–2 keyinput_overrides, and noget_templatecall. It spends Comfy Cloud credits and needs an interactive session with the plugin, so it is unexercised. Someone with the plugin installed should run it.include_workflow: "knobs"is not referenced. It isn't on the MCP server'smainyet. Once the server PR adding it merges, the step can be updated to prefer"knobs", which returns a smaller payload than the full graph.openclaw/comfy/SKILL.mdwas not touched. It is a third skill surface that already mentionsinput_overridesforrun_template. The ticket didn't name it, and it doesn't follow the step-numbered format.skills/↔claude-code/commands/drift is not reconciled. Before this PR, the twins already differed:partner/vsapi node/category prefixes in the Step 0 text of image/audio/3d/video, plus video's MiniMax notes. This PR only keeps the new step identical and leaves that drift alone.package.jsonand no test workflow; the only CI is the unreviewed-merge detector. So "CI stays green" here means only the scripted parity and whitespace checks listed below.Provenance
skills/comfy-X.mdandclaude-code/commands/X.mdfor all 6 step pairs, and the help line matches in both copiesmain: the diff againstmainis still the same 26 added lines in 14 files, with no conflict markers leftmain:submit_workflowacceptsfrom_prompt_id+input_overrides, andget_job_status.include_workflowis boolean-onlyinclude_workflow: "knobs"dropped (not on the server's main)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.