This repository contains a comprehensive set of development rules, standards, and AI agent configurations designed to work seamlessly with multiple AI coding copilots. The setup is portable and can be imported into any project to provide consistent, high-quality AI-assisted development.
.
βββ ai-specs/ # Main directory with all rules and configurations
β βββ specs/ # Development standards and specifications
β β βββ base-standards.mdc # Core development rules (single source of truth)
β β βββ backend-standards.mdc
β β βββ frontend-standards.mdc
β β βββ documentation-standards.mdc
β β βββ api-spec.yml # OpenAPI specification
β β βββ data-model.md # Database and domain models
β β βββ development_guide.md
β β βββ prompts.md # Reusable prompt templates
β βββ changes/ # Feature implementation plans
β βββ SCRUM-10_backend.md # Demo: Position update feature plan
β
βββ AGENTS.md # Generic agent configuration
βββ CLAUDE.md # Claude-specific configuration
βββ codex.md # GitHub Copilot/Codex configuration
βββ GEMINI.md # Gemini-specific configuration
This repository uses symbolic links or naming conventions to support multiple AI coding copilots without duplication:
AGENTS.mdβ Generic agent rules (works with most copilots)CLAUDE.mdβ Optimized for Claude/Cursorcodex.mdβ Optimized for GitHub Copilot/CodexGEMINI.mdβ Optimized for Google Gemini
All these files reference the same core rules in ai-specs/specs/base-standards.mdc, ensuring consistency across different AI tools while allowing copilot-specific customizations.
β
Single Source of Truth: Core rules maintained in one place (base-standards.mdc)
β
Copilot Compatibility: Each AI tool finds its configuration using its preferred naming convention
β
Zero Configuration: Import into a new project and it works immediately
β
Easy Updates: Update rules once, all copilots benefit
β
Portable: Copy this structure to any project
# Clone or copy this repository into your project
cp -r LIDR-ai-specs/* your-project/
# The AI copilot will automatically detect the relevant configuration fileYour AI copilot will automatically load:
- Claude/Cursor:
CLAUDE.mdβai-specs/specs/base-standards.mdc - GitHub Copilot:
codex.mdβai-specs/specs/base-standards.mdc - Gemini:
GEMINI.mdβai-specs/specs/base-standards.mdc
All paths and rules are configured to work seamlessly without manual adjustments.
The most efficient way to work with this setup is using a two-step command workflow:
Use plan-ticket commands to generate detailed implementation plans:
plan-backend-ticket SCRUM-10
or
plan-frontend-ticket SCRUM-15
This creates a comprehensive, step-by-step implementation plan in ai-specs/changes/.
Reference the generated plan and execute:
develop-backend @SCRUM-10_backend.md
or
develop-frontend @SCRUM-15_frontend.md
The AI will follow the plan precisely, implementing each step with TDD, proper testing, and documentation updates.
You say:
/plan-backend-ticket SCRUM-10
AI generates:
- Analyzes the ticket requirements
- Creates
ai-specs/changes/SCRUM-10_backend.mdwith:- Architecture context
- Step-by-step implementation instructions
- Complete test specifications (validation, service, controller layers)
- API documentation updates
- Validation rules
- Error handling strategies
You say:
develop-backend @SCRUM-10_backend.md
AI executes:
- Creates feature branch
feature/SCRUM-10-backend - Implements validation function with comprehensive rules
- Implements service layer with business logic
- Implements controller with HTTP handling
- Adds route configuration
- Writes 90%+ test coverage across all layers
- Updates API documentation
- Runs tests and verifies implementation
- Commits and pushes (configurable to wait until confirmation)
Check out ai-specs/changes/SCRUM-10_backend.md for a complete example of what a feature implementation plan looks like. This comprehensive plan includes:
- Architecture Context: Layers, components, and dependencies
- Step-by-Step Instructions: Validation β Service β Controller β Routes β Tests β Documentation
- Complete Code Examples: Full implementations for each layer
- Comprehensive Test Specifications: 90%+ coverage requirements with example tests
- Error Handling: HTTP status codes, error messages, and response formats
- Business Rules: Validation requirements and constraints
- Testing Checklist: Unit, manual, integration, and regression tests
This plan demonstrates how detailed and actionable the generated plans are, enabling autonomous implementation by AI agents.
All development follows principles defined in ai-specs/specs/base-standards.mdc:
- Small Tasks, One at a Time: Baby steps, never skip ahead
- Test-Driven Development (TDD): Write failing tests first
- Type Safety: Fully typed code (TypeScript)
- Clear Naming: Descriptive variables and functions
- English Only: All code, comments, documentation, and messages in English
- 90%+ Test Coverage: Comprehensive testing across all layers
- Incremental Changes: Focused, reviewable modifications
-
Backend Standards:
ai-specs/specs/backend-standards.mdc- API development patterns
- Database best practices
- Security guidelines
- Testing requirements
-
Frontend Standards:
ai-specs/specs/frontend-standards.mdc- React component patterns
- UI/UX guidelines
- State management
- Component testing
-
Documentation Standards:
ai-specs/specs/documentation-standards.mdc- Technical documentation structure
- API documentation (OpenAPI)
- Code documentation
- Maintenance guidelines
- β Consistent Code Quality: AI follows the same standards every time
- β Comprehensive Testing: Automatic 90%+ coverage across all layers
- β Complete Documentation: API specs updated automatically
- β Faster Onboarding: New team members reference the same rules
- β Reduced Review Time: Code follows established patterns
- β Copilot Flexibility: Team members can use their preferred AI tool
- β Knowledge Preservation: Standards documented, not in people's heads
- β Quality Consistency: Same standards regardless of who (or what) writes code
- β Easier Code Reviews: Clear expectations and patterns
- β Scalable Practices: Standards scale with the team
- β Maintainable Codebase: Clean architecture and clear separation of concerns
- β Production-Ready Code: TDD, error handling, and validation built-in
- β Living Documentation: API specs and data models always current
- β Faster Feature Development: Autonomous AI implementation from plans
- β Lower Technical Debt: Best practices enforced from day one
- Update
base-standards.mdc: Modify core principles to match your needs - Add Domain Rules: Include project-specific business rules
- Extend Standards: Add technology-specific guidelines (Vue, Angular, etc.)
- Create Templates: Add prompt templates in
prompts.md - Link Resources: Reference your project's specific documentation
- Single Source of Truth: Always update
base-standards.mdcfirst - Version Control: Track changes to standards like code
- Team Review: Standards changes should be reviewed like pull requests
- Documentation: Keep examples current with actual implementation
The following files are included as reference examples from the LIDR project. You should create your own versions tailored to your specific project:
- API Specification:
ai-specs/specs/api-spec.yml(OpenAPI 3.0 format)- Create your own API spec documenting your project's endpoints
- Data Models:
ai-specs/specs/data-model.md(Database schemas, domain models)- Document your database structure and domain entities
- Development Guide:
ai-specs/specs/development_guide.md(Setup, workflows)- Write setup instructions specific to your tech stack
When contributing to the standards:
- Update
base-standards.mdc(single source of truth) - Test with multiple AI copilots to ensure compatibility
- Update examples in
changes/folder if needed - Document breaking changes clearly
- Follow the same standards you're defining!
Copyright (c) 2025 LIDR.co Licensed under the MIT License
English:
The content of this repository is part of the AI4Devs program by LIDR.co. If you want to learn to code with AI like the pros and get more templates and resources like these, you can find all the information on the official website: https://lidr.co/ia-devs
EspaΓ±ol:
El contenido de este repositorio es parte del programa AI4Devs de LIDR.co. Si quieres aprender a programar con IA como los pros, y obtener mΓ‘s plantillas y recursos como estos, puedes encontrar toda la informaciΓ³n en la pΓ‘gina oficial: https://lidr.co/ia-devs
Made with π€ by the LIDR community
For questions, issues, or suggestions, visit LIDR.co