diff --git a/docs/agent-directive.md b/docs/agent-directive.md new file mode 100644 index 0000000..16408de --- /dev/null +++ b/docs/agent-directive.md @@ -0,0 +1,393 @@ +# Agent Directive: Agentic Semantic Web + +**For LLM agents generating web content using the ASW framework.** + +## The Complete Constraint + +**Write semantic HTML. Use `data-` attributes for vault concepts. Never write `style=` (except CSS variables for data values). Never invent classes. If Pico + data-attributes can't express it, document the gap.** + +This is your only rule for web generation. + +### The CSS Variable Exception + +Inline styles are forbidden **except** for CSS custom property values that represent data: + +```html + +