You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make wmill init generated skills respect nonDottedPaths config (#8377)
* docs: add nonDottedPaths convention to CLAUDE.md
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs(cli): update generated skills to use non-dotted path conventions
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(cli): make generated skills respect nonDottedPaths config
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(cli): inject nonDottedPaths placeholders in generate.py for skills.ts
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: default system prompts to non-dotted path conventions
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
// Create guidance files (AGENTS.md, CLAUDE.md, and Claude skills)
256
266
try{
257
267
// Generate skills reference section for AGENTS.md
@@ -290,6 +300,20 @@ async function initAction(opts: InitOptions) {
290
300
291
301
letskillContent=SKILL_CONTENT[skill.name];
292
302
if(skillContent){
303
+
// Replace placeholders with actual suffixes based on nonDottedPaths
304
+
if(nonDottedPaths){
305
+
skillContent=skillContent
306
+
.replaceAll("{{FLOW_SUFFIX}}","__flow")
307
+
.replaceAll("{{APP_SUFFIX}}","__app")
308
+
.replaceAll("{{RAW_APP_SUFFIX}}","__raw_app")
309
+
.replaceAll("{{INLINE_SCRIPT_NAMING}}","Inline script files should NOT include `.inline_script.` in their names (e.g. use `a.ts`, not `a.inline_script.ts`).");
310
+
}else{
311
+
skillContent=skillContent
312
+
.replaceAll("{{FLOW_SUFFIX}}",".flow")
313
+
.replaceAll("{{APP_SUFFIX}}",".app")
314
+
.replaceAll("{{RAW_APP_SUFFIX}}",".raw_app")
315
+
.replaceAll("{{INLINE_SCRIPT_NAMING}}","Inline script files use the `.inline_script.` naming convention (e.g. `a.inline_script.ts`).");
316
+
}
293
317
// Check if this skill has schemas that need to be appended
Copy file name to clipboardExpand all lines: system_prompts/auto-generated/flow.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,10 @@
2
2
3
3
## CLI Commands
4
4
5
-
Create a folder ending with `.flow` and add a YAML file with the flow definition.
6
-
For rawscript modules, use `!inline path/to/script.ts` for the content key.
5
+
Create a folder ending with `__flow` and add a `flow.yaml` file with the flow definition.
6
+
For rawscript modules, use `!inline path/to/script.ts` for the content key. Inline script files should NOT include `.inline_script.` in their names (e.g. use `a.ts`, not `a.inline_script.ts`).
7
7
After writing, tell the user they can run:
8
-
-`wmill flow generate-locks <path_to_flow_folder> --yes` - Generate lock files for the specific flow you modified (e.g. `wmill flow generate-locks f/my_folder/my_flow.flow --yes`)
8
+
-`wmill flow generate-locks <path_to_flow_folder> --yes` - Generate lock files for the specific flow you modified (e.g. `wmill flow generate-locks f/my_folder/my_flow__flow --yes`)
9
9
-`wmill sync push` - Deploy to Windmill
10
10
11
11
Do NOT run these commands yourself. Instead, inform the user that they should run them.
Create a folder ending with \`.flow\` and add a YAML file with the flow definition.
37
-
For rawscript modules, use \`!inline path/to/script.ts\` for the content key.
36
+
Create a folder ending with \`__flow\` and add a \`flow.yaml\` file with the flow definition.
37
+
For rawscript modules, use \`!inline path/to/script.ts\` for the content key. Inline script files should NOT include \`.inline_script.\` in their names (e.g. use \`a.ts\`, not \`a.inline_script.ts\`).
38
38
After writing, tell the user they can run:
39
-
- \`wmill flow generate-locks <path_to_flow_folder> --yes\` - Generate lock files for the specific flow you modified (e.g. \`wmill flow generate-locks f/my_folder/my_flow.flow --yes\`)
39
+
- \`wmill flow generate-locks <path_to_flow_folder> --yes\` - Generate lock files for the specific flow you modified (e.g. \`wmill flow generate-locks f/my_folder/my_flow__flow --yes\`)
40
40
- \`wmill sync push\` - Deploy to Windmill
41
41
42
42
Do NOT run these commands yourself. Instead, inform the user that they should run them.
Copy file name to clipboardExpand all lines: system_prompts/auto-generated/skills/write-flow/SKILL.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,10 @@ description: MUST use when creating flows.
7
7
8
8
## CLI Commands
9
9
10
-
Create a folder ending with `.flow` and add a YAML file with the flow definition.
11
-
For rawscript modules, use `!inline path/to/script.ts` for the content key.
10
+
Create a folder ending with `__flow` and add a `flow.yaml` file with the flow definition.
11
+
For rawscript modules, use `!inline path/to/script.ts` for the content key. Inline script files should NOT include `.inline_script.` in their names (e.g. use `a.ts`, not `a.inline_script.ts`).
12
12
After writing, tell the user they can run:
13
-
-`wmill flow generate-locks <path_to_flow_folder> --yes` - Generate lock files for the specific flow you modified (e.g. `wmill flow generate-locks f/my_folder/my_flow.flow --yes`)
13
+
-`wmill flow generate-locks <path_to_flow_folder> --yes` - Generate lock files for the specific flow you modified (e.g. `wmill flow generate-locks f/my_folder/my_flow__flow --yes`)
14
14
-`wmill sync push` - Deploy to Windmill
15
15
16
16
Do NOT run these commands yourself. Instead, inform the user that they should run them.
Copy file name to clipboardExpand all lines: system_prompts/base/flow-base.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,10 @@
2
2
3
3
## CLI Commands
4
4
5
-
Create a folder ending with `.flow` and add a YAML file with the flow definition.
6
-
For rawscript modules, use `!inline path/to/script.ts` for the content key.
5
+
Create a folder ending with `__flow` and add a `flow.yaml` file with the flow definition.
6
+
For rawscript modules, use `!inline path/to/script.ts` for the content key. Inline script files should NOT include `.inline_script.` in their names (e.g. use `a.ts`, not `a.inline_script.ts`).
7
7
After writing, tell the user they can run:
8
-
-`wmill flow generate-locks <path_to_flow_folder> --yes` - Generate lock files for the specific flow you modified (e.g. `wmill flow generate-locks f/my_folder/my_flow.flow --yes`)
8
+
-`wmill flow generate-locks <path_to_flow_folder> --yes` - Generate lock files for the specific flow you modified (e.g. `wmill flow generate-locks f/my_folder/my_flow__flow --yes`)
9
9
-`wmill sync push` - Deploy to Windmill
10
10
11
11
Do NOT run these commands yourself. Instead, inform the user that they should run them.
0 commit comments