|
1 | 1 | --- |
2 | | -applyTo: '**/*.genai.*' |
| 2 | +applyTo: "**/*.genai.*" |
| 3 | +description: "Instructions for working with GenAIScript files" |
3 | 4 | --- |
4 | 5 |
|
5 | | -## Role |
| 6 | +## GenAIScript Code Generation Instructions |
6 | 7 |
|
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. |
9 | 9 |
|
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 |
13 | 12 |
|
14 | 13 | ## Guidance for Code Generation |
15 | 14 |
|
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