pack-init

Creates an npm package skeleton bundling AI skills, rules, and installer logic for CodeArtifact publishing.

Updated May 20, 2026
One-click install
npx skills add https://github.com/ZawilecxD/trAInR --skill pack-init-zawilecxd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pack-init
Source: https://github.com/ZawilecxD/trAInR/tree/main/.cursor/skills/pack-init
Command: npx skills add https://github.com/ZawilecxD/trAInR --skill pack-init-zawilecxd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Turning generated AI artifacts like SKILL.md files and AGENTS.md rules into a distributable, versioned npm package requires repetitive scaffolding of package.json, installer scripts, and manifest tracking, which this Skill automates. ## Core Features & Use Cases - Package Scaffolding: Generates the packages/ai-toolkit directory with package.json, pack.yaml, bin/cli.js, and copies of skills and rules. - Installer Logic: Implements install and uninstall scripts that handle both npm install (symlink) and npx (copy) modes, tracking installed files in a manifest for clean removal. - Safety Guardrails: Enforces idempotent operations, avoids hardcoded paths and credentials, and protects user-managed files from overwriting. - Use Case: After generating a code-review skill with /create-skill, run this Skill to wrap it in the @10xdevs/ai-toolkit package ready for publication to AWS CodeArtifact. ## Quick Start Initialize the AI toolkit npm package from my generated skills and rules so it can be published to CodeArtifact.

Frequently Asked Questions about pack-init

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

FAQPage Schema
How do I package AI skills into an npm package?

Run this Skill to scaffold a packages/ai-toolkit directory containing package.json, pack.yaml, a CLI entry point, and copies of your skills and rules. It configures the bin, files, and postinstall fields so the package installs artifacts on the consumer machine.

How do I publish an internal npm package to AWS CodeArtifact?

This Skill prepares the package structure for the CodeArtifact delivery path, including versioning and namespace metadata in pack.yaml. It never writes AWS credentials into package files, so you authenticate separately through your CI or npm configuration.

What is the difference between npm install and npx install modes?

In npm install mode the installer may symlink files from node_modules, while npx mode must copy files because the npx cache is temporary. The Skill generates installer logic that handles both modes correctly.

How do I uninstall files installed by a postinstall script?

The generated installer tracks every installed file in a manifest, and the uninstall script reads that manifest instead of guessing paths. This keeps removal clean and idempotent without touching user-managed files.

Can the installer overwrite my existing config files?

No, the Skill's safety rules forbid overwriting user-managed files without a sentinel block or explicit confirmation. All installer operations are designed to be idempotent and safe to re-run.