/plugin marketplace add ANcpLua/ancplua-claude-plugins/plugin install otelwiki@ancplua-claude-pluginsDefined in hooks/hooks.json
{
"PostToolUse": [
{
"hooks": [
{
"type": "prompt",
"prompt": "Check the file being edited: For .cs files with OpenTelemetry/ActivitySource/Meter/traces/spans/metrics patterns, or for .yaml/.json files with OTel Collector config (receivers/exporters/processors/pipelines), use the otel-guide agent to validate. Verify: 1) Semantic convention attribute names are exact 2) ActivitySource used (not DiagnosticSource) 3) OTLP export/receiver config is correct 4) Pipeline configuration is valid. Report issues only, don't block. Context: ${ARGUMENTS}"
}
],
"matcher": "Edit"
},
{
"hooks": [
{
"type": "prompt",
"prompt": "Check the file being written: For .cs files with OpenTelemetry/ActivitySource/Meter/traces/spans/metrics patterns, or for .yaml/.json files with OTel Collector config (receivers/exporters/processors/pipelines), use the otel-guide agent to validate. Verify: 1) Semantic convention attribute names are exact 2) ActivitySource used (not DiagnosticSource) 3) OTLP export/receiver config is correct 4) Pipeline configuration is valid. Report issues only, don't block. Context: ${ARGUMENTS}"
}
],
"matcher": "Write"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/check-freshness.sh"
}
]
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"prompt": 2,
"command": 1
},
"eventStats": {
"PostToolUse": 2,
"SessionStart": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 1,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 1
}
}