Command Palette

Search for a command to run...

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

cursor-composer-workflows

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

Master Cursor Composer for multi-file AI editing, scaffolding, and refactoring. Triggers on "cursor composer", "multi-file edit", "cursor generate files"…

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

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

Cursor Composer Workflows

Overview

Structure Composer work around explicit planning, small reviewed diffs, test evidence, and rollback rather than unattended multi-file generation.

Prerequisites

  • A bounded issue, affected-file inventory, repository rules, and test commands.
  • A recoverable branch and reviewer for material architectural, security, or data changes.

Instructions

  1. Request a plan and non-goals before any edits.
  2. Apply one coherent slice at a time, review the diff, and run its focused checks.
  3. Keep human decisions for API, security, migration, and dependency changes.
  4. Commit validated slices and revert/split failures rather than accepting a broad repair.

Output

  • A sequence of small reviewed Composer-assisted changes with validation and rollback evidence.

Error Handling

Condition Safe response
Plan exceeds scope Revise the request and reduce affected files.
Diff fails test or policy Reject/revert the slice and diagnose within the stated boundary.
Composer needs sensitive context Do not attach it; use sanitized interfaces or approved process.

Examples

Ask Composer to plan a module-local refactor, accept only the first reviewed slice, run its focused test, and commit it. Stop if it proposes a dependency, migration, or unrelated repository change.

Master Cursor Composer (Cmd+I / Ctrl+I) for multi-file code generation, scaffolding, and coordinated refactoring. Composer is the primary tool for changes that span multiple files.

Composer Interface

┌─────────────────────────────────────────────────────────┐
│  Composer                                    [Model ▾]  │
│─────────────────────────────────────────────────────────│
│  Context: [src/api/] [prisma/schema.prisma]             │
│─────────────────────────────────────────────────────────│
│  Create a CRUD API for products with:                   │
│  - Prisma model with id, name, price, category          │
│  - API routes (GET list, GET by id, POST, PUT, DELETE)  │
│  - Zod validation schemas                               │
│  - Unit tests with vitest                               │
│─────────────────────────────────────────────────────────│
│  ┌─ Changes ──────────────────────────────────────────┐ │
│  │  ✅ prisma/schema.prisma          (+12 lines)      │ │
│  │  ✅ src/api/products/route.ts     (new file)       │ │
│  │  ✅ src/api/products/[id]/route.ts (new file)      │ │
│  │  ✅ src/schemas/product.ts        (new file)       │ │
│  │  ✅ tests/api/products.test.ts    (new file)       │ │
│  └────────────────────────────────────────────────────┘ │
│  [Apply All]  [Review Changes]  [Reject]                │
└─────────────────────────────────────────────────────────┘

Core Workflow Patterns

1. Feature Scaffolding

Generate a complete feature across multiple files:

@src/api/users/route.ts @prisma/schema.prisma

Create a complete "orders" feature following the same patterns as users:
1. Prisma model: Order (id, userId, items, total, status, createdAt)
2. OrderItem model: (id, orderId, productId, quantity, price)
3. API routes: GET /api/orders, GET /api/orders/[id], POST /api/orders
4. Zod validation schemas matching the Prisma models
5. Service layer with createOrder, getOrders, getOrderById

Composer reads the referenced files to replicate the existing pattern.

2. Cross-File Refactoring

Rename, restructure, or migrate patterns across the codebase:

@src/services/ @src/api/

Refactor all service functions to use a Result type instead of throwing errors.

Current pattern:
  async function getUser(id: string): Promise<User> { throw new NotFoundError(); }

Target pattern:
  async function getUser(id: string): Promise<Result<User, NotFoundError>> { ... }

Update all callers in the API routes to handle the Result type.

3. Test Generation

Generate tests that match existing test patterns:

@tests/api/users.test.ts @src/api/products/route.ts

Generate vitest tests for the products API following the same patterns
as users.test.ts. Cover:
- GET /api/products returns list with pagination
- GET /api/products/[id] returns 404 for missing product
- POST /api/products validates required fields
- POST /api/products returns 201 with created product
Use the same mock setup and assertion patterns.

4. Migration / Upgrade

Apply systematic changes across many files:

@src/components/

Migrate all components from CSS Modules to Tailwind CSS:
- Replace className={styles.container} with className="..."
- Map existing CSS properties to Tailwind utilities
- Remove the .module.css import and file
- Preserve responsive breakpoints and dark mode support

Agent Mode

Composer can operate in Agent mode, which autonomously executes multi-step tasks:

  • Reads and searches files without explicit @-mentions
  • Runs terminal commands (with your approval)
  • Chains multiple tool calls (up to 25 before pausing)
  • Makes decisions about which file
Полный SKILL.md на GitHub

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

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

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

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

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

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

Read
Write
Edit
Bash(cmd:*)

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

references/advanced-composer-techniques.mdreferences/best-practices.mdreferences/common-use-cases.mdreferences/composer-workflow-patterns.mdreferences/errors.mdreferences/examples.md

FAQ

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

Master Cursor Composer for multi-file AI editing, scaffolding, and refactoring. Triggers on "cursor composer", "multi-file edit", "cursor generate files", "composer workflow", "cursor scaffold", "Cmd+I".

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

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

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

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

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

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