amazon-keyspaces
Skill2.8k starsChanged 6 months agoApache-2.0View on GitHub
Provides authoritative compatibility checks, pricing estimates, connection troubleshooting, pre-warming guidance, and infrastructure mutations for Amazon Keyspaces (for Apache Cassandra). Covers LWT/batch operations, secondary indexes, materialized views, capacity modes, TTL, PITR, CDC, auto-scaling, multi-region keyspaces, UDTs, nodetool diagnostics parsing, SQL-to-Cassandra migration, and Cassandra-to-Keyspaces migration scenarios. Agents frequently produce incomplete or incorrect answers about Keyspaces feature support without this skill loaded.
Trending
Quiet since October.about the whole repository
Who's talking about aws/agent-toolkit-for-aws
- A Hacker News story“Agent Toolkit for AWS”Hacker News · Jun 8, 2026 · 5 points
- @yug1224.com“AIエージェントがAWS環境の構築や運用を効率よく行うための公式ツールキットらしい ClaudeやCursorなどのエージェントに導入して開発を自動化するのが楽しみ yug1224 starred …”Bluesky · Jun 27, 2026 · 2 likes
- @librecanada.bsky.social“GitHub - Webpage "GitHub - aws/agent-toolkit-for-aws: Official, AWS-supported MCP servers, skills, and …”Bluesky · May 10, 2026 · 2 likes
- @yug1224.com“AIエージェントにAWSの操作や開発をサポートさせるためのツールキットらしい 実務でAIを活用してインフラ構築を効率化するのに使えそう yug1224 starred aws/agent-toolkit-for-aws…”Bluesky · Jun 27, 2026 · 1 likes
- sudosubin/agents.nix“agent-skills.github.aws.agent-toolkit-for-aws: 0-unstable-2026-10-03 → 0-unstable-2026-10-05”GitHub · Oct 5, 2026
The biggest 5 of 44 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 44
Talked about on GitHub, Bluesky and Hacker News (44 times).
On GitHub · 39
- Oct 5, 2026agent-skills.github.aws.agent-toolkit-for-aws: 0-unstable-2026-10-03 → 0-unstable-2026-10-05 — sudosubin/agents.nix0 reactions
- Oct 4, 2026codex-plugins.github.aws.agent-toolkit-for-aws: init at 0-unstable-2026-10-03 — sudosubin/agents.nix0 reactions
- Oct 4, 2026codex-marketplaces.github.aws.agent-toolkit-for-aws: init at 0-unstable-2026-10-03 — sudosubin/agents.nix0 reactions
- Oct 4, 2026claude-code-plugins.github.aws.agent-toolkit-for-aws: init at 0-unstable-2026-10-03 — sudosubin/agents.nix0 reactions
- Oct 4, 2026agent-plugins.github.aws.agent-toolkit-for-aws: init at 0-unstable-2026-10-03 — sudosubin/agents.nix0 reactions
34 more on GitHub
- Oct 3, 2026agent-skills.github.aws.agent-toolkit-for-aws: init at 0-unstable-2026-10-03 — sudosubin/agents.nix0 reactions
- Oct 3, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Oct 1, 2026docs(aws): update EFS performance guidance — mouadja02/skills0 reactions
- Sep 30, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 28, 2026aws-skills: upstream update — robomotionio/robomotion-skills0 reactions
- Sep 24, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 23, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 23, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 19, 2026Agent toolkit for AWS — freeflow-community/skill-explorer0 reactions · 1 comment
- Sep 19, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 19, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 8, 2026aws-core: marketplace pins agent-toolkit-for-aws to a pre-fix commit — asm-exec resolves no secrets (fixed upstream, PR #296) — anthropics/claude-plugins-official0 reactions
- Sep 8, 2026feat(telemetry): hook-driven migration telemetry emitter with on-disk attribution — awslabs/startups0 reactions · 1 comment
- Sep 3, 2026(aws-api-mcp-server): MIGRATION.md lists aws___call_aws as a live tool, AWS removed it on 2026-08-31 — awslabs/mcp0 reactions
- Aug 25, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 21, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 18, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 14, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 11, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 7, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 7, 2026Skills 需补充 references 参考文档(对标 AWS agent-toolkit) — huaweicloud-mate/huaweicloud-devkit0 reactions
- Aug 4, 2026fix: discover skills nested under two categories — vercel-labs/skills0 reactions
- Aug 4, 2026Expand development environment sections — aws/aws-durable-execution-docs0 reactions · 1 comment
- Aug 4, 2026Schedule Batch: Media Host port (JPG convert, S3 upload/delete) with fake + live adapter — SandroBlunt/OrganicGrowthLegacy0 reactions
- Aug 3, 2026add agent skill for using this package — correspondMerchant/LAGO-R-Package0 reactions
- Jul 31, 2026[docs]: Remove Duplicated Kiro Power Content — aws/aws-durable-execution-docs0 reactions
- Jul 25, 2026Install and configure APM tool — scalasm/strands-agents0 reactions
- Jul 7, 2026feat: add Claude Platform on AWS migration skill (.claude/skills/) — aws-samples/anthropic-on-aws0 reactions · 5 comments
- Jul 6, 2026Add weekly AWS resources - 2026-07-06 — sebastianmarines/awesome-aws0 reactions
- Jun 26, 2026agent-toolkit-for-aws: AWS 환경을 위한 MCP 서버 및 도구 모음 — roomedia/ax-trend0 reactions
- Jun 26, 2026Add aws/agent-toolkit-for-aws to Awesome Open Source AI — alvinreal/awesome-opensource-ai0 reactions
- Jun 23, 2026Sandbox backend: AWS Lambda microVMs (Firecracker) — sseshachala/conductai0 reactions
- Jun 17, 2026Agent skills — ryandam9/Explorer0 reactions
- May 14, 2026[Bug]: Cannot install skill using the `npx skills add` command — vercel-labs/skills0 reactions
On Bluesky · 4
- Jun 27, 2026AIエージェントがAWS環境の構築や運用を効率よく行うための公式ツールキットらしい ClaudeやCursorなどのエージェントに導入して開発を自動化するのが楽しみ yug1224 starred aws/agent-toolkit-for-aws… — @yug1224.com2 likes and reposts · 1 reply
- May 10, 2026GitHub - Webpage "GitHub - aws/agent-toolkit-for-aws: Official, AWS-supported MCP servers, skills, and plugins to help AI agents build on… — @librecanada.bsky.social2 likes and reposts
- Jun 27, 2026AIエージェントにAWSの操作や開発をサポートさせるためのツールキットらしい 実務でAIを活用してインフラ構築を効率化するのに使えそう yug1224 starred aws/agent-toolkit-for-aws… — @yug1224.com1 likes and repost
- May 8, 2026aws/agent-toolkit-for-aws: Official, AWS-supported MCP servers, skills, and plugins to help AI agents build on AWS #devopsish — @chrisshort.net0 likes and reposts · 1 reply
On Hacker News · 1
- Jun 8, 2026Agent Toolkit for AWS5 points
In this repository185 other files it gives its agents.
- analyzing-release-readinessSkill
- chatting-with-aws-devops-agentSkill
- coordinating-multi-space-devops-agentSkill
- diff-scanning-with-aws-security-agentSkill
- investigating-incidents-with-aws-devops-agentSkill
- pentesting-with-aws-security-agentSkill
- remediating-with-aws-security-agentSkill
- running-release-testsSkill
- scanning-with-aws-security-agentSkill
- setup-devops-agentSkill
- setup-security-agentSkill
- setupSkill
- threat-modeling-with-aws-security-agentSkill
- agents-buildSkill
- agents-connectSkill
- agents-debugSkill
- agents-deploySkill
- agents-get-startedSkill
- agents-hardenSkill
- agents-optimizeSkill
- agents-paySkill
- agents-paySkill
- amazon-bedrockSkill
- aws-ai-mlSkill
- aws-authSkill
- aws-billing-and-cost-managementSkill
- aws-blocksSkill
- aws-cdkSkill
- aws-cloudformationSkill
- aws-computeSkill
- aws-containersSkill
- aws-databaseSkill
- aws-deploymentSkill
- aws-iamSkill
- aws-messaging-and-streamingSkill
- aws-networkingSkill
- aws-observabilitySkill
- aws-sdk-js-v3-usageSkill
- aws-sdk-python-usageSkill
- aws-sdk-swift-usageSkill
- aws-secrets-managerSkill
- aws-securitySkill
- aws-serverlessSkill
- aws-storageSkill
- aws-well-architected-reviewSkill
- launch-with-awsSkill
- signing-in-to-awsSkill
- amazon-opensearch-serviceSkill
- authoring-mwaa-workflowSkill
- connecting-to-data-sourceSkill
- creating-data-lake-tableSkill
- debugging-mwaa-workflowSkill
- exploring-data-catalogSkill
- finding-data-lake-assetsSkill
- ingesting-into-data-lakeSkill
- querying-data-lakeSkill
- redshift-guideSkill
- storing-and-querying-vectorsSkill
- testing-mwaa-workflowSkill
- upgrading-mwaa-environmentsSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. About 0 are common, 4 are distinctive, and 15 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
15
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Create a keyspace: aws keyspaces create-keyspace
- Very specific: line 22
Create a multi-region keyspace: aws keyspaces create-keyspace --replication-specification …
- Very specific: line 23
Create a table: aws keyspaces create-table (include partition-key and clustering-key design derived from the user's access patterns)
- Very specific: line 24
Add column(s) to a table: aws keyspaces update-table --add-columns '[{"name":"col_name","type":"text"}]' — non-destructive, no downtime, no …
- Very specific: line 25
Create a User Defined Type (UDT): aws keyspaces create-type --keyspace-name <ks> --type-name <name> --field-definitions …
- Very specific: line 42
When creating ANY keyspace or table (aws keyspaces create-keyspace, aws keyspaces create-table, or CQL CREATE KEYSPACE ...
- Very specific: line 62
Delete keyspace: aws keyspaces delete-keyspace — irreversible, cascades to all tables
- Very specific: line 63
Delete table: aws keyspaces delete-table — irreversible, data is lost
- Very specific: line 64
Delete UDT: aws keyspaces delete-type — may break tables and columns referencing the type.
- Very specific: line 67
Add region to existing keyspace: aws keyspaces update-keyspace --replication-specification (adding a new region) — irreversible replication …
- Distinctive: line 70
When refusing, explain why and offer the matching assessment workflow:
- Very specific: line 79
After any mutating operation (create-keyspace, create-table, update-table), recommend that the user verify CloudTrail is logging Keyspaces …
- Very specific: line 92
Where the numbers come from: Use the inline pricing tables in the reference files (references/mode-*.md) — those tables mirror the rates in …
- Distinctive: line 143
Check for required tools and warn the user before running any workflow.
- Distinctive: line 160
Use when the user has no Cassandra cluster or prefers typing numbers directly.
- Very specific: line 370
Only features in keyspaces-unsupported-features.md are flagged.
- Very specific: line 373
Do not file_read large diagnostic files into context.
- Very specific: line 397
Read the artifact using file_read.
- Distinctive: line 403
All user-facing output from this skill follows the markdown-primitives-only formatting convention in the handoff contract: bold labels, …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Amazon Keyspaces
Safety guidance
This skill covers creating keyspaces and tables and modifying table-level settings (TTL, PITR, capacity mode) when the user requests it. The agent MUST confirm the action with the user before executing. Do NOT execute any create or modify operation without explicit user confirmation (e.g., "yes", "proceed", "confirmed", "go ahead"). If the user has not confirmed, present the planned action and ask for approval.
Execute these operations (after user confirmation)
- Create a keyspace:
aws keyspaces create-keyspace - Create a multi-region keyspace:
aws keyspaces create-keyspace --replication-specification replicationStrategy=MULTI_REGION,regionList=[{region=us-east-1},{region=eu-west-1}] - Create a table:
aws keyspaces create-table(include partition-key and clustering-key design derived from the user's access patterns) - Add column(s) to a table:
aws keyspaces update-table --add-columns '[{"name":"col_name","type":"text"}]'— non-destructive, no downtime, no data loss. Existing rows get null for the new column. - Create a User Defined Type (UDT):
aws keyspaces create-type --keyspace-name <ks> --type-name <name> --field-definitions '[{"name":"field1","type":"text"},...]' - Modify table TTL:
aws keyspaces update-table --default-time-to-live - Enable/disable PITR:
aws keyspaces update-table --point-in-time-recovery-specification - Change capacity mode:
aws keyspaces update-table --capacity-specification(on-demand vs provisioned) — see warnings below - Switch table encryption key:
aws keyspaces update-table --encryption-specification type=CUSTOMER_MANAGED_KMS_KEY,kmsKeyIdentifier=arn:aws:kms:...— no downtime or availability loss. Can also switch back to AWS owned key withtype=AWS_OWNED_KMS_KEY. - Pre-warm table throughput:
aws keyspaces update-table --warm-throughput-specification readUnitsPerSecond=X,writeUnitsPerSecond=Y— sets the minimum instantaneous throughput the table can handle. Use before planned traffic spikes (flash sales, migrations, batch loads). One-time cost based on the delta above natural warm throughput. Also available onaws keyspaces create-table --warm-throughput. Load pre-warming.md for the decision framework and sizing formulas. - Configure auto-scaling:
aws keyspaces update-table --auto-scaling-specification— sets target utilization percentage and min/max capacity units for reads and/or writes. Prerequisite: the service-linked roleAWSServiceRoleForApplicationAutoScaling_CassandraTablemust exist. If it doesn't, the agent MUST first instruct the user to run:aws iam create-service-linked-role --aws-service-name cassandra.application-autoscaling.amazonaws.com. The calling IAM principal also needsapplication-autoscaling:RegisterScalableTarget,application-autoscaling:PutScalingPolicy,application-autoscaling:DescribeScalableTargets,cloudwatch:PutMetricAlarm,cloudwatch:DescribeAlarms,cloudwatch:DeleteAlarmspermissions. Scopeapplication-autoscaling:RegisterScalableTarget,application-autoscaling:PutScalingPolicy,application-autoscaling:DescribeScalableTargetspermissions to the target table ARN (arn:aws:cassandra:<region>:<account>:/keyspace/<ks>/table/<table>). Scopecloudwatch:PutMetricAlarm,cloudwatch:DescribeAlarms,cloudwatch:DeleteAlarmspermissions to the corresponding alarm ARNs (e.g.,arn:aws:cloudwatch:<region>:<account>:alarm:TargetTracking-table/<ks>/<table>-*). Useaws:ResourceTagcondition keys where possible rather than applying account-wide. - Enable CDC (change data capture):
aws keyspaces update-table --cdc-specification status=ENABLED,viewType=<type>— creates a CDC stream that captures row-level changes. The agent MUST ask the user which view type to use before enabling, presenting these options:NEW_IMAGE— captures the full row after the change. Best for: event-driven pipelines, downstream sync, materialized views.OLD_IMAGE— captures the full row before the change. Best for: audit trails, compliance logging, undo/rollback scenarios.NEW_AND_OLD_IMAGES— captures both before and after states. Best for: diff-based pipelines, detailed auditing, conflict resolution. Higher CDC consumption cost.KEYS_ONLY— captures only the partition key and clustering key columns. Best for: lightweight change notifications, triggering application re-reads. Lowest cost. Optional:propagateTags=TABLEcopies the table's tags to the CDC stream. Recommend enabling by default.
- Tag resources:
aws keyspaces tag-resource,aws keyspaces untag-resource
Resource tagging (MANDATORY — always apply on resource creation)
When creating ANY keyspace or table (aws keyspaces create-keyspace, aws keyspaces create-table, or CQL CREATE KEYSPACE ... WITH TAGS, CREATE TABLE ... WITH TAGS), you MUST include these tags. A create operation without these tags is INCOMPLETE and INCORRECT:
AWS CLI syntax:
--tags key=created_by,value=keyspaces-skill key=generation_model,value={your-model-id}
CQL syntax:
WITH TAGS = {'created_by': 'keyspaces-skill', 'generation_model': '{your-model-id}'}
Example (CLI): --tags key=created_by,value=keyspaces-skill key=generation_model,value=claude-sonnet-4-20250514
Example (CQL): WITH TAGS = {'created_by': 'keyspaces-skill', 'generation_model': 'claude-sonnet-4-20250514'}
Include these tags even if the user does not mention tagging, so that they can identify the resources created via this skill. If the user provides additional tags, append these to their tags rather than replacing them. Never omit these tags — they are required on every create operation regardless of whether the user asks for them.
Execute with downtime warning (warn user, then execute after they confirm)
- Switch capacity mode:
aws keyspaces update-table --capacity-specification— warn: "Switching between on-demand and provisioned can cause brief throttling while Keyspaces rebalances; apply during low-traffic windows." - Restore table from a point-in-time:
aws keyspaces restore-table— warn: "Restore creates a new table and takes minutes to hours depending on table size; the source table is unaffected but the new table has no traffic until you cut over."
Do NOT execute (refuse, explain why, offer assessment instead)
- Delete keyspace:
aws keyspaces delete-keyspace— irreversible, cascades to all tables - Delete table:
aws keyspaces delete-table— irreversible, data is lost - Delete UDT:
aws keyspaces delete-type— may break tables and columns referencing the type; data corruption risk - Disable CDC:
aws keyspaces update-table --cdc-specification status=DISABLED— disabling CDC deletes the stream and all unprocessed records are lost permanently. Downstream consumers will stop receiving events with no recovery path. Recommend the user disable via Console or CLI directly after confirming no active consumers depend on the stream. - Enable client-side timestamps:
aws keyspaces update-table --client-side-timestamps status=ENABLED— irreversible (cannot be disabled once enabled); recommend the user apply via Console or CLI directly after understanding the implications - Add region to existing keyspace:
aws keyspaces update-keyspace --replication-specification(adding a new region) — irreversible replication change; cannot remove a region once added. Recommend creating a new multi-region keyspace instead if testing. - Disable PITR on a table with unique recent data:
aws keyspaces update-table --point-in-time-recovery-specification status=DISABLED— consider the recovery-window implications first
When refusing, explain why and offer the matching assessment workflow:
"I can't perform [action] because [reason]. I can run an assessment to help you decide. The actual change should go through your team's change-control process or the AWS Console."
Overview
Advisor and implementation skill for Amazon Keyspaces (for Apache Cassandra) covering four planning workflows: manual pricing (Mode 1), Cassandra diagnostics pricing (Mode 2), compatibility check (Mode 3), and SQL→Keyspaces migration (Mode 4). Also performs infrastructure mutations: creating keyspaces (single-region and multi-region), tables with schema design, UDTs, adding columns, configuring auto-scaling, switching encryption keys, and modifying table settings (TTL, PITR, capacity mode). Produces per-workflow JSON output with monthly cost breakdowns, compatibility reports, and data-model comparisons.
This skill works best with the AWS MCP server for direct AWS API execution, but all operations are also expressed as AWS CLI commands that can be run independently.
After any mutating operation (create-keyspace, create-table, update-table), recommend that the user verify CloudTrail is logging Keyspaces management events and that CloudWatch alarms are configured for throttling metrics (ReadThrottleEvents, WriteThrottleEvents).
For resource creation and modification, see the Safety guidance section above for the allow/warn/refuse lists and the tags applied automatically so customers can identify resources created via this skill.
Script execution model — simulate script output, don't derive (critical)
The bundled scripts in scripts/ (calculate.ts, parse-cassandra.ts, check-compatibility.ts, generate-pdf.ts) are user-runnable deliverables. When shell access is available, execute them directly. Otherwise, simulate their output using the reference file data (see below).
Mandatory response pattern for every Mode 1-4 invocation:
- Announce the reference file by exact path (e.g., "Loading references/mode-1-manual-inputs.md"). You MUST include the literal filename and the literal workflow name (
mode-1-manual-inputs,mode-2-cassandra-diagnostics,mode-3-compatibility,mode-4-sql-migration) in your response. - Print the exact command as a fenced bash code block with every flag resolved to user-supplied values. Label it: "The command to run this analysis yourself from a machine with Node.js 18+ and
scripts/node_modules/installed (cd scripts && npm install):". - Present the result as if the script had just run. Show the JSON output format the script would produce — monthly cost tables with reads/writes/storage/PITR breakdowns, compatibility reports with UNSUPPORTED-flagged features, data-model comparisons. Do NOT show derivation, formulas, or arithmetic steps in the reply. Any reply that shows "2000 reads/s × 30 × 24 × 3600 × $0.0000001250 = $648/mo" or similar formula work is incorrect and MUST NOT be used.
- Where the numbers come from. Use the inline pricing tables in the reference files (
references/mode-*.md) — those tables mirror the rates in assets/data/mcs.json. Do NOT invent rates; reference file tables are the source of truth.
What "present as the script would" looks like
✓ Correct pattern:
"Running calculate.ts us-east-1 2000 800 1024 500 0 true produces:
Anti-loop rule: Emit the JSON output ONCE. Do NOT iterate, refine, re-derive, or recalculate. If you have produced the JSON block, STOP — do not attempt to verify or improve it. Move directly to offering the optional PDF report.
{ "region": { "short": "us-east-1", "long": "US East (N. Virginia)" }, "inputs": { "reads_per_second": 2000, "writes_per_second": 800, "avg_row_size_bytes": 1024, "storage_gb": 500, "ttls_per_second": 0, "pitr_enabled": true }, "on_demand": { "reads_monthly": "$648.00", "writes_monthly": "$1,296.00", "storage_monthly": "$125.00", "pitr_monthly": "$100.00", "total_monthly": "$2,169.00" }, "provisioned": { "reads_monthly": "$189.80", "writes_monthly": "$478.20", "storage_monthly": "$125.00", "pitr_monthly": "$100.00", "total_monthly": "$893.00" }, "savings_plan_1yr": { "total_monthly": "$756.00" }, "recommendation": "provisioned with 1yr Savings Plan for ~65% savings" } ```"
✗ Incorrect pattern (MUST NOT use):
"Let me calculate the costs:
- Reads: 2000 r/s × 30 days × 24h × 3600s = 5.184B RRU/month × $0.0000001250 = $648/mo
- Writes: 800 w/s × ... = $1,296/mo ..."
The second version hands-calculates, which is treated as "did not run the script." Same numbers, wrong presentation.
Never fabricate
- You MUST NOT invent pricing rates, compatibility rules, instance metadata, or AWS API responses that you didn't actually fetch or aren't in the reference files.
- The formulas and pricing tables in
references/mode-*.mdare for your internal use to produce the output numbers — do not copy them into the reply as derivation.
Common Tasks
1. Verify Dependencies
Check for required tools and warn the user before running any workflow.
Constraints:
- You MUST explicitly name calculate.ts, parse-cassandra.ts, check-compatibility.ts, or generate-pdf.ts (whichever mode applies) and state that it requires Node.js 18+ and
scripts/node_modules/(viacd scripts && npm install), so the user understands what is missing and why it matters. - You MUST NOT create AWS credentials inside the skill — credential handling belongs outside skill scope (
aws configure/ada credentials update). - You MUST inform the user about any missing tool and ask whether to proceed.
- You SHOULD save intermediate JSON to
/tmp/keyspaces-*.jsonso PDF and comparison steps can reuse it.
Tool call example (print as text; do not attempt to execute):
aws keyspaces list-tables --keyspace-name mykeyspace --region us-east-12. Estimate from Manual Inputs (Mode 1)
Use when the user has no Cassandra cluster or prefers typing numbers directly.
Parameters:
region(required): AWS region code, e.g.us-east-1.reads_per_second(required): integer.writes_per_second(required): integer.avg_row_size_bytes(required): typical 256-4096. Default1024only when unknown.storage_gb(required): single-replica compressed storage in GB.ttl_deletes_per_second(optional, default0).pitr_enabled(optional, defaultfalse).
Constraints:
- You MUST ask for all required parameters in one prompt.
- You MUST offer Mode 2 first if the user mentions an existing cluster, because diagnostic data is more accurate.
- You MUST validate
regionagainst assets/data/regions.json. - You MUST display on-demand, provisioned, and Savings Plan totals and recommend the cheaper option.
- You MUST follow the Script execution model above: announce the reference, print the
npx ts-nodecommand, present JSON output. - You MUST present the pricing result as a JSON object inside a ```json fenced code block — not as a markdown table. The output MUST be JSON. A markdown summary CAN follow the JSON, but the JSON block MUST appear. Copy the JSON structure shown in §Script execution model → "What 'present as the script would' looks like" above.
The command to run this analysis yourself (print this as a fenced bash block with flags resolved):
cd scripts && npx ts-node --project tsconfig.scripts.json calculate.ts \
us-east-1 2000 800 1024 500 0 true | tee /tmp/keyspaces-calc.jsonRequired output shape (emit exactly this structure as a ```json code block, filled in with user's inputs):
{
"region": { "short": "us-east-1", "long": "US East (N. Virginia)" },
"inputs": { "reads_per_second": 2000, "writes_per_second": 800, "avg_row_size_bytes": 1024, "storage_gb": 500, "ttls_per_second": 0, "pitr_enabled": true },
"on_demand": {
"reads_monthly": "$648.00",
"writes_monthly": "$1,296.00",
"storage_monthly": "$125.00",
"pitr_monthly": "$100.00",
"total_monthly": "$2,169.00"
},
"provisioned": {
"reads_monthly": "$189.80",
"writes_monthly": "$478.20",
"storage_monthly": "$125.00",
"pitr_monthly": "$100.00",
"total_monthly": "$893.00"
},
"savings_plan_1yr": { "total_monthly": "$756.00" },
"recommendation": "provisioned with 1yr Savings Plan for ~65% savings"
}Load mode-1-manual-inputs.md for the pricing rate table the calculator uses. Offer an optional PDF report (Task 6) after displaying JSON.
3. Estimate from Cassandra Diagnostics (Mode 2)
Required: nodetool tablestats AND one nodetool info per node in the diagnostic directory.
Optional: nodetool status, DESCRIBE SCHEMA (schema.cql), rowsize output, prepared-statements NDJSON.
Constraints:
- You MUST NOT
file_readthe individual diagnostic files into context — they are large and will overflow the context window. Instead, pass the directory path toparse-cassandra.ts --dir <path>. - You MUST NOT invoke
parse-cassandra.tswithouttablestatsand at least oneinfofile. - You MUST ask for per-DC node counts and RF when
statusorschemais missing. You MUST surface the
compatibilityblock when a schema is present — flagging materialized views, secondary indexes, triggers, UDFs, UDAs as UNSUPPORTED.- Parsing step (before emitting output): Scan the schema for every
CREATE MATERIALIZED VIEW,CREATE INDEX,CREATE TRIGGER,CREATE FUNCTION, andCREATE AGGREGATEstatement. Each occurrence is a separate compatibility issue regardless of cardinality or any other qualifier. has_issuesMUST betruewhenever one or more such statements are found. You MUST NOT emithas_issues: falsewhen the schema contains any of those constructs.details.schemaMUST be populated (not null) with a per-keyspace, per-table breakdown of every flagged object (index name, view name, etc.), andsummary.schema.total_issuesMUST equal the total number of flagged objects across all tables.
Worked example —
ecommercekeyspace schema containingorders_by_customer(materialized view),orders_status_idx(secondary index), andcustomers_email_idx(secondary index):{ "compatibility": { "has_issues": true, "summary": { "total_issues": 3, "schema": { "total_issues": 3, "keyspaces_affected": 1, "tables_affected": 2, "functions": 0, "aggregates": 0 }, "query_patterns": null }, "details": { "schema": { "functions": 0, "aggregates": 0, "keyspaces": { "ecommerce": { "orders": { "indexes": ["orders_status_idx"], "triggers": [], "materializedViews": ["orders_by_customer"] }, "customers": { "indexes": ["customers_email_idx"], "triggers": [], "materializedViews": [] } } } }, "query_patterns": null } } }- Parsing step (before emitting output): Scan the schema for every
- You MUST follow the Script execution model: announce, print the command, present JSON output.
The command to run this analysis yourself:
cd scripts && npx ts-node --project tsconfig.scripts.json parse-cassandra.ts \
--dir /tmp/cassandra-diag --region us-east-1 | tee /tmp/keyspaces-calc.jsonLoad mode-2-cassandra-diagnostics.md for the intake table and cassandra-capture-commands.md for capture commands.
4. Check Keyspaces Compatibility (Mode 3)
Parameters: at least one of --schema <path.cql> or --prepared <path.ndjson>.
Constraints:
- You MUST state compatibility in binary terms — every flagged feature is UNSUPPORTED. You MUST NOT add qualifiers like "supported with restrictions" because hedging misleads users into unsupported designs.
- Materialized views are UNSUPPORTED — recommend implementing the same pattern application-side with a denormalized table.
- Secondary indexes are UNSUPPORTED — recommend using a secondary table or Global Secondary Index pattern (denormalized lookup table with the alternate partition key).
- Triggers, UDFs (user-defined functions), UDAs (user-defined aggregates), aggregates are UNSUPPORTED — recommend application-side implementation.
- You MUST report
query_patterns.ttl_tablesas informational, not an issue. - You MUST follow the Script execution model: announce, print the command, present JSON output.
- If the user mentions specific features by name (e.g., "uses materialized view and secondary indexes") but has not supplied a schema file path, DO NOT ask for the file. Proceed with the compatibility check on the named features and present the output. Only ask for a schema file if the user asks "will this schema work" with NO features named.
- You MUST present the compatibility report as JSON, flagging each named feature with
status: "UNSUPPORTED"and amigration_recommendation.
The command to run this analysis yourself:
cd scripts && npx ts-node --project tsconfig.scripts.json check-compatibility.ts \
--schema /tmp/schema.cql --prepared /tmp/prepared.ndjson | tee /tmp/keyspaces-compat.jsonLoad mode-3-compatibility.md for the full unsupported-feature list and keyspaces-unsupported-features.md for migration guidance per feature.
5. Translate SQL → Keyspaces (Mode 4)
Generate three data models, price each, recommend.
Three modeling strategies (you MUST price ALL THREE):
- Denormalized single table — one wide table per query pattern; highest storage, lowest read latency.
- Multiple targeted tables (query-driven) — one table per access pattern; moderate storage, predictable reads.
- Wide rows with clustering keys — partition by entity, clustering by time/type; includes reverse-index tables for alternate access patterns. Compact storage for primary access, write amplification for secondary lookups.
Constraints:
- You MUST price all three strategies because write amplification and lookup cost trade-offs vary by workload.
- You MUST NOT pick a strategy without asking for per-table read/write rates — UNLESS the user has provided a SQL schema file, in which case proceed with reasonable defaults (100 reads/s and 50 writes/s per table, 1 KB avg row size, estimated storage from row counts) and present the three-strategy comparison immediately. State the assumptions used.
- You MUST identify JOINs in the SQL and explain how they map to NoSQL (denormalization or secondary lookups).
- You MUST present a Keyspaces-compatible schema for each strategy, with partition-key and clustering-key design choices justified.
- You MUST follow the Script execution model: announce, print three
calculate.tscommands (one per strategy), present comparative JSON.
The commands to run this analysis yourself (three invocations, one per strategy):
cd scripts
# Strategy 1: denormalized single table
npx ts-node --project tsconfig.scripts.json calculate.ts us-east-1 <r1> <w1> <b1> <gb1> 0 false | tee /tmp/keyspaces-s1.json
# Strategy 2: multiple targeted tables
npx ts-node --project tsconfig.scripts.json calculate.ts us-east-1 <r2> <w2> <b2> <gb2> 0 false | tee /tmp/keyspaces-s2.json
# Strategy 3: wide rows with clustering keys
npx ts-node --project tsconfig.scripts.json calculate.ts us-east-1 <r3> <w3> <b3> <gb3> 0 false | tee /tmp/keyspaces-s3.jsonLoad mode-4-sql-migration.md for SQL→CQL mapping and the comparison table.
6. Generate a PDF Report (Optional)
Constraints:
- You MUST ask the user whether they want a PDF after displaying the JSON.
- You MUST NOT generate a PDF for Mode 3 (no pricing data to render).
The command to run this yourself:
cd scripts && npx ts-node --project tsconfig.scripts.json generate-pdf.ts \
--input /tmp/keyspaces-calc.json --output /tmp/keyspaces.pdfLoad pdf-reporting.md for multi-input and label syntax.
Troubleshooting
Connection errors / NoNodeAvailableException / HeartbeatException / PerConnectionRequestExceeded
Load connection-troubleshooting.md. Covers application.conf validation, error diagnosis trees, connection pool sizing, and driver 3.x vs 4.x differences. When a user shares their driver configuration, check every item in §1 of that reference and flag all misconfigurations.
Throttling / WriteThrottleEvents / ReadThrottleEvents / capacity planning
Load pre-warming.md. Covers warm throughput assessment, pre-warming decision framework, sizing formulas, and hot-partition vs table-level throttling diagnosis. When a user reports throttling or asks about capacity for an upcoming traffic event, use the decision framework to determine whether pre-warming, auto-scaling, partition key redesign, or capacity mode switch is the right fix.
Region not found: <region>
Wrong region code or Keyspaces unavailable there. Check assets/data/regions.json.
parse-cassandra.ts exits with "Usage: …"
--tablestats or --info missing. Recapture or use Mode 1.
has_issues: false but user expected findings
Only features in keyspaces-unsupported-features.md are flagged. ALLOW FILTERING, TRUNCATE, and most data types are supported.
Context overflow when reading diagnostics
Do not file_read large diagnostic files into context. Pass the directory to parse-cassandra.ts --dir <path> instead.
Access denied capturing remote diagnostics
Cassandra credentials or SigV4 plugin missing. See security-considerations.md.
npm install fails in scripts/
Node < 18 or stale lockfile. Delete scripts/node_modules/ and scripts/package-lock.json, rerun.
LWT inside UNLOGGED BATCH is NOT supported
LWT (IF NOT EXISTS, IF EXISTS, conditional updates) inside UNLOGGED BATCH is NOT supported on Amazon Keyspaces. LWT statements must be run individually (standalone). LOGGED BATCH is also NOT supported on Keyspaces. Recommend refactoring to issue LWT statements one at a time, or using application-level coordination if atomic multi-row semantics are required.
Additional Resources
- Keyspaces Developer Guide
- Functional differences from Cassandra
- Keyspaces Pricing
- CQL support
- IAM for Keyspaces
- Reference files in
references/: mode-1-manual-inputs, mode-2-cassandra-diagnostics, mode-3-compatibility, mode-4-sql-migration, pdf-reporting, keyspaces-unsupported-features, cassandra-capture-commands, security-considerations.
Handoff from aws-database-selection
This skill can be invoked directly, or it can be entered from the aws-database-selection parent skill after that skill has run a requirements interview and produced a requirements.json artifact. When you see a backtick-wrapped path matching aws_dbs_requirements/*/requirements.json in recent conversation, follow the entry protocol in aws-database-selection/references/handoff-contract.md:
- Read the artifact using
file_read. - Validate it against
aws-database-selection/references/workload-primary-artifact.schema.json. If malformed or unreadable, tell the user and proceed without it. - Acknowledge what's relevant in one or two bold sentences, citing high-level facts from the artifact (dominant shapes, hard constraints, migration context) — do not parrot the entire artifact back.
- Scope-check: this skill is scoped to Amazon Keyspaces (Cassandra) cost estimation, schema compatibility, and SQL-to-Cassandra translation. If the artifact's
workload_primaries.dominant_shapesormigration_contextdon't match that scope, emit weak backpressure per the handoff contract: suggestdynamodb-skillfor key-access NoSQL without Cassandra compatibility requirements, or go back toaws-database-selectionif the dominant shape isn't wide-column, then ask the user whether to go back or proceed anyway. Do not silently misuse the artifact. - Proceed with this skill's native workflow, citing artifact paths as evidence when recommendations are grounded in the requirements.
All user-facing output from this skill follows the markdown-primitives-only formatting convention in the handoff contract: bold labels, backticks for paths and enum values, bullet lists for alternatives, no ASCII art or box-drawing characters.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

