Boot OpenSpec's Spec-Driven in any project and give superpowers to any coding agent.
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.
It's highly recommended to be used along with Spec-Driven Development frameworks like OpenSpec
.
├── docs/ # Development standards and specifications
│ ├── base-standards.md # Core development rules (single source of truth)
│ ├── backend-standards.md
│ ├── frontend-standards.md
│ ├── documentation-standards.md
│ ├── api-spec.yml # OpenAPI specification
│ ├── data-model.md # Database and domain models
│ ├── development_guide.md
├── ai-specs/
│ ├── agents/ # Agent role definitions (backend, frontend, analyst, etc.)
│ └── skills/ # Reusable skill prompts/workflows
│
├── 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 docs/base-standards.md, ensuring consistency across different AI tools while allowing copilot-specific customizations.
✅ Single Source of Truth: Core rules maintained in one place (base-standards.md)
✅ 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
OpenSpec works great with this repository and is recommended for a spec-driven workflow.
Quick Start requirements from OpenSpec official docs:
- Node.js
20.19.0or higher
Install OpenSpec globally:
npm install -g @fission-ai/openspec@latestThen navigate to your project and initialize:
cd your-project
openspec initCopy this repository into your project first, so the docs/ and ai-specs/ paths already exist when you configure OpenSpec:
# Clone or copy this repository into your project (`-n`: do not overwrite existing files so you keep project's original README)
cp -rn lidr-specboot/* your-project/Alternative for step 2 (Claude Code users):
- You can alternatively install the Claude plugin and use it as the coding agent for this import step.
- This only changes how you install Specboot. It does not install OpenSpec, does not update OpenSpec config, and does not customize
docs/.
Quick install:
npx @lidr/lidr-specbootThis copies all files into your project and recreates the symlink structure automatically. Safe to re-run: existing files are never overwritten.
This step is required. If you skip it, your AI assistant will use generic technical context instead of your real project context.
Update the files in docs/ to match your stack, architecture patterns, domain language, API contracts, and data model.
For detailed guidance and ready-to-use prompt examples, see Customization.
After openspec init and after copying this repository, update your project's config.yml to include your technical context from docs.
Prompt example to automate this with your copilot:
Update my openspec config.yml context to reference this repository's docs and ai-specs structure.
Requirements:
- Use docs/base-standards.md as the single source of truth.
- Include docs/backend-standards.md, docs/frontend-standards.md, docs/documentation-standards.md.
- Include docs/api-spec.yml and docs/data-model.md.
- Tell the agent to adopt ai-specs/agents/backend-developer.md for backend work and ai-specs/agents/frontend-developer.md for frontend work.
- Mention ai-specs/skills as workflow guidance.
- Keep all paths relative to the project root.
Example (config.yml):
context: |
Tech stack: TypeScript, Node.js, Express, Prisma, Domain-Driven Design (DDD)
Architecture: Clean Architecture with Domain, Application, and Presentation layers
We use conventional commits
Domain: LTI (Leadership. Technology. Impact) ATS platform
All code, comments, documentation, and technical artifacts must be in English
Project specs (single source of truth): All artifact creation and implementation MUST follow the project's technical context in ai-specs/. Read and apply these when creating or implementing:
- docs/base-standards.md — core principles, TDD, language standards, links to backend/frontend/docs standards
- docs/backend-standards.md — API, database, testing, security (backend changes)
- docs/frontend-standards.md — React, UI/UX (frontend changes)
- docs/api-spec.yml — API contracts and endpoint definitions
- docs/data-model.md — domain and data model
- docs/documentation-standards.md — docs structure and maintenance
For implementation: adopt the relevant agent from ai-specs/agents/ (e.g. backend-developer.md for backend, frontend-developer.md for frontend). Use ai-specs/skills/ for workflow guidance when applicable.
# Per-artifact rules (optional)
# Add custom rules for specific artifacts.
rules:
# Global: apply ai-specs when creating any artifact
_global:
- Before creating any artifact, read and apply docs/base-standards.md
- For backend-related artifacts, read docs/backend-standards.md and adopt guidelines from ai-specs/agents/backend-developer.md
- For frontend-related artifacts, read docs/frontend-standards.md and adopt guidelines from ai-specs/agents/frontend-developer.md
- Use docs/api-spec.yml and docs/data-model.md for API and data consistency in specs and tasksDo this after completing the setup steps above.
Your AI copilot should automatically load:
- Claude/Cursor:
CLAUDE.md→docs/base-standards.md - GitHub Copilot:
codex.md→docs/base-standards.md - Gemini:
GEMINI.md→docs/base-standards.md
All paths and rules are configured to work seamlessly without manual adjustments.
The recommended workflow in this repository uses official OpenSpec commands:
The recommended workflow in this repository uses official OpenSpec commands:
/enrich-us(optional): refine a vague user story or idea/new: create a new OpenSpec change (currently a copy of/ff)/ff: create all required OpenSpec artifacts (feature file, tasks, etc.)- Running
/newfollowed by/ffis equivalent to the new/proposecommand
- Running
/apply: implement tasks one by one/verify: validate implementation against the change artifacts/adversarial-review: independent red-team code review before archiving/archive: archive the completed change/commit: create focused commit(s) and manages Pull Request after verification Workflow reference image:
This workflow is enhanced with MCP servers that are mentioned in the workflow. These are optional and you can skip them entirely, or replace them with equivalent tools.
- Jira MCP (recommended in
/enrich-us): lets the agent read Jira tickets directly to enrich user stories without copy/paste. - Playwright MCP (recommended for E2E testing): lets the agent run browser-based E2E checks for user workflows.
Recommended installation approach:
- Cursor: enable/configure MCP servers in Cursor settings (add your Jira and Playwright MCP servers, then provide credentials such as Jira API tokens as required).
- Other agents/IDEs: follow your tool’s MCP installation docs and configure Jira/Playwright there.
If you don’t use Jira, or you don’t want automated E2E testing in this workflow, just update the skills and keep using the same OpenSpec command flow.
Use these commands in sequence:
Optional first step (recommended): create a dedicated worktree before running the command flow, then clean it up when done. The using-git-worktrees skill can automate this.
/enrich-us SCRUM-10
/ff SCRUM-10
/apply SCRUM-10
/verify SCRUM-10
/adversarial-review SCRUM-10
/archive SCRUM-10
/commitArtifacts are managed through OpenSpec directories during this flow, including testing reports created.
Skills live in ai-specs/skills/ and are mirrored into .claude/skills/ and .cursor/skills/ via relative symlinks, so any copilot can discover them. The agent loads a skill automatically when a request matches its description (per AGENTS.md §4). The most useful ones in day-to-day work are enrich-us, using-git-worktrees, writing-skills, and code-auditing:
enrich-us— Analyze and enhance a vague Jira user story (or raw idea) into an implementation-ready ticket with acceptance criteria, technical detail, and edge cases. Use before planning to make sure the team and the AI agree on scope.using-git-worktrees— Set up an isolated workspace before starting feature work or executing a plan, with safe creation, baseline checks, copying of local Claude settings, and a complete cleanup workflow when the work is done.writing-skills— Author and verify new skills (or refactor existing ones) following TDD-style validation before deployment. Use when adding a skill toai-specs/skills/or editing an existingSKILL.md.code-auditing— Run a systematic 6-phase code quality audit covering security, performance, type safety, dead code, and library best practices, ending with a prioritized action plan. Use for pre-release reviews, technical-debt sweeps, and dependency audits.
Other active skills in this repository: commit, explain, meta-prompt, update-docs. See each ai-specs/skills/<name>/SKILL.md for the full instructions.
All development follows principles defined in docs/base-standards.md:
- 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:
docs/backend-standards.md- API development patterns
- Database best practices
- Security guidelines
- Testing requirements
- Frontend Standards:
docs/frontend-standards.md- React component patterns
- UI/UX guidelines
- State management
- Component testing
- Documentation Standards:
docs/documentation-standards.md- 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 technical context: Find the different files in
docsand modify core principles, coding standards, business rules and technical documentation to match your needs:
- backend/frontend/testing/documentation standards
- installation guide
- data model
- API docs
- ...
- Adapt agents in
ai-specs/agents: Adjust agent definitions to your project's roles and workflows - Extend skills in
ai-specs/skills: Define battle-tested prompts and workflows in reusable skills - Link Resources: Reference your project's specific documentation or tasks using MCPs
- Keep the symlink structure: Remember to create relative symlinks from
.claudeand.cursorto the correspondingai-specs/agentsandai-specs/skillsentries to keep it consistent
Use this prompt with your copilot to adapt the docs/ folder while preserving the same baseline structure:
Following the same base structure already present in docs/, update all technical context documents according to this project's specifics.
Requirements:
- Keep the same document set and file names in docs/.
- Replace generic content with this project's real stack, architecture patterns, coding conventions, and domain terminology.
- Update backend, frontend, and documentation standards to reflect actual practices used by this team.
- Update docs/api-spec.yml and docs/data-model.md so they match the real endpoints and entities of this project.
- Ensure all references are internally consistent and aligned across docs/.
- Keep everything in English and make guidance implementation-ready for AI agents.
- Single Source of Truth: Always update
base-standards.mdfirst - 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
- Symlink Integrity: After file renames/moves/suffix changes, verify and update all impacted symlinks
- Canonical Placement: Prefer
ai-specsas canonical source and expose through symlinks for.claude/.cursorcompatibility
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:
docs/api-spec.yml(OpenAPI 3.0 format)- Create your own API spec documenting your project's endpoints
- Data Models:
docs/data-model.md(Database schemas, domain models)- Document your database structure and domain entities
- Development Guide:
docs/development_guide.md(Setup, workflows)- Write setup instructions specific to your tech stack
When contributing to the standards:
- Update
base-standards.md(single source of truth) - Test with multiple AI copilots to ensure compatibility
- Update generated examples in
changes/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
Some workflows and skill patterns in this repository are inspired by the Superpowers framework, especially around:
using-git-worktreeswriting-skills
Superpowers project: obra/superpowers
Additional inspiration/source acknowledgements:
code-auditingskill: inspired by and adapted from jeffrigby/somepulp-agents
Made with 🤖 by the LIDR community
For questions, issues, or suggestions, visit LIDR.co