Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aws-samples avatar

Modify Cdk Workflows

  • 1 installs
  • 84 repo stars
  • Updated August 4, 2026
  • aws-samples/review-and-assessment-powered-by-intelligent-documentation

modify-cdk-workflows is an AWS CDK skill that guides changes to the ReviewProcessor and ChecklistProcessor Step Functions workflows in the RAPID application.

About

This skill walks an agent through modifying AWS CDK Step Functions workflows in the RAPID intelligent-documentation application. It covers adding or removing workflow steps, adjusting Map State concurrency, adding retry logic and error catches, defining CDK parameters, and changing timeouts. A developer uses it when changing the review or checklist processing pipelines defined in TypeScript CDK constructs. It ends with a cdk synth verification step and success criteria.

  • Guides edits to two AWS CDK Step Functions workflows (ReviewProcessor, ChecklistProcessor) in the RAPID app
  • Covers Map State concurrency, retry/backoff, error catches, and timeout tuning
  • Includes a quick-reference table mapping each modification to its file and search string

Modify Cdk Workflows by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #933 of 1,039 Cloud & Infrastructure skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

modify-cdk-workflows capabilities & compatibility

Capabilities
infrastructure as code · workflow orchestration · step functions editing
Works with
aws
Use cases
devops · api development
From the docs

What modify-cdk-workflows says it does

Modify CDK Step Functions workflows (ReviewProcessor and ChecklistProcessor) for the RAPID application
SKILL.md
Config: `maxConcurrency` default 1, timeout 2 hours
SKILL.md
npx skills add https://github.com/aws-samples/review-and-assessment-powered-by-intelligent-documentation --skill modify-cdk-workflows

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
repo stars84
Last updatedAugust 4, 2026
Repositoryaws-samples/review-and-assessment-powered-by-intelligent-documentation

What it does

Modify AWS CDK Step Functions review and checklist workflows including concurrency, retries, and timeouts.

Who is it for?

Changing step sequences, concurrency, retries, or timeouts in RAPID's CDK Step Functions workflows.

When should I use this skill?

When changing workflow step sequences, adjusting concurrency, modifying retry logic, or adding/removing workflow steps.

By the numbers

  • ReviewProcessor is a 3-step workflow
  • ChecklistProcessor is a 5-step workflow

Files

SKILL.mdMarkdownGitHub ↗

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

1. Prepare Review - Fetch checklist items 2. Process All Items (Map State) - Parallel: pre-process -> AgentCore -> post-process 3. Finalize Review - Aggregate results

Config: maxConcurrency default 1, timeout 2 hours

ChecklistProcessor Flow

1. Process Document - File format detection, page extraction 2. Process All Pages Inline (Map State) - Parallel page processing 3. Aggregate Results - Combine page results 4. Store to Database - Persist findings 5. 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

1. Define in parameter-schema.ts: reviewMapConcurrency: z.number().int().min(1).optional() 2. Pass to construct in rapid-stack.ts 3. 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

ModificationLocationSearch For
Review workflow stepsreview-processor.tsdefinitionBody.fromChainable
Checklist workflow stepschecklist-processor.tsdefinitionBody.fromChainable
Map State concurrencyBoth processor filesnew sfn.Map
Retry logicTask definitions.addRetry
Error handlingTask definitions.addCatch
Parametersparameter-schema.tsz.number(), z.boolean()

Verification

cd cdk && npx cdk synth

After verification, deploy with /deploy-cdk-stack.

Success Criteria

  • cdk synth completes without errors
  • No circular dependencies
  • All tasks have proper error handling
  • Concurrency and timeout settings are appropriate

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.