Code Connect Intake
Use this skill to gather the minimum correct inputs before creating or updating a Code Connect mapping in this repository.
When to Use This Skill
- User wants a new Code Connect mapping created from a Figma component
- User provides a Figma link and asks what file or component it should map to
- User wants to update an existing mapping but the target component or file is unclear
- User asks where a new mapping should live under
knowledge/code-connect/src/
Step-by-Step Workflows
Intake Checklist
- Identify the target code component and confirm its real JSX API in source before proposing mapping behavior.
- Confirm the exact Figma component URL includes
node-idand points to aCOMPONENTorCOMPONENT_SETnode. - Check for the closest existing mapping pattern in
knowledge/code-connect/src/, including component-family subfolders such asknowledge/code-connect/src/inputs/. - Choose the target file path using the repo convention
<ComponentName>.figma.jsx. - Decide whether the component should be property-driven, variant-split, or a static composition example.
Gotchas
- Do not start from a page or frame URL. Code Connect needs the exact component node URL.
- Do not assume every mapping lives at the top of
src/. This repo already uses subfolders such assrc/inputs/. - Do not invent props from Figma alone. Figma properties must be reconciled with the real Grommet or wrapper component API.
- Do not require a
propsblock for every file. Some mappings in this repo are static composition examples.
References
- See the bundled intake checklist for the minimum pre-edit inputs.
- See the shared skills index for the other Code Connect workflows.
- ../../instructions/code-connect/guidelines.instructions.md
- ../../instructions/code-connect/file-structure.instructions.md
- ../../instructions/code-connect/component-guidelines.instructions.md