# Validate PR

> Validate PR is an Agent Skill for testing & quality published in the cfug/flutter.cn repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Stages the Flutter site locally. This includes checking for broken links, verifying excerpts, updating formatting, and serving the dev site.

- Skill name: `validate-pr`
- Category: [Testing & Quality](https://www.openparable.com/skill/testing-quality/1)
- Source: https://github.com/cfug/flutter.cn/blob/HEAD/.agents/skills/validate-pr/SKILL.md
- Repository: cfug/flutter.cn (567 GitHub stars when collected)

## SKILL.md

# Validate the site

## Sync code excerpts

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

```bash
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:

```bash
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:

```bash
dart run dash_site check-link-references
```

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

---

Source: https://www.openparable.com/skill/testing-quality/validate-pr (OpenParable). Cite the canonical URL above.
