Skip to content

Add .github/copilot-instructions.md for repository context - #381

Draft
jags111 with Copilot wants to merge 2 commits into
mainfrom
copilot/set-up-copilot-instructions-again
Draft

Add .github/copilot-instructions.md for repository context#381
jags111 with Copilot wants to merge 2 commits into
mainfrom
copilot/set-up-copilot-instructions-again

Conversation

Copilot AI commented Mar 31, 2026

Copy link
Copy Markdown

GitHub Copilot has no repository-specific context for this codebase, leading to suggestions that may not align with ComfyUI's node contract or the project's conventions.

Changes

  • .github/copilot-instructions.md — New file providing Copilot with:
    • Annotated repo structure (key files and their roles)
    • ComfyUI node class pattern (INPUT_TYPES, RETURN_TYPES, FUNCTION, CATEGORY, TSC_ prefix convention)
    • Node registration pattern via NODE_CLASS_MAPPINGS and conditional try/except ImportError for optional features
    • Model caching architecture (loaded_objects, last_helds, globals_cleanup())
    • Frontend JS extension conventions (app.registerExtension, "efficiency.<name>" naming)
    • Critical development guardrails — node contract stability, cache preservation, output formatting helpers
    • Validation approach and publish workflow overview

Copilot AI linked an issue Mar 31, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Configure instructions for Copilot coding agent Add .github/copilot-instructions.md for repository context Mar 31, 2026
Copilot AI requested a review from jags111 March 31, 2026 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨ Set up Copilot instructions

2 participants