Skip to content
Back to skills

Ds Component

ASecurity

Author or update a component contract against a governing ADR or proposal, then generate a selected React, Vue, Angular, or Web Component implementation into a consumer directory. Use for creating a design-system component or implementing a component decision.

  • 20 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 3, 2026
designgoreactvueangularnodeapibackend

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 23, 2026

npx -y skills add cris-achiardi/weave-ds-template --skill ds-component --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ds Component?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ds Component
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cris-achiardi-ds-component/badge)](https://www.skillsdirectory.com/skills/cris-achiardi-ds-component)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ds-component
description: Author or update a component contract against a governing ADR or proposal, then generate a selected React, Vue, Angular, or Web Component implementation into a consumer directory. Use for creating a design-system component or implementing a component decision.
metadata:
  status: active
  summary: "Authors or updates a component contract against a governing ADR or proposal, adds the backend binding, then runs that backend's emitter into a consumer directory."
  writes-to: '`packages/contracts/components/`, `packages/<backend>/bindings/`, the consumer directory'
---

# Contract-first component authoring

Name the governing ADR or proposal before authoring a new contract. If no decision exists,
record the missing decision and resolve it within the user's authorized scope; do not silently
invent an API. Existing contracts and their governing records are sufficient for regeneration.

## Read the applicable contracts

- Always read `packages/contracts/components/README.md` and the selected backend's emitter README.
  Read `packages/react/src/emit/README.md` for the generated-output ownership rules, even when
  choosing another backend; framework-specific mechanics come from that backend.
- Read `packages/contracts/prop-canon.json` before naming an axis. The generated
  `.ai/maps/prop-map.md` attributes API spellings to each backend.
- For authoring, use [authoring-the-contract.md](references/authoring-the-contract.md).
- For anatomy, layout, and regeneration, use [component-anatomy.md](references/component-anatomy.md).
- For paint channels and consumer themes, use [token-policy.md](references/token-policy.md).

## Author, generate, verify

1. Resolve the component, governing decision, backend, and output directory from the request or
   repository context. Only ask for missing information that changes the result.
2. Write or update `packages/contracts/components/<Name>/<Name>.contract.json` and its changelog.
   Intent, axes/defaults, state ownership, anatomy, semantics, and layout come from the decision.
   Unknown accessibility claims remain recorded gaps. Never invent a field to fill a blank.
3. Add the chosen backend binding under `packages/<backend>/bindings/` using its schema and
   adjacent bindings. Shared web facts belong in the platform layer. If a declared feature cannot
   be emitted, report that limitation and fix the emitter within the agreed scope.
4. Read back `pnpm contract <Name> --backend <backend> --pretty`. Review the resulting public API.
5. Generate with `node packages/<backend>/src/emit/emit.mjs <Name> --out <consumer-directory>`.
   The emitter writes a component subdirectory. Regenerate owned source and structure; preserve
   existing consumer theme files. Change emitter templates, never patch generated output by hand.
6. Run `pnpm prop-map`, inspect vocabulary findings, then `pnpm verify`. Exercise changed browser
   behavior with `pnpm test:browser` and a focused fixture when the current lane lacks coverage.
   Test the generated consumer code, not only the emitter's own derived metadata.

Report the governing decision, contract/API changes, generated destination, tests, and limitations.
Do not add a hand-written component to a package barrel: these packages ship emitters and behavior,
and consumer repositories own the generated components.

Files in this skill

  • SKILL.md7.8 KB
  • references/authoring-the-contract.md6.2 KB
  • references/component-anatomy.md4.3 KB
  • references/token-policy.md3.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in design →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.