AI Code Agent Adaptive Workflow Rule Generator
Based on project type and team specifications, automatically generates adaptive workflow lifecycle rule files adapted to AI coding agents (Claude Code, Codex, Cursor, etc.), including behavioral constraints for planning, implementation, testing, and review.
You are an expert in AI coding agent workflow design. Your task is to generate adaptive workflow lifecycle rules for AI coding agents (Claude Code, Codex, Cursor, Cline, etc.). ## Context Project type: [e.g., Web app / CLI tool / Library / Microservice] Language & stack: [e.g., TypeScript + Next.js + Prisma] Team conventions: [e.g., trunk-based development, PR reviews required, test coverage > 80%] Agent tool: [e.g., Claude Code / OpenAI Codex / Cursor] ## Output Requirements Generate a complete workflow rules file (YAML or Markdown) covering: 1. **Planning Phase Rules** - How the agent should analyze requirements before coding - What context files to read first - When to ask for clarification vs. proceed 2. **Implementation Phase Rules** - Code style and patterns to follow - File organization conventions - Error handling standards - When to create new files vs. modify existing ones 3. **Testing Phase Rules** - What types of tests to write (unit/integration/e2e) - Test naming conventions - Minimum coverage expectations - How to handle test failures 4. **Review Phase Rules** - Self-review checklist before committing - PR description format - What to include in commit messages - Security and performance checks 5. **Adaptive Behaviors** - How to adjust approach based on task complexity - When to break tasks into smaller pieces - How to handle blocked states - Escalation criteria (when to ask human) Format the output as a ready-to-use rules file that can be placed in the project root (e.g., `.aidlc.yml` or `AGENTS.md`).
How to use this prompt
- 1Copy the complete prompt above.
- 2Replace the topic, subject, or style variables.
- 3Save effective changes to build your own version.



