Skip to content

Instantly share code, notes, and snippets.

@malarkey
Created April 8, 2026 11:56
Show Gist options
  • Select an option

  • Save malarkey/0eb8aba779811d55ca9060ef2e371bb9 to your computer and use it in GitHub Desktop.

Select an option

Save malarkey/0eb8aba779811d55ca9060ef2e371bb9 to your computer and use it in GitHub Desktop.
Global AGENTS.md
# AGENTS.md## Core rules
- Prefer plain CSS and vanilla JavaScript.
- Prefer inline SVG when control, styling, or reuse matter.
- Use native platform features. Avoid dependencies and libraries.
- Use semantic HTML.
## CSS rules
- Don’t indent CSS declarations.
- Don’t use the `transform` shorthand property.
- Keep the closing curly brace on the same line as the last property.
- Order all CSS properties alphabetically.
- Prefer shallow selectors and avoid deep selector chains.
- Use individual transform properties (`rotate`, `scale`, `translate`).
## Motion
- Always respect `prefers-reduced-motion`.
- Motion should be subtle, purposeful, and non-disruptive.
- Use CSS for animation and JavaScript for triggers.
## Writing
- Use British English.
- Use sentence case for headings, interface copy, and labels.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment