package-creator

Scaffold new Raykit packages with modular src directories and generated exports.

2|Updated Jun 20, 2025
One-click install
npx skills add https://github.com/raykit-apps/raykit --skill package-creator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: package-creator
Source: https://github.com/raykit-apps/raykit/tree/main/.codex/skills/package-creator
Command: npx skills add https://github.com/raykit-apps/raykit --skill package-creator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Create new Raykit packages under packages/ with a consistent modular structure and automated scaffolding to save setup time and ensure project conventions.

Core Features & Use Cases

  • Scaffold a new package at packages/<package-name>/ with optional src subdirectories (common, browser, main, node)
  • Generate package.json with dynamic exports and proper package naming
  • Create tsconfig.json extending the root tsconfig.json
  • Validate package names and enforce naming rules for consistent repository hygiene
  • Useful for onboarding new packages and handling requests for Chinese module creation (创建包/软件包, 子模块, 在...模块下创建)

Quick Start

Run the package-creator script to scaffold a new package with a selected module set.

Frequently Asked Questions about package-creator

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

FAQPage Schema
How do I scaffold a new TypeScript package with a modular architecture?

To scaffold a new TypeScript package with a modular architecture, run the package-creator script to generate a standardized directory structure under packages/ with optional src modules like common, browser, main, and node.

How do I generate package.json with dynamic exports for a new package?

Generating package.json with dynamic exports is handled automatically during package scaffolding, ensuring proper package naming and standardized export paths based on the selected module set.

Does the scaffolding process create a tsconfig.json that extends the root configuration?

Yes, the scaffolding process creates a tsconfig.json that automatically extends the root tsconfig.json, ensuring your new package inherits the existing TypeScript compiler options.

Can I create specific submodules like browser or node when scaffolding a package?

Yes, you can create specific submodules like browser, node, common, and main. The scaffolding tool allows you to select a module set to generate the exact src subdirectories your package needs.

Why do I need package name validation when creating new modules?

Package name validation enforces consistent naming rules during creation to maintain repository hygiene, preventing conflicting or improperly formatted package names within the packages directory.

What is the best way to automate setting up multiple modular packages in a monorepo?

Automating modular package setup in a monorepo is best handled by running the scaffolding script, which standardizes the structure, exports, and TypeScript configuration for each new package.