forked from Cluster444/agentic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.cursorrules
More file actions
123 lines (94 loc) · 3.69 KB
/
.cursorrules
File metadata and controls
123 lines (94 loc) · 3.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# CodeFlow Project Rules
You are working on the CodeFlow AI agent & command distribution platform. This is a comprehensive TypeScript CLI tool that manages 123+ specialized AI agents and 15+ workflow commands across multiple AI platforms.
## Project Overview
CodeFlow is built with TypeScript and Bun, providing:
- Agent management and conversion between platforms (Claude Code, OpenCode, MCP)
- Workflow orchestration with specialized subagents
- Command distribution system for AI development workflows
- Comprehensive testing and validation framework
## Architecture
### Core Components
- `src/cli/` - Main CLI entry point and commands
- `codeflow-agents/` - Source of truth for all agent definitions (BaseAgent format)
- `src/` - Core platform logic (conversion, validation, sync)
- `packages/agentic-mcp/` - MCP server implementation
- `docs/` - Comprehensive documentation
### Agent System
- **Base Format**: All agents defined in `codeflow-agents/` using unified BaseAgent format
- **Platform Conversion**: Auto-conversion to Claude Code (`.claude/agents/`) and OpenCode (`.opencode/agent/`)
- **Categories**: Development, Operations, Quality Testing, Business Analytics, Design/UX, AI Innovation
### Key Directories
- `codeflow-agents/` - NEVER edit directly, use conversion scripts
- `.claude/agents/` - Auto-generated Claude Code format
- `.opencode/agent/` - Auto-generated OpenCode format
- `src/` - Core TypeScript implementation
- `tests/` - Comprehensive test suite
## Development Standards
### Code Style
- Use TypeScript strict mode
- Follow existing patterns in `src/`
- Bun runtime preferred (Node.js compatible)
- Comprehensive error handling with proper types
### Testing
- Unit tests in `tests/unit/`
- Integration tests in `tests/integration/`
- E2E tests in `tests/e2e/`
- Always run `bun run typecheck` before commits
### Agent Development
- Agents defined in `codeflow-agents/` using BaseAgent format
- Use `codeflow validate` to check agent definitions
- Use `codeflow convert-all` to generate platform-specific formats
## Key Commands
```bash
# Development
bun install && bun run install
bun run typecheck
bun run test
# Agent Management
codeflow validate
codeflow convert-all
codeflow setup [project-path]
# Publishing
npm run release:publish:patch
```
## Platform Integration
### Claude Code
- Agents available as native subagents
- Commands as slash commands (`/research`, `/plan`, `/execute`)
- YAML frontmatter format
### OpenCode
- Full MCP integration
- Mode, temperature, and directory support
- Advanced agent configuration
### Cursor
- Commands in `.cursor/commands/`
- Rules defined in this file
- MCP server configuration
## Important Notes
- Always validate agents after changes
- Test across all supported platforms
- Follow semantic versioning for releases
- Maintain backward compatibility
- Use proper TypeScript types throughout
## Common Workflows
### Adding New Agent
1. Create in `codeflow-agents/` with BaseAgent format
2. Run `codeflow validate`
3. Test conversion: `codeflow convert-all --dry-run`
4. Commit changes
### Debugging Agent Issues
1. Check agent definition format
2. Validate with `codeflow validate`
3. Test platform conversion
4. Check generated files in `.claude/agents/` and `.opencode/agent/`
### Platform-Specific Issues
- Claude Code: Check YAML frontmatter
- OpenCode: Verify MCP compatibility
- Cursor: Ensure command format compliance
## Documentation
- Main docs in `docs/`
- Agent registry in `docs/AGENT_REGISTRY.md`
- Development guide in `DEVELOPMENT.md`
- Compliance in `COMPLIANCE.md`
---
When working on this project, prioritize agent validation, platform compatibility, and comprehensive testing. The system must maintain consistency across all supported AI platforms.