Skip to content

Overhaul AI documentation architecture and getting started guides - #13778

Open
jesskuras wants to merge 14 commits into
flutter:mainfrom
jesskuras:ai-docs-overhaul
Open

Overhaul AI documentation architecture and getting started guides#13778
jesskuras wants to merge 14 commits into
flutter:mainfrom
jesskuras:ai-docs-overhaul

Conversation

@jesskuras

@jesskuras jesskuras commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Description

This PR overhauls the content and information architecture of the Flutter AI documentation (docs.flutter.dev/ai), unifying getting started workflows, consolidating conceptual guides, and removing outdated / redundant pages.

Key Changes

  1. Centralize setup in /ai/get-started:
    • Multi-agent tabs for Antigravity (CLI & IDE), Claude Code, Cursor, GitHub Copilot (VS Code), Codex, and Other (generic MCP clients).
    • High-level primer on how plugins, skills, and MCP work together.
  2. Consolidate tooling concepts in /ai/tools:
    • Unified conceptual overview for Agent skills, Dart and Flutter MCP server, Developer Knowledge MCP server, Package skills, and AI rules.
    • Includes progressive disclosure explanations, an architecture overview, and a "When to use what" comparison guide.
  3. Add Package skills guide in /ai/package-skills:
    • Instructions for app developers on discovering skills with dart run skills@ get.
    • Guidelines for package authors on bundling skills in skills/<package_name>/SKILL.md.
    • Cross-linked from /packages-and-plugins/using-packages and /packages-and-plugins/developing-packages.
  4. Deprecations and Removals:
    • Removed redundant / outdated pages: /ai/create-with-ai, /ai/coding-assistants/*, /ai/antigravity*, /ai/agent-skills, /ai/mcp-server, /ai/ai-rules, /ai/best-practices/developer-experience, and /ai/evals.
    • Added permanent 301 redirects in sites/docs/firebase.json for all removed routes.
  5. Navigation & Cross-links:
    • Streamlined the Develop with AI sidebar hierarchy in sites/docs/src/data/sidenav/default.yml.
    • Updated cross-site links (index.md, llms.txt, hot-reload.md, etc.).

- Centralize coding assistant setup instructions in /ai/get-started with tabs for Antigravity, Claude Code, Cursor, GitHub Copilot, Codex, and generic MCP clients.
- Add /ai/tools explaining agent skills, the Dart and Flutter MCP server, Developer Knowledge MCP server, package skills, AI rules, and custom agents.
- Add /ai/package-skills for app developers and package authors.
- Cross-link package skills in /packages-and-plugins guides and sidebar.
- Remove redundant and deprecated pages (/ai/create-with-ai, /ai/coding-assistants/*, /ai/agent-skills, /ai/mcp-server, /ai/ai-rules, /ai/best-practices/developer-experience, /ai/evals).
- Configure 301 redirects for all removed pages in sites/docs/firebase.json.
- Update sidebar navigation in default.yml and fix cross-site links.
@flutter-website-bot

flutter-website-bot commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Staged preview of the updated docs.flutter.dev site (updated for commit 07d70f4):

https://flutter-docs-prod--docs-pr13778-ai-docs-overhaul-robeno19.web.app

@flutter-website-bot

flutter-website-bot commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Staged preview of the updated flutter.dev site (updated for commit 07d70f4):

https://flutter-dev-230821--www-pr13778-ai-docs-overhaul-grh8yqwe.web.app

@jesskuras
jesskuras marked this pull request as ready for review August 25, 2026 20:23
@jesskuras
jesskuras requested review from a team and sfshaza2 as code owners August 25, 2026 20:23

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request reorganizes and consolidates the AI-assisted development documentation for Flutter and Dart. It removes several redundant or outdated markdown files (such as agent-skills.md, ai-rules.md, antigravity.md, and mcp-server.md) and introduces two new guides: package-skills.md and tools.md. Additionally, it updates the get-started.md guide to serve as a comprehensive entry point for setting up various AI coding assistants, and updates relevant links, redirects, and the sidebar navigation accordingly. The review feedback highlights an outdated global configuration path for the Antigravity CLI and points out multiple instances of an invalid Dart CLI command syntax (using skills@ instead of skills).

Comment on lines +59 to +61
1. Configure the Dart and Flutter MCP server in your project's
`.agents/mcp_config.json` file (or globally in
`~/.gemini/config/mcp_config.json`):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The global configuration path mentioned here (~/.gemini/config/mcp_config.json) is outdated and refers to the legacy Gemini CLI. Since this section is specifically for the Antigravity CLI, the global configuration should point to the new path: ~/.antigravity/mcp_config.json.

Suggested change
1. Configure the Dart and Flutter MCP server in your project's
`.agents/mcp_config.json` file (or globally in
`~/.gemini/config/mcp_config.json`):
1. Configure the Dart and Flutter MCP server in your project's
`.agents/mcp_config.json` file (or globally in
`~/.antigravity/mcp_config.json`):

Comment thread sites/docs/src/content/ai/package-skills.md
Comment thread sites/docs/src/content/ai/package-skills.md
Comment thread sites/docs/src/content/ai/package-skills.md
Comment on lines +101 to +106
When you add a dependency to your project, you can discover and install its
skills using the `skills` CLI:

```bash
dart run skills@ get
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The command dart run skills@ get contains an invalid package name skills@. Please remove the @ symbol to make it a valid Dart CLI command.

Suggested change
When you add a dependency to your project, you can discover and install its
skills using the `skills` CLI:
```bash
dart run skills@ get
```
When you add a dependency to your project, you can discover and install its
skills using the `skills` CLI:
```bash
dart run skills get

Comment on lines +509 to +514
If your project dependencies include skills, you can discover and install them
into your local workspace with a single command:

```bash
dart run skills@ get
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The command dart run skills@ get contains an invalid package name skills@. Please remove the @ symbol to make it a valid Dart CLI command.

Suggested change
If your project dependencies include skills, you can discover and install them
into your local workspace with a single command:
```bash
dart run skills@ get
```
If your project dependencies include skills, you can discover and install them
into your local workspace with a single command:
```bash
dart run skills get


1. Create a `skills/` directory in the root of your package repository.
2. Inside `skills/`, create a subdirectory prefixed with your package name (for
example, `skills/my_package_network/`).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can (and technically should) actually use hyphens instead of underscores, this is just a clash between the skills spec and dart package name rules, but skills are only supposed to use hyphens.

We do allow either, and afaik all the agents will allow underscores in practice, but its technically a spec violation.

Suggested change
example, `skills/my_package_network/`).
example, `skills/my-package-network/`).

@johnpryan johnpryan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great overall

configuration for the [Dart and Flutter MCP server](/ai/mcp-server).
By default, general-purpose AI assistants might not have the latest context on
Flutter patterns, project diagnostics, or third-party packages. Installing the
official Flutter agent plugins equips your assistant with dedicated tools and

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
official Flutter agent plugins equips your assistant with dedicated tools and
official Flutter agent plugin equips your assistant with dedicated tools and

Comment on lines +36 to +38
In addition to core Flutter plugins, you can also equip your assistant with
[package skills](/ai/package-skills) shipped directly by third-party `pub.dev`
libraries.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
In addition to core Flutter plugins, you can also equip your assistant with
[package skills](/ai/package-skills) shipped directly by third-party `pub.dev`
libraries.
In addition to core Flutter plugins, you can also equip your assistant with
skills that are shipped directly by third-party `pub.dev`
packages using the [skills](/ai/package-skills) package.

}
```

1. Install official Flutter and Dart skills into your workspace:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused how Antigravity CLI plugins work. When I install the Flutter plugin in Antigravity 2.0, it goes into my ~/.gemini/config/plugins/flutter/ directory, and the Antigravity CLI can see it. But when I run agy plugins list, I don't see it.

I think this section will eventually be replaced with a simple agy plugin install command, but I don't know exactly what that should look like.

cc: @keertip

@sfshaza2 sfshaza2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jesskuras, this is a great overhaul! I leave the technical accuracy to the tech reviewers (and the bot certainly has thoughts), but I spent some time on the staged site and it's so much cleaner, more concise, and clearer. I'm glad that the AI tab (which I'm not a fan of and would prefer to delete) just takes you to the same pages as the sidenav that you've restored. I know you have some feedback to incorporate, but I'm going to lgtm this so you can land when ready!

Use when making network requests with my_package to ensure safe patterns.
---

# Error Handling Guidelines

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Error Handling Guidelines
# Error handling guidelines

@lamek lamek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Much cleaner, great update Jess.

## How to perform a hot reload

If you are using an AI coding assistant like [Google Antigravity](/ai/antigravity),
If you are using an AI coding assistant like [Google Antigravity](/ai/get-started),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably remove this as we link to the same place a few lines down.


If you are using an AI coding assistant like [Google Antigravity](/ai/antigravity),
If you are using an AI coding assistant like [Google Antigravity](/ai/get-started),
you can use Agent mode to automatically hot reload your running application

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This update is a good chance to clarify this. Suggestion:

If you are using an AI coding assistant like Google Antigravity, the assistant can automatically hot reload your running application after making changes, or when asked to "Reload the app".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants