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()