Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

codex-claude-cursor-loop

БесплатноБез исполняемых скриптовНе проверен

Orchestrates a triple-AI engineering loop where Claude plans, Codex validates logic and reviews code, and Cursor implements, with continuous feedback for…

bear2uот bear2u★ 948 звёзд на GitHub16 установок в других каталогах

Об этом скилле

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:
   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:

   # Note: cursor-agent ls requires interactive mode and may not work in --print mode
   # Alternative: Ask user for chat ID from their previous session
   # Or use: cursor-agent resume (resumes latest session without ID)

   # Store session ID for subsequent calls
  1. Ask user (via AskUserQuestion): Which Cursor model to use
    • Available models: sonnet-4, sonnet-4-thinking, gpt-5, gpt-4o, composer-1
    • Recommended: sonnet-4 for balanced performance, sonnet-4-thinking for complex reasoning

Implementation

  1. Send the validated plan to Cursor Agent:

For new session:

   cursor-agent --model "<model-name>" -p --force --output-format json --approve-mcps "Implement this plan:
   [Validated plan here]

   Please implement the code following these specifications exactly."

For resumed session (with chat ID):

   cursor-agent --resume <chat-id> --model "<model-name>" -p --force --output-format json "Continue implementation:
   [Validated plan here]"

For resumed session (latest chat):

   cursor-agent resume --model "<model-name>" -p --force --output-format json "Continue implementation:
   [Validated plan here]"

Useful options:

  • --output-format json: Structured output for parsing (recommended for automation)
  • --approve-mcps: Auto-approve MCP servers (useful in headless mode)
  • --stream-partial-output: Real-time progress monitoring (use with --output-format stream-json)
  • --browser: Enable browser automation if needed
  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:
   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:
   # IMPORTANT: Use --resume with the stored session ID
   cursor-agent --resume <chat-id> --model "<model-name>" -p --force --output-format json "Fix these issues:
   [Detailed fix plan]

   Issues from Codex: [list]
   Issues from Claude: [list]"

   #
Полный SKILL.md на GitHub

Установить codex-claude-cursor-loop в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.md

FAQ

Что делает скилл codex-claude-cursor-loop?

Orchestrates a triple-AI engineering loop where Claude plans, Codex validates logic and reviews code, and Cursor implements, with continuous feedback for optimal code quality

Как установить скилл codex-claude-cursor-loop?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл codex-claude-cursor-loop запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить codex-claude-cursor-loop с