16 lines
888 B
Plaintext
16 lines
888 B
Plaintext
{
|
|
"enabled": true,
|
|
"name": "Figma Component Code Connect",
|
|
"description": "Check if UI component should be connected to Figma design",
|
|
"version": "1",
|
|
"when": {
|
|
"type": "fileEdited",
|
|
"patterns": ["uniapp/**/*.vue", "uniapp/components/**/*"]
|
|
},
|
|
"then": {
|
|
"type": "askAgent",
|
|
"prompt": "When a new component file is created or updated, ask the user if they would like to confirm if the code has been correctly attached to the Figma component of the same name. If the user approves: first run the get code connect map tool for the last Figma URL provided by the user. You can prompt them to provide it again if it's unavailable. If the response is empty, run the add code connect map tool, otherwise tell the user they already have code mapped to that component. If the user rejects: Do not run any additional tools."
|
|
},
|
|
"shortName": "figma-code-connect"
|
|
}
|