OpenParable
Skip to content
← Back to skills

Validate PR

Testing & Quality
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.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/cfug/flutter.cn/blob/HEAD/.agents/skills/validate-pr/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/validate-pr, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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.