@web-hig/install
v1.12.5
Published
Install The Web HIG Quick Reference, agent rules, and editor skills into a project
Maintainers
Readme
@web-hig/install
Pin The Web HIG into your product repository: version file, HIG-QUICK (and optional LITE / full spec), rules/ modules, framework/ adapters, and agent rules for Cursor, Claude Code, Copilot, and Windsurf.
Not a component library. You keep your stack and design system; this installs the behavioural contract agents and CI can reference.
Install / run
No global install required:
npx @web-hig/installEquivalent onboarding via the unified CLI:
npx @web-hig/cli initWhat gets written
Default target: current directory. Default pin directory: docs/hig/.
Quick profile (default)
| Output | Purpose |
| --- | --- |
| docs/hig/VERSION | Semver pin (must match agent rules) |
| docs/hig/HIG-QUICK.md | Layer 1 — daily dev + AI default context |
| docs/hig/HIG-CORE.md | Archetypes, philosophy, simplicity rule |
| docs/hig-scope.md | Example scope map (only if missing) |
| Editor rules + web-hig skill | Cursor, Claude, Copilot, Windsurf, AGENTS.md |
Practical profile
Everything in quick, plus:
| Output | Purpose |
| --- | --- |
| docs/hig/HIG-LITE.md | Rule IDs and checklists |
| docs/hig/rules/ | Topic modules, archetype packs, registry.yaml |
| docs/hig/framework/ | React, Next, Vue, Nuxt, Astro adapters |
Required for web-hig check / @web-hig/core (registry on disk).
Full profile
Everything in practical, plus:
| Output | Purpose |
| --- | --- |
| docs/hig/HIG.md | Complete normative specification |
Options
npx @web-hig/install --dir ./my-app
npx @web-hig/install --editors cursor,claude
npx @web-hig/install --profile practical
npx @web-hig/install --profile full --force
npx @web-hig/install --dry-run| Flag | Meaning |
| --- | --- |
| --dir <path> | Target project (default: cwd) |
| --editors <list> | cursor, claude, copilot, windsurf, agents (default: all) |
| --profile <name> | quick (default), practical, full |
| --docs-dir <path> | Pin directory (default: docs/hig) |
| --force | Overwrite existing dedicated HIG files |
| --dry-run | Print actions without writing |
| --no-scope | Skip docs/hig-scope.md |
After installing
- Customize scope — Edit
docs/hig-scope.md(archetypes per route/product area). - Tell agents — e.g. “Follow The Web HIG Quick Reference; pin is in docs/hig/.”
- Optional conformance CLI — Install
@web-hig/cliand setWEB_HIG_ROOT=docs/higforweb-hig check. - Upgrade — Re-run install when VERSION bumps, or follow RELEASE_NOTES.md.
Example agent contract line:
Pinned contract: The Web HIG v1.12.5 · Practical profile · Application archetypeProfiles vs npm tooling
| Concept | Meaning |
| --- | --- |
| Install profile (quick / practical / full) | How much documentation is copied into docs/hig/ |
| CLI profile (in web-hig.yaml) | How much of the contract web-hig check evaluates |
See PROFILES.md.
Manual alternative
You can vendor files by hand instead of this package:
- Copy VERSION and HIG-QUICK.md into
docs/hig/. - Copy templates from examples/agent-rules/.
The installer keeps pins aligned with the published npm version’s bundled payload.
Integration guide
Full adoption path: INTEGRATION.md
Related packages
| Package | Role |
| --- | --- |
| @web-hig/cli | web-hig check, explain, init |
| @web-hig/core | Programmatic registry and reports |
Publish (maintainers)
From this directory, after contract VERSION matches package.json:
See packages/PUBLISHING.md for npm org @web-hig, Automation tokens, and CI.
node scripts/sync-vendor.mjs
npm publish --access publicprepack syncs vendor/ automatically. Do not commit vendor/.
License
MIT · The Web HIG
