Feature Request: Treat `*.prompt*` files as code in init command
Current Behavior
The kit init command categorizes files based on extension only. A file like my.prompt.md gets treated as a markdown file rather than prompt code.
Desired Behavior
Any file matching the pattern *.prompt* should be automatically categorized as code during kit init, regardless of additional extensions.
Rationale
Prompts are code. The pattern *.prompt* provides clear semantic meaning while allowing flexibility in tooling:
system.prompt.md- system prompts with markdown formattingquery.prompt.txt- plain text promptstemplate.prompt.jinja- templated promptsconfig.prompt.yaml- structured prompt configs
This aligns with emerging patterns in prompt engineering where prompts are treated as first-class code artifacts with their own testing, versioning, and distribution requirements.
Examples Files that should be treated as code:
instruction.prompt.mdsystem.promptuser.prompt.txtchain.prompt.yaml
Implementation Note
Pattern matching should be substring match on .prompt. or .prompt suffix, not regex wildcards, to avoid false positives.
hi @gorkem can i work on this issue? /assign
Are you participating at hacktoberfest?
Yes I am participating in hacktoberfest this issue would be a good opportunity for me
If no one else is currently working on this, I’d like to take it up. I am planning to add a check for .prompt in the determineFileType function.
@cr3ativ3cod3r Iam not aware of any ongoing work on this.