AIPM Package Prep
Use this skill when the user wants to prepare an existing skill, workflow, prompt pack, helper setup, or repo-specific debugging/tooling bundle for AIPM publishing.
The output is an AIPM package folder with aipm.manifest.json, a durable SKILL.md, and optional install metadata for permanent main files, temporary helper files, and a manual post-install setup prompt.
First Response
Start by finding out whether the user wants you to inspect an existing path or design the package from scratch. If they gave a path, inspect it before asking nonessential questions.
Ask questions in one compact batch unless the answer can be confidently inferred from files already present. Always include the fixed questions below when they are not already answered.
Fixed Questions
Ask these for every package:
- What package name/scope should this use, for example
@team/name?
- Should this be generic for many repos/languages, or tailored to one repo/framework?
- Which AI tools should it target: Cursor, Claude, or both?
- Is it only a skill file, or does it also include supporting files?
- Are any supporting files permanent project files that should remain after install?
- Are any supporting files temporary helper/setup/template files that can be cleaned up later?
- Is there a prompt users should run after install in their AI coding tool?
- If there is a setup prompt, should helper cleanup be manual or after user confirmation?
- What commands should validate the packaged result, if any?
- Are there secrets, credentials, customer data, private URLs, or repo-specific assumptions that must be removed or generalized?
Optional Follow-ups
Ask only when relevant:
- Should files be copied exactly, adapted into templates, or rewritten as generic guidance?
- Should permanent files overwrite existing files, skip existing files, or fail on conflicts?
- Should package scripts,
.gitignore, env examples, or config snippets be part of setup?
- Does the setup require a specific runtime such as Node, Python, shell, browser, Electron, or a framework?
- Should the package include examples, tags, categories, license, source URL, or release notes?
- Does the package need a manual setup prompt, a migration prompt, a verification prompt, or all of them?
- What generated files should AIPM never clean up?
- Should the package be public, private, or org-only once uploaded?
Classification
Classify the package before writing files:
skill-only: only SKILL.md is needed.
skill-with-helper-files: skill plus temporary docs/templates/scripts used during setup.
skill-with-manual-prompt: helper files include a prompt the user runs manually after install.
skill-with-main-files: package installs permanent files into the target repo.
hybrid: any combination of helper files, main files, and manual prompt.
Prefer manual prompts over automatic execution. Do not add install scripts, postinstall scripts, AI-provider calls, shell hooks, or arbitrary execution unless the user explicitly asks and the current AIPM phase supports it.
Packaging Workflow
- Inspect the source path, skill files, helper files, manifests, package scripts,
.gitignore, and git status. Use git history or working-tree changes to identify related files when the user mentions them.
- Summarize what you found and the proposed package classification.
- Ask the fixed questions that remain unanswered.
- Create a package folder, normally under
examples/skills/<scope>/<name>/ when working in the AIPM repo.
- Write a durable
SKILL.md that is generic enough for the chosen audience and does not depend on helper files after cleanup.
- Copy or adapt setup-only material into
setup/ as helper files.
- Copy or adapt permanent project assets into a clear source folder such as
files/ or templates/.
- Write
aipm.manifest.json.
- Add
.aipmignore to exclude local state, logs, secrets, dependencies, and generated files.
- Run AIPM publish staging and validation when available.
- Report exactly what is ready to upload and whether an auth token is still needed.
Manifest Rules
Use schemaVersion: "0.1" and type: "skill".
For normal skill-only packages:
{
"schemaVersion": "0.1",
"name": "@scope/name",
"version": "1.0.0",
"type": "skill",
"description": "Short package description.",
"entry": "SKILL.md",
"targets": ["cursor", "claude"],
"license": "Apache-2.0"
}
For helper files and manual setup prompts:
{
"install": {
"helperFiles": [
{ "from": "setup/SETUP_PROMPT.md", "to": "SETUP_PROMPT.md" },
{ "from": "setup/README_FOR_AI.md", "to": "README_FOR_AI.md" }
],
"postInstall": {
"mode": "manual_prompt",
"promptFile": "SETUP_PROMPT.md",
"cleanup": "after_user_confirmation"
}
}
}
For permanent project files:
{
"install": {
"mainFiles": [
{
"from": "files/example.config.js",
"to": "example.config.js",
"overwrite": "fail"
}
]
}
}
Rules:
mainFiles.to is relative to the install root.
helperFiles.to is relative to the AIPM helper directory.
postInstall.promptFile must match an installed helper file target.
- Default
overwrite is fail.
- Reject absolute paths, empty paths,
.., path traversal, secrets, logs, and local dependency folders.
Setup Prompt Requirements
When creating setup/SETUP_PROMPT.md, make it tell the downstream AI tool to:
- Inspect the target repo before editing.
- Preserve existing user changes.
- Read the helper docs/templates installed by AIPM.
- Apply only the files/config needed for that repo.
- Ask before overwriting conflicts.
- Avoid secrets, credentials, PII, private URLs, or repo-specific names unless the user chose a repo-specific package.
- Run practical validation commands.
- Tell the user they can run
aipm cleanup <package> after helper files are no longer needed.
Validation
When in an AIPM repo with the CLI built, validate from the package directory:
node /path/to/aipm/apps/cli/dist/bin.cjs publish reset
node /path/to/aipm/apps/cli/dist/bin.cjs publish add .
node /path/to/aipm/apps/cli/dist/bin.cjs publish validate
node /path/to/aipm/apps/cli/dist/bin.cjs publish preview
If the installed aipm CLI is available, use that instead:
aipm publish reset
aipm publish add .
aipm publish validate
aipm publish preview
Do not push unless the user asks and a valid token is available.
1---2name: aipm-package-prep3description: Interview the user and convert existing AI skills, prompts, helper files, templates, or repo-specific workflows into upload-ready AIPM skill packages.4---56# AIPM Package Prep78Use this skill when the user wants to prepare an existing skill, workflow, prompt pack, helper setup, or repo-specific debugging/tooling bundle for AIPM publishing.910The output is an AIPM package folder with `aipm.manifest.json`, a durable `SKILL.md`, and optional install metadata for permanent main files, temporary helper files, and a manual post-install setup prompt.1112## First Response1314Start by finding out whether the user wants you to inspect an existing path or design the package from scratch. If they gave a path, inspect it before asking nonessential questions.1516Ask questions in one compact batch unless the answer can be confidently inferred from files already present. Always include the fixed questions below when they are not already answered.1718## Fixed Questions1920Ask these for every package:21221. What package name/scope should this use, for example `@team/name`?232. Should this be generic for many repos/languages, or tailored to one repo/framework?243. Which AI tools should it target: Cursor, Claude, or both?254. Is it only a skill file, or does it also include supporting files?265. Are any supporting files permanent project files that should remain after install?276. Are any supporting files temporary helper/setup/template files that can be cleaned up later?287. Is there a prompt users should run after install in their AI coding tool?298. If there is a setup prompt, should helper cleanup be manual or after user confirmation?309. What commands should validate the packaged result, if any?3110. Are there secrets, credentials, customer data, private URLs, or repo-specific assumptions that must be removed or generalized?3233## Optional Follow-ups3435Ask only when relevant:3637- Should files be copied exactly, adapted into templates, or rewritten as generic guidance?38- Should permanent files overwrite existing files, skip existing files, or fail on conflicts?39- Should package scripts, `.gitignore`, env examples, or config snippets be part of setup?40- Does the setup require a specific runtime such as Node, Python, shell, browser, Electron, or a framework?41- Should the package include examples, tags, categories, license, source URL, or release notes?42- Does the package need a manual setup prompt, a migration prompt, a verification prompt, or all of them?43- What generated files should AIPM never clean up?44- Should the package be public, private, or org-only once uploaded?4546## Classification4748Classify the package before writing files:4950- `skill-only`: only `SKILL.md` is needed.51- `skill-with-helper-files`: skill plus temporary docs/templates/scripts used during setup.52- `skill-with-manual-prompt`: helper files include a prompt the user runs manually after install.53- `skill-with-main-files`: package installs permanent files into the target repo.54- `hybrid`: any combination of helper files, main files, and manual prompt.5556Prefer manual prompts over automatic execution. Do not add install scripts, postinstall scripts, AI-provider calls, shell hooks, or arbitrary execution unless the user explicitly asks and the current AIPM phase supports it.5758## Packaging Workflow59601. Inspect the source path, skill files, helper files, manifests, package scripts, `.gitignore`, and git status. Use git history or working-tree changes to identify related files when the user mentions them.612. Summarize what you found and the proposed package classification.623. Ask the fixed questions that remain unanswered.634. Create a package folder, normally under `examples/skills/<scope>/<name>/` when working in the AIPM repo.645. Write a durable `SKILL.md` that is generic enough for the chosen audience and does not depend on helper files after cleanup.656. Copy or adapt setup-only material into `setup/` as helper files.667. Copy or adapt permanent project assets into a clear source folder such as `files/` or `templates/`.678. Write `aipm.manifest.json`.689. Add `.aipmignore` to exclude local state, logs, secrets, dependencies, and generated files.6910. Run AIPM publish staging and validation when available.7011. Report exactly what is ready to upload and whether an auth token is still needed.7172## Manifest Rules7374Use `schemaVersion: "0.1"` and `type: "skill"`.7576For normal skill-only packages:7778```json79{80 "schemaVersion": "0.1",81 "name": "@scope/name",82 "version": "1.0.0",83 "type": "skill",84 "description": "Short package description.",85 "entry": "SKILL.md",86 "targets": ["cursor", "claude"],87 "license": "Apache-2.0"88}89```9091For helper files and manual setup prompts:9293```json94{95 "install": {96 "helperFiles": [97 { "from": "setup/SETUP_PROMPT.md", "to": "SETUP_PROMPT.md" },98 { "from": "setup/README_FOR_AI.md", "to": "README_FOR_AI.md" }99 ],100 "postInstall": {101 "mode": "manual_prompt",102 "promptFile": "SETUP_PROMPT.md",103 "cleanup": "after_user_confirmation"104 }105 }106}107```108109For permanent project files:110111```json112{113 "install": {114 "mainFiles": [115 {116 "from": "files/example.config.js",117 "to": "example.config.js",118 "overwrite": "fail"119 }120 ]121 }122}123```124125Rules:126127- `mainFiles.to` is relative to the install root.128- `helperFiles.to` is relative to the AIPM helper directory.129- `postInstall.promptFile` must match an installed helper file target.130- Default `overwrite` is `fail`.131- Reject absolute paths, empty paths, `..`, path traversal, secrets, logs, and local dependency folders.132133## Setup Prompt Requirements134135When creating `setup/SETUP_PROMPT.md`, make it tell the downstream AI tool to:136137- Inspect the target repo before editing.138- Preserve existing user changes.139- Read the helper docs/templates installed by AIPM.140- Apply only the files/config needed for that repo.141- Ask before overwriting conflicts.142- Avoid secrets, credentials, PII, private URLs, or repo-specific names unless the user chose a repo-specific package.143- Run practical validation commands.144- Tell the user they can run `aipm cleanup <package>` after helper files are no longer needed.145146## Validation147148When in an AIPM repo with the CLI built, validate from the package directory:149150```bash151node /path/to/aipm/apps/cli/dist/bin.cjs publish reset152node /path/to/aipm/apps/cli/dist/bin.cjs publish add .153node /path/to/aipm/apps/cli/dist/bin.cjs publish validate154node /path/to/aipm/apps/cli/dist/bin.cjs publish preview155```156157If the installed `aipm` CLI is available, use that instead:158159```bash160aipm publish reset161aipm publish add .162aipm publish validate163aipm publish preview164```165166Do not push unless the user asks and a valid token is available.