header-optimization

Official

Speed up C++ builds with smarter headers.

Authoropenharmonyinsight
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill reduces C++ header compile time by cutting unnecessary dependencies, converting heavy includes into forward declarations, and moving non-trivial inline implementations into cpp files while preserving business logic.

Core Features & Use Cases

  • Inline implementation extraction: moves method bodies longer than 3 lines from headers to cpp to reduce parsing workload.
  • Header dependency reduction: removes unused includes and replaces remaining includes with forward declarations where safe.
  • Advanced refactoring options: applies header splitting for constants/enums and uses PIMPL or template explicit instantiation when beneficial.

Quick Start

Use the header-optimization skill to optimize a target header for compilation efficiency.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: header-optimization
Download link: https://github.com/openharmonyinsight/openharmony-skills/archive/main.zip#header-optimization

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.