# AGENTS.md

Guidance for coding agents working on the AgentsORG DESIGN specification repository.

## Project

This repo defines the **`.design` file format** (design.v1): a living visual contract for AI design, plus a portable Agent Skill, shadcn/ui integration, and getdesign.md-sourced examples.

- Normative spec: [SPEC.md](SPEC.md)
- Philosophy: [PHILOSOPHY.md](PHILOSOPHY.md)
- Schema: [schema/design.v1.schema.json](schema/design.v1.schema.json)
- Skill: [skills/design/](skills/design/)
- Docs: [docs/INDEX.md](docs/INDEX.md)
- Examples: [examples/](examples/) (from [getdesign.md](https://getdesign.md/))

## Design (meta)

When editing format docs or examples, treat [SPEC.md](SPEC.md) as source of truth. Examples are independent brand analyses — not affiliated with those companies. Prefer [examples/vercel.design](examples/vercel.design) as the default teaching sample.

## How to change the format

1. Update `SPEC.md` first (normative).
2. Keep `schema/design.v1.schema.json` in sync.
3. Update `skills/design/` references if procedure changes.
4. Refresh examples (`python scripts/convert_getdesign.py` or hand-edit).
5. Validate: `python scripts/lint_design.py`; exporter/diff smoke: `python scripts/export_design.py templates/starter.design --out-dir <tmp>`.
6. Keep `docs/` diagrams accurate (especially shadcn + discovery).
7. Note breaking changes clearly; bump documented schema only with a new `design.vN` when breaking.

## Do not

- Commit editor- or agent-local state directories
- Invent a parallel token graph that conflicts with SPEC.md
- Reintroduce `proposed_changes` / in-file history blocks
- Commit secrets
- Claim examples are official brand design systems

## Commits / PRs

Prefer clear, focused commits: spec, schema, skill, examples, or docs. Do not push to GitHub unless the user explicitly asks.

## Learned User Preferences

- Prefer a single `.design` file format (e.g. `brand.design`), not a `.design/` folder contract
- Shared `.design` files must be self-contained, including in-file instructions so an agent can use the file when it is dropped in or pointed at
- Prefer dual-audience contracts: normative machine tokens/rules plus human philosophy, examples, and anti-examples, including agent decision policy
- Prefer first-class shadcn/ui integration (semantic tokens, CSS variables, component mapping)
- Prefer getdesign.md-sourced brand examples over inventing new ones; keep docs detailed and diagram-backed
- Keep durable UI craft consolidated in `skills/design/references/CRAFT.md` rather than scattering guidance
- Include a skills.sh badge in the README for published skills

## Learned Workspace Facts

- Canonical public home is `github.com/AgentsORG/DESIGN` (AgentsORG / [agents.org.in](https://www.agents.org.in/))
- Interop targets: Google `design.md`, getdesign.md, shadcn/ui (CLI + MCP), HyperFrames `frame.md` (video), and agentskills.io / skills.sh
- Companion craft skills the `design` skill routes to (never duplicates): AgentsORG `design-engineering` (github.com/AgentsORG/design-engineering — motion, sound, typography, anti-tells; `/design-engineering` router) and impeccable (impeccable.style — named polish / critique passes). Audio files come from ElevenLabs `sound-effects` or the design-engineering generator, prompted by `tokens.sound.material`.
- Sound in the contract is a *decision*, not a feature: product UI ships `tokens.sound.enabled: false`; only `targets[].name: video` inverts that.
