Skip to content

docs: Add AGENTS.md and CLAUDE.md for AI coding assistants#1271

Open
prestist wants to merge 1 commit intocoreos:mainfrom
prestist:add-ai-docs
Open

docs: Add AGENTS.md and CLAUDE.md for AI coding assistants#1271
prestist wants to merge 1 commit intocoreos:mainfrom
prestist:add-ai-docs

Conversation

@prestist
Copy link
Copy Markdown
Contributor

AGENTS.md provides a concise repository specification for tool-agnostic AI coding assistants (OpenCode, Cursor, etc). CLAUDE.md imports AGENTS.md due to claude not looking for AGENTS.md automatically.

AGENTS.md provides a concise repository specification for tool-agnostic
AI coding assistants (OpenCode, Cursor, etc). CLAUDE.md imports
AGENTS.md and adds Claude Code-specific workflows.
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces AGENTS.md and CLAUDE.md to provide comprehensive project documentation and workflow instructions for AI agents. The review feedback recommends replacing raw cargo commands with the project's defined make targets (make test, make lint, make fmt) to ensure consistency with required build flags and simplify maintenance.

Comment thread AGENTS.md
- **Mock tests**: Separate `mock_tests.rs` per provider using `mockito` for HTTP mocking
- **Fixture tests**: `tests.rs` files loading data from `tests/fixtures/` (kubevirt, proxmoxve)
- **Fixture validation**: `python3 tests/fixtures/validate.py` checks against upstream schemas
- Run `cargo test --all-targets` before submitting changes
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The test command here is inconsistent with the make test command defined on line 43 and in the Makefile. The project's Makefile explicitly uses the --release flag for tests. It is better to use the make target to ensure consistency and that all project-specific flags are applied.

Suggested change
- Run `cargo test --all-targets` before submitting changes
- Run make test before submitting changes

Comment thread CLAUDE.md
Comment on lines +9 to +11
cargo test --all-targets
cargo clippy --all-targets -- -D warnings
cargo fmt -- --check -l
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Instead of repeating raw cargo commands, it is recommended to use the make targets defined in the Makefile. This ensures the AI agent uses the exact flags (like --release for tests or specific clippy/fmt arguments) required by the project and makes the documentation easier to maintain.

Suggested change
cargo test --all-targets
cargo clippy --all-targets -- -D warnings
cargo fmt -- --check -l
make test
make lint
make fmt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant