本文へ移動
cccskills
無料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.

日本語の概要は準備中です。原文の説明を表示しています。

serithemage/serverless-openclawスター 196(GitHub 196 + cccskills 0)
連携ツールAWS

実行スコア 未検証

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.8 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。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日 更新

implement

無料

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.

日本語の概要は準備中です。原文の説明を表示しています。

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

serithemage のスキルをすべて見る

このスキルの問題を報告する