pack-init

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

Updated Jul 4, 2026
One-click install
npx skills add https://github.com/Assamir/ai-toolkit --skill pack-init-assamir
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pack-init
Source: https://github.com/Assamir/ai-toolkit/tree/main/.cursor/skills/pack-init
Command: npx skills add https://github.com/Assamir/ai-toolkit --skill pack-init-assamir

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. This Skill automates that packaging step so artifacts can be published to AWS CodeArtifact. ## Core Features & Use Cases - Package Scaffolding: Creates the packages/ai-toolkit directory with package.json, pack.yaml, install.js, uninstall.js, and a CLI entry point. - Installer Logic: Implements both npm install symlink mode and npx copy mode, with a manifest tracking installed files for clean uninstalls. - Safety Guardrails: Enforces idempotent operations, avoids hardcoded paths and credentials, and protects user-managed files with sentinel blocks. - 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 CodeArtifact publication. ## 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 after generating your SKILL.md artifacts. It scaffolds packages/ai-toolkit with package.json, pack.yaml, installer scripts, and copies your skills and rules directories into the package structure.

How to publish an AI toolkit package to AWS CodeArtifact?

This Skill prepares the package skeleton for the CodeArtifact delivery path by creating a versioned npm package with proper files, bin, and postinstall configuration. Actual publishing uses standard npm publish against your CodeArtifact repository.

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

npm install mode may symlink files from node_modules since the package persists locally. npx mode must copy files instead because the npx cache is temporary and symlinks would break after the cache is cleared.

How does the uninstall script know which files to remove?

The installer tracks every installed file in a manifest during installation. The uninstall script reads this manifest instead of guessing paths, ensuring clean and accurate removal.

Can the installer overwrite my existing configuration files?

No. The Skill prohibits overwriting user-managed files without a sentinel block or explicit confirmation, and all installer operations are kept idempotent to avoid duplicate or destructive changes.