agentleFS
digdirdigdir/designsystemet/.claude/skills/www-content/SKILL.md

www-content

Skill221 starsChanged 7 days agoMITView on GitHub

Rules for pages and blog posts on designsystemet.no. Use when adding, editing, moving or renaming anything under apps/www/app/content, including component documentation.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every page exists as the same file under no/ and en/.

    line 10
  2. Very specific:

    When you edit a page, set the frontmatter date: to today.

    line 16
  3. Very specific:

    When you move or rename a page, add a redirect from the old address in apps/www/app/_utils/redirects.server.ts, and update the links to it …

    line 18
  4. Distinctive:

    Do not write tables of props, CSS variables or data attributes by hand.

    line 32

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Content on designsystemet.no

Two languages

  • Every page exists as the same file under no/ and en/. Change both in the same pull request. Nothing checks that they match.

Pages

  • In fundamentals, intro, best practices and patterns, a page is only shown in the sidebar when its frontmatter has a category. Fundamentals, intro and best practices also need published: true. Without them the page is hidden, with no error.
  • Component pages don't use these fields. A component's group in the sidebar is the category in its metadata.json, and without one it is listed under Components.
  • When you edit a page, set the frontmatter date: to today. Blog posts keep their date.
  • order sorts the page within its category, sidebar_title gives a shorter name in the sidebar, and search_terms is a comma-separated list of extra words for the search.
  • When you move or rename a page, add a redirect from the old address in apps/www/app/_utils/redirects.server.ts, and update the links to it in both languages.

Blog posts

  • The frontmatter needs title, description, date, author, imageSrc and imageAlt. A missing author or date does not fail; the post is shown with "Unknown Author" or the year 2000.
  • Images go in apps/www/public/img/blog/<post name>/ as .webp. Both languages use the same file, with alt and captions translated.
  • The avatars are picked from the names in author:. A new organisation needs an svg in apps/www/public/img/avatars/ and an entry for its Norwegian and English name in apps/www/app/_components/avatar-stack/avatar-stack.tsx.

Component documentation (content/components/<name>/)

  • Each component has metadata.json, <name>.stories.tsx, and overview.mdx, code.mdx and accessibility.mdx in both no/ and en/.
  • <Story story="X" /> shows the export X from the stories file. When a story has text, the English pages use a translated copy named XEn.
  • A wrong story name does not fail the build. The page shows "Story not found", so look at the page in both languages.
  • Readers see the story's source as it is written, so keep each story complete and good enough to copy.
  • Do not write tables of props, CSS variables or data attributes by hand. They are generated from the code.

Changesets

  • A change under content/patterns or content/best-practices needs a changeset for @web/www; CI fails without one. Users link to and copy these pages, so write what changed for them.
  • For a change users don't need to know about, like a typo, the skip-docs-changeset label on the pull request passes the check instead.

Going live

  • Merging to main does not publish the site. It is deployed with the next release, or by running the "Deploy www" workflow by hand.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.