Pumped-fn TypeScript

Enforce TypeScript architectural patterns and type safety for @pumped-fn/core-next applications.

6|3|Updated Feb 18, 2025
One-click install
npx skills add https://github.com/pumped-fn/pumped-fn --skill pumped-fn-typescript
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Pumped-fn TypeScript
Source: https://github.com/pumped-fn/pumped-fn/tree/main/claude-skill/skills/pumped-fn-typescript
Command: npx skills add https://github.com/pumped-fn/pumped-fn --skill pumped-fn-typescript

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @pumped-fn/core-next.

What problem does it solve?

This Skill eliminates the challenges of maintaining type safety, consistent architectural patterns, and testability in TypeScript applications built with @pumped-fn/core-next. It automates the enforcement of best practices, significantly reducing manual code review effort and debugging time.

Core Features & Use Cases

  • Automated Pattern Enforcement: Guides on critical anti-patterns like incorrect scope usage, built-ins in resources, and premature value resolution.
  • Strict Type Safety: Ensures adherence to strict TypeScript rules, preventing any/unknown types and unsafe casting for robust code.
  • Enhanced Testability: Promotes patterns for easy mocking via preset() and isolated testing, making your business logic highly verifiable.
  • Use Case: When developing or refactoring a TypeScript application using @pumped-fn/core-next, this Skill ensures all team members follow a unified, high-quality, and observable architectural standard, accelerating development and reducing future maintenance.

Quick Start

Example: Execute a flow within a scope

import { createScope, flow } from '@pumped-fn/core-next' // Assume dbConfig, registerUser, input are defined elsewhere const scope = createScope({ tags: [dbConfig({ host: 'localhost', port: 5432, database: 'app' })] }) const result = await flow.execute(registerUser, input, { scope }) await scope.dispose()