/plugin marketplace add LPdsgn/FigmaCodeMaster/plugin install lpdsgn-figma-code-master@LPdsgn/FigmaCodeMasterDefined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "echo '[FigmaCodeMaster] Extracting design context from Figma...'"
}
],
"matcher": "mcp__figma__get_design_context"
},
{
"hooks": [
{
"type": "command",
"command": "echo '[FigmaCodeMaster] Extracting design tokens from Figma...'"
}
],
"matcher": "mcp__figma__get_variable_defs"
},
{
"hooks": [
{
"type": "command",
"command": "echo '[FigmaCodeMaster] Capturing visual reference...'"
}
],
"matcher": "mcp__figma__get_screenshot"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "echo '[FigmaCodeMaster] File created: $CLAUDE_FILE_PATH'"
}
],
"matcher": "create_file"
},
{
"hooks": [
{
"type": "command",
"command": "echo '[FigmaCodeMaster] File updated: $CLAUDE_FILE_PATH'"
}
],
"matcher": "replace_string_in_file"
}
],
"Notification": [
{
"hooks": [
{
"type": "command",
"command": "echo '[FigmaCodeMaster] $CLAUDE_NOTIFICATION'"
}
],
"matcher": "*"
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": false
},
"typeStats": {
"command": 6
},
"eventStats": {
"PreToolUse": 3,
"PostToolUse": 2,
"Notification": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 0,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 6
}
}