Codex Claude Cursor Loop 标志

Codex Claude Cursor Loop

社区
bear2u
codex-claude-cursor-loop

编排由三种 AI 协作的工程开发循环:Claude 负责规划,Codex 验证逻辑并审查代码,Cursor 负责实现;通过持续反馈,确保代码质量达到最佳。

Add to TypingMind

概览

发布者bear2u
代码仓库my-skills
技能名称codex-claude-cursor-loop
星标数
932
复刻数
210
附带文件
仅含指令
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 bear2u 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Codex Claude Cursor Loop AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/bear2u/my-skills/tree/master/skills/codex-claude-cursor-loop
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bear2u/my-skills.git /tmp/my-skills
mkdir -p .claude/skills
cp -r /tmp/my-skills/skills/codex-claude-cursor-loop .claude/skills/codex-claude-cursor-loop
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Codex Claude Cursor Loop,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Codex Claude Cursor Loop。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Codex Claude Cursor Loop 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Codex-Claude-Cursor Engineering Loop Skill

Core Workflow Philosophy

This skill implements a 3-way sequential validation engineering loop:

  • Claude Code: Architecture and planning, final review
  • Codex: Plan validation (logic/security), code review (bugs/performance)
  • Cursor Agent: Code implementation and execution
  • Sequential Validation: Claude plans → Codex validates → Cursor implements → Codex reviews → Claude final check → repeat

Phase 1: Planning with Claude Code

  1. Start by creating a detailed plan for the task
  2. Break down the implementation into clear steps
  3. Document assumptions and potential issues
  4. Output the plan in a structured format

Phase 2: Plan Validation with Codex

  1. Ask user (via AskUserQuestion):
    • Model: gpt-5 or gpt-5-codex
    • Reasoning effort: low, medium, or high
  2. Send the plan to Codex for validation:
bash
   echo "Review this implementation plan and identify any issues:
   [Claude's plan here]

   Check for:
   - Logic errors
   - Missing edge cases
   - Architecture flaws
   - Security concerns" | codex exec -m <model> --config model_reasoning_effort="<effort>" --sandbox read-only
  1. Capture Codex's feedback and summarize to user

Phase 3: Plan Refinement Loop

If Codex finds issues in the plan:

  1. Summarize Codex's concerns to the user
  2. Refine the plan based on feedback
  3. Ask user (via AskUserQuestion): "Should I revise the plan and re-validate, or proceed with implementation?"
  4. Repeat Phase 2 if needed until plan is solid

Phase 4: Implementation with Cursor Agent

Once the plan is validated by Codex:

Session Management

  1. Ask user (via AskUserQuestion): "Do you want to start a new Cursor session or resume an existing one?"

    • New session: Start fresh
    • Resume session: Continue previous work
  2. If resuming:

bash
   # List available sessions
   cursor-agent ls

   # Let user select session ID
   # Store session ID for subsequent calls
  1. Ask user (via AskUserQuestion): Which Cursor model to use (e.g., composer-1, claude-3.5-sonnet, gpt-4o)

Implementation

  1. Send the validated plan to Cursor Agent:

For new session:

bash
   cursor-agent --model "<model-name>" -p --force "Implement this plan:
   [Validated plan here]

   Please implement the code following these specifications exactly."

For resumed session:

bash
   cursor-agent --resume="<session-id>" -p --force "Continue implementation:
   [Validated plan here]"
  1. IMPORTANT: Store the session ID from the output for all subsequent Cursor calls
  2. Capture what was implemented and which files were modified

Phase 5: Codex Code Review

After Cursor implements:

  1. Send Cursor's implementation to Codex for code review:
bash
   echo "Review this implementation for:
   - Bugs and logic errors
   - Performance issues
   - Security vulnerabilities
   - Best practices violations
   - Code quality concerns

   Files modified: [list of files]
   Implementation summary: [what Cursor did]" | codex exec --sandbox read-only
  1. Capture Codex's code review feedback
  2. Summarize findings to user

Phase 6: Claude's Final Review

After Codex code review:

  1. Claude reads the implemented code using Read tool
  2. Claude analyzes both:
    • Codex's review findings
    • The actual implementation
  3. Claude provides final assessment:
    • Verify if it matches the original plan
    • Confirm Codex's findings are valid
    • Identify any additional concerns
    • Make final architectural decisions
  4. Summarize overall quality and readiness

Phase 7: Iterative Improvement Loop

If issues are found (by Codex or Claude):

  1. Claude creates a detailed fix plan based on:
    • Codex's code review findings
    • Claude's final review insights
  2. Send the fix plan to Cursor Agent using the same session:
bash
   # IMPORTANT: Use --resume with the stored session ID
   cursor-agent --resume="<session-id>" -p --force "Fix these issues:
   [Detailed fix plan]

   Issues from Codex: [list]
   Issues from Claude: [list]"
  1. After Cursor fixes, repeat from Phase 5 (Codex code review)
  2. Continue the loop until all validations pass
  3. Note:
    • Use same Codex model for consistency
    • Always use the same Cursor session ID to maintain context
    • Session maintains full history of changes

Recovery When Issues Are Found

When Codex finds plan issues (Phase 2):

  1. Claude analyzes Codex's concerns
  2. Refines the plan addressing all issues
  3. Re-submits to Codex for validation
  4. Repeats until Codex approves

When Codex finds code issues (Phase 5):

  1. Claude reviews Codex's findings
  2. Creates detailed fix plan
  3. Sends to Cursor for fixes
  4. After Cursor fixes, back to Codex review
  5. Repeats until Codex approves

When Claude finds issues (Phase 6):

  1. Claude creates comprehensive fix plan
  2. Sends to Cursor for implementation
  3. After fixes, Codex reviews again
  4. Claude does final check
  5. Repeats until Claude approves

Best Practices

  • Always validate plans with Codex before implementation
  • Never skip Codex code review after Cursor implements
  • Never skip Claude's final review for architectural oversight
  • Maintain clear handoff between all three AIs
  • Document who did what for context
  • Use same models throughout (same Codex model, same Cursor model)
  • Session Management:
    • Always use --resume with same session ID for iterative fixes
    • Store session ID at the start and reuse throughout
    • Use cursor-agent ls to find previous sessions
    • Only start new session when beginning completely new feature

Command Reference

PhaseWhoCommand PatternPurpose
1. PlanClaudeTodoWrite, Read, analysis toolsClaude creates detailed plan
2. Validate planCodexecho "plan" | codex exec -m <model> --config model_reasoning_effort="<effort>" --sandbox read-onlyCodex validates logic/security
3. RefineClaudeAnalyze Codex feedback, update planClaude fixes plan issues
4. Session setupClaude + UserAsk new/resume, cursor-agent ls if neededSetup or resume Cursor session
5. ImplementCursorcursor-agent --model "<model>" -p --force "prompt" OR cursor-agent --resume="<id>" -p --force "prompt"Cursor implements validated plan
6. Review codeCodexecho "review" | codex exec --sandbox read-onlyCodex reviews for bugs/performance
7. Final reviewClaudeRead tool, analysisClaude final architectural check
8. Fix planClaudeCreate detailed fix planClaude plans fixes from all feedback
9. Apply fixesCursorcursor-agent --resume="<id>" -p --force "fixes"Cursor implements fixes in same session
10. Re-reviewCodex + ClaudeRepeat phases 6-7Validate fixes until perfect

Error Handling

  1. Monitor Cursor Agent output for errors
  2. Summarize Cursor's implementation results and Claude's review
  3. Ask for user direction via AskUserQuestion if:
    • Significant architectural changes needed
    • Multiple files will be affected
    • Breaking changes are required
  4. When issues appear, Claude creates a detailed fix plan before sending to Cursor

The Perfect Loop

1. Plan (Claude)
   ↓
2. Validate Plan (Codex) → if issues → refine plan → repeat
   ↓
3. Implement (Cursor)
   ↓
4. Code Review (Codex) → captures bugs/performance issues
   ↓
5. Final Review (Claude) → architectural check
   ↓
6. Issues found? → Fix Plan (Claude) → Implement Fixes (Cursor) → back to step 4
   ↓
7. All passed? → Done! ✅

This creates a triple-validation, self-correcting, high-quality engineering system where:

  • Claude: All planning, architecture, and final oversight
  • Codex: All validation (plan logic + code quality)
  • Cursor Agent: All implementation and coding

常见问题

Codex Claude Cursor Loop AI 技能有什么作用?

编排由三种 AI 协作的工程开发循环:Claude 负责规划,Codex 验证逻辑并审查代码,Cursor 负责实现;通过持续反馈,确保代码质量达到最佳。

为什么在 TypingMind 中使用 Codex Claude Cursor Loop?

因为您只需安装一次,就能搭配任何模型使用。Codex Claude Cursor Loop 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Codex Claude Cursor Loop?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/bear2u/my-skills/tree/master/skills/codex-claude-cursor-loop。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Codex Claude Cursor Loop?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Codex Claude Cursor Loop 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Codex Claude Cursor Loop 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Codex Claude Cursor Loop AI 技能免费吗?

bear2u 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇