Skip to content

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.

Notifications You must be signed in to change notification settings

jesus-calvo/ai-specs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AI Specifications & Development Rules

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.

πŸ“ Repository Structure

.
β”œβ”€β”€ 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

πŸ€– Multi-Copilot Support

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/Cursor
  • codex.md β†’ Optimized for GitHub Copilot/Codex
  • GEMINI.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.

Why This Approach?

βœ… 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

πŸš€ Quick Start

1. Import Into Your 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 file

2. Verify Configuration

Your 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.

πŸ’‘ Usage: Command-Based Development Workflow

The most efficient way to work with this setup is using a two-step command workflow:

Step 1: Plan the Feature

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/.

Step 2: Implement the Feature

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.

Example: Implementing SCRUM-10 (Position Update Feature)

Step 1: Generate the Plan

You say:

/plan-backend-ticket SCRUM-10

AI generates:

  • Analyzes the ticket requirements
  • Creates ai-specs/changes/SCRUM-10_backend.md with:
    • Architecture context
    • Step-by-step implementation instructions
    • Complete test specifications (validation, service, controller layers)
    • API documentation updates
    • Validation rules
    • Error handling strategies

Step 2: Implement Following the Plan

You say:

develop-backend @SCRUM-10_backend.md

AI executes:

  1. Creates feature branch feature/SCRUM-10-backend
  2. Implements validation function with comprehensive rules
  3. Implements service layer with business logic
  4. Implements controller with HTTP handling
  5. Adds route configuration
  6. Writes 90%+ test coverage across all layers
  7. Updates API documentation
  8. Runs tests and verifies implementation
  9. Commits and pushes (configurable to wait until confirmation)

πŸ“‹ Demo Implementation Plan

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.

πŸ“– Core Development Rules

All development follows principles defined in ai-specs/specs/base-standards.mdc:

Key Principles

  1. Small Tasks, One at a Time: Baby steps, never skip ahead
  2. Test-Driven Development (TDD): Write failing tests first
  3. Type Safety: Fully typed code (TypeScript)
  4. Clear Naming: Descriptive variables and functions
  5. English Only: All code, comments, documentation, and messages in English
  6. 90%+ Test Coverage: Comprehensive testing across all layers
  7. Incremental Changes: Focused, reviewable modifications

Specific Standards

  • 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

🎯 Benefits

For Developers

  • βœ… 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

For Teams

  • βœ… 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

For Projects

  • βœ… 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

πŸ”§ Customization

Adapting to Your Project

  1. Update base-standards.mdc: Modify core principles to match your needs
  2. Add Domain Rules: Include project-specific business rules
  3. Extend Standards: Add technology-specific guidelines (Vue, Angular, etc.)
  4. Create Templates: Add prompt templates in prompts.md
  5. Link Resources: Reference your project's specific documentation

Maintaining Standards

  • Single Source of Truth: Always update base-standards.mdc first
  • 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

πŸ“š Technical context

Reference Examples (from LIDR Project)

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

🀝 Contributing

When contributing to the standards:

  1. Update base-standards.mdc (single source of truth)
  2. Test with multiple AI copilots to ensure compatibility
  3. Update examples in changes/ folder if needed
  4. Document breaking changes clearly
  5. Follow the same standards you're defining!

πŸ“„ License

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

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published