Awesome Cohub
中文
Cheatsheetscohub.cheat.skill-packaging2 min

For repos installed with npx skills.

Pure skill repo layout

my-skill-repo/
├── README.md
├── LICENSE
└── skills/
    └── my-skill/
        ├── SKILL.md          # required frontmatter name + description
        ├── scripts/          # optional — MUST be here to install
        ├── references/       # optional
        └── assets/           # optional

Rules that bite

  1. Everything installable lives under skills/<name>/. Root-level scripts/ are not copied → anti-pattern.
  2. name in frontmatter = install id = /skill:name.
  3. Prefer no required package.json when Node built-ins suffice; document optional peers (Playwright, ffmpeg).
  4. Use node: imports and ESM (.mjs) when you want zero-install scripts.
  5. README should show:
npx skills add https://github.com/<org>/<repo> \
  --skill "<name>" \
  --agent codex \
  --yes \
  --copy
  1. Config Space skills: install → Save → consume from other Spaces as owner.
  2. Do not ship secrets in the skill tree.

Smoke test

rm -rf /tmp/skill-smoke && mkdir /tmp/skill-smoke && cd /tmp/skill-smoke
npx skills add <url> --skill <name> --agent codex --yes --copy
find .agents/skills/<name> -type f | sort

Confirm scripts/assets exist under .agents/skills/<name>/.