foundation-worker

Automate database migrations, TypeScript type definitions, and Vitest test setup.

2|1|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/passionseed/ps_app --skill foundation-worker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: foundation-worker
Source: https://github.com/passionseed/ps_app/tree/main/.factory/skills/foundation-worker
Command: npx skills add https://github.com/passionseed/ps_app --skill foundation-worker

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the setup and maintenance of database migrations, TypeScript type definitions, and test infrastructure to streamline backend feature development.

Core Features & Use Cases

  • Database migration creation and application
  • TypeScript type definitions for new data models
  • Test framework setup and configuration (Vitest)

Quick Start

Create and configure a project workspace, then generate migrations, generate TypeScript types, and set up Vitest to bootstrap the feature.

Frequently Asked Questions about foundation-worker

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate database migrations and TypeScript type generation for backend features?

You can automate database migrations and TypeScript type generation by defining a structured workflow that creates migration SQL, applies it, and generates corresponding typings for new data models. This ensures backend feature development maintains reliable migration workflows and strong type safety.

What is the best way to set up Vitest test infrastructure for a TypeScript project?

The best way to set up Vitest test infrastructure is to bootstrap a ready-to-run testing environment that includes Vitest configuration and a typecheck pass using npx tsc. This guarantees your TypeScript project has reliable test coverage and type safety before feature deployment.

Does this workflow support generating TypeScript type definitions directly from database migrations?

Yes, the workflow supports generating TypeScript type definitions directly from database migrations. It enforces a process where migration SQL creation and application are immediately followed by TypeScript typings generation for new data models, ensuring database schemas and types remain synchronized.

How do I run a typecheck pass with tsc after setting up test infrastructure?

You run a typecheck pass with tsc after setting up test infrastructure by executing npx tsc within the configured project workspace. This validates the generated TypeScript type definitions and ensures strong type safety across your new data models and Vitest testing setup.

Can I use this migration workflow for existing projects or is it only for new feature development?

You can use this migration workflow for both existing projects and new backend feature development. It applies to any project requiring reliable migration workflows, strong type safety for new data models, and a ready-to-run testing environment using Vitest, regardless of current project age.