pack-init

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

Updated May 23, 2026
One-click install
npx skills add https://github.com/BMS-kmusial/bms-stream-monitor --skill pack-init-bms-kmusial
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pack-init
Source: https://github.com/BMS-kmusial/bms-stream-monitor/tree/main/.claude/skills/pack-init
Command: npx skills add https://github.com/BMS-kmusial/bms-stream-monitor --skill pack-init-bms-kmusial

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Turning generated AI artifacts like skills and 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: Creates the packages/ai-toolkit directory structure with package.json, pack.yaml, bin/cli.js, skills, and rules. - Installer Logic: Implements install and uninstall scripts that handle both npm install symlink mode and npx copy mode, tracking installed files in a manifest. - 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 publishing to AWS CodeArtifact. ## Quick Start Initialize the AI toolkit npm package skeleton 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, installer scripts, and your skills and rules folders. It configures the bin entry, postinstall hook, and file list so the package can be published to a registry like AWS CodeArtifact.

What is the difference between npm install and npx install modes for file installation?

In npm install mode the installer may symlink files from node_modules since the package persists on disk. In npx mode the cache is temporary, so the installer must copy files instead, and both modes track installed files in a manifest for clean uninstall.

How do I uninstall files installed by an npm package installer?

The uninstall script reads the manifest created during installation rather than guessing paths. This ensures only files the installer placed are removed, keeping the operation safe and idempotent.

Can I publish the generated package to AWS CodeArtifact?

Yes, the package skeleton is designed for the CodeArtifact delivery path with a namespaced package name like @10xdevs/ai-toolkit. The Skill never writes AWS credentials or tokens into package files, so you configure authentication separately.

How do I verify the generated npm package before publishing?

Run npm pack --dry-run to preview the package contents, parse package.json with Node to confirm valid JSON, and check that pack.yaml exists. If the package contains skills, verify each SKILL.md starts with valid frontmatter.