contracts-package

Create, audit, and validate MetaSaver contracts packages with Zod schemas and direct exports.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/metasaver/claude-marketplace --skill contracts-package
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: contracts-package
Source: https://github.com/metasaver/claude-marketplace/tree/main/plugins/metasaver-core/skills/domain/contracts-package
Command: npx skills add https://github.com/metasaver/claude-marketplace --skill contracts-package

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill codifies the structure for MetaSaver contracts packages, enabling consistent entity typings, validation schemas, and type exports across domains.

Core Features & Use Cases

  • Entity-centric organization: Types, validation, and exports colocated per entity.
  • Zero-barrel rule: Direct exports from entity files with explicit paths.
  • Template-driven: Uses templates for consistent package.json, tsconfig, and eslint configs.

Quick Start

Scaffold a new domain contracts package and verify there are no barrel exports; export directly from files.

Frequently Asked Questions about contracts-package

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

FAQPage Schema
How do I structure type exports in a monorepo without barrel files?

Direct exports organize types per entity file rather than through index barrels. This Skill automates creating contracts packages with explicit file paths for TypeScript types, Zod schemas, and shared enums, eliminating barrel index files entirely and enabling precise, traceable imports across domains.

Can I validate TypeScript types with Zod schemas in a contracts package?

Yes. This Skill generates Zod validation schemas colocated with entity types, enabling runtime validation of TypeScript contracts. Schemas are templated per entity and exported directly, ensuring type safety and consistent validation across your monorepo.

How do I set up ESLint and TypeScript configuration for domain contracts?

This Skill uses templates to generate consistent package.json, tsconfig, and ESLint configs for contracts packages. Configuration is automated during package scaffolding, ensuring standardized setup across multiple domains in your monorepo.

What's the best way to audit contracts packages for consistency?

This Skill audits contracts packages to verify no barrel exports exist and that all Zod validation and type exports follow the template structure. Auditing confirms packages maintain entity-centric organization and direct export patterns across your monorepo.

Do I need Prisma types in my contracts package?

This Skill re-exports Prisma types from your database package into contracts packages, maintaining type consistency across domains. Direct re-exports eliminate duplication and keep contract types synchronized with your Prisma schema.

How do I scaffold a new domain contracts package?

This Skill automates scaffolding with entity-centric structure, generating TypeScript types, Zod schemas, shared enums, and exports per entity using templates. Scaffolding produces a ready-to-audit package with zero barrel files and direct imports enabled.