writing my design system and foundations in @paper with opus 5.5 so my agents can't skip a single rule
claude builds each foundation with me and keeps the paper file and the code in sync.
how I do it:
1. split each foundation into sections, like radius, tokens, nested corners and do's/don'ts
2. add mockups to every section showing the rule in use
3. write every edge case and its fix on the same page
4. end every page with instructions for agents: steps, self-checks and do's/don'ts
then the code checks the rules too, with contrast checks, class checks and a self-check script agents run before finishing.
instructions tell the agent what to do, and the checks catch it when it doesn't.
i could've used ready-made skills, but i kept tweaking them, so i built my own. slower, but way better results.