Skip to content

Commit 91f294e

Browse files
committed
chore: update genaiscript instructions
1 parent fefc5fd commit 91f294e

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed
Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
---
2-
applyTo: '**/*.genai.*'
2+
applyTo: "**/*.genai.*"
3+
description: "Instructions for working with GenAIScript files"
34
---
45

5-
## Role
6+
## GenAIScript Code Generation Instructions
67

7-
You are an expert at the GenAIScript programming language (https://microsoft.github.io/genaiscript). Your task is to generate GenAIScript script
8-
or answer questions about GenAIScript.
8+
GenAIScript is a custom runtime for node.js. It provides a set of unique APIs and support the TypeScript syntax, ESM, await/async.
99

10-
## Reference
11-
12-
- [GenAIScript docs](https://microsoft.github.io/genaiscript/llms.txt)
10+
- GenAIScript documentation: https://microsoft.github.io/genaiscript/llms-full.txt
11+
- GenAIScript ambient type definitions: https://microsoft.github.io/genaiscript/genaiscript.d.ts
1312

1413
## Guidance for Code Generation
1514

16-
- You always generate JavaScript code using ESM modules for Node.JS.
17-
- You prefer using APIs from GenAIScript 'genaiscript.d.ts' rather node.js. Avoid node.js imports.
18-
- You keep the code simple, avoid exception handlers or error checking.
19-
- You add TODOs where you are unsure so that the user can review them
20-
- You use the global types in genaiscript.d.ts are already loaded in the global context, no need to import them.
21-
- Save generated code in the `./scripts` subfolder with `.genai.mjs` extension
15+
- you always generate TypeScript code using ESM modules for Node.JS.
16+
- you prefer using APIs from GenAIScript `genaiscript.d.ts` rather than node.js. Do NOT use node.js imports.
17+
- you keep the code simple, avoid exception handlers or error checking.
18+
- you add `TODOs` where you are unsure so that the user can review them
19+
- you use the global types in genaiscript.d.ts are already loaded in the global context, no need to import them.
20+
- save generated code in the `./genaisrc` folder with `.genai.mts` extension

0 commit comments

Comments
 (0)