PromptForge
Back to list
developmentAI Agent工作流编码代理自适应规则Claude CodeCodex

AI 代码 Agent 自适应工作流规则生成器

根据项目类型和团队规范,自动生成适配 AI 编码代理(Claude Code、Codex、Cursor等)的自适应工作流生命周期规则文件,包含计划、实现、测试、审查各阶段的行为约束。

6 views5/12/2026

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