DioxusLabs / DioxusLabs/dioxus-template
Templates don't respect llm agents.md file rules.
- Dominant language
- Rust
- Stars
- 72
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
In "conditional-files.rhai" for the version 7.0 templates, the is_prompt variable deletes files that don't exist in the template. This means that the AGENTS.md file is unconditionally always left in the template regardless of what the user chooses. I believe this might just be a typo that needs to be adjusted to the new AGENTS.md filename.
```
// This file handles conditional files for this specific sub-template.
const IS_TAILWIND_VAR = "is_tailwind";
const IS_PROMPT = "is_prompt";
let is_tailwind = variable::get(IS_TAILWIND_VAR);
if !is_tailwind {
file::delete("tailwind.css");
file::delete("assets/tailwind.css");
}
let is_prompt = variable::get(IS_PROMPT);
if !is_prompt {
file::delete("prompt.md");
file::delete("prompt-small.md");
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Inspect the version 7.0 template's conditional-files.rhai and compare its conditional deletion rules with the AGENTS.md filename and the user's selection for the LLM agent files. Verify the template keeps or removes AGENTS.md according to that selection, then run the available template generation checks if present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 78/100