Loading...
Monitors application performance metrics, identifies bottlenecks, and provides optimization recommendations
{
"hookConfig": {
"hooks": {
"Stop": [
{
"matchers": [
"*"
],
"description": "Monitor performance metrics and provide optimization insights"
}
]
}
}
}.claude/hooks/~/.claude/hooks/{
"hooks": {
"Stop": [
{
"matchers": [
"*"
],
"description": "Monitor performance metrics and provide optimization insights"
}
]
}
}Memory usage calculation fails on macOS systems
Hook uses free command which is Linux-only. On macOS, install free via brew install free or modify hook to use vm_stat | grep 'Pages active' for memory statistics instead.
bc command not found error on minimal systems
Install bc for floating-point arithmetic (apt-get install bc or brew install bc). Alternatively, modify memory comparison to use integer math with awk instead of bc -l for percentage checks.
Lighthouse or Artillery tools not detected
Install globally with npm install -g lighthouse @artillery/core or install locally and modify hook to check npx lighthouse and npx artillery instead of direct commands.
Hook shows same performance data every run
This is a stop hook providing system snapshot at session end. For continuous monitoring, integrate with dedicated APM tools or add timestamped logging to track changes over multiple sessions.
Load average shows very high values but system responsive
Load average is relative to CPU core count. Value of 8 is normal for 8-core system. Divide load average by core count (sysctl -n hw.ncpu on macOS, nproc on Linux) for actual load percentage.
Loading reviews...
Join our community of Claude power users. No spam, unsubscribe anytime.
Automated accessibility testing and compliance checking for web applications following WCAG guidelines
Automatically generates or updates API documentation when endpoint files are modified
Automatically formats code files after Claude writes or edits them using Prettier, Black, or other formatters