boghus/logcraft-agent-skills/log-amplification
Claude Code and agent skill by boghus/logcraft-agent-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Detect logging placed on high-frequency execution paths where a single event can generate unbounded or excessive log volume.
Install
npx vskill@latest install boghus/logcraft-agent-skills/log-amplificationSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as boghus/logcraft-agent-skills/log-amplification.
Log amplification
Problem
A log statement can be individually reasonable but operationally harmful when its surrounding code executes frequently. This is especially common in browser event handlers, observers, polling loops, and request hot paths.
Detection
Inspect whether logging occurs inside or below:
MutationObservercallbacksscroll,resize,mousemove,input, or keyboard handlers- timers and intervals
- animation callbacks
- loops over large or externally sized collections
- polling/retry loops
- repeatedly invoked lifecycle hooks
- subscription callbacks
- per-request or per-item paths that can run at high volume
Before flagging, establish both the repetition mechanism and the operational context. Consider:
- Is the code on a production hot path, or is it a bounded build/CLI/test operation?
- Can the collection or invocation count grow with user input, traffic, repository size, or an external source?
- Is the log emitted once per item/callback, or is it aggregated/bounded?
- Is the output debug-only, sampled, rate-limited, or otherwise controlled?
- Does one invalid item represent an actionable diagnostic that is intentionally reported individually during a finite operation?
Do not treat log inside loop as sufficient evidence of amplification. A finite build/content loader that reports one error per invalid input is not automatically a log-amplification finding.
Estimate whether one user action, request, page lifecycle, or build operation can trigger the log many times.
Expected behavior
Prefer one bounded aggregated event over per-item or per-callback logs when the execution path can scale with traffic or untrusted/external input. Define both a maximum total number of events per operation and a serialized-byte budget for aggregated diagnostics. Chunking is permitted only while both limits remain within budget; when either limit is exceeded, truncate, sample, or rate-limit the output rather than continuing to emit additional chunks or events. If repeated diagnostics are genuinely required, recommend a controlled debug mode.
For finite build, CLI, migration, validation, or test operations, evaluate the maximum practical input size and whether per-item errors are part of the intended failure reporting before recommending aggregation.
Example
This should be flagged because DOM mutation frequency is not bounded by the number of page loads, and the logged collection is not explicitly bounded.
By contrast:
is not automatically a finding. If buildItems is a finite build-time dataset and each invalid item is an actionable validation error, classify it as an accepted diagnostic unless there is evidence of excessive volume.
Severity guidance
- High: potentially unbounded production log volume or client performance impact.
- Medium: repeated output with a predictable but significant frequency on a production path.
- Low: low-frequency callback where the risk is mostly noise.
Do not assign a severity when the evidence does not establish meaningful amplification.
False positives
A log guarded by an explicit debug flag, sampling mechanism, or known low-frequency condition may be acceptable. Aggregated diagnostics are still subject to both the maximum total event count and serialized-byte budget.
Also treat finite build/CLI/test validation loops as potential false positives when the operation is bounded and per-item errors are intentional. Do not infer production traffic or unbounded input merely from the presence of a loop.
Technology
JavaScript, TypeScript, browser APIs, Astro client scripts, Node.js event loops, build systems, CLI tooling.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/log-amplification/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/boghus/logcraft-agent-skills/log-amplification)