Templates don't respect llm agents.md file rules.

Open Beginner friendly
#99 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
tooling

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.

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");
}
Dominant language
Rust
Stars
72
Forks
35
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DioxusLabs/dioxus-template

All issues in DioxusLabs/dioxus-template

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.