core-package

Create zero-database pure-function core utilities with Zod schemas for TypeScript monorepos.

2|1|Updated Aug 19, 2025
One-click install
npx skills add https://github.com/deancochran/gradientpeak --skill core-package
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: core-package
Source: https://github.com/deancochran/gradientpeak/tree/main/.opencode/skills/core-package
Command: npx skills add https://github.com/deancochran/gradientpeak --skill core-package

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill codifies a zero-database, pure-functions approach for core utilities, enabling deterministic logic and strong type-safety across the codebase.

Core Features & Use Cases

  • Zero database dependencies: Ensures the core package can run without ORM or persistence layers.
  • Pure functions only: Guarantees no side effects, easy testing, and predictable behavior.
  • Zod-based validation & type inference: Uses schemas to derive TypeScript types and validate inputs at boundaries.
  • Comprehensive testing patterns: Encourages test coverage to verify calculations and utilities.

Quick Start

Import the core-package utilities into your module and start composing pure, deterministic functions.

Frequently Asked Questions about core-package

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

FAQPage Schema
How do I validate inputs and infer TypeScript types in a monorepo using Zod schemas?

You can validate inputs and infer TypeScript types in a monorepo by defining Zod schemas that automatically derive type-safe interfaces. This approach ensures deterministic calculations and strong type safety across your modules.

What is the best way to structure pure functions in a TypeScript monorepo to avoid side effects?

The best way to structure pure functions in a TypeScript monorepo is to enforce zero database dependencies and no I/O operations. This guarantees predictable behavior, easy testing, and reliable deterministic logic across your codebase.

Can I use zero-database core utilities in a TypeScript library without an ORM?

Yes, zero-database core utilities are explicitly designed for libraries without ORM or persistence layers. They enforce database independence so your modules can run without any direct database connections or persistence requirements.

Do I need side-effect-free functions for deterministic calculations in TypeScript?

You need side-effect-free functions for deterministic calculations because they guarantee no I/O operations occur, ensuring predictable behavior. This approach simplifies comprehensive testing and provides reliable, well-documented public APIs.

Why does a core package require comprehensive testing for pure utility functions?

A core package requires comprehensive testing for pure utility functions to verify deterministic calculations and ensure no hidden side effects exist. Testing pure functions is straightforward because they produce identical outputs for identical inputs without external dependencies.

How do Zod schemas enforce type-safe input validation at module boundaries in TypeScript?

Zod schemas enforce type-safe input validation at module boundaries by validating incoming data against defined structures and automatically deriving TypeScript types. This ensures only correctly shaped data enters your pure functions, preventing runtime type errors.