Replace the profile README with a project-focused overview, add bilingual contribution guidance and visual assets, and clarify the rules agents must follow when commits are requested. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
60 lines
3.0 KiB
Markdown
60 lines
3.0 KiB
Markdown
# AGENTS.md — AI Agent Instructions
|
|
|
|
> Reference file for AI agents (Codebuff, Cursor, Claude Code, GitHub Copilot…) working on an FWS repository. Read this file first: it contains the instructions to follow. `README.md` introduces the organization and `CONTRIBUTING.en.md` details the collaboration conventions.
|
|
|
|
## Context
|
|
|
|
- **FWS** is an open-source organization made up of multiple projects: each project is free to choose its technology stack, with no language restriction.
|
|
- Main project: **FWS ISO** — a live and installable Linux distribution based on Arch Linux, designed to simplify installation and everyday use.
|
|
- Detailed conventions: `CONTRIBUTING.md` (FR) / `CONTRIBUTING.en.md` (EN).
|
|
|
|
## Rules to follow
|
|
|
|
### Commits
|
|
|
|
- Commit messages must be written in **English** and follow **Conventional Commits**: `<type>(<scope>): <description>`.
|
|
- Allowed types: `feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `build`, `ci`, `chore`, `revert`.
|
|
- Keep titles short and imperative. Add a body only to explain **why**, not how.
|
|
|
|
### Naming
|
|
|
|
- Branches: `type/description` (for example, `feat/login` or `fix/typo`).
|
|
- Files: **kebab-case** (for example, `my-component.ts`).
|
|
- Identifiers (variables, functions and classes): **English**.
|
|
|
|
### Code and comments
|
|
|
|
- Write comments in **English**, in a “why” style. Do not comment self-explanatory code; document non-obvious decisions, trade-offs and edge cases.
|
|
- Follow the repository's existing technology stack and conventions before adding dependencies.
|
|
|
|
### Sensitive files (`.gitignore`)
|
|
|
|
- **Never commit** environment files (`.env*`), AI assistant data (`.freebuff/`), build artifacts (`dist/`, `build/`, `target/`, `__pycache__/`…), dependencies (`node_modules/`) or secrets.
|
|
- Every repository must have a `.gitignore` at its root.
|
|
|
|
### Tests
|
|
|
|
- Test files use `*.test.*`; `describe` / `it` test names are written in English.
|
|
- Run tests, typechecks and linters when available before considering a task complete.
|
|
|
|
### Issues and bug reports
|
|
|
|
- Track bugs and requests through **issues** and, when available, the project's Kanban board.
|
|
- A pull request that fixes a bug must reference the issue in its title or description (`Fixes #123`).
|
|
- Do not close or modify an issue without an explicit user request.
|
|
|
|
### User-requested commits
|
|
|
|
- When the user explicitly asks for a commit, the AI must create it after checking the changes and available checks, without waiting for an additional confirmation.
|
|
- The commit title and body must never mention the AI, the assistant, Codebuff or the tool used.
|
|
- Do not add the AI as an author or co-author in the commit message.
|
|
|
|
## Agent best practices
|
|
|
|
- Read `AGENTS.en.md`, `README.md` and `CONTRIBUTING.en.md` before editing code.
|
|
- Commits must always be signed.
|
|
- Make the smallest change that addresses the request.
|
|
- Do not push, merge or publish without an explicit user request.
|
|
- Follow the project's Kanban cards when the board exists to organize work.
|
|
- When in doubt, ask instead of guessing.
|