community-ff-mcp 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/README.md +300 -0
  2. package/build/api/flutterflow.d.ts +11 -0
  3. package/build/api/flutterflow.js +61 -0
  4. package/build/index.d.ts +2 -0
  5. package/build/index.js +78 -0
  6. package/build/prompts/dev-workflow.d.ts +2 -0
  7. package/build/prompts/dev-workflow.js +68 -0
  8. package/build/prompts/generate-page.d.ts +2 -0
  9. package/build/prompts/generate-page.js +37 -0
  10. package/build/prompts/inspect-project.d.ts +2 -0
  11. package/build/prompts/inspect-project.js +30 -0
  12. package/build/prompts/modify-component.d.ts +2 -0
  13. package/build/prompts/modify-component.js +40 -0
  14. package/build/resources/docs.d.ts +2 -0
  15. package/build/resources/docs.js +76 -0
  16. package/build/resources/projects.d.ts +3 -0
  17. package/build/resources/projects.js +60 -0
  18. package/build/tools/find-component-usages.d.ts +21 -0
  19. package/build/tools/find-component-usages.js +216 -0
  20. package/build/tools/find-page-navigations.d.ts +26 -0
  21. package/build/tools/find-page-navigations.js +220 -0
  22. package/build/tools/get-api-endpoints.d.ts +2 -0
  23. package/build/tools/get-api-endpoints.js +126 -0
  24. package/build/tools/get-app-settings.d.ts +2 -0
  25. package/build/tools/get-app-settings.js +169 -0
  26. package/build/tools/get-app-state.d.ts +2 -0
  27. package/build/tools/get-app-state.js +96 -0
  28. package/build/tools/get-component-summary.d.ts +22 -0
  29. package/build/tools/get-component-summary.js +195 -0
  30. package/build/tools/get-custom-code.d.ts +2 -0
  31. package/build/tools/get-custom-code.js +380 -0
  32. package/build/tools/get-data-models.d.ts +2 -0
  33. package/build/tools/get-data-models.js +266 -0
  34. package/build/tools/get-editing-guide.d.ts +7 -0
  35. package/build/tools/get-editing-guide.js +185 -0
  36. package/build/tools/get-general-settings.d.ts +2 -0
  37. package/build/tools/get-general-settings.js +116 -0
  38. package/build/tools/get-in-app-purchases.d.ts +2 -0
  39. package/build/tools/get-in-app-purchases.js +51 -0
  40. package/build/tools/get-integrations.d.ts +2 -0
  41. package/build/tools/get-integrations.js +137 -0
  42. package/build/tools/get-page-by-name.d.ts +3 -0
  43. package/build/tools/get-page-by-name.js +56 -0
  44. package/build/tools/get-page-summary.d.ts +22 -0
  45. package/build/tools/get-page-summary.js +205 -0
  46. package/build/tools/get-project-config.d.ts +2 -0
  47. package/build/tools/get-project-config.js +216 -0
  48. package/build/tools/get-project-setup.d.ts +2 -0
  49. package/build/tools/get-project-setup.js +212 -0
  50. package/build/tools/get-theme.d.ts +2 -0
  51. package/build/tools/get-theme.js +199 -0
  52. package/build/tools/get-yaml-docs.d.ts +6 -0
  53. package/build/tools/get-yaml-docs.js +116 -0
  54. package/build/tools/get-yaml.d.ts +2 -0
  55. package/build/tools/get-yaml.js +53 -0
  56. package/build/tools/list-files.d.ts +3 -0
  57. package/build/tools/list-files.js +49 -0
  58. package/build/tools/list-pages.d.ts +25 -0
  59. package/build/tools/list-pages.js +101 -0
  60. package/build/tools/list-projects.d.ts +3 -0
  61. package/build/tools/list-projects.js +23 -0
  62. package/build/tools/search-project-files.d.ts +2 -0
  63. package/build/tools/search-project-files.js +69 -0
  64. package/build/tools/sync-project.d.ts +3 -0
  65. package/build/tools/sync-project.js +147 -0
  66. package/build/tools/update-yaml.d.ts +3 -0
  67. package/build/tools/update-yaml.js +24 -0
  68. package/build/tools/validate-yaml.d.ts +3 -0
  69. package/build/tools/validate-yaml.js +39 -0
  70. package/build/utils/batch-process.d.ts +2 -0
  71. package/build/utils/batch-process.js +10 -0
  72. package/build/utils/cache.d.ts +58 -0
  73. package/build/utils/cache.js +199 -0
  74. package/build/utils/decode-yaml.d.ts +7 -0
  75. package/build/utils/decode-yaml.js +31 -0
  76. package/build/utils/page-summary/action-summarizer.d.ts +24 -0
  77. package/build/utils/page-summary/action-summarizer.js +291 -0
  78. package/build/utils/page-summary/formatter.d.ts +13 -0
  79. package/build/utils/page-summary/formatter.js +129 -0
  80. package/build/utils/page-summary/node-extractor.d.ts +24 -0
  81. package/build/utils/page-summary/node-extractor.js +227 -0
  82. package/build/utils/page-summary/tree-walker.d.ts +6 -0
  83. package/build/utils/page-summary/tree-walker.js +55 -0
  84. package/build/utils/page-summary/types.d.ts +58 -0
  85. package/build/utils/page-summary/types.js +4 -0
  86. package/build/utils/parse-folders.d.ts +9 -0
  87. package/build/utils/parse-folders.js +29 -0
  88. package/build/utils/resolve-data-type.d.ts +2 -0
  89. package/build/utils/resolve-data-type.js +18 -0
  90. package/build/utils/topic-map.d.ts +7 -0
  91. package/build/utils/topic-map.js +122 -0
  92. package/docs/ff-yaml/00-overview.md +166 -0
  93. package/docs/ff-yaml/01-project-files.md +2309 -0
  94. package/docs/ff-yaml/02-pages.md +572 -0
  95. package/docs/ff-yaml/03-components.md +784 -0
  96. package/docs/ff-yaml/04-widgets/README.md +122 -0
  97. package/docs/ff-yaml/04-widgets/button.md +444 -0
  98. package/docs/ff-yaml/04-widgets/container.md +358 -0
  99. package/docs/ff-yaml/04-widgets/dropdown.md +579 -0
  100. package/docs/ff-yaml/04-widgets/form.md +256 -0
  101. package/docs/ff-yaml/04-widgets/image.md +276 -0
  102. package/docs/ff-yaml/04-widgets/layout.md +355 -0
  103. package/docs/ff-yaml/04-widgets/misc.md +553 -0
  104. package/docs/ff-yaml/04-widgets/text-field.md +326 -0
  105. package/docs/ff-yaml/04-widgets/text.md +302 -0
  106. package/docs/ff-yaml/05-actions.md +953 -0
  107. package/docs/ff-yaml/06-variables.md +849 -0
  108. package/docs/ff-yaml/07-data.md +591 -0
  109. package/docs/ff-yaml/08-custom-code.md +736 -0
  110. package/docs/ff-yaml/09-theming.md +638 -0
  111. package/docs/ff-yaml/10-editing-guide.md +497 -0
  112. package/docs/ff-yaml/README.md +105 -0
  113. package/package.json +59 -0
  114. package/skills/community-ff-mcp/SKILL.md +201 -0
  115. package/skills/ff-widget-patterns.md +141 -0
  116. package/skills/ff-yaml-dev.md +70 -0
@@ -0,0 +1,201 @@
1
+ ---
2
+ name: community-ff-mcp
3
+ description: >
4
+ Teaches AI assistants how to develop FlutterFlow apps using MCP tools.
5
+ Use this skill when working with FlutterFlow projects, editing FF YAML,
6
+ creating or inspecting pages and components, reading project configuration,
7
+ or navigating FlutterFlow widget trees. It covers all 25 MCP tools for
8
+ discovery, reading, editing, and settings. Triggers on: FlutterFlow,
9
+ FF YAML, FF page, FF component, FF widget, FF theme, FF project.
10
+ license: MIT
11
+ compatibility: Requires the community-ff-mcp MCP server to be connected and a valid FLUTTERFLOW_API_TOKEN environment variable.
12
+ metadata:
13
+ author: mohn93
14
+ version: "1.0"
15
+ ---
16
+
17
+ ## Prerequisites
18
+
19
+ This skill requires the **community-ff-mcp** MCP server to be installed and connected. Before proceeding, check if the `list_projects` tool is available. If not, the user needs to set up the MCP server first:
20
+
21
+ 1. Get a FlutterFlow API token from **FlutterFlow > Profile > Account Settings > API Token** (requires a paid FlutterFlow subscription)
22
+ 2. Add the MCP server to your AI client:
23
+ ```bash
24
+ # Claude Code
25
+ claude mcp add flutterflow -e FLUTTERFLOW_API_TOKEN=<token> -- npx -y community-ff-mcp
26
+
27
+ # Other clients (Claude Desktop, Cursor, Windsurf) — add to MCP config:
28
+ # { "command": "npx", "args": ["-y", "community-ff-mcp"], "env": { "FLUTTERFLOW_API_TOKEN": "<token>" } }
29
+ ```
30
+ 3. Restart your AI client, then verify by calling `list_projects`
31
+
32
+ ## Overview
33
+
34
+ The FlutterFlow MCP provides 25 tools for reading, inspecting, and editing FlutterFlow projects through YAML. It connects AI assistants to the FlutterFlow Project API, enabling programmatic access to pages, components, themes, actions, data models, and settings. All project data is represented as YAML files that can be fetched, cached locally, validated, and pushed back.
35
+
36
+ ## Tool Catalog
37
+
38
+ ### Discovery & Exploration
39
+
40
+ | Tool | Purpose |
41
+ |------|---------|
42
+ | `list_projects` | List all FF projects accessible to your API token |
43
+ | `list_project_files` | List YAML file keys in a project (supports prefix filter) |
44
+ | `list_pages` | List pages with human-readable names, scaffold IDs, and folders |
45
+ | `search_project_files` | Search file keys by keyword, prefix, or regex |
46
+ | `sync_project` | Download all project YAML to local cache for fast reads |
47
+
48
+ ### Reading & Understanding
49
+
50
+ | Tool | Purpose |
51
+ |------|---------|
52
+ | `get_page_by_name` | Fetch full page YAML by human-readable name |
53
+ | `get_project_yaml` | Fetch specific YAML file(s) by file key |
54
+ | `get_page_summary` | Quick page overview: widget tree, actions, params (cache-based) |
55
+ | `get_component_summary` | Quick component overview: widget tree, params (cache-based) |
56
+ | `find_component_usages` | Find all pages/components that use a given component |
57
+ | `find_page_navigations` | Find all actions that navigate to a given page |
58
+
59
+ ### Configuration & Settings
60
+
61
+ | Tool | Purpose |
62
+ |------|---------|
63
+ | `get_theme` | Theme colors, typography, breakpoints, widget defaults |
64
+ | `get_app_state` | App state variables, constants, environment settings |
65
+ | `get_api_endpoints` | API endpoint definitions (method, URL, headers, response) |
66
+ | `get_data_models` | Data structs, enums, Firestore collections, Supabase tables |
67
+ | `get_custom_code` | Custom actions, functions, widgets, AI agents (read-only) |
68
+ | `get_general_settings` | App Details, App Assets, Nav Bar & App Bar |
69
+ | `get_project_setup` | Firebase, Languages, Platforms, Permissions, Dependencies |
70
+ | `get_app_settings` | Authentication, Push Notifications, Deployment settings |
71
+ | `get_in_app_purchases` | Stripe, Braintree, RevenueCat, Razorpay config |
72
+ | `get_integrations` | Supabase, SQLite, GitHub, Algolia, Google Maps, AdMob, etc. |
73
+
74
+ ### Editing & Documentation
75
+
76
+ | Tool | Purpose |
77
+ |------|---------|
78
+ | `get_editing_guide` | Get recommended workflow and docs for a specific editing task |
79
+ | `get_yaml_docs` | Search/retrieve YAML reference docs by topic or file path |
80
+ | `validate_yaml` | Validate YAML content before pushing changes |
81
+ | `update_project_yaml` | Push validated YAML changes to the FF project |
82
+
83
+ ## Core Workflows
84
+
85
+ ### Discover & Explore a Project
86
+
87
+ Use this workflow when first connecting to a FlutterFlow project or when you need to understand its structure.
88
+
89
+ ```
90
+ 1. list_projects → pick the target projectId
91
+ 2. sync_project(projectId) → cache all YAML locally for fast reads
92
+ 3. list_pages(projectId) → see all pages with human-readable names, scaffold IDs, folders
93
+ 4. get_page_summary(projectId, pageName) → widget tree overview for any page of interest
94
+ ```
95
+
96
+ After syncing, all cache-based tools (`get_page_summary`, `get_component_summary`, `get_theme`, `get_app_state`, etc.) work without additional API calls.
97
+
98
+ ### Read / Inspect a Page or Component
99
+
100
+ Use this workflow to understand what a page contains, how it is structured, and how it connects to the rest of the app.
101
+
102
+ ```
103
+ 1. get_page_summary(projectId, pageName) → quick overview of widget tree, actions, params
104
+ 2. get_page_by_name(projectId, pageName) → full YAML if you need complete details
105
+ 3. find_page_navigations(projectId, pageName) → discover what actions navigate here
106
+ 4. find_component_usages(projectId, componentName) → find everywhere a component is used
107
+ ```
108
+
109
+ For components, use `get_component_summary` instead of `get_page_summary`. Component summaries resolve nested component references so you can see the full hierarchy.
110
+
111
+ ### Edit an Existing Widget
112
+
113
+ Use this workflow to modify a specific widget on a page without affecting the rest of the page.
114
+
115
+ ```
116
+ 1. get_page_by_name(projectId, pageName) → get the full page YAML
117
+ 2. Identify the node file key for the target widget (format: page/id-Scaffold_XXX/page-widget-tree-outline/node/id-Widget_YYY)
118
+ 3. get_project_yaml(projectId, fileName: "page/id-.../node/id-Widget_XXX") → fetch the individual node YAML
119
+ 4. Modify the YAML — keep inputValue and mostRecentInputValue in sync
120
+ 5. validate_yaml(projectId, fileKey, content) → check for errors before pushing
121
+ 6. update_project_yaml(projectId, {fileKey: content}) → push changes
122
+ ```
123
+
124
+ Always edit at the node level. Editing the full page YAML for a single widget change risks overwriting unrelated content and is more error-prone.
125
+
126
+ ### Add a New Widget to a Page
127
+
128
+ Use this workflow when you need to add new widgets to an existing page.
129
+
130
+ ```
131
+ 1. get_page_by_name(projectId, pageName) → understand the current widget tree structure
132
+ 2. get_yaml_docs(topic: "WidgetType") → look up the YAML schema for the widget you want to add
133
+ 3. Update the page-widget-tree-outline to include a reference to the new widget key
134
+ 4. Create individual node files for each new widget (one file per widget)
135
+ 5. validate_yaml → validate the tree outline first, then each node file
136
+ 6. update_project_yaml → push tree outline + all node files together in one call
137
+ ```
138
+
139
+ Pushing the tree outline and node files in a single call is critical. The server strips inline widget children from the tree outline, so nodes must be separate files.
140
+
141
+ ### Create a Reusable Component
142
+
143
+ Use this workflow to build a new component from scratch.
144
+
145
+ ```
146
+ 1. get_yaml_docs(topic: "create component") → get the full walkthrough and required file structure
147
+ 2. Design component parameters: name, dataType, isNullable for each param
148
+ 3. Create these files: component metadata, widget-tree-outline, root node (with isDummyRoot: true), child nodes
149
+ 4. validate_yaml → validate all files before pushing
150
+ 5. update_project_yaml → push all component files in one call
151
+ ```
152
+
153
+ Remember: the root node of a component must have `isDummyRoot: true`. Callback triggers use `triggerType: CALLBACK` with a separate `parameterIdentifier` field. WidgetProperty params use `widgetProperty` in parameterPasses, not `inputValue`.
154
+
155
+ ## Critical YAML Rules
156
+
157
+ 1. **Sync inputValue and mostRecentInputValue** -- Both fields must always contain the same value when you set or update them. If you change one, change both. Exceptions: `fontWeightValue` and `fontSizeValue` only accept `inputValue` (they have no `mostRecentInputValue` field).
158
+
159
+ 2. **Use node-level file keys for edits** -- Target `page/id-Scaffold_XXX/page-widget-tree-outline/node/id-Widget_YYY` for individual widget edits. Never edit the full page YAML (`page/id-Scaffold_XXX`) just to change a single widget. Full-page edits risk overwriting unrelated content and are harder to validate.
160
+
161
+ 3. **Always validate before pushing** -- Call `validate_yaml` before every `update_project_yaml` call. Validation catches missing node files, unknown fields, invalid enum values, and structural problems. Skipping validation risks corrupting the project.
162
+
163
+ 4. **Push tree outline and node files together** -- When adding new widgets, include the updated `page-widget-tree-outline` AND all individual node files in a single `update_project_yaml` call. Widget children embedded inline in the tree outline will be silently stripped by the FlutterFlow server.
164
+
165
+ 5. **Column has no mainAxisSize field** -- To achieve shrink-to-content behavior (equivalent to `MainAxisSize.min` in Flutter), use `minSizeValue: { inputValue: true }` on the Column widget instead.
166
+
167
+ 6. **AppBar templateType** -- Only `LARGE_HEADER` is a confirmed valid value. Do not use `STANDARD` as it may cause unexpected behavior. Control the AppBar height through the `toolbarHeight` property instead.
168
+
169
+ 7. **Custom code is read-only** -- Custom actions, functions, widgets, and AI agents cannot be created or edited through the MCP API. Use `get_custom_code` to read their signatures and source code, but any modifications must be made directly in the FlutterFlow UI. Attempting to push custom code changes will silently corrupt or be ignored.
170
+
171
+ ## Anti-Patterns
172
+
173
+ - **Don't use `list_project_files` to find pages** -- It returns raw file keys without human-readable names. Use `list_pages` instead, which gives you page names, scaffold IDs, and folder assignments.
174
+
175
+ - **Don't fetch pages one-by-one to browse a project** -- This is slow and wastes API calls. Use `sync_project` to cache everything locally first, then use `get_page_summary` for quick overviews of any page.
176
+
177
+ - **Don't edit full page YAML for a single widget change** -- Full-page edits can overwrite other widgets, actions, or parameters. Always use node-level file keys for targeted, safe edits.
178
+
179
+ - **Don't guess YAML field names or enum values** -- FlutterFlow YAML has specific field names and valid values that are not always intuitive. Use `get_yaml_docs(topic)` or `get_editing_guide(task)` to look up the correct schema before writing YAML.
180
+
181
+ - **Don't embed widget children inline in the tree outline** -- The FlutterFlow server silently strips inline children from the `page-widget-tree-outline` file. Always create separate node files for each widget.
182
+
183
+ - **Don't push custom code changes through the API** -- The API silently corrupts or ignores Dart code edits for custom actions, functions, and widgets. These must be edited in the FlutterFlow UI.
184
+
185
+ ## Documentation Lookup
186
+
187
+ The MCP server ships with 21 built-in reference documents. Use these tools to look up schemas, patterns, and conventions **before** writing YAML:
188
+
189
+ | When you need... | Call |
190
+ |------------------|------|
191
+ | Widget schema (Button, Text, Container, etc.) | `get_yaml_docs(topic: "Button")` |
192
+ | Action chains, triggers, navigation | `get_yaml_docs(topic: "actions")` |
193
+ | Data binding, variable sources | `get_yaml_docs(topic: "variables")` |
194
+ | Colors, typography, dimensions | `get_yaml_docs(topic: "theming")` |
195
+ | Creating components from scratch | `get_yaml_docs(topic: "create component")` |
196
+ | Editing workflows and anti-patterns | `get_yaml_docs(topic: "editing")` |
197
+ | Data structs, enums, collections | `get_yaml_docs(topic: "data")` |
198
+ | Full docs index | `get_yaml_docs()` |
199
+ | Guided workflow for a specific task | `get_editing_guide(task: "change the button color")` |
200
+
201
+ Always consult the docs before writing YAML. They contain validated schemas, field references, enum values, and real examples.
@@ -0,0 +1,141 @@
1
+ # FlutterFlow Widget Patterns Skill
2
+
3
+ Quick reference for common FlutterFlow widget YAML patterns. Use `get_yaml_docs` for full schemas.
4
+
5
+ ## Value Pattern
6
+
7
+ Most FF YAML properties follow this structure:
8
+
9
+ ```yaml
10
+ propertyNameValue:
11
+ inputValue: "the value"
12
+ mostRecentInputValue: "the value" # must match inputValue
13
+ ```
14
+
15
+ **Exceptions** — these only accept `inputValue`:
16
+ - `fontWeightValue`
17
+ - `fontSizeValue`
18
+
19
+ ## Common Widget Snippets
20
+
21
+ ### Text Widget
22
+ ```yaml
23
+ type: Text
24
+ properties:
25
+ textValue:
26
+ inputValue: "Hello World"
27
+ mostRecentInputValue: "Hello World"
28
+ textStyle:
29
+ fontSizeValue:
30
+ inputValue: 16 # no mostRecentInputValue
31
+ fontWeightValue:
32
+ inputValue: w600 # no mostRecentInputValue
33
+ colorValue:
34
+ inputValue: "ff000000"
35
+ mostRecentInputValue: "ff000000"
36
+ ```
37
+
38
+ ### Container with Padding
39
+ ```yaml
40
+ type: Container
41
+ properties:
42
+ widthValue:
43
+ inputValue: "double.infinity"
44
+ mostRecentInputValue: "double.infinity"
45
+ decoration:
46
+ colorValue:
47
+ inputValue: "ffFFFFFF"
48
+ mostRecentInputValue: "ffFFFFFF"
49
+ borderRadiusValue:
50
+ inputValue: 12
51
+ mostRecentInputValue: 12
52
+ paddingValue:
53
+ inputValue: "16,16,16,16"
54
+ mostRecentInputValue: "16,16,16,16"
55
+ ```
56
+
57
+ ### Image (Network)
58
+ ```yaml
59
+ type: Image
60
+ properties:
61
+ imageTypeValue:
62
+ inputValue: FF_IMAGE_TYPE_NETWORK
63
+ mostRecentInputValue: FF_IMAGE_TYPE_NETWORK
64
+ pathValue:
65
+ inputValue: "https://example.com/image.jpg"
66
+ mostRecentInputValue: "https://example.com/image.jpg"
67
+ widthValue:
68
+ inputValue: "double.infinity"
69
+ mostRecentInputValue: "double.infinity"
70
+ heightValue:
71
+ inputValue: 200
72
+ mostRecentInputValue: 200
73
+ fitValue:
74
+ inputValue: COVER
75
+ mostRecentInputValue: COVER
76
+ ```
77
+
78
+ ### Image (Asset)
79
+ ```yaml
80
+ type: Image
81
+ properties:
82
+ imageTypeValue:
83
+ inputValue: FF_IMAGE_TYPE_ASSET
84
+ mostRecentInputValue: FF_IMAGE_TYPE_ASSET
85
+ pathValue:
86
+ inputValue: "assets/images/logo.svg"
87
+ mostRecentInputValue: "assets/images/logo.svg"
88
+ ```
89
+
90
+ ### Button
91
+ ```yaml
92
+ type: Button
93
+ properties:
94
+ textValue:
95
+ inputValue: "Click Me"
96
+ mostRecentInputValue: "Click Me"
97
+ buttonType: FILLED
98
+ optionsValue:
99
+ elevationValue:
100
+ inputValue: 2
101
+ mostRecentInputValue: 2
102
+ heightValue:
103
+ inputValue: 48
104
+ mostRecentInputValue: 48
105
+ borderRadiusValue:
106
+ inputValue: 8
107
+ mostRecentInputValue: 8
108
+ ```
109
+
110
+ ### Column (Shrink-to-Content)
111
+ ```yaml
112
+ type: Column
113
+ properties:
114
+ minSizeValue:
115
+ inputValue: true # equivalent to MainAxisSize.min
116
+ crossAxisAlignmentValue:
117
+ inputValue: CENTER
118
+ mostRecentInputValue: CENTER
119
+ ```
120
+
121
+ ### AppBar
122
+ ```yaml
123
+ type: AppBar
124
+ properties:
125
+ templateType: LARGE_HEADER # only valid value
126
+ toolbarHeight: 60 # control actual height
127
+ titleValue:
128
+ inputValue: "Page Title"
129
+ mostRecentInputValue: "Page Title"
130
+ ```
131
+
132
+ ## Elevation vs Shadow
133
+
134
+ Prefer `elevationValue` for Material-style card shadows:
135
+ ```yaml
136
+ elevationValue:
137
+ inputValue: 4
138
+ mostRecentInputValue: 4
139
+ ```
140
+
141
+ For custom shadows use `boxShadow` on the container decoration.
@@ -0,0 +1,70 @@
1
+ # FlutterFlow YAML Development Skill
2
+
3
+ You are developing a FlutterFlow app using MCP tools. This skill provides the workflow and rules for reading, editing, and creating FlutterFlow pages and components through YAML.
4
+
5
+ ## Documentation
6
+
7
+ Use the `get_yaml_docs` tool to look up any schema, pattern, or convention before writing YAML:
8
+
9
+ - `get_yaml_docs(topic: "Button")` — Widget schemas (Button, Text, TextField, Container, etc.)
10
+ - `get_yaml_docs(topic: "actions")` — Action chains, triggers, navigation
11
+ - `get_yaml_docs(topic: "variables")` — Data binding, variable sources
12
+ - `get_yaml_docs(topic: "theming")` — Colors, typography, dimensions
13
+ - `get_yaml_docs(topic: "editing")` — Read/edit/add workflows and anti-patterns
14
+ - `get_yaml_docs()` — Full index of all available docs
15
+
16
+ Always consult the docs before writing YAML. They contain validated schemas, field references, enum values, and real examples.
17
+
18
+ ## Workflow
19
+
20
+ ### Reading / Inspecting
21
+ ```
22
+ list_projects → sync_project → get_page_summary / get_component_summary
23
+ ```
24
+
25
+ ### Editing Existing Widgets
26
+ ```
27
+ list_pages → get_page_by_name → (node-level fetch) → validate_yaml → update_project_yaml
28
+ ```
29
+
30
+ ### Adding New Widgets
31
+ ```
32
+ list_pages → get_page_by_name → update widget-tree-outline + push individual node files → validate_yaml → update_project_yaml
33
+ ```
34
+
35
+ ### Creating a Reusable Component
36
+ ```
37
+ Design params → construct metadata + tree outline + root node (isDummyRoot) + child nodes → validate_yaml → update_project_yaml
38
+ ```
39
+ See `get_yaml_docs(topic: "create component")` for full walkthrough with examples.
40
+
41
+ ### Refactoring Page Widgets into a Component
42
+ ```
43
+ get_page_by_name → identify subtree → create component files → replace page subtree with componentClassKeyRef → push all files together
44
+ ```
45
+ See `get_yaml_docs(topic: "refactor")` for step-by-step guide.
46
+
47
+ ### Finding Usages
48
+ ```
49
+ find_component_usages(componentName: "MyComponent") — where is a component used?
50
+ find_page_navigations(pageName: "MyPage") — what navigates to a page?
51
+ ```
52
+
53
+ ## Critical YAML Rules
54
+
55
+ 1. **Always update both `inputValue` AND `mostRecentInputValue`** — they must stay in sync.
56
+ - **Exceptions:** `fontWeightValue` and `fontSizeValue` only accept `inputValue`.
57
+ 2. **Use node-level file keys** for targeted edits, not the full page YAML.
58
+ 3. **Always validate before pushing** — call `validate_yaml` first.
59
+ 4. **Adding widgets requires node-level files** — push the tree outline + individual nodes together.
60
+ 5. **Column has no `mainAxisSize`** — use `minSizeValue: { inputValue: true }` instead.
61
+ 6. **AppBar `templateType`** — only `LARGE_HEADER` is valid. Control height via `toolbarHeight`.
62
+ 7. **TextField keyboard types** — use `EMAIL_ADDRESS`, not `EMAIL`.
63
+
64
+ ## Anti-Patterns
65
+
66
+ - Do NOT call `list_project_files` to find pages — use `list_pages` instead.
67
+ - Do NOT fetch pages one-by-one to browse — use `sync_project` + `get_page_summary`.
68
+ - Do NOT edit full page YAML for a single widget — use node-level file keys.
69
+ - Do NOT guess YAML field names — use `get_yaml_docs` to look them up.
70
+ - Do NOT embed widget children inline in the page scaffold YAML — they will be stripped.