{"id":121800,"plugin_id":"plugin_asdk_app_6af784707608819183de903ebee96b59","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-28T00:14:31.578Z","digest":"d3d8238384e8224c2a6de54bdeb7b78ecc10c688c130f21a83a2c02dd9f90357","against":null,"payload":{"description":"Use when the user wants to turn a Figma frame into a Forma model proposal, manage CMS page models or slices, choose icons and previews, or migrate from Prismic to Forma.","included_files":[],"name":"forma-modeling","skill_md_contents":"---\nname: forma-modeling\ndescription: Use when the user wants to turn a Figma frame into a Forma model proposal, manage CMS page models or slices, choose icons and previews, or migrate from Prismic to Forma.\n---\n\n# Forma modeling and migration\n\n## Start from the design and the repository\n\n- Confirm the target Forma account and repository. For an existing repository, read its models, slices and locales with `get_content_model`. For a Prismic migration, inspect the current source models and representative documents through an authorized connection or a supplied export. Use the current repository model to preserve IDs, relationships and conventions. If the live model is unavailable, use the material supplied for a proposal and state which conventions or existing fields you could not verify.\n- Inspect the relevant Figma frames or the live site if provided. Identify editable text, media, links and repeatable groups. Keep layout measurements and styling out of the model unless the design calls for a genuine editor-controlled option.\n- Model only the requested content and options. For a structure-only request, prepare the model and any slice previews. Create or fill documents, upload assets, save models remotely, publish content or wire the frontend only when the request includes that work.\n\n## Model for Forma\n\n- Give each independently edited global component its own `Config` type. For site navigation and the footer, use separate `Nav` (`nav`) and `Footer` (`footer`) types with one document per type and locale. Put editable navigation labels and destinations in Nav, and footer copy and links in Footer. Keep fixed routes, behavior and decorative elements in code when the design or user calls for it.\n- Look for existing dedicated types first and reuse their IDs. Reserve `Site` or `Settings` for values that genuinely belong to the whole site. If a legacy type already mixes Nav and Footer, flag the overlap and plan the split around existing locales, content and frontend consumers. Move existing values only when migration is in scope.\n- Choose `Page` for a singleton page, `Config` for shared settings and `Repeatable` for collections. Use `Main` alone for shared configuration such as Nav and Footer, and for slices by default. Apply the page metadata rules below to page content types. Slices use `kind: \"Page\"` in Forma's schema but follow the slice rules.\n- Use simple `text` for plain copy, including titles, headings, eyebrow copy, buttons and link labels. Use `rich-text` for formatting, structured blocks or inline links. Set `richText.formats` explicitly to the formats the field needs, such as `paragraph`, `bold`, `italic` or `link`. Choose `multipleParagraphs` and `allowTargetBlank` for the intended editing behavior.\n- Use `link` for destinations, `relationship` for references to other documents, `image` for images, `color` for editor-controlled colors and `list` with `fields` for repeatable items. Keep a link label separate when it must be editable.\n- Model a form's editable labels, instructions, consent copy, choices and button text. Visitor submissions are outside the content model. Forma's `select.options` accepts strings. When a choice needs both an editable label and a stable integration value, model it as a list with separate `label` and `value` fields.\n- Keep names short and recognizable. Use English for editor labels, descriptions, placeholders, and option labels unless the user specifies another language. Give every field a concise description of its purpose and a useful placeholder suited to the control. Where the Forma schema does not support a description or the editor does not display a placeholder, include that guidance in the accompanying field notes. Placeholders and examples are editor guidance. When asked to fill a draft, distinguish proposed copy from confirmed source content.\n- Name each field for what an editor changes. Use the context already visible from the content type, tab, slice, or group and omit prefixes that repeat it. In `Nav`, use `All`, `Viennoiserie`, `Bread`, and `Seasonal` when the shop submenu is clear from the surrounding fields. If more context is needed, name the group `Shop` or add only the qualifier that distinguishes the field. Review labels together in editor order and keep existing field IDs and content when shortening labels.\n- Use stable, short `snake_case` IDs for new types, tabs and fields. Preserve existing IDs unless a change is requested. Check for collisions across tabs and within each list item using Forma's schema rules.\n- Use English as the primary locale for a new project unless the design or user specifies another primary language. For existing repositories or migrations, check the configured locales and their mappings before writing. Preserve the established master locale unless asked to change it. Follow the design or source content for the language of each document, and flag missing or unmapped translations.\n\n## Page tabs and metadata\n\n- Give every page exactly two tabs in this order, `Main` (`main`) and `Meta` (`meta`). Apply this when proposing, creating or editing a `Page` and to `Repeatable` types whose entries have their own pages, such as articles or case studies. Place all editable page content in `Main`, including forms and their labels, options and instructions. Keep metadata fields together in `Meta`.\n- Read the repository's Home model and reuse the IDs and field types from its `Meta` tab. If Home is unavailable, say so. Where a Home convention is unavailable or missing, use `meta_title` (`text`, **Meta title**), `meta_description` (`text`, **Meta description**) and `meta_image` (`image`, **Meta image**) as the baseline. Include the title, description and image even when the design only shows on-page content. Give each field a useful placeholder or field note.\n- When editing a page, complete a missing or empty `Meta` tab and retain existing field IDs and values. If the page has extra tabs or a conflicting metadata schema, show the proposed consolidation or mapping and flag any effect on current documents or frontend readers before moving fields or changing their types.\n- Before delivering or saving a page model, verify the tab order and all three metadata fields. When the request also includes writing content, use the draft's locale for the metadata values. Choose a suitable image already available in Media and flag a missing image when you cannot verify one.\n\n## Choose fields or slices\n\n- Put editable content for fixed sections directly in the content type's `Main` tab. Use a list for repeated items inside a fixed section when they share the same fields. For example, a Home page with a hero that always opens the page should have `hero_video` and `hero_poster` fields on Home.\n- Use slices when editors need to add, remove, repeat or reorder independent modules in a flexible part of the page, such as the body of a case study or article. Fixed sections and a flexible slice area can coexist in the same type. A distinct Figma frame, frontend component or optional media field alone does not call for a slice. Leave slice assignments empty when the page has no flexible modules.\n- State which sections use fields and which use slices in the proposal. For each slice, describe the editorial action that warrants it. Reuse a suitable slice for flexible modules. If an existing slice should become fixed fields, plan how to migrate its values and update frontend readers before changing its assignment.\n\n## Propose a model from a Figma frame\n\n- Use the linked Figma frame, or the selected frame when the desktop Figma MCP server exposes the selection. With a remote Figma connection, use the frame or node link. If a URL identifies the file but several frames could be the target, identify the intended frame before proposing a model. Read the hierarchy with Figma's `get_metadata` and review the frame with `get_screenshot`, then inspect the child frames or components that represent individual sections. If Figma is unavailable, use a supplied screenshot or describe what still needs to be inspected.\n- Apply the fields-or-slices decision before mapping the design. Match each proposed slice to its source frame or node. Map differences between design variants to editorial options only when the editor needs to choose between them.\n- For each proposed page type and slice, give a short English name, stable ID and Material Symbols Rounded icon. For each field, give its type, editor label, placeholder and a short description in the field notes where the schema has no description property. Include the node link and the corresponding screenshot or existing Media image for each slice preview. Use Figma's `download_assets` when available to deliver the selected section as an image for upload. Use the Forma preview ratio where the frame allows a crop without distortion.\n- Run `validate_model_proposal` with the proposed types and slices. Resolve missing references, check existing IDs for reuse and show any open design decisions. Return the complete Forma model and slice definitions for review. When asked to save, create or patch the definitions through Forma MCP and match previews to existing images in the destination Media library. If the screenshots are outside Media, provide the assets or verified sources for upload and flag the assignments that remain pending.\n\n## Icons and slice previews\n\n- Set an icon for every new page and slice based on its name and function in the design. Select a supported Material Symbols Rounded icon and follow the repository's existing choices. Preserve an existing intentional icon unless the requested change calls for a new one.\n- Include a preview for every new slice. Prefer the matching Figma frame or a screenshot of the corresponding section on the live site. Frame it close to Forma's slice card ratio, about `460:282` (for example, `920 × 564`), without stretching the design. Keep important content in view. If the repository uses a different preview frame, match it.\n- Use `list_media_images` to find the matching image already in the destination Media library. Search by title, ID, or alt text and continue through `nextCursor` with the same query. Check the returned dimensions when matching the preview ratio. Use `set_slice_preview` with the chosen Media ID and latest slice revision, then verify the returned `previewImage`. If the artwork is only in Figma or on a website, prepare or identify it for upload through Forma and report which slices still need previews.\n\n## Save through Forma MCP\n\n- Use the connection with modeling access. Repository owners and administrators can save structures and assign previews. Read the model first with `get_content_model` to get the current definitions, `customTypesRevision` and `slicesRevision`.\n- Call `create_custom_type` or `edit_custom_type` with a complete definition and the current custom type revision. Call `create_slice` or `edit_slice` with a complete slice definition and the current slice revision. To edit, keep the saved ID and preserve unrelated fields and assignments. Preserve existing previews by omitting `previewImage` from the slice definition. Use `set_slice_preview` to change the image.\n- For a small edit, use `patch_model` with the latest collection revision. It can add a field to a tab or nested row/list, change a field's label or placeholder, or reorder a custom type's existing slice assignments. Before editing an existing field, use `get_model_field_usage` with its tab and field ID path. Follow all cursor pages and report the number of unique documents and affected language variants, including published variants.\n- For a new slice used by a custom type, create the slice before adding its ID to that type's ordered slice list. Use the revision returned by each save for the next change in the same collection. If the revision conflicts, reread the repository model and reconcile the requested change with the latest definition before retrying.\n- Use `delete_custom_type` only when the user explicitly asks to permanently delete that type. Verify the type ID and `customTypesRevision` with `get_content_model`. Use `search_documents` by type across locales and statuses, including archived variants, and check other types and slices for references. If something still uses the type, report the affected items and keep the data until the user requests how to handle it. Confirm the type is absent by rereading the model after deletion. If the tool is unavailable on the connected server, report that limitation.\n\n## Migrate from Prismic\n\n- Compare the source models with Forma's actual schema. Map Key Text to simple text, groups to lists, and preserve slice order, variants, locale mappings, document references and media metadata where supported. Report mismatches before making a lossy change, naming the affected model, field or document and the proposed mapping.\n- For media handoffs, identify the original file or the highest-quality source available and preserve alt text, captions, credits and crop intent when supported. Use destination Media IDs only after the files exist in Forma. Transfer from Prismic requires the authorized dashboard or another supported import workflow.\n- Verify representative drafts in each migrated locale. Check links, relationships, slice order and media references after import. Flag missing items or unsupported conversions. Keep migrated content in drafts unless the user requests publication through a supported workflow.\n\n## Deliver and verify\n\n- Return the complete model in a JSON block ready for Forma's JSON editor, with its top-level keys and ordered `tabs` array. Keep temporary schemas and validation scripts outside the project repository unless the user asks for committed files. Summarize the model ID, whether it is a singleton or repeatable, and the icon and any preview. For slices use a `Page` model with an empty `parent` and no nested slice assignments.\n- Before delivery, parse the JSON and check field types, unique IDs across tabs, tab order and references against the Forma contract. If you used Figma, compare the final fields with the source frames to catch missing editable content and accidental styling fields.\n- If modeling access is unavailable, deliver the validated JSON and the preview source or matching Media entry. When saving through MCP, reread the affected definitions to verify IDs, icons, field settings, slice assignments and previews. Report what was saved and any assets or conversions that still need attention.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}