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.
In this repository4 other files it gives its agents.
- cli-generated-filesSkill
- designsystemetSkill
- figmaSkill
- webSkill
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
- Very specific: line 10
Every page exists as the same file under no/ and en/.
- Very specific: line 16
When you edit a page, set the frontmatter date: to today.
- Very specific: line 18
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 …
- Distinctive: line 32
Do not write tables of props, CSS variables or data attributes by hand.
≈ “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.
Files
Content on designsystemet.no
Two languages
- Every page exists as the same file under
no/anden/. 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 needpublished: 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
categoryin itsmetadata.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. ordersorts the page within its category,sidebar_titlegives a shorter name in the sidebar, andsearch_termsis 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,imageSrcandimageAlt. 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, withaltand captions translated. - The avatars are picked from the names in
author:. A new organisation needs an svg inapps/www/public/img/avatars/and an entry for its Norwegian and English name inapps/www/app/_components/avatar-stack/avatar-stack.tsx.
Component documentation (content/components/<name>/)
- Each component has
metadata.json,<name>.stories.tsx, andoverview.mdx,code.mdxandaccessibility.mdxin bothno/anden/. <Story story="X" />shows the exportXfrom the stories file. When a story has text, the English pages use a translated copy namedXEn.- 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/patternsorcontent/best-practicesneeds 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-changesetlabel on the pull request passes the check instead.
Going live
- Merging to
maindoes not publish the site. It is deployed with the next release, or by running the "Deploy www" workflow by hand.
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
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.

