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 command-based workflow:
If your user story lacks detail or acceptance criteria, use the enrich-us command to enhance it:
/enrich-us SCRUM-10
This command analyzes the user story and generates:
- Detailed acceptance criteria
- Edge cases and validation rules
- Technical considerations
- Testing scenarios
Note: Skip this step if your user story already has sufficient depth and clear requirements.
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:
/enrich-us SCRUM-10
AI enhances the user story with detailed acceptance criteria and technical considerations (skip if already detailed).
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-Position-Update.md for a complete example of what an enriched user story looks like. This comprehensive document includes:
- User Story: Clear description with persona, goal, and benefit
- Technical Specification: Complete technical implementation details
- API Endpoint Documentation: Request/response formats, status codes, and error handling
- Database Fields: All updateable fields with validation rules
- Validation Rules: Server-side and client-side validation requirements
- Security Requirements: Authentication, authorization, and input sanitization needs
- Testing Requirements: Unit tests, integration tests, and manual testing scenarios
- Acceptance Criteria: Clear, testable acceptance criteria for each requirement
- Non-Functional Requirements: Usability, performance, reliability, and security standards
- Definition of Done: Complete checklist for feature completion
This enriched document transforms a simple user story into a detailed specification that provides all the context needed for autonomous implementation by AI agents or developers.
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