Validate pr

From flutter/website · View interactive version

Validate pr is an AI agent skill from the GitHub repository flutter/website. Stages the Flutter site locally. This includes checking for broken links, verifying excerpts, updating formatting, and serving the dev site.

How to use this skill

Skill file

Validate the site

Sync code excerpts

Ensure that any changed code excerpts are properly run and synced to the

Markdown files:

dart run dash_site refresh-excerpts

Update formatting

Update the formatting of the site examples and tools to ensure

they follow the official Dart format:

dart run dash_site format-dart

Check for broken links

Run the following command to check for any unlinked or broken

Markdown link references in the site output:

dart run dash_site check-link-references

If any broken links are found, try to patch them or alert the user.

Check for duplicate IDs

Run the following command after building the site

to verify that no element ID is repeated on its rendered page:

dart run dash_site check-duplicate-ids

If any duplicate IDs are found,

try to remove or rename the extra IDs or alert the user.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.