This AI section is still being developed. Please treat the content as contextual guidance only, as information may be largely incomplete and inaccurate at the time of reading.

LLMs.txt

This page explains what LLMs.txt is and how it helps AI tools understand SGDS.

What is LLMs.txt?

llms.txt is a plain-text file that gives AI tools a structured map of SGDS — what components exist, how they're organised, and where to find them. When your AI reads it, it has a clearer picture of SGDS before generating anything.

Without it, AI tools guess. They may reach for the wrong component, invent tokens that don't exist, or miss patterns your team has established.

How to use it

Tell your AI that you are using SGDS and ask it to read this file for context:

Example prompt
Read https://designsystem.tech.gov.sg/llms-full.txt and understand SGDS. Use this knowledge when writing code with SGDS

Works with GitHub Copilot, Claude Code, Codex, Cursor, Windsurf, and other AI coding tools.

What LLMs.txt can't do

llms.txt gives your AI a map of SGDS — what exists and where to find it. But knowing what exists is different from knowing how to use it well. On its own, llms.txt can't tell your AI which component to use in a specific situation, how to combine patterns correctly, or what conventions your team follows. For that, you need agent skills — instruction files that tell your AI how to build with SGDS step by step.

→ Learn about agent skills

Singapore Government Design System

The Singapore Government Design System was developed to empower teams in creating fast, accessible and mobile-friendly digital services.