Skip to content

Commit 9d48487

Browse files
christian-byrnegithub-actions
andauthored
[Dev Tools] Add more claude directives (#3948)
Co-authored-by: github-actions <[email protected]>
1 parent 69b534b commit 9d48487

File tree

15 files changed

+33
-24
lines changed

15 files changed

+33
-24
lines changed

CLAUDE.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
2+
- Be sure to run unit tests, component tests, browser tests then typecheck, lint, format (with prettier) when you're done making a series of code changes. You can find the scripts for all these things in the package.json.
13
- When referencing PrimeVue, you can get all the docs here: https://primevue.org. Do this instead of making up or inferring names of Components
24
- Never add lines to PR descriptions that say "Generated with Claude Code"
35
- When making PR names and commit messages, if you are going to add a prefix like "docs:", "feat:", "bugfix:", use square brackets around the prefix term and do not use a colon (e.g., should be "[docs]" rather than "docs:").
46
- When I reference GitHub Repos related to Comfy-Org, you should proactively fetch or read the associated information in the repo. To do so, you should exhaust all options: (1) Check if we have a local copy of the repo, (2) Use the GitHub API to fetch the information; you may want to do this IN ADDITION to the other options, especially for reading speicifc branches/PRs/comments/reviews/metadata, and (3) curl the GitHub website and parse the html or json responses
7+
- For information about ComfyUI, ComfyUI_frontend, or ComfyUI-Manager, you can web search or download these wikis: https://deepwiki.com/Comfy-Org/ComfyUI-Manager, https://deepwiki.com/Comfy-Org/ComfyUI_frontend/1-overview, https://deepwiki.com/comfyanonymous/ComfyUI/2-core-architecture
58
- If a question/project is related to Comfy-Org, Comfy, or ComfyUI ecosystem, you should proactively use the Comfy docs to answer the question. The docs may be referenced with URLs like https://docs.comfy.org
69
- When operating inside a repo, check for README files at key locations in the repo detailing info about the contents of that folder. E.g., top-level key folders like tests-ui, browser_tests, composables, extensions/core, stores, services often have their own README.md files. When writing code, make sure to frequently reference these README files to understand the overall architecture and design of the project. Pay close attention to the snippets to learn particular patterns that seem to be there for a reason, as you should emulate those.
7-
- Be sure to typecheck when you're done making a series of code changes
810
- Prefer running single tests, and not the whole test suite, for performance
911
- If using a lesser known or complex CLI tool, run the --help to see the documentation before deciding what to run, even if just for double-checking or verifying things.
1012
- IMPORTANT: the most important goal when writing code is to create clean, best-practices, sustainable, and scalable public APIs and interfaces. Our app is used by thousands of users and we have thousands of mods/extensions that are constantly changing and updating; and we are also always updating. That's why it is IMPORTANT that we design systems and write code that follows practices of domain-driven design, object-oriented design, and design patterns (such that you can assure stability while allowing for all components around you to change and evolve). We ABSOLUTELY prioritize clean APIs and public interfaces that clearly define and restrict how/what the mods/extensions can access.
@@ -18,7 +20,7 @@
1820
- Use watch and watchEffect for side effects
1921
- Implement lifecycle hooks with onMounted, onUpdated, etc.
2022
- Utilize provide/inject for dependency injection
21-
- Use vue 3.5 style of default prop declaration.
23+
- Use vue 3.5 style of default prop declaration. Do not define a `props` variable; instead, destructure props. Since vue 3.5, destructuring props does not strip them of reactivity.
2224
- Use Tailwind CSS for styling
2325
- Leverage VueUse functions for performance-enhancing styles
2426
- Use lodash for utility functions
@@ -29,4 +31,4 @@
2931
- Implement proper error handling
3032
- Follow Vue 3 style guide and naming conventions
3133
- Use Vite for fast development and building
32-
- Use vue-i18n in composition API for any string literals. Place new translation entries in src/locales/en/main.json.
34+
- Use vue-i18n in composition API for any string literals. Place new translation entries in src/locales/en/main.json.

src/locales/en/commands.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@
7171
"Comfy_Canvas_ToggleSelectedNodes_Pin": {
7272
"label": "Pin/Unpin Selected Nodes"
7373
},
74-
"Comfy_MaskEditor_OpenMaskEditor": {
75-
"label": "Open Mask Editor for Selected Node"
76-
},
7774
"Comfy_Canvas_ZoomIn": {
7875
"label": "Zoom In"
7976
},
@@ -143,6 +140,9 @@
143140
"Comfy_Manager_ToggleManagerProgressDialog": {
144141
"label": "Toggle Progress Dialog"
145142
},
143+
"Comfy_MaskEditor_OpenMaskEditor": {
144+
"label": "Open Mask Editor for Selected Node"
145+
},
146146
"Comfy_NewBlankWorkflow": {
147147
"label": "New Blank Workflow"
148148
},

src/locales/en/main.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,7 @@
802802
"Load Default Workflow": "Load Default Workflow",
803803
"Custom Nodes Manager": "Custom Nodes Manager",
804804
"Toggle Progress Dialog": "Toggle Progress Dialog",
805+
"Open Mask Editor for Selected Node": "Open Mask Editor for Selected Node",
805806
"New": "New",
806807
"Clipspace": "Clipspace",
807808
"Open": "Open",

src/locales/es/commands.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@
7171
"Comfy_Canvas_ToggleSelected_Pin": {
7272
"label": "Anclar/Desanclar elementos seleccionados"
7373
},
74-
"Comfy_MaskEditor_OpenMaskEditor": {
75-
"label": "Abrir editor de máscara para el nodo seleccionado"
76-
},
7774
"Comfy_Canvas_ZoomIn": {
7875
"label": "Acercar"
7976
},
@@ -143,6 +140,9 @@
143140
"Comfy_Manager_ToggleManagerProgressDialog": {
144141
"label": "Alternar diálogo de progreso del administrador"
145142
},
143+
"Comfy_MaskEditor_OpenMaskEditor": {
144+
"label": "Abrir editor de máscara para el nodo seleccionado"
145+
},
146146
"Comfy_NewBlankWorkflow": {
147147
"label": "Nuevo flujo de trabajo en blanco"
148148
},

src/locales/es/main.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,7 @@
710710
"Open DevTools": "Abrir DevTools",
711711
"Open Inputs Folder": "Abrir carpeta de entradas",
712712
"Open Logs Folder": "Abrir carpeta de registros",
713+
"Open Mask Editor for Selected Node": "Abrir el editor de mask para el nodo seleccionado",
713714
"Open Models Folder": "Abrir carpeta de modelos",
714715
"Open Outputs Folder": "Abrir carpeta de salidas",
715716
"Open Sign In Dialog": "Abrir diálogo de inicio de sesión",

src/locales/fr/commands.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@
7171
"Comfy_Canvas_ToggleSelected_Pin": {
7272
"label": "Épingler/Désépingler les éléments sélectionnés"
7373
},
74-
"Comfy_MaskEditor_OpenMaskEditor": {
75-
"label": "Ouvrir l'éditeur de masque pour le nœud sélectionné"
76-
},
7774
"Comfy_Canvas_ZoomIn": {
7875
"label": "Zoom avant"
7976
},
@@ -143,6 +140,9 @@
143140
"Comfy_Manager_ToggleManagerProgressDialog": {
144141
"label": "Basculer la boîte de dialogue de progression"
145142
},
143+
"Comfy_MaskEditor_OpenMaskEditor": {
144+
"label": "Ouvrir l'éditeur de masque pour le nœud sélectionné"
145+
},
146146
"Comfy_NewBlankWorkflow": {
147147
"label": "Nouveau flux de travail vierge"
148148
},

src/locales/fr/main.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,7 @@
710710
"Open DevTools": "Ouvrir DevTools",
711711
"Open Inputs Folder": "Ouvrir le dossier des entrées",
712712
"Open Logs Folder": "Ouvrir le dossier des journaux",
713+
"Open Mask Editor for Selected Node": "Ouvrir l’éditeur de mask pour le nœud sélectionné",
713714
"Open Models Folder": "Ouvrir le dossier des modèles",
714715
"Open Outputs Folder": "Ouvrir le dossier des sorties",
715716
"Open Sign In Dialog": "Ouvrir la boîte de dialogue de connexion",

src/locales/ja/commands.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@
7171
"Comfy_Canvas_ToggleSelected_Pin": {
7272
"label": "選択したアイテムのピン留め/ピン留め解除"
7373
},
74-
"Comfy_MaskEditor_OpenMaskEditor": {
75-
"label": "選択したノードのマスクエディタを開く"
76-
},
7774
"Comfy_Canvas_ZoomIn": {
7875
"label": "ズームイン"
7976
},
@@ -143,6 +140,9 @@
143140
"Comfy_Manager_ToggleManagerProgressDialog": {
144141
"label": "プログレスダイアログの切り替え"
145142
},
143+
"Comfy_MaskEditor_OpenMaskEditor": {
144+
"label": "選択したノードのマスクエディタを開く"
145+
},
146146
"Comfy_NewBlankWorkflow": {
147147
"label": "新しい空のワークフロー"
148148
},

src/locales/ja/main.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,7 @@
710710
"Open DevTools": "DevToolsを開く",
711711
"Open Inputs Folder": "入力フォルダを開く",
712712
"Open Logs Folder": "ログフォルダを開く",
713+
"Open Mask Editor for Selected Node": "選択したノードのマスクエディタを開く",
713714
"Open Models Folder": "モデルフォルダを開く",
714715
"Open Outputs Folder": "出力フォルダを開く",
715716
"Open Sign In Dialog": "サインインダイアログを開く",

src/locales/ko/commands.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@
7171
"Comfy_Canvas_ToggleSelected_Pin": {
7272
"label": "선택한 항목 고정/고정 해제"
7373
},
74-
"Comfy_MaskEditor_OpenMaskEditor": {
75-
"label": "선택한 노드 마스크 편집기 열기"
76-
},
7774
"Comfy_Canvas_ZoomIn": {
7875
"label": "확대"
7976
},
@@ -143,6 +140,9 @@
143140
"Comfy_Manager_ToggleManagerProgressDialog": {
144141
"label": "진행 상황 대화 상자 전환"
145142
},
143+
"Comfy_MaskEditor_OpenMaskEditor": {
144+
"label": "선택한 노드 마스크 편집기 열기"
145+
},
146146
"Comfy_NewBlankWorkflow": {
147147
"label": "새로운 빈 워크플로"
148148
},

0 commit comments

Comments
 (0)