ipal-skills --external: vendored third-party agent skills, pinned

- docs/agent/external: Vercel react-best-practices and composition-patterns
  (MIT), Addy Osmani accessibility (MIT), Anthropic frontend-design
  (Apache-2.0), official Payload skill at v3.92.1 (MIT) — text only, each
  with its licence, SOURCE.md (repo, commit) and an override note in front
  of the SKILL.md (ipal-kit first, Payload fetching over swr, DESIGN.md
  tokens, Payload 3 not 4); manifest.json with sha256 per file
- scripts/vendor-external-skills.mjs (maintainer, not shipped): fetches by
  full commit SHA only, rejects non-text or executable files, regenerates
  the manifest; --check verifies it
- ipal-skills --external [names]: copies ext-* after checking every file
  against the manifest, downloads nothing, never touches ext-* folders
  without ipal-kit's SOURCE.md, removes only retired ones it installed;
  an unknown name stops the run before anything is copied
- AGENT.md §14, ipal-setup stage 2 (optional step), README: usage,
  overrides, how to update the pins
- test/externalSkills.test.ts: pins are SHAs, no branch fetch, checksums,
  text only, licences, override note, installer leaves other folders alone

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-29 11:54:35 +01:00
co-authored by Claude Opus 5.5
parent 25719ae7ec
commit e1f82ce387
124 changed files with 18732 additions and 1 deletions
+21
View File
@@ -1343,6 +1343,27 @@ It copies only the `ipal-*` folders: adds new ones, replaces existing ones entir
retired ones. Name the project's own skills **without** the `ipal-` prefix — they stay untouched.
`--dest` must be a subdirectory of the project. Commit the copied `ipal-*` to the project repo.
**External skills (opt-in)** — well-known third-party skills, vendored into the package at pinned commits
(text only, licence + `SOURCE.md` in each folder). `ipal-skills` downloads nothing; it checks every file
against `docs/agent/external/manifest.json` before copying:
```bash
pnpm exec ipal-skills --external # all ext-* next to the ipal-* skills
pnpm exec ipal-skills --external ext-accessibility,ext-payload # only these
```
| Skill | Publisher · licence | What it is for | Our override |
|---|---|---|---|
| `ext-react-best-practices` | Vercel · MIT | React/Next performance rules (waterfalls, bundles, RSC, re-renders) | no `swr` / client-fetch libraries — Server Components + Payload / `@/lib/content` |
| `ext-composition-patterns` | Vercel · MIT | compound components instead of boolean props, React 19 APIs | block schema and `RenderBlocks` follow §6 |
| `ext-accessibility` | Addy Osmani · MIT | WCAG 2.2 audit and fixes | Lighthouse / axe only as pinned devDependencies; ipal-kit components fixed via props or a plugin gap |
| `ext-frontend-design` | Anthropic · Apache-2.0 | distinctive visual direction, design quality floor | `DESIGN.md` tokens win; use it to write/extend `DESIGN.md`, never hex/fonts/text in components |
| `ext-payload` | Payload CMS · MIT | Payload 3 reference (v3.92.1) | reference only, never Payload 4 guidance; ipal-kit features first |
**Our rules win.** Every `ext-*` SKILL.md starts with an override note; when an external skill conflicts with
this file, the project's `AGENTS.md` or `DESIGN.md`, those win — ipal-kit first, Payload data fetching over `swr`,
`DESIGN.md` tokens, Payload 3 not 4. `ext-*` folders are touched only with `--external`, and only those with
ipal-kit's `SOURCE.md`; do not name the project's own skills `ext-…`. Use them only after the owner chose them
("Project decisions").
**`tsconfig.json` must exclude the skills directory** (it contains `.ts`/`.tsx` templates that
break `tsc` and `next build`): `"exclude": ["node_modules", ".agents"]` (with `--dest
.claude/skills` — `".claude"`). Without it `ipal-skills` prints a warning and exits with