AGENTS.md

Project Identity

Project Name: ratatui_ruby

Description: A high-performance Ruby wrapper for the Ratatui TUI library.

Architecture:

Stability & Compatibility

1. Standards

STRICT REQUIREMENTS

Tools

Ruby Standards

Rust Standards

2. Directory Structure Convention

The project follows a standard Gem layout with an ext/ directory for Rust code and examples/ for example application-level code.

3. Configuration & Tooling

Development Environment

Documentation

4. Committing

5. Changelog

6. Definition of Done (DoD)

Before considering a task complete and returning control to the user, you MUST ensure:

  1. Default Rake Task Passes: Run bin/agent_rake (no args). Confirm it passes with ZERO errors or warnings.

  2. You will save time if you run bin/agent_rake rubocop:autocorrect first.

  3. If you think the build is looking for deleted files, it is not. Instead, explain to the user why staging is needed and use the run_command tool with git add -A so they get a Run button with context.

  4. Documentation Updated: If public APIs or observable behavior changed, update relevant RDoc, rustdoc, doc/ files, README.md, and/or ratatui_ruby-wiki files.

  5. Changelog Updated: If public APIs, observable behavior, or gemspec dependencies have changed, update CHANGELOG.md’s Unreleased section.

  6. Commit Message Suggested: You MUST ensure the final message to the user includes a suggested commit message block. This is NOT optional.

  7. You MUST also check git log -n1 to see the current standard AI footer (“Generated with” and “Co-Authored-By”) and include it in your suggested message.