react-markuplisted
Install: claude install-skill riseshinee/superclaude-react
# react-markup
Request: `$ARGUMENTS`
## Flags
| Flag | Meaning |
|---|---|
| `--pages` | Convert only these pages (default: plan all, convert in batches) |
| `--assets mirror` | Serve the publisher's CSS/images/fonts as-is from `public/` (default) |
| `--assets bundle` | Import CSS/assets through the bundler (use when the project already does this) |
| `--update` | The publisher sent a revised version — apply only the diff to existing components |
## Golden Rules
1. **Don't change the markup contract.** Keep tag structure, class names, and ids exactly — publisher CSS relies on selectors like `.gnb > li.on > a`. No renaming, no CSS Modules, no Tailwind conversion unless asked.
2. **Keep state classes.** Replace jQuery `addClass('on')` with conditional `className`, using the same class names the CSS expects.
3. **Never ship the publisher's jQuery.** Port behavior into React (state, refs, effects). Third-party widgets get React equivalents or a ref + effect wrapper with cleanup.
4. **Content stays hardcoded first.** Pull repeated items into typed arrays + `.map()`; don't invent API wiring unless requested.
5. **Visual parity is the acceptance test.** Compare the React page against the original HTML at each breakpoint.
## Scripts
Scripts live in this skill's `scripts/` folder (`.claude/skills/react-markup/scripts/` or `~/.claude/skills/react-markup/scripts/`). Node 18+, no dependencies.
```bash
# 1. Inventory the deliverable
node scripts/scan-markup.mjs <publishDir>
# 2.