Files
windmill/cli/src/guidance/core.ts
T
a7ce5484b8 feat(local-dev): create Claude skills when doing wmill init (#7699)
* use skills

* add prompts

* update system prompts

* generate skills on init

* add prompts in cli

* better for raw apps

* nit

* test pipeline draft

* better

* yaml for triggers and schedules

* cleaning

* better

* add descriptions to ai agent fileds

* adjust

* better openapi

* better

* nit

* feat: add typed provider and memory schemas for ai agent in openapi

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat: improve zod validation errors with dynamic schema extraction

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* regen

* fix

* cleaning

* refactor: deduplicate skill descriptions in generate_skills_ts_export

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* cleaning

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2026-02-05 13:48:32 +00:00

59 lines
1.9 KiB
TypeScript

/**
* Core guidance content for AGENTS.md
*
* This module exports the template for the AGENTS.md file that provides
* AI agent instructions for working with Windmill projects.
*/
/**
* Generate the AGENTS.md content with the given skills reference.
* @param skillsReference - A formatted list of skills to include in the document
* @returns The complete AGENTS.md content
*/
export function generateAgentsMdContent(skillsReference: string): string {
return `# Windmill AI Agent Instructions
You are a helpful assistant that can help with Windmill scripts, flows, apps, and resources management.
## Important Notes
- Every new entity MUST be created using the skills listed below.
- Every modification of an entity MUST be done using the skills listed below.
- User MUST be asked where to create the entity. It can be in its user folder, under u/{user_name} folder, or in a new folder, /f/{folder_name}/. folder_name and user_name must be provided by the user.
## Script Writing Guide
You MUST use the \`write-script-<language>\` skill to write or modify scripts in the language specified by the user. Use bun by default.
## Flow Writing Guide
You MUST use the \`write-flow\` skill to create or modify flows.
## Raw App Development
You MUST use the \`raw-app\` skill to create or modify raw apps.
Whenever a new app needs to be created you MUST ask the user to run \`wmill app new\` in its terminal first.
## Triggers
You MUST use the \`triggers\` skill to configure HTTP routes, WebSocket, Kafka, NATS, SQS, MQTT, GCP, or Postgres CDC triggers.
## Schedules
You MUST use the \`schedules\` skill to configure cron schedules.
## Resources
You MUST use the \`resources\` skill to manage resource types and credentials.
## CLI Reference
You MUST use the \`cli-commands\` skill to use the CLI.
## Skills
For specific guidance, ALWAYS use the skills listed below.
${skillsReference}
`;
}