GEMINI.md
GEMINI.mdGEMINI.mdroot
Quality
86/100
Scores the file, not the repository.Length
650 words
20 headings · 3 code blocksRepository
9
— · pushed 389 days agoLast changed
3 days ago
First indexed 3 days ago.1# Development Guide23This file provides comprehensive guidance for working with the Compozy codebase, including development commands, standards, and workflow patterns.45<critical>6**MANDATORY REQUIREMENTS:**7- **ALWAYS** check dependent files APIs before write tests to avoid write wrong code8- **ALWAYS** verify against PRD and tech specs - NEVER make assumptions9- **NEVER** use workarounds, especially in tests - implement proper solutions10- **MUST** follow all established project standards:11 - Architecture patterns: `.cursor/rules/architecture.mdc`12 - Go coding standards: `.cursor/rules/go-coding-standards.mdc`13 - Testing requirements: `.cursor/rules/testing-standards.mdc`14 - API standards: `.cursor/rules/api-standards.mdc`15 - Security & quality: `.cursor/rules/quality-security.mdc`16- **MUST** run `make lint` and `make test` before completing ANY subtask17- **MUST** follow `.cursor/rules/task-review.mdc` workflow for parent tasks18**Enforcement:** Violating these standards results in immediate task rejection.19</critical>2021## Project Overview2223Compozy is a **workflow orchestration engine for AI agents** that enables building AI-powered applications through declarative YAML configuration and a robust Go backend. It integrates with various LLM providers and supports the Model Context Protocol (MCP) for extending AI capabilities.2425## Development Commands2627### Essential Commands2829```bash30# Quick setup31make deps && make start-docker && make migrate-up3233# Start development server with hot reload34make dev3536# Run tests (excludes E2E/slow tests)37make test3839# Run all tests including E2E40make test4142# Format and lint code (ALWAYS run before committing)43make fmt && make lint4445# Run specific test46go test -v ./engine/task -run TestExecutor_Execute47```4849### Database Commands5051```bash52make migrate-up # Apply migrations53make migrate-down # Rollback last migration54make migrate-status # Check migration status55make reset-db # Reset database completely56```5758## Architecture & Project Structure5960**📁 Complete project structure, technology stack, and architectural patterns:** See [project-structure.mdc](mdc:.cursor/rules/project-structure.mdc)6162## 🚨 CRITICAL: Follow All Development Standards6364**📋 MANDATORY: Review and follow ALL established coding standards:**6566- **Code Formatting & Line Spacing**: [no_linebreaks.mdc](mdc:.cursor/rules/no_linebreaks.mdc) - NEVER add blank lines inside function bodies67- **Go Coding Standards**: [go-coding-standards.mdc](mdc:.cursor/rules/go-coding-standards.mdc) - Function limits, error handling, documentation policy68- **Testing Standards**: [testing-standards.mdc](mdc:.cursor/rules/testing-standards.mdc) - MANDATORY `t.Run("Should...")` pattern, testify usage69- **Go Implementation Patterns**: [go-patterns.mdc](mdc:.cursor/rules/go-patterns.mdc) - Canonical implementations of architecture principles70- **Architecture Principles**: [architecture.mdc](mdc:.cursor/rules/architecture.mdc) - SOLID principles, Clean Architecture, DRY71- **Code Quality & Security**: [quality-security.mdc](mdc:.cursor/rules/quality-security.mdc) - Linting rules, security requirements72- **Required Libraries**: [core-libraries.mdc](mdc:.cursor/rules/core-libraries.mdc) - Mandatory library choices and usage patterns73- **API Development**: [api-standards.mdc](mdc:.cursor/rules/api-standards.mdc) - RESTful design, versioning, documentation74- **Code Review Process**: [review-checklist.mdc](mdc:.cursor/rules/review-checklist.mdc) - Pre-review requirements and checklist7576## Development Workflow7778### Pre-Commit Requirements7980**ALWAYS run before committing:**8182```bash83make fmt && make lint && make test84```8586### Development Process87881. **API changes:** Update Swagger annotations (`swag` comments)892. **Schema changes:** Create migrations with `make migrate-create name=<name>`903. **New features:** Include comprehensive tests following [testing-standards.mdc](mdc:.cursor/rules/testing-standards.mdc)914. **Task completion:** Follow [task-review.mdc](mdc:.cursor/rules/task-review.mdc) for mandatory code review workflow via Zen MCP tools925. **Backwards Compatibility:** See [backwards-compatibility.mdc](mdc:.cursor/rules/backwards-compatibility.mdc) - NOT REQUIRED during development phase9394### Key Development Notes9596- **Logging:** Use [core-libraries.mdc](mdc:.cursor/rules/core-libraries.mdc) for structured logging patterns97- **Core types:** Use `core.ID` for UUIDs, `core.Ref` for polymorphic references98- **Dependencies:** Mock external dependencies in tests when necessary (see [testing-standards.mdc](mdc:.cursor/rules/testing-standards.mdc))99100## Task Management101102For task-based development workflows, see these rule files:103104- [prd-create.mdc](mdc:.cursor/rules/prd-create.mdc) - PRD Creation105- [prd-tech-spec.mdc](mdc:.cursor/rules/prd-tech-spec.mdc) - Technical Specifications106- [task-generate-list.mdc](mdc:.cursor/rules/task-generate-list.mdc) - Task List Generation107- [task-developing.mdc](mdc:.cursor/rules/task-developing.mdc) - Task Development108- [task-review.mdc](mdc:.cursor/rules/task-review.mdc) - Task Completion with Zen MCP code review109110## Rule Management111112The development rules are actively maintained and improved:113114- **Rule Management**: [cursor_rules.mdc](mdc:.cursor/rules/cursor_rules.mdc) - Comprehensive guidelines for creating, maintaining, and improving rules115116## Compozy Configuration Examples117118For YAML configuration patterns and examples:119120- **Project Configuration**: [compozy-project-config.mdc](mdc:.cursor/rules/compozy-project-config.mdc) - Project setup patterns121- **Task Patterns**: [compozy-task-patterns.mdc](mdc:.cursor/rules/compozy-task-patterns.mdc) - Workflow task configurations122- **Agent Configuration**: [compozy-agent-config.mdc](mdc:.cursor/rules/compozy-agent-config.mdc) - AI agent setup patterns123- **Shared Patterns**: [compozy-shared-patterns.mdc](mdc:.cursor/rules/compozy-shared-patterns.mdc) - MCP, templates, and references124- **Configuration Index**: [compozy-examples.mdc](mdc:.cursor/rules/compozy-examples.mdc) - Overview and cross-references125126**All rule files are located in `.cursor/rules/` and use semantic XML tags for better context and AI understanding.**127128The project uses Go 1.24+ features and requires external dependencies to be mocked in tests when necessary.129
Also in compozy/gograph
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| compozy/gograph.cursor/rules/architecture.mdc · 9 | Cursor rules | styletesting-strategydependenciesdo-not | 57/100 | 3 days ago | |
| compozy/gograph.cursor/rules/api-standards.mdc · 9 | Cursor rules | lint-formatapidocs | 54/100 | 3 days ago | |
| compozy/gograph.cursor/rules/backwards-compatibility.mdc · 9 | Cursor rules | do-notagent-behaviour | 32/100 | 3 days ago | |
| compozy/gograph.cursor/rules/compozy-agent-config.mdc · 9 | Cursor rules | agent-behaviour | 45/100 | 3 days ago | |
| compozy/gograph.cursor/rules/compozy-examples.mdc · 9 | Cursor rules | stylearchtypesagent-behaviour | 58/100 | 3 days ago | |
| compozy/gograph.cursor/rules/compozy-project-config.mdc · 9 | Cursor rules | setupstyle | 54/100 | 3 days ago | |
| compozy/gograph.cursor/rules/cursor_rules.mdc · 9 | Cursor rules | no sections | 40/100 | 3 days ago | |
| compozy/gograph.cursor/rules/compozy-shared-patterns.mdc · 9 | Cursor rules | styleagent-behaviour | 54/100 | 3 days ago | |
| compozy/gograph.cursor/rules/compozy-task-patterns.mdc · 9 | Cursor rules | stylearchagent-behaviour | 70/100 | 3 days ago | |
| compozy/gograph.cursor/rules/core-libraries.mdc · 9 | Cursor rules | testing-strategydependenciesdo-not | 60/100 | 3 days ago | |
| compozy/gograph.cursor/rules/critical-validation.mdc · 9 | Cursor rules | no sections | 24/100 | 3 days ago | |
| compozy/gograph.cursor/rules/go-coding-standards.mdc · 9 | Cursor rules | stylearchdependencies | 62/100 | 3 days ago | |
| compozy/gograph.cursor/rules/go-patterns.mdc · 9 | Cursor rules | style | 66/100 | 3 days ago | |
| compozy/gograph.cursor/rules/no_linebreaks.mdc · 9 | Cursor rules | no sections | 31/100 | 3 days ago | |
| compozy/gograph.cursor/rules/prd-create.mdc · 9 | Cursor rules | stylearchagent-behaviour | 48/100 | 3 days ago | |
| compozy/gograph.cursor/rules/prd-tech-spec.mdc · 9 | Cursor rules | setuptestarchagent-behaviour | 56/100 | 3 days ago | |
| compozy/gograph.cursor/rules/quality-security.mdc · 9 | Cursor rules | securityperformancedo-not | 46/100 | 3 days ago | |
| compozy/gograph.cursor/rules/review-checklist.mdc · 9 | Cursor rules | testing-strategygit | 52/100 | 3 days ago | |
| compozy/gograph.cursor/rules/section_comments.mdc · 9 | Cursor rules | no sections | 31/100 | 3 days ago | |
| compozy/gograph.cursor/rules/task-developing.mdc · 9 | Cursor rules | agent-behaviour | 47/100 | 3 days ago |
Diff against .cursor/rules/architecture.mdc Diff against .cursor/rules/api-standards.mdc Diff against .cursor/rules/backwards-compatibility.mdc Diff against .cursor/rules/compozy-agent-config.mdc Diff against .cursor/rules/compozy-examples.mdc Diff against .cursor/rules/compozy-project-config.mdc Diff against .cursor/rules/cursor_rules.mdc Diff against .cursor/rules/compozy-shared-patterns.mdc Diff against .cursor/rules/compozy-task-patterns.mdc Diff against .cursor/rules/core-libraries.mdc Diff against .cursor/rules/critical-validation.mdc Diff against .cursor/rules/go-coding-standards.mdc Diff against .cursor/rules/go-patterns.mdc Diff against .cursor/rules/no_linebreaks.mdc Diff against .cursor/rules/prd-create.mdc Diff against .cursor/rules/prd-tech-spec.mdc Diff against .cursor/rules/quality-security.mdc Diff against .cursor/rules/review-checklist.mdc Diff against .cursor/rules/section_comments.mdc Diff against .cursor/rules/task-developing.mdc
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| google-gemini/gemini-cliGEMINI.md · 106k | GEMINI.md | setupbuildtestlint-format+6 | 91/100 | 3 days ago | |
| diegosouzapw/OmniRouteGEMINI.md · 38k | GEMINI.md | testlint-formatarchsecurity+2 | 87/100 | 3 days ago | |
| lepinkainen/hovimestariGEMINI.md · 0 | GEMINI.md | teststylearchtesting-strategy+1 | 81/100 | 3 days ago | |
| firebase/flutterfireGEMINI.md · 9.2k | GEMINI.md | lint-formatstylearchdo-not+1 | 80/100 | 3 days ago | |
| zigcc/zig-cookbookGEMINI.md · 1.2k | GEMINI.md | setupbuildlint-formatstyle+3 | 79/100 | 3 days ago | |
| lepinkainen/humanlogGEMINI.md · 0 | GEMINI.md | buildteststylearch+2 | 79/100 | 3 days ago | |
| nodejs/nodedeps/v8/GEMINI.md · 119k | GEMINI.md | buildteststylearch+4 | 77/100 | 3 days ago | |
| lepinkainen/hermesGEMINI.md · 5 | GEMINI.md | stylearchagent-behaviour | 76/100 | 3 days ago |
