modify-cdk-workflows
БесплатноБез исполняемых скриптовНе проверенModify CDK Step Functions workflows (ReviewProcessor and ChecklistProcessor) for the RAPID application, including workflow step changes, Map State…
Об этом скилле
Modify CDK Step Functions Workflows
Workflow Architecture
cdk/lib/constructs/
├── review-processor.ts # Review workflow (3-step)
├── checklist-processor.ts # Checklist workflow (5-step)
├── agent.ts # AgentCore infrastructure
└── lambda/invoke-agent/ # Agent invocation Lambda
ReviewProcessor Flow
- Prepare Review - Fetch checklist items
- Process All Items (Map State) - Parallel: pre-process -> AgentCore -> post-process
- Finalize Review - Aggregate results
Config: maxConcurrency default 1, timeout 2 hours
ChecklistProcessor Flow
- Process Document - File format detection, page extraction
- Process All Pages Inline (Map State) - Parallel page processing
- Aggregate Results - Combine page results
- Store to Database - Persist findings
- Detect Ambiguity - Identify ambiguities
Config: inlineMapConcurrency default 1, timeout 24 hours, thresholds: 40 pages (medium), 100 pages (large)
Common Modifications
1. Adding/Removing Workflow Steps
// Create task
const newTask = new tasks.LambdaInvoke(this, "NewTaskId", {
lambdaFunction: processorLambda,
payload: sfn.TaskInput.fromObject({
action: "newAction",
dataParam: sfn.JsonPath.stringAt("$.previous.result"),
}),
resultPath: "$.newResult",
resultSelector: { "Payload.$": "$.Payload" },
});
// Add error handling
newTask.addCatch(handleErrorTask, {
errors: ["States.ALL"],
resultPath: "$.error",
});
// Chain into workflow
const definition = prepareTask.next(newTask).next(processTask).next(finalizeTask);
Look for definitionBody: sfn.DefinitionBody.fromChainable() in processor files.
2. Modifying Map State Concurrency
const processItemsMap = new sfn.Map(this, "ProcessAllItems", {
maxConcurrency: maxConcurrency,
itemsPath: sfn.JsonPath.stringAt("$.prepareResult.Payload.checkItems"),
resultPath: "$.processedItems",
});
Set via CDK parameters: cdk deploy -c rapid.reviewMapConcurrency=5
Trade-offs: Higher = faster but more cost/throttling. Lower = slower but predictable.
3. Adding Retry Logic
task.addRetry({
errors: ["RetryException", "ThrottlingException", "ServiceQuotaExceededException"],
interval: cdk.Duration.seconds(2),
maxAttempts: 5,
backoffRate: 2,
});
4. Adding Parameters
- Define in
parameter-schema.tswith a default and a description (project convention — the real schema uses.default(...), not.optional()):reviewMapConcurrency: z.number().int().min(1).default(5).describe("..."). Users override the default incdk/lib/parameter.ts(or via-c rapid=...). - Pass to construct in
rapid-stack.ts - Use in construct constructor
5. Modifying Timeouts
Task: timeout: cdk.Duration.minutes(15)
State machine: timeout: cdk.Duration.hours(2)
For JsonPath patterns and state machine creation templates, see references/CDK-PATTERNS.md.
Quick Reference
| Modification | Location | Search For |
|---|---|---|
| Review workflow steps | review-processor.ts | definitionBody.fromChainable |
| Checklist workflow steps | checklist-processor.ts | definitionBody.fromChainable |
| Map State concurrency | Both processor files | new sfn.Map |
| Retry logic | Task definitions | .addRetry |
| Error handling | Task definitions | .addCatch |
| Parameters | parameter-schema.ts | z.number(), z.boolean() |
Verification
cd cdk && npx cdk synth
After verification, deploy with /deploy-cdk-stack.
Success Criteria
cdk synthcompletes without errors- No circular dependencies
- All tasks have proper error handling
- Concurrency and timeout settings are appropriate
Установить modify-cdk-workflows в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл modify-cdk-workflows?
Modify CDK Step Functions workflows (ReviewProcessor and ChecklistProcessor) for the RAPID application, including workflow step changes, Map State concurrency, retry/timeout configuration, error handling, and parameter updates. Use when changing workflow step sequences, adjusting concurrency, modifying retry logic, or adding/removing workflow steps.
Как установить скилл modify-cdk-workflows?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл modify-cdk-workflows запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic