agents-config
v1.4.3
Published
A comprehensive knowledge base and skill library for building production-grade React applications with AI-powered tools and best practices.
Maintainers
Readme
agents-config
A comprehensive knowledge base and skill library for building production-grade React applications with AI-powered tools and best practices.
Overview
This package provides curated guidelines, instructions, skills, and rules for developing React/TypeScript applications. It serves as a single source of truth for AI-powered development agents and human developers to ensure consistency, accessibility, and performance across all your projects.
Installation
npm install agents-config --save-devAfter installation, run the interactive setup:
npx agents-initThis will:
- Detect your project's framework, styling, and database
- Ask which AI agents you use (Copilot, Claude, Cursor, Gemini, etc.)
- Generate adapter files that reference the shared guidelines
- Create a
.agents-project.jsonfor project-specific configuration
CLI Options
# Initialize agent configuration
npx agents-init # Interactive mode
npx agents-init --dry-run # Preview without writing files
npx agents-init --force # Overwrite existing files
npx agents-init --help # Show help
# Analyze and customize (run after init)
npx agents-analyze # Scan codebase and generate context
npx agents-analyze --guided # Interactive customization mode
npx agents-analyze --dry-run # Preview analysis without writing
npx agents-analyze --report # Generate analysis report only
npx agents-analyze --verify # Verify existing configuration
npx agents-analyze --verbose # Show detailed outputSupported AI Agents
| Agent | Config File | Notes |
|-------|-------------|-------|
| GitHub Copilot | .github/copilot-instructions.md | VS Code, JetBrains |
| Claude | CLAUDE.md | Anthropic's Claude |
| Cursor | .cursorrules | Cursor IDE |
| Gemini | .gemini/config.md | Google Gemini |
| Codex | .codex/AGENTS.md | OpenAI Codex |
| Windsurf | .windsurfrules | Codeium Windsurf |
IDE-Specific Caveats
GitHub Copilot
- Reads from
.github/copilot-instructions.md - Context limit: Keep under 8KB for optimal performance
- Works in VS Code, JetBrains IDEs, and Neovim
Claude (Anthropic)
- Reads
CLAUDE.mdfrom project root - Supports rich markdown with tables and code blocks
- Excellent for multi-step reasoning tasks
Cursor
- Uses
.cursorrules(no file extension, markdown format) - Context limit: Keep under 10KB
- Uses Claude under the hood, same reasoning capabilities
Gemini (Google)
- Configuration at
.gemini/config.md - Handles long contexts well
- Strong multimodal capabilities (can reference images)
Codex (OpenAI)
- Reads from
.codex/AGENTS.mddirectory - Works best with explicit, step-by-step instructions
Windsurf (Codeium)
- Uses
.windsurfrulesin project root - Fast autocomplete, respects existing code style
Directory Structure
📋 AGENTS.md
Core guidelines for building React applications with AI-powered tools. Establishes the foundational principles and rules for development:
- Accessibility & performance as first-class features
- Component architecture patterns
- TypeScript strict typing
- State management strategies
- Form handling and validation
- Testing and documentation standards
- Web standards compliance
📂 instructions/
Detailed operational guidelines for specific development tasks:
development-standards.instructions.md- General development standards and best practicesgithub-issue.instructions.md- Process for creating and managing GitHub issuesgithub-release-notes.instructions.md- Guidelines for writing release notesmui.instructions.md- Material-UI (MUI v7+) specific patterns, theming, and dark mode implementationstorybook.instructions.md- Setting up and maintaining Storybook v10.2 documentationweb-interface-guidelines.instructions.md- Accessibility and UX standards for web interfaces
📂 rules/
Deep-dive technical rules and patterns for specific technologies and approaches:
accessibility.md- Comprehensive accessibility guidelines and WCAG compliancecomponent-architecture.md- Folder-per-component pattern and structurespec-driven-development.md- Creating technical specifications before implementationreact-19-compiler.md- React 19 compiler integration and optimizationgemini.md- Google Gemini AI integration rules, security constraints, and UX patternsmui.md- Material-UI architecture patterns, constraints, and anti-patternssupabase.md- Supabase backend integration patternstailwind-v4.md- Tailwind CSS v4 usage and configurationthree-js-react.md- Three.js integration with Reactweb-performance.md- Performance optimization strategies
📂 skills/
Reusable skill modules for common development tasks. Each skill includes specific guidance and workflows:
accessibility-audit/
Verify components meet accessibility standards before marking features as "Done". Includes checklist for:
- Semantic HTML structure
- Focus management and keyboard navigation
- ARIA labels and form associations
- Dynamic content handling
scaffold-component/
Create new React components following project constraints. Implements:
- Spec-Driven Development workflow
- Framework detection (Tailwind, MUI, Vanilla)
- Component architecture patterns
- Framework-specific rules and conventions
integrate-gemini/
Implement Google Gemini API integration with:
- Secure API key handling
- Streaming response patterns
- Error handling and rate limiting
- Loading and streaming UI states
- Attribution and safety requirements
github-automation/
GitHub workflow automation including:
- PR creation from commits
- Conventional commit formatting
- Release notes generation
workflows/
Task-specific development workflows:
sdd-workflow.md- Spec-driven development workflowsetup-orchestration.md- Project setup orchestrationcodebase-analysis.md- Codebase analysis and context generation
Key Principles
- Accessibility First - WCAG compliance and inclusive design are non-negotiable
- Performance Matters - Optimize for real-world conditions and user experience
- Spec-Driven - Create specifications before implementation
- Component-Focused - Folder-per-component architecture for maintainability
- Type Safety - Strict TypeScript throughout
- Web Standards - Follow semantic HTML and platform conventions
Usage
For AI Agents
Reference the appropriate skill or rule based on the development task:
- Use
accessibility-auditbefore marking features complete - Use
scaffold-componentwhen creating new components - Use
integrate-geminifor AI feature implementation - Reference
web-performancerules for optimization guidance
For Developers
- Start with AGENTS.md for core principles
- Reference relevant files in
rules/andinstructions/for specific guidance - Use
skills/for specialized workflows and automation - Follow the workflows in
skills/workflows/for common tasks
Integration
This repository is designed to be used as:
- A knowledge base for AI coding assistants (GitHub Copilot, Claude, etc.)
- A reference guide for development teams
- A configuration source for agent-based development workflows
- A source of truth for coding standards and best practices
Project Configuration
After running npx agents-init, a .agents-project.json file is created:
{
"$schema": "https://raw.githubusercontent.com/ericthayer/agents-config/main/schemas/agents-project.schema.json",
"version": "1.0.0",
"project": {
"name": "my-app",
"framework": "next",
"styling": "tailwind",
"database": "supabase"
},
"agents": ["copilot", "claude", "cursor"],
"rules": {
"include": ["accessibility", "component-architecture", "tailwind-v4"],
"exclude": []
},
"overrides": {}
}Customization
Add project-specific overrides in the generated adapter files or in .agents-project.json:
{
"overrides": {
"accessibility": {
"minContrastRatio": 7.0
},
"component-architecture": {
"maxComponentSize": 300
}
}
}Versioning
This package follows Semantic Versioning:
- Major (1.0.0 → 2.0.0): Breaking changes to rules or agent configurations
- Minor (1.0.0 → 1.1.0): New rules, skills, or agent support added
- Patch (1.0.0 → 1.0.1): Bug fixes, typo corrections, clarifications
Contributing
Contributions welcome! Please read the guidelines in AGENTS.md before submitting.
License
MIT © Eric Thayer
Last Updated: January 31, 2026
