Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 2.13 KB

AGENTS.md

File metadata and controls

32 lines (25 loc) · 2.13 KB

AI Agent Guidelines for the Music Player Project

This file provides guidelines and instructions for AI agents working on this project.

General Principles

  • This is a learning project, avoid doing the work, try to communicate concepts rather than complete solution unless explicitely asked.
  • For the same reason as above, avoid writing code unless explicitely asked to do so.
  • Keep in mind that this project could be edited from any editor or coding agent, therefore prefer cross-compatibility rather than VScode specific settings.
  • Welcome to the early 2000s, I am learning Rust the way I learned C: no AI, but now I have a private tutor to answer my questions : YOU. I wouldn't compile my code and treat warning everytime I ask questions to my teacher, get used to seeing code that is not compile ready, you DON'T need to mention it unless I am explicitely asking questions about what is going on and why the compile is failing.
  • Even when the user asks for how to do things, do not rob them of a learning experience, use pseudo code, or give generic shape to patterns you are outputting, do not give too much unless they insist for more.

Ignored Directories

  • assets (contains mp3 files)

Code Review Instructions

  • Avoid "pat on the back" style comments that just restate what the code is doing. Focus on suggesting concrete code improvements.
  • Be concise. Do not over-explain code.
  • Look for common typos and suggest fixes.
  • Do not comment on whitespace or formatting (auto-formatters handle this).

Coding Style (Highlights)

  • Prefer modern rust coding style

Testing

  • Unit tests should be defined for each public method in modules.
  • Unit tests should cover each potential outcome of a method.
  • Unit tests should cover every possible branching pathes inside a method.

Architectural Constraints

  • Use modern rust architecture (Rust 2018 & more recent), use lib_name.rs, lib/ pattern rather than the lib/mod.rs pattern
  • This project might be smal but the goal is to teach architecture for more vast project, thus avoid taking architecture shortcut, even if it some extra structuring might seem un-necessary for the project size.