SGDS agent skills give AI assistants task-specific instructions for building with the design system.
Agent skills are markdown instruction files that help compatible AI coding tools work with SGDS in a more consistent way. They explain which skills to read, which components and utilities to use, how SGDS pages are structured, and which rules to follow when generating design, code, or content.
They work like task-specific guidance for your assistant. When you ask for an SGDS app, page, component, form, chart, theme, or content change, the assistant can use the relevant skill before it makes decisions.
If you are unsure where to start, begin with sgds-workflow. It maps the skill set and points the assistant to the right skill for the task.
AI assistants are strong at producing code quickly. They still need reliable context to choose the right component, utility class, token, layout, copy pattern, and implementation detail. Without that context, the output may look close while drifting from SGDS conventions.
SGDS agent skills make that context available at the point of work. They help the assistant use SGDS as the source of truth instead of inferring patterns from generic web examples.
For new applications, the workflow starts with sgds-getting-started. From there, the assistant moves between components, utilities, layouts, templates, theming, forms, data visualisation, and writing guidance based on the task.
Agent skills are plain markdown files written for AI assistants. Each skill describes when it applies, what to read next, which SGDS APIs or utilities matter, and which common mistakes to avoid.
Agent skills are read by the assistant at query time. They do not add runtime code to your product or replace human review.
With the SGDS agent skills installed, you can describe the outcome you need and let the assistant select the relevant system guidance.
The result should still be reviewed by a human. Agent skills reduce avoidable mistakes by giving the assistant clearer SGDS rules before it acts.
Install the GovTech developer CLI. This is available to GovTech Singapore only.
Run the GT CLI installer in your project root:
| gt apd install sgds |
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 agent skills:
| gt apd install sgds |
This keeps the installed SGDS agent skills aligned with the latest workflow, setup guidance, and component instructions.
Run the SGDS agent 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 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.
Each skill covers a different part of SGDS. This table reflects the SGDS skills currently shipped with this repository. You do not need to memorise the full set. 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-writingAgent skills guide the assistant. They do not replace product judgement, accessibility review, content review, or engineering review.
Treat AI output as a draft that starts closer to SGDS standards. Review the behaviour, visual fit, code quality, and content before shipping.
The Singapore Government Design System was developed to empower teams in creating fast, accessible and mobile-friendly digital services.