Skip to content

chore: improve CLAUDE.md with architecture docs and add Claude automations#7

Open
danielbodnar wants to merge 1 commit intomainfrom
chore/improve-claude-md-and-automations
Open

chore: improve CLAUDE.md with architecture docs and add Claude automations#7
danielbodnar wants to merge 1 commit intomainfrom
chore/improve-claude-md-and-automations

Conversation

@danielbodnar
Copy link
Contributor

Summary

  • Rewrote CLAUDE.md to document the 5-layer architecture (CLI/TUI → Services → Models → Config → API), dual entry point pattern, provider abstraction, config system, and current project state
  • Added Claude Code automations: skills (/check, /test-scaffold), subagents (security-reviewer, clippy-reviewer), context7 MCP server, and hooks for auto-formatting and sensitive file protection
  • Fixed clippy warnings: removed unused imports and unused mut bindings across api/, config/, services/, and main.rs

Test plan

  • Verify cargo build succeeds with no warnings
  • Verify cargo clippy passes clean
  • Review CLAUDE.md architecture description matches actual code structure
  • Confirm .mcp.json context7 config is valid
  • Verify skills and agents have correct frontmatter format

…ns, fix clippy warnings

Rewrite CLAUDE.md to document the 5-layer architecture, CLI/TUI dual
entry point, provider abstraction, config system, and current project
state so new sessions can be productive immediately.

Add Claude Code automations: skills (check, test-scaffold), subagents
(security-reviewer, clippy-reviewer), context7 MCP server, and hooks
for auto-formatting and sensitive file protection.

Fix clippy warnings: remove unused imports (StatusCode, error, Path,
ProviderType, ProviderCredentials, VolumeStatus, InstanceNetwork,
Context, Utc, fs) and unused mut bindings across api/, config/,
services/, and main.rs.
Copilot AI review requested due to automatic review settings March 19, 2026 02:28
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates repository guidance and Claude Code automation to reflect the current bbctl architecture, while also cleaning up Rust clippy warnings (unused imports / unnecessary mut) across several modules.

Changes:

  • Rewrote CLAUDE.md with a 5-layer architecture description, entrypoint patterns, and current project state.
  • Added Claude Code automations (skills, reviewer agents) and MCP server config.
  • Removed unused imports / unnecessary mutable bindings in api/, config/, services/, and main.rs.

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/services/volume.rs Removes unused model imports to resolve clippy warnings.
src/services/provider.rs Cleans unused imports and unnecessary mut bindings in provider registration helpers.
src/services/instance.rs Removes unused imports and unnecessary mut bindings for VyOS client usage.
src/main.rs Cleans unused pattern bindings and simplifies an Option presence check.
src/config/settings.rs Removes unused imports and narrows log imports to used macros.
src/config/provider.rs Fixes unused closure variable warning in provider existence check.
src/config/mod.rs Removes unused Path import and narrows log imports.
src/config/credentials.rs Removes unused imports and narrows log imports.
src/api/vyos.rs Removes unused StatusCode import.
src/api/proxmox.rs Removes unused StatusCode and error log import.
CLAUDE.md Adds/updates architecture + workflow documentation for Claude Code usage.
.mcp.json Adds MCP server configuration (context7).
.claude/skills/test-scaffold.md Adds a skill to scaffold Rust tests using repo dev-dependencies.
.claude/skills/check.md Adds a skill to run fmt/clippy/check sequentially.
.claude/agents/security-reviewer.md Adds a security-focused reviewer agent definition.
.claude/agents/clippy-reviewer.md Adds a clippy-focused reviewer agent definition.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- `get_vyos_client()` / `get_proxmox_client()` instantiate typed clients from stored config + credentials
- `add_vyos_provider()` / `add_proxmox_provider_with_token()` register new providers

`InstanceService`, `VolumeService`, `NetworkService` each hold in-memory storage (`HashMap<Uuid, T>`) plus a `ProviderService` reference.
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp@latest"]
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.

2 participants