SGDS skills are knowledge packs that teach AI assistants how to use the design system correctly.
llms.txt tells your AI what SGDS contains. Skills tell your AI how to use it.
Think of llms.txt as the ingredient list, and skills as the recipe.
Skills are markdown files that give your AI step-by-step instructions for working with SGDS — which components to reach for, which tokens and patterns to follow, and what good output looks like. You install them once into your project, and your AI reads them automatically from that point on.
If you're unsure where to start, begin with sgds-workflow. It maps the skill set and points your AI to the right skill for the task.
If you've ever asked an AI to help you build something, you've probably seen the result: code that almost works — wrong component names, made-up class names, patterns that don't exist in your design system. The AI isn't being careless. It simply doesn't know how your system works.
Skills fix that. Once installed, your AI understands exactly how SGDS is structured without you having to explain it every time.
For new applications, the workflow starts with sgds-getting-started. From there, your AI moves between components, utilities, theming, templates, and forms depending on the task.
Skills are plain markdown files structured for AI consumption. Each skill contains:
Skills are read by the agent at query time. They do not add runtime dependencies to your project.
Instead of wrestling with your AI to get correct output, you can simply describe what you want to build:
Your AI will respond with accurate, SGDS-aligned answers — no guessing, no wrong names, no hallucinated components.
Run the SGDS skills installer in your project root:
npx skills add govtechsg/sgds-web-component When prompted, select all skills from the list. This creates a local .agents/ folder that your AI tools pick up automatically.
After upgrading @govtechsg/sgds-web-component, refresh the SGDS skills from the source repository:
npx skills add https://github.com/govtechsg/sgds-web-component.git -g -yThis keeps the installed SGDS skills aligned with the latest workflow, setup guidance, and component instructions.
Each skill covers a different area of SGDS. You don't need to remember what's in them — your AI reads them for you.
sgds-workflowsgds-getting-startedsgds-components<sgds-*> web components — attributes, slots, events, and framework integration (React 19+, React ≤18, Vue, Angular, Next.js).sgds-utilitiessgds: Tailwind utility classes: grid, spacing, typography, colours, borders, and more.sgds-themingsgds-formsFormData, and setInvalid.sgds-pattern-block-templatessgds-pattern-page-templatessgds-data-visualisation Skills guide the agent. They rely on what's underneath — llms.txt points the AI to what exists, and the SGDS documentation gives it the detail. The richer both are, the better the skills perform.
The Singapore Government Design System was developed to empower teams in creating fast, accessible and mobile-friendly digital services.