package-development

Create and structure packages in the AFENDA-NEXUS monorepo.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/pohlai88/AFENDA-NEXUS2 --skill package-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: package-development
Source: https://github.com/pohlai88/AFENDA-NEXUS2/tree/main/.agents/skills/package-development
Command: npx skills add https://github.com/pohlai88/AFENDA-NEXUS2 --skill package-development

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation, structuring, and maintenance of packages within the AFENDA-NEXUS monorepo, ensuring adherence to architectural layers and best practices.

Core Features & Use Cases

  • Package Creation: Guides through determining the correct layer, naming conventions, and essential files for new packages.
  • Structure & Configuration: Provides templates for package.json, tsconfig.json, and eslint.config.cjs tailored to different architectural layers.
  • Export Patterns: Details best practices for defining a clear and maintainable public API.
  • Testing & Building: Outlines setup for testing with Vitest and build configurations with Tsup.
  • Use Case: When starting a new feature that requires a dedicated package, use this Skill to ensure it's correctly placed, configured, and follows all established monorepo standards.

Quick Start

Use the package-development skill to create a new Layer 2 package named 'billing'.

Frequently Asked Questions about package-development

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

FAQPage Schema
How do I structure a new package in a pnpm monorepo using Turborepo?

To structure a new package in a pnpm monorepo, determine the correct architectural layer and generate essential files like package.json, tsconfig.json, and eslint.config.cjs using provided templates. This ensures your package adheres to established monorepo standards.

What is the correct way to configure TypeScript and ESLint for monorepo packages across different layers?

Configuring TypeScript and ESLint for monorepo packages involves applying specific tsconfig.json and eslint.config.cjs templates tailored to your package's architectural layer. This enforces consistent linting and type checking rules across the entire workspace.

How do I set up Vitest and Tsup for building and testing TypeScript packages?

Set up Vitest and Tsup for TypeScript packages by configuring the build tool to bundle exports and the test framework to validate logic. This combination provides a streamlined validation workflow including type checking and automated testing.

What are common anti-patterns to avoid when maintaining packages in a monorepo?

Common anti-patterns to avoid when maintaining monorepo packages include misplacing packages in incorrect architectural layers, poorly defining export patterns, and skipping validation workflows like dependency checks and README generation.

How do I define clear export patterns for a monorepo package's public API?

Define clear export patterns for a monorepo package by structuring the package.json exports field to expose a maintainable public API. This ensures consumers can correctly import modules without accessing internal implementation details.