Skip to content

Add AGENTS.md and AI-CONTRIBUTIONS.md documentation#67

Merged
chorrell merged 2 commits intomainfrom
add-agents-documentation
Feb 11, 2026
Merged

Add AGENTS.md and AI-CONTRIBUTIONS.md documentation#67
chorrell merged 2 commits intomainfrom
add-agents-documentation

Conversation

@chorrell
Copy link
Owner

@chorrell chorrell commented Feb 10, 2026

Summary

Creates two complementary documentation files following best practices:

  1. AGENTS.md - Instructions FOR AI agents (standard format)
  2. AI-CONTRIBUTIONS.md - Historical record OF AI contributions (transparency)
  3. .markdownlint.json - Enforces markdown quality standards

AGENTS.md - Instructions for AI Coding Agents

A comprehensive guide telling future AI agents HOW to work on this codebase:

Key Sections

📋 Project Overview

  • Tech stack: Ruby 3.4+/4.0, Serverspec, Docker API
  • Current Node.js versions: 22.22.0 LTS, 24.13.0 LTS

Setup & Commands

bundle install
bundle exec rake
npx markdownlint-cli *.md

📝 Documentation Standards (NEW!)

  • All markdown must pass markdownlint
  • Line length: 120 chars max
  • Proper headings and code block formatting
  • Consistent style enforcement

🗂️ Project Structure

  • Detailed directory layout
  • File organization patterns
  • Test structure explanation

🔧 Development Workflow

  • Adding new Node.js versions
  • Modifying Dockerfiles
  • Updating dependencies
  • Writing tests

📝 Code Style & Conventions

  • Ruby style (2 spaces, double quotes)
  • Serverspec patterns
  • Dockerfile best practices

🧪 Testing Instructions

  • What tests validate
  • How to write tests
  • Parallel execution details

Dos and Don'ts

  • DO: Test locally, lint markdown, use LTS versions
  • DON'T: Stop all containers, use sudo, skip cleanup

📋 Git & PR Guidelines

  • Commit message format
  • PR structure and requirements
  • Co-authorship tags

🔒 Security Considerations

  • Dockerfile security
  • Dependency management
  • Container isolation

🐛 Debugging

  • Common issues and solutions
  • Debug commands
  • Troubleshooting tips

AI-CONTRIBUTIONS.md - Historical Record

Documents the 11 PRs that transformed this project with AI assistance:

  • Critical bug fixes (unsafe container cleanup)
  • Performance improvements (47% faster tests)
  • Dependency updates (Ruby 4.0, Node.js LTS)
  • Testing enhancements (multi-version matrix)
  • Developer experience improvements

.markdownlint.json - Quality Standards

Configuration for markdown linting:

  • Line length: 120 characters (code blocks excluded)
  • Blank lines around headings and lists required
  • Language specs required for fenced code blocks
  • No bare URLs (use proper markdown links)
  • Proper headings (not bold text as headings)

Why These Files?

AGENTS.md (Standard):

  • Follows the emerging AGENTS.md standard used by 60,000+ repos
  • Instructs AI agents on project conventions
  • Reduces iteration cycles
  • Improves AI code quality

AI-CONTRIBUTIONS.md (Transparency):

  • Documents past AI collaboration
  • Shows impact and improvements
  • Provides project history context
  • Demonstrates responsible AI use

.markdownlint.json (Quality):

  • Enforces consistent markdown formatting
  • Catches common issues automatically
  • Works for both human and AI contributors
  • Improves documentation maintainability

Comparison

AGENTS.md AI-CONTRIBUTIONS.md
Future-focused Historical
Instructions Documentation
"How to work here" "What was done"
For AI agents For humans
Operational guide Transparency record

Changes Made

✅ Created AGENTS.md with comprehensive AI agent instructions
✅ Created AI-CONTRIBUTIONS.md documenting 11 PRs
✅ Added .markdownlint.json configuration
✅ Fixed all linting issues in all markdown files
✅ Added Documentation Standards section to AGENTS.md
✅ All *.md files now pass: npx markdownlint-cli *.md

Benefits

Better AI Collaboration - Clear instructions reduce mistakes
Faster Development - AI agents understand conventions immediately
Quality Enforcement - Markdown linting catches issues early
Transparency - Clear record of AI contributions
Onboarding - New contributors (human or AI) get up to speed quickly
Standards Compliance - Follows emerging AGENTS.md best practices

This provides operational guidance, transparency, AND quality enforcement! 📚✨

Creates two complementary documentation files:

AGENTS.md - Instructions FOR AI agents on how to work on this codebase:
- Project overview and tech stack
- Setup and testing commands
- Project structure and development workflow
- Code style and conventions
- CI/CD configuration details
- Comprehensive dos and don'ts
- Git commit and PR guidelines
- Security considerations
- Debugging tips and common issues
- Links to external resources

AI-CONTRIBUTIONS.md - Historical record OF AI agent contributions:
- Overview of 11 PRs merged with AI assistance
- Detailed breakdown by category (bugs, performance, testing)
- Before/after metrics showing impact
- Technology stack updates
- Methodology and best practices
- Links to all pull requests

This follows the standard AGENTS.md format (instructions for future AI work)
while preserving transparency about past AI contributions in a separate file.

Benefits:
- Future AI agents have clear guidance on project conventions
- Reduces iteration cycles and improves AI code quality
- Maintains transparency about AI collaboration
- Provides debugging resources and common patterns
- Documents security considerations and best practices

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@chorrell chorrell force-pushed the add-agents-documentation branch from 5a36a89 to 89bad1f Compare February 10, 2026 23:56
@chorrell chorrell changed the title Add AGENTS.md documenting AI-assisted improvements Add AGENTS.md and AI-CONTRIBUTIONS.md documentation Feb 10, 2026
Adds markdownlint enforcement and documentation standards to the project.

Changes:

.markdownlint.json - Configuration for markdown linting:
- Line length: 120 chars (excludes code blocks and tables)
- Enforces blank lines around headings and lists
- Requires language specs for fenced code blocks
- Standard markdown best practices

AGENTS.md - Updated with markdown requirements:
- Added "Documentation Standards" section
- Instructions for running markdownlint
- Added to DO list: lint markdown files before commit
- Fixed all linting issues:
  - Split long lines
  - Added language specs to code blocks (text, bash)
  - Converted bold text to proper headings (####)
  - Proper blank lines around lists and headings

AI-CONTRIBUTIONS.md - Fixed all linting issues:
- Split long lines for readability
- Converted PR titles from bold to proper headings (####)
- Added blank lines around sections
- Improved document structure

All *.md files now pass: npx markdownlint-cli *.md

Benefits:
- Consistent markdown formatting across the project
- Better readability and maintainability
- Catches common markdown issues automatically
- Standard enforced for human and AI contributors

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@chorrell chorrell merged commit c88575c into main Feb 11, 2026
2 checks passed
@chorrell chorrell deleted the add-agents-documentation branch February 11, 2026 00:03
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