cloudwerk-monorepo

Monorepo workflow for the Cloudwerk framework. Use when building, testing, or releasing Cloudwerk packages. Covers pnpm workspace commands, package structure, changeset requirements, and test workflows. Triggers on tasks involving building packages, running tests, creating changesets, or understanding the monorepo structure.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "cloudwerk-monorepo" with this command: npx skills add squirrelsoft-dev/cloudwerk/squirrelsoft-dev-cloudwerk-cloudwerk-monorepo

Cloudwerk Monorepo

Workflow guide for the Cloudwerk pnpm monorepo. Covers building, testing, changesets, and package relationships.

When to Apply

Reference these guidelines when:

  • Building or testing Cloudwerk packages
  • Creating changesets for version bumps
  • Understanding package dependencies
  • Adding new packages to the monorepo
  • Running the dev server

Package Structure

PackagePathDescription
@cloudwerk/corepackages/core/Route compiler, types, config, runtime helpers
@cloudwerk/clipackages/cli/Dev server, route registration with Hono
@cloudwerk/uipackages/ui/SSR renderer abstraction
@cloudwerk/authpackages/auth/Authentication, OAuth, sessions
@cloudwerk/queuepackages/queue/Cloudflare Queue consumer/producer
@cloudwerk/triggerpackages/trigger/Cron triggers, scheduled tasks
@cloudwerk/durable-objectpackages/durable-object/Durable Object utilities
@cloudwerk/servicepackages/service/Service bindings and RPC

Commands

All commands run from the repo root:

# Build all packages (required before testing cross-package changes)
pnpm build

# Run all tests
pnpm test

# Run tests for a specific package
pnpm --filter @cloudwerk/core test
pnpm --filter @cloudwerk/cli test

# Run a single test file
pnpm --filter @cloudwerk/cli vitest --run src/server/__tests__/registerRoutes.page.test.ts

# Watch mode
pnpm --filter @cloudwerk/core test:watch

# Lint
pnpm lint

# Dev server
pnpm dev

Changeset Workflow

Every PR that changes package behavior MUST include a changeset file.

Create a changeset by adding a markdown file to .changeset/:

---
"@cloudwerk/core": patch
---

Description of the change.

Or use the helper script:

skills/cloudwerk-monorepo/scripts/changeset.sh

Bump types:

  • patch — Bug fixes, minor improvements
  • minor — New features, non-breaking changes
  • major — Breaking API changes

Adding New Packages

When creating a new package that will be published to npm, the initial version must be published manually before the automated release pipeline can take over. Inform the user:

"This is a new package. Before the automated release works, you'll need to publish the initial version manually and set up npm access."

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

cloudwerk-routing

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

cloudwerk-handlers

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

cloudwerk-config

No summary provided by upstream source.

Repository SourceNeeds Review