codegen-transform
Skill by Comfy-Org
Transforms raw Playwright codegen output into ComfyUI convention-compliant tests. It is for QA testers and developers working in the ComfyUI repository who want recorded tests refined to project conventions.
Install codegen-transform
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Comfy-Org/ComfyUI_frontend /tmp/ComfyUI_frontend && mkdir -p ~/.claude/skills && cp -r /tmp/ComfyUI_frontend/.claude/skills/codegen-transform ~/.claude/skills/codegen-transformRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Comfy-Org/ComfyUI_frontend /tmp/ComfyUI_frontend && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ComfyUI_frontend/.claude/skills/codegen-transform ~/.gemini/antigravity-cli/skills/codegen-transformAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Codegen → Convention Transform is an agent skill from Comfy-Org that rewrites raw Playwright codegen output into tests that follow ComfyUI conventions. It applies a fixed set of replacements in order. Examples include swapping the @playwright/test import for the ComfyPage fixture, renaming the test to a descriptive name, removing page.goto, and replacing waitForTimeout with nextFrame(). Before transforming, the skill points the assistant to the project's Playwright guidance, the browser_tests AGENTS file, and the ComfyPage fixture.
Canvas pixel coordinates are swapped for node references where possible, and the skill lists anti-patterns to avoid. It is meant for QA testers who recorded a test with pnpm comfy-test record, developers who pasted npx playwright codegen output, and reviewers of tests that call raw page methods. The transform engine is referenced at tools/test-recorder/src/transform/rules.ts.
Written from the project's SKILL.md and checked against it.
What it can do
- Import rewriteReplaces the @playwright/test import with the ComfyPage fixture and comfyExpect.
- Test naming and fixtureRenames the test to a descriptive name and uses the comfyPage fixture instead of page.
- Navigation cleanupRemoves page.goto calls because the fixture handles navigation.
- Wait replacementReplaces waitForTimeout with comfyPage.nextFrame().
- Node referencesReplaces fragile pixel clicks on nodes with node references from nodeOps.
- Describe and tagsWraps bare tests in test.describe with scenario tags.
- Vue Nodes taggingAdds the @vue-nodes tag when a test needs Vue Nodes.
- Starting settingsPrefers test.use with initialSettings over setSetting in beforeEach.
What you need
- Raw Playwright codegen output or a recorded test
- ComfyUI repository with browser_tests fixtures
Try asking
- Convert this raw Playwright codegen output to ComfyUI conventions
- Refactor this recorded test to use the ComfyPage fixture
- Rewrite my codegen test to replace waitForTimeout with nextFrame()
Good to know
- Canvas background clicks for pan, zoom and deselect keep pixel coordinates.
- Direct page access is allowed only through comfyPage.page for APIs the fixtures do not wrap.
- Local screenshots should not be committed, because Linux CI generates baselines.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/codegen-transform/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to codegen-transform
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
codegen-transform: common questions
What does this skill change in a raw Playwright test?
It applies ordered replacements such as the fixture import, descriptive test names, removal of page.goto, and nextFrame() in place of waitForTimeout. It also wraps tests in describe blocks with tags.
Can it keep pixel coordinates in my test?
The source says pixel coordinates are kept only for empty canvas clicks. Node interactions should use node references instead.
Is it written for the ComfyUI project only?
Yes. The rules reference ComfyUI paths such as browser_tests/fixtures/ComfyPage.ts and the ComfyUI guidance documents.
How do I install codegen-transform?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is codegen-transform free?
The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.
Is codegen-transform safe to use?
It scores 77 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to codegen-transform?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
