Skip to content
cccskills
FreePublished on GitHub

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.

The English summary is being prepared. Showing the original description.

serithemage/serverless-openclaw196 stars(GitHub 196 + cccskills 0)
Works withAWS

Run score Not tested

See how to install

Files included (1)

  • SKILL.md2.8 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Development Workflow

Full guide: docs/development.md

Quick Command Reference

npm run build          # tsc --build (all packages via project references)
npm run lint           # eslint "packages/**/*.ts"
npm run format         # prettier
npm run test           # vitest run (unit tests, excludes *.e2e.test.ts)
npm run test:e2e       # vitest e2e (CDK synth E2E tests)
npm run skills:sync    # sync shared skills into Claude/Codex mirrors
npm run skills:check   # verify shared skill mirrors are in sync

# Single test file
npx vitest run packages/gateway/__tests__/handlers/ws-connect.test.ts

# Single test by name
npx vitest run -t "should verify JWT"

Package Structure (6 packages)

packages/
├── shared/      # Types + constants (TABLE_NAMES, BRIDGE_PORT, key prefixes)
├── cdk/         # CDK stacks (lib/stacks/)
├── gateway/     # 7 Lambda handlers (ws-connect/message/disconnect, telegram-webhook, api-handler, watchdog, prewarm)
├── container/   # Fargate container (Bridge server + OpenClaw JSON-RPC client)
├── lambda-agent/ # Lambda agent (Phase 2 — OpenClaw embedded in Lambda)
└── web/         # React SPA (Vite, amazon-cognito-identity-js for auth)

Git Hooks (husky)

HookChecks
pre-commitnpm run build + npm run lint + unit tests
pre-pushE2E tests (CDK synth verification)

TDD Rules

  • Tests first for all packages except web
  • Write test → watch it fail → implement → watch it pass
  • Unit tests: packages/<pkg>/__tests__/
  • E2E tests: packages/<pkg>/__tests__/*.e2e.test.ts

Import Path Rule

TypeScript uses NodeNext module resolution. All imports must use .js extension:

// Correct
import { TABLE_NAMES } from "@serverless-openclaw/shared/constants.js";
import { routeMessage } from "../services/message.js";

// Wrong — omitting .js will fail at runtime
import { TABLE_NAMES } from "@serverless-openclaw/shared/constants";

Coding Conventions

  • DI pattern: Inject send function (same pattern as container package)
  • AWS SDK send binding: ddb.send.bind(ddb) as (cmd: any) => Promise<any> cast needed
  • vi.mock hoisting: Use vi.hoisted() when referencing variables in module-level mocks
  • npm workspaces: Use "*" for local dependencies ("workspace:*" is pnpm-only)
  • TypeScript: ES2022, Node16 module resolution, strict, composite builds

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

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

The English summary is being prepared. Showing the original description.

serithemage/serverless-openclaw196Updated Mar 29, 2026

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.

The English summary is being prepared. Showing the original description.

serithemage/serverless-openclaw196Updated Mar 29, 2026

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

The English summary is being prepared. Showing the original description.

serithemage/serverless-openclaw196Updated Mar 29, 2026

cost

Free

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.

The English summary is being prepared. Showing the original description.

serithemage/serverless-openclaw196Updated Mar 29, 2026

deploy

Free

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

The English summary is being prepared. Showing the original description.

serithemage/serverless-openclaw196Updated Mar 29, 2026

Guides Phase 1 MVP implementation steps. Pass a specific step number as an argument to get the goals, deliverables, validation criteria, and detailed design for that step.

The English summary is being prepared. Showing the original description.

serithemage/serverless-openclaw196Updated Mar 29, 2026

See all skills by serithemage

Report a problem with this skill