cfn-node-heap-sizer

Limit Node.js heap size dynamically across CFN Loop tasks and tools.

14|2|Updated Sep 23, 2025
One-click install
npx skills add https://github.com/masharratt/claude-flow-novice --skill cfn-node-heap-sizer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cfn-node-heap-sizer
Source: https://github.com/masharratt/claude-flow-novice/tree/main/.claude/cfn-extras/skills/deprecated/cfn-node-heap-sizer
Command: npx skills add https://github.com/masharratt/claude-flow-novice --skill cfn-node-heap-sizer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Dynamically adjusts Node.js heap limits per task and tool to prevent memory overflows in constrained environments.

Core Features & Use Cases

  • Dynamic heap sizing: Detects execution mode and tool to apply heap limits.
  • Task-mode optimization: Provides safeguards for memory-intensive tasks.
  • Use Case: When running heavy CFN Loop tasks, ensure Node heap usage stays within safe bounds.

Quick Start

Source the task-mode-heap-limiter and call limit_node_heap or exec with a specific heap size.

Frequently Asked Questions about cfn-node-heap-sizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent Node.js out-of-memory errors in CFN Task mode?

Dynamically limit Node heap size by detecting execution mode and tool type, then applying appropriate memory caps via NODE_OPTIONS to prevent OOM in memory-constrained environments during CFN Loop operations.

Can I use heap sizing with different Node.js tools like bun and playwright?

Yes, this Skill auto-detects and applies tool-specific heap limits across node, bun, playwright, and test runners, configuring each with mode-appropriate maximum heap sizes.

How does automatic mode detection work for heap configuration?

The Skill detects execution context—task, CLI, debug, or test mode—and automatically applies corresponding heap size limits from built-in mode and tool maps or user-defined overrides.

What commands does this Skill support for managing Node heap limits?

It provides limit, exec, and validate commands to set heap constraints, execute operations within those bounds, and verify configurations are correctly applied.

When should I use heap limiting in CFN automation workflows?

Use it when running memory-intensive CFN Loop tasks in constrained environments to ensure Node processes stay within safe memory bounds and avoid crashes from heap exhaustion.