Skip to content

bazzite-ai-dev

Claude Code plugin for Bazzite AI development with enforcement agents and development tools.

Purpose

This plugin provides:

  1. Development skills for building, testing, and maintaining Bazzite AI
  2. Enforcement agents that ensure code quality and policy compliance
  3. GitHub MCP integration for repository operations

MCP Server

This plugin includes a GitHub MCP server for repository operations.

Tools available:

  • Issues: issue_read, issue_write, add_issue_comment, list_issues, search_issues
  • Pull requests: pull_request_read, list_pull_requests, search_pull_requests
  • Workflows: list_workflows, list_workflow_runs, get_workflow_run, get_job_logs
  • Repository: get_file_contents, list_commits, get_commit, list_branches
  • Labels: get_label, list_label, label_write

Prerequisites:

  • github-mcp-server available via direnv (installed in project)
  • GITHUB_TOKEN environment variable set

Available Skills (6)

Skill Command Description
build /bazzite-ai-dev:build OS image building with Podman (just build)
clean /bazzite-ai-dev:clean Cleanup build artifacts and caches (just clean)
lfs /bazzite-ai-dev:lfs Git LFS file management (just lfs)
overlay /bazzite-ai-dev:overlay Development overlay session management (just overlay)
record /bazzite-ai-dev:record Batch documentation recording (just record)
test /bazzite-ai-dev:test Runtime verification tests (ujust test)

Enforcement Agents

These agents are automatically invoked to enforce development policies:

Blocking Agents (Must Pass)

Agent Trigger Purpose
policy-enforcer Before Edit/Write, commits Verifies all policy compliance
root-cause-analyzer On errors Mandatory 8-step error analysis
testing-validator Before claiming "working" Confirms LOCAL testing completed
justfile-validator Editing .just files Validates non-interactive support
pre-commit-guardian Before git commit Ensures 100% hook pass rate
documentation-validator Editing docs/*.md Validates MyST syntax
config-integrity-enforcer Editing ~/.config/* Blocks editing output configs
pixi-lock-enforcer Editing pixi.lock Blocks manual lock edits
sudo-usage-enforcer sudo ujust detected Blocks external sudo elevation
overlay-testing-enforcer just -f testing Blocks direct justfile testing

Advisory Agents

Agent Trigger Purpose
architecture-advisor "Why?" questions Explains immutable OS design
buildcache-validator Build file changes Analyzes build cache impact
code-research Architectural questions Deep codebase analysis
github-actions CI status queries Reports workflow status

Usage Examples

# Build the OS image
/bazzite-ai-dev:build
# Claude will help with image building, troubleshooting, etc.

# Enable development overlay mode
/bazzite-ai-dev:overlay
# Claude will guide you through overlay setup for live justfile editing

# Run runtime verification tests
/bazzite-ai-dev:test
# Claude will help verify GPU, services, and pod functionality

# Clean up after development
/bazzite-ai-dev:clean
# Claude will help clean build artifacts and caches

# Manage Git LFS files
/bazzite-ai-dev:lfs
# Claude will help with large file checkout and verification

# Generate documentation recordings
/bazzite-ai-dev:record
# Claude will help batch-record ujust commands for docs

Installation

Manual Loading

# Load both plugins for full development experience
claude --plugin-dir ./plugins/bazzite-ai --plugin-dir ./plugins/bazzite-ai-dev

Permanent Configuration

Add to your Claude Code settings:

{
  "plugins": [
    "/path/to/bazzite-ai-testing/plugins/bazzite-ai",
    "/path/to/bazzite-ai-testing/plugins/bazzite-ai-dev"
  ]
}

Development Workflow

  1. Enable overlay testing: just overlay refresh (auto-enables if needed)
  2. Make changes to justfiles in just/ directory
  3. Refresh overlay: just overlay refresh
  4. Test with ujust: ujust <your-command>
  5. Verify LOCAL: Check systemctl status, journalctl logs
  6. Run pre-commit: pre-commit run --all-files
  7. Commit (enforcement agents will verify)

Policies Enforced

  • LOCAL system verification required before claiming "working"
  • ~/.config files are outputs - edit source code instead
  • 100% pre-commit hook pass rate required
  • All commands must support non-interactive execution
  • .just files must be under 30K (split proactively at 25K)
  • Never use sudo ujust - handle sudo internally
  • Never use just -f for testing - use overlay method
  • Never edit pixi.lock manually - regenerate via pixi install
  • bazzite-ai: OS user skills (separate plugin)
  • CLAUDE.md: Full policy documentation
  • AGENTS.md: Operational commands and architecture

MCP Server

Github (stdio)

  • Command: github-mcp-server stdio

Available Tools (23):

Tool Description
add_issue_comment Add Issue Comment
get_commit Get Commit
get_file_contents Get File Contents
get_job_logs Get Job Logs
get_label Get Label
get_me Get Me
get_workflow_run Get Workflow Run
issue_read Issue Read
issue_write Issue Write
label_write Label Write
list_branches List Branches
list_commits List Commits
list_issue_types List Issue Types
list_issues List Issues
list_label List Label
list_pull_requests List Pull Requests
list_workflow_jobs List Workflow Jobs
list_workflow_runs List Workflow Runs
list_workflows List Workflows
pull_request_read Pull Request Read
search_issues Search Issues
search_pull_requests Search Pull Requests
sub_issue_write Sub Issue Write

Skills

Skill Description
build
clean
lfs
overlay
record
test

Agents

Blocking Agents

These agents must pass before proceeding with the action.

Agent Trigger Description
config-integrity-enforcer Blocks any attempt to edit ~/.config/* files directly. Th...
documentation-validator Enforces documentation system requirements. Validates MyS...
justfile-validator PROACTIVELY enforce justfile coding standards and non-int...
overlay-testing-enforcer Blocks any just -f usage in testing documentation and g...
pixi-lock-enforcer Blocks any manual edit to pixi.lock files. Lock files mus...
policy-enforcer MUST BE USED before any code changes, commits, or declari...
pre-commit-guardian MUST BE USED before ANY git commit operation. Runs pre-co...
root-cause-analyzer MUST BE USED when any unexpected behavior, error, warning...
sudo-usage-enforcer Blocks documentation and code suggesting sudo ujust or ...
testing-validator PROACTIVELY verify proper LOCAL system testing was perfor...

Advisory Agents

These agents provide guidance but do not block actions.

Agent Purpose Description
architecture-advisor Provide guidance on immutable OS architecture, build syst...
buildcache-validator Validates build cache layer ordering to prevent cache inv...
code-research Deep architectural exploration using chunkhound code_rese...
github-actions Reports GitHub Actions workflow status and error details ...