跳到正文
cccskills
免费在 GitHub 公开

troubleshoot

Troubleshoots common issues. Covers CDK deploy failures, Docker build errors, Lambda agent issues, test failures, and OpenClaw compatibility. Use when encountering errors during development or deployment.

中文简介正在准备中。当前显示原文说明。

serithemage/serverless-openclaw星标 196(GitHub 196 + cccskills 0)
集成工具AWSDocker

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md6.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Troubleshooting

Problem to investigate: $ARGUMENTS

Full references:

Common Issues & Solutions

CDK / Synth

ProblemCauseSolution
Cannot find asset during cdk synthpackages/web/dist/ missingRun cd packages/web && npx vite build first
CDK Bootstrap version mismatchOutdated bootstrapRun cdk bootstrap
ROLLBACK_FAILED on SecretsStackAwsCustomResource partial failureaws cloudformation delete-stack --stack-name SecretsStack --deletion-mode FORCE_DELETE_STACK, then redeploy
ECR repository already existsCDK trying to create existing repoUse --force delete or Repository.fromRepositoryName()
Cross-stack export removal errorStack import in useUse --exclusively flag + SSM decoupling pattern

Docker Build

ProblemCauseSolution
TS error with openclaw dynamic importStatic analysis of dynamic pathUse variable path: const mod = await import(/* @vite-ignore */ path)
OCI manifest push errorDefault buildx provenanceAdd --provenance=false flag to docker buildx build
npm ci fails (husky postinstall)prepare script runs in containernpm pkg delete scripts.prepare && npm ci

Lambda Agent

ProblemCauseSolution
Cannot find packagePackage installed globally, not in LAMBDA_TASK_ROOTInstall in $LAMBDA_TASK_ROOT, not /usr/local
exports map resolution failureNode ESM named exportsUse file:// URL import: import(\file://${path}`)`
Bedrock discovery timeout (56s)Auto-discovery scans all regionsSet bedrockDiscovery.enabled: false in OpenClaw config
extensionAPI not foundNot in exports mapUse file:// URL: import(\file://${ocRoot}/dist/extensionAPI.js`)`

OpenClaw Compatibility

ProblemCauseSolution
v2026.2.14 breaks: scope errorDefault-deny scope system, device pairing requiredPin to v2026.2.13 (fastest compatible)
operator.write strippedMissing device pairing in v2026.2.14+Use v2026.2.13 or implement device pairing
device field validation failsEmpty publicKey/signature stringsOmit device field entirely (it's Optional)
client.mode: "operator" invalidNot a valid Literal typeUse "backend" or "node"

Tests

ProblemCauseSolution
vi.mock variable not in scopeHoisting moves mock above variable declarationUse vi.hoisted() for variables referenced in mocks
E2E tests run with unit testsDefault vitest include matches all .test.tsExclude **/*.e2e.test.ts in vitest.config.ts
workspace:* not resolvedpnpm syntax used in npm workspaceUse "*" for workspace dependencies

AWS / IAM

| Problem | Cause | Solution | | -------------------------------------------------- | --------------------------------- | ------------------------------------------------------------------- | ---------------------------------- | | launchType + capacityProviderStrategy conflict | Cannot specify both in RunTask | Remove launchType, use capacityProviderStrategy only | | Lambda env var {{resolve:ssm-secure:...}} fails | Not supported for Lambda env vars | Pass SSM path as env var, resolve at runtime via resolveSecrets() | | ECS Task new secret inaccessible | Execution role not updated | Add ssm:GetParameters to execution role policy | | Empty env vars from .env | export $(cat .env | xargs) silently sets empty | Verify with ${#VAR} length check |

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

References Serverless OpenClaw architecture. Covers network design, CDK stack structure, DynamoDB data model, API protocols, and container design.

中文简介正在准备中。当前显示原文说明。

serithemage/serverless-openclaw1962026年3月29日 更新

References cold start optimization history and techniques. Covers Docker image optimization, Fargate CPU tuning, SOCI lazy loading, and Lambda Bedrock discovery fix. Use when optimizing startup performance.

中文简介正在准备中。当前显示原文说明。

serithemage/serverless-openclaw1962026年3月29日 更新

context

免费

Loads Serverless OpenClaw project context. Provides background knowledge needed for development including project overview, tech stack, architecture decisions, and data models.

中文简介正在准备中。当前显示原文说明。

serithemage/serverless-openclaw1962026年3月29日 更新

cost

免费

References Serverless OpenClaw cost optimization guidelines. Validates that no resources exceeding the cost target ($1/month) are created during implementation. Use when writing CDK stacks or making infrastructure changes.

中文简介正在准备中。当前显示原文说明。

serithemage/serverless-openclaw1962026年3月29日 更新

deploy

免费

Deploys Serverless OpenClaw CDK stacks to AWS. Handles SecretsStack parameter injection, full/individual stack deployment, and Docker image push.

中文简介正在准备中。当前显示原文说明。

serithemage/serverless-openclaw1962026年3月29日 更新

dev

免费

Development workflow guide. Covers build, test, lint, format commands, package structure, Git hooks, TDD methodology, and coding conventions. Use when setting up dev environment, running tests, or following project conventions.

中文简介正在准备中。当前显示原文说明。

serithemage/serverless-openclaw1962026年3月29日 更新

查看 serithemage 的全部技能

报告此技能的问题