@skriv/ads
v0.3.0
Published
Project-local Agentic Design System skills, onboarding and diagnostics
Readme
@skriv/ads
Install the Agentic Design System skill bundle into an existing project. Requires Node.js 22+ and npm. This package has no runtime npm dependencies and needs no global installation.
npx @skriv/ads@latest initThen ask your agent: Connect ADS to this project. The installer creates a pending profile; the agent discovers actual commands, routes, tokens, contracts and evidence. Recording and review begin on their own requests.
Included
- ads-init: project discovery and settings refresh.
- ads-record: local walkthrough recording and verified video handoff.
- ads-code-review: integrated behavior checks against approved contracts.
- ads-figma-to-code and ads-code-to-figma: design handoff in either direction.
- Optional HeroUI group: heroui-react for building interfaces and heroui-theming for global restyling and named light/dark themes. Selected for repositories without dependencies, HeroUI v3, React 19 apps without HeroUI, or explicitly with --with-heroui. Both skills include their Apache-2.0 licenses; theming includes read-only scripts that inspect the installed @heroui/styles.
- Project profile, behavior-contract and review-report templates.
- Versioned installation metadata and file hashes, diagnostics and video validation.
Commands
npx @skriv/ads@latest init ./product
npx @skriv/ads@latest init --dry-run
npx @skriv/ads@latest update
npx @skriv/ads@latest update --with-heroui
npx @skriv/ads@latest doctor
npx @skriv/ads@latest video-check ./walkthrough.mp4All commands support --json. Init and update support --dry-run. Run from the project root or pass its directory. HeroUI detection scans app manifests up to four directory levels, excluding build, dependency and hidden directories. Use --with-heroui when a v3 version comes from a workspace catalog or alias. Updating a 0.1.x installation that already selected heroui-react also installs heroui-theming, even if detection no longer finds its app manifest.
Project files and updates
Skills go into .agents/skills/. AGENTS.md gets a marked ADS block alongside existing instructions. A new profile goes to docs/ads/project.md; a pre-existing profile is preserved. The installer seeds docs/component-catalog.md once, including on upgrade. The product owns the widget source, contract, catalog entry and review evidence. Agents search that catalog before creating a screen. New entries start Pending and acquire Reviewed after the independent checks and the affected integrations pass. Contract and report templates go into docs/ads/templates/. .ads/install.json records the installed version and hashes. Commit these files to share ADS with the team.
HeroUI installations also get docs/ads/templates/theming.md. The agent records approved token-definition files, exact selectors and theme names in the project profile, adapting the project's own token gate as needed. Raw values in upstream component examples still need approved tokens under ADS. The package supplies guidance; the reference lab's checker and its dependency set remain repository tools. Changing the theme still requires verifying states, both modes, focus and reduced motion.
Updates replace unchanged managed files. They preserve the project profile and instructions outside the marked block. If a managed file or routing block has local edits, the entire update stops before writing; compare it with the new bundle and reconcile before retrying. There is no force overwrite. An identical existing file can be adopted on init; a differing untracked skill requires reconciliation. Existing legacy ads-review installations need manual reconciliation with ads-code-review.
During connection the agent sets up a new HeroUI app with the React and styles versions in .ads/install.json, verifies its build and checks recording with a disposable synthetic clip. Existing apps retain their locked dependencies. Init itself only writes project files. For recording, doctor checks FFmpeg, ffprobe, agent-browser and project Playwright availability; the agent verifies the actual browser session. Missing optional tools are warnings. Missing or modified managed files are errors. A pending profile is a warning requiring discovery before recording or review. Figma access is checked by the agent in its connected Figma tool.
Install FFmpeg/ffprobe with your OS package manager when recording is needed. Use the project's approved browser tooling; follow its setup for Chrome, agent-browser or Playwright. video-check verifies a positive-duration video stream and decodes it with FFmpeg; the agent still checks that the intended scenario appears in the recording. Figma authentication and GitHub delivery use the user's existing connections.
Maintainers
Source and release instructions: skriv/ADS. The package is UNLICENSED; both bundled HeroUI skills retain their own Apache-2.0 licenses.
