Command Palette

Search for a command to run...

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

cursor-advanced-composer

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

Advanced Cursor Composer techniques: agent mode, parallel agents, complex refactoring, and multi-step orchestration. Triggers on "advanced composer"…

jeremylongshoreот jeremylongshore★ 2 961 звезда на GitHub

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

Cursor Advanced Composer

Overview

Use Composer for bounded multi-file proposals when a human owner can inspect the plan, diff, tests, and rollback before applying changes.

Prerequisites

  • A defined task, affected-file boundary, repository rules, and a clean working tree or recoverable branch.
  • Required test commands and a reviewer for changes that alter architecture, security, or data flow.

Instructions

  1. Ask Composer for a plan and affected-file list before applying any edits.
  2. Constrain it to the approved scope and provide acceptance checks/non-goals.
  3. Inspect each diff, run focused validation, and split or reject changes that exceed scope.
  4. Commit only reviewed, test-backed changes; retain a revert path.

Output

  • A reviewed multi-file change proposal with affected files, validation results, and rollback reference.

Error Handling

Condition Safe response
Composer proposes unrelated files Reject or split the request; do not apply all.
Output conflicts with rules/tests Treat project controls as authoritative and revise manually or with a narrower prompt.
Sensitive context is attached Stop, remove it, and follow exposure handling.

Examples

Ask Composer to add a feature only in src/feature/ and its existing tests, requiring a plan first. Apply no files until the plan and diff are reviewed; run the focused suite and revert the commit if acceptance fails.

Advanced patterns for Cursor Composer including agent orchestration, complex multi-file refactoring, architecture migrations, and quality-control workflows.

Agent Mode Deep Dive

In Agent mode, Composer autonomously chains tool calls: reading files, searching the codebase, running terminal commands, and writing code. It operates in a loop until the task is complete or it hits the 25-tool-call limit.

Agent Tool Capabilities

Tool What it does Approval needed?
Read file Reads any file in workspace No
Search codebase Semantic + text search No
Write file Creates or overwrites files Shows diff first
Edit file Modifies sections of files Shows diff first
Run terminal command Executes shell commands Yes (click Allow)
List directory Browses folder structure No

Controlling Agent Behavior

Give the agent constraints in your prompt:

Migrate all React class components in src/components/ to functional
components with hooks.

Constraints:
- Do NOT modify test files
- Preserve all existing prop types
- Replace lifecycle methods with useEffect equivalents
- Keep the same file names and export structure
- Run `npm test` after each file to verify

Checkpoint Pattern

For large refactors, use explicit checkpoints:

Phase 1: Create the new database schema types in src/types/schema-v2.ts.
         Show me the types before proceeding.

Phase 2: Update the repository layer to use the new types.
         Run tests after each repository file change.

Phase 3: Update the API routes to use the new repository methods.

Phase 4: Update the frontend components to match the new API response shapes.

Stop after each phase and show me a summary of changes.

The agent pauses after 25 tool calls automatically. Click "Continue" to allow more.

Parallel Agent Workflows

Run up to 8 Composer agents simultaneously, each in its own tab.

Use Case: Parallel Feature Development

# Agent 1 (Tab: "Auth")
Implement JWT authentication:
- src/middleware/auth.ts
- src/services/token.service.ts
- src/api/auth/login/route.ts
- src/api/auth/refresh/route.ts

# Agent 2 (Tab: "Products")
Implement product catalog:
- prisma/schema additions
- src/api/products/route.ts
- src/services/product.service.ts

# Agent 3 (Tab: "Tests")
Write integration tests for the existing user API:
- tests/integration/users.test.ts

Each agent has its own context and conversation history. They can modify the same codebase simultaneously, but be careful with overlapping files.

Conflict Resolution Between Agents

If two agents modify the same file, the second write overwrites the first. Mitigate this by:

  • Assigning non-overlapping file scopes to each agent
  • Running agents sequentially for shared files
  • Using git to cherry-pick the best changes

Complex Refactoring Patterns

Pattern: Extract and Replace

Extract a pattern into a shared utility, then replace all occurrences:

@src/api/

I see repeated error handling in every API route:
try { ... } catch (err) { if (err instanceof ZodError) ... }

Step 1: Create src/utils/api-handler.ts with a withValidation()
wrapper that handles the try/catch + Zod pattern.

Step 2: Update ALL route files in src/api/ to use withValidation()
instead of manual try/catch.

Show me api-handler.ts first, then refactor the routes.

Pattern: Interface-First Migration

Define the target interface, then migrate implementations:

@src/services/

Step 1: Create src
Полный SKILL.md на GitHub

Установить cursor-advanced-composer в Claude Code и Claude Desktop

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

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

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

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

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

Read
Write
Edit
Bash(cmd:*)

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

references/advanced-patterns.mdreferences/complex-refactoring.mdreferences/composer-strategies.mdreferences/errors.mdreferences/examples.mdreferences/multi-file-orchestration.mdreferences/quality-control.md

FAQ

Что делает скилл cursor-advanced-composer?

Advanced Cursor Composer techniques: agent mode, parallel agents, complex refactoring, and multi-step orchestration. Triggers on "advanced composer", "composer patterns", "multi-file generation", "composer refactoring", "agent mode", "parallel agents".

Как установить скилл cursor-advanced-composer?

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

Скилл cursor-advanced-composer запускает скрипты?

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

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

Сравнить cursor-advanced-composer с