chore: rework agent rules and skills to use standard .agents directory
This commit is contained in:
parent
466e4de872
commit
ea05ea9367
6 changed files with 123 additions and 0 deletions
25
.agents/rules/git-workflow.md
Normal file
25
.agents/rules/git-workflow.md
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# Git Workflow & Repository Structure Rules
|
||||
|
||||
When performing Git operations and managing the repository layout, follow these rules:
|
||||
|
||||
## 1. Committing Practices
|
||||
- **Frequent & Small**: Produce small, logical commits instead of massive monolithic ones.
|
||||
- **Conventional Commits**: Commit messages must adhere to the Conventional Commits specification (e.g., `feat: ...`, `fix: ...`, `refactor: ...`).
|
||||
- **Single Functionality**: Each commit should relate to exactly one piece of functionality or distinct structural change.
|
||||
|
||||
## 2. Branching & Merging
|
||||
- **Branch `dev`**: The `dev` branch is the primary integration branch for pushing and merging code.
|
||||
- **Branch `main`**: Only stable, finalized releases may be pushed to `main`.
|
||||
- **Feature Branches**: Organize distinct work into logical feature branches when pushing to the remote server, maintaining an organized Git history.
|
||||
|
||||
## 3. Artifact Management & Exclusions
|
||||
- **LFS Only**: Data files, trained models, and large datasets must **never** be committed directly to Git. Ensure they are tracked with Git Large File Storage (LFS).
|
||||
|
||||
## 4. Repository Layout Strictness
|
||||
Ensure generated code is meticulously placed in the correct directories:
|
||||
- `src/` for algorithms, network designs, and core agent modules.
|
||||
- `env/` for MuJoCo wrappers and environment definitions.
|
||||
- `config/` for experiment configurations (using json, gin, or yaml).
|
||||
- `experiments/` for executable scripts.
|
||||
- `docs/` for ReadTheDocs or Doxygen documentation, and decision logs.
|
||||
- `tests/` for unit tests and verification scripts.
|
||||
Reference in a new issue