AI
Setup instructions
SGDS skills are instruction files that give compatible AI coding tools clearer design system context.
Setup instructions
If you have ever asked an AI assistant to help you build something, you may have received code that almost works: wrong component names, made-up class names, or outdated patterns.
Skills help with that. They are a set of instruction files you install into your project. Compatible AI coding tools can read them for clearer SGDS context, including the right components, tokens, utilities, and patterns.
Once installed, you can ask things like:
The assistant still needs human review, but it starts with SGDS-specific context instead of relying on generic web examples.
Use these skills with compatible AI coding tools that can read local agent skill files.
Setup GT CLI
Install the GovTech developer CLI. This is available to GovTech Singapore only.
Install SGDS web component package
Run the following command if the SGDS web component package is not installed:
| npm i @govtechsg/sgds-web-component |
Install the SGDS agent skills
Run the GT CLI installer in your project root:
| gt apd install gto-desp |
Select the full skill set
When prompted, select all skills from the list. This creates a local .agents/ folder that your AI tools pick up automatically.
Keep the agent skills updated
After upgrading @govtechsg/sgds-web-component, refresh the SGDS agent skills:
| gt apd install gto-desp |
This keeps the installed SGDS agent skills aligned with the latest workflow, setup guidance, and component instructions.
Install SGDS web component package
Run the following command if the SGDS web component package is not installed:
| npm i @govtechsg/sgds-web-component |
Install the SGDS agent skills
Run the SGDS agent skills installer in your project root:
| npx skills add govtechsg/sgds-web-component |
Select the full skill set
When prompted, select all skills from the list. This creates a local .agents/ folder that your AI tools pick up automatically.
Keep the agent skills updated
After upgrading @govtechsg/sgds-web-component, refresh the SGDS agent skills from the source repository:
| npx skills add govtechsg/sgds-web-component -y |
This keeps the installed SGDS agent skills aligned with the latest workflow, setup guidance, and component instructions.
Available skills
Each skill covers a different area of SGDS. You do not need to remember what is in them. The assistant can read the relevant skill when the task calls for it.
sgds-workflowsgds-getting-startedsgds-components<sgds-*> web components, including 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-patternssgds-layoutssgds-blockssgds-templatessgds-data-visualisationsgds-writingWhere do I start?
Starting from scratch?
Work through these skills in order — each one builds on the last.
sgds-getting-startedsgds-components + sgds-utilitiessgds-pattern-page-templatessgds-pattern-block-templatessgds-formssgds-data-visualisationAlready on SGDS v3?
Skip setup — jump to the skill that covers what you're building right now.
sgds-components
Building or modifying UI components
sgds-utilities
Spacing, layout, and helper classes
sgds-pattern-page-templates
Full-page layout work
sgds-pattern-block-templates
Self-contained UI blocks
sgds-forms
Any form-related work
sgds-data-visualisation
Charts or dashboards only
Not sure where to start? Ask your AI to read the sgds-workflow skill first — it will map out everything based on what you're building.