Skip to content

Commit b1dd853

Browse files
committed
Add AGENTS>md
1 parent ea2b9fc commit b1dd853

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Agent Notes
2+
3+
## Variants Workflow
4+
5+
When the user asks for variants, proposals, comparisons, or alternatives for a page/component/design:
6+
7+
- Create a directory named `[topic]-variants/`.
8+
- Put each standalone variant in `[topic]-variants/*.html`.
9+
- Include an `[topic]-variants/index.html` comparison page.
10+
- The comparison index should show all variants side by side.
11+
- Each variant preview in the comparison index should be scaled to the site's normal reading width: `67ch`.
12+
- Prefer iframes for the comparison index so each variant keeps its own layout, header, footer, and page-level CSS isolated.
13+
- The comparison index itself should be only the comparison shell unless the user asks otherwise; do not add the site header/footer around the index if the embedded variants already include them.
14+
15+
Example:
16+
17+
```text
18+
avatar-variants/
19+
index.html
20+
01-stacked.html
21+
02-float-right.html
22+
03-heading-lockup.html
23+
04-banner-crop.html
24+
```
25+
26+
The index grid should use fixed-width columns like:
27+
28+
```css
29+
.comparison {
30+
display: grid;
31+
grid-template-columns: repeat(4, 67ch);
32+
gap: 12px;
33+
width: calc((67ch * 4) + 36px);
34+
}
35+
```

0 commit comments

Comments
 (0)