n2c-context-gatherer

Parse C++ header files to resolve include paths and base class signatures.

1|1|Updated Dec 1, 2025
One-click install
npx skills add https://github.com/sipherxyz/universal-ue-skills --skill n2c-context-gatherer-sipherxyz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n2c-context-gatherer
Source: https://github.com/sipherxyz/universal-ue-skills/tree/main/skills/n2c-context-gatherer
Command: npx skills add https://github.com/sipherxyz/universal-ue-skills --skill n2c-context-gatherer-sipherxyz

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the tedious and error-prone process of manually gathering essential C++ code context, such as include paths, base class definitions, and API usage patterns, which are crucial for code generation tools.

Core Features & Use Cases

  • Include Path Resolution: Automatically finds the correct header file paths for specified C++ types within a project.
  • Base Class Analysis: Extracts virtual methods and member variables from a given base class header.
  • API Pattern Detection: Identifies common or problematic API usage patterns within the project's codebase.
  • Use Case: When generating new C++ gameplay abilities in Unreal Engine, this Skill can provide the necessary context about existing abilities and their base classes, ensuring generated code is syntactically correct and follows project conventions.

Quick Start

Use the n2c-context-gatherer skill to gather context for the C++ class USipherGameplayAbilityRuntime, looking for include paths and base class signatures.

Frequently Asked Questions about n2c-context-gatherer

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

FAQPage Schema
How do I gather C++ context for Unreal Engine code generation?

Gathering C++ context for Unreal Engine code generation involves parsing header files to resolve include paths, extract base class signatures, and identify virtual methods. This process validates against known API patterns to ensure generated code is syntactically correct.

What is the best way to resolve header file include paths for C++ types?

The best way to resolve header file include paths for C++ types is by automatically analyzing the project's codebase to find the correct file paths. This automated resolution prevents manual lookup errors and ensures accurate dependency tracking during code generation.

How do I extract base class signatures and virtual methods from C++ headers?

Extracting base class signatures and virtual methods from C++ headers is accomplished by parsing the header files to identify type dependencies. This analysis automatically extracts virtual methods and member variables to provide accurate context for generating new gameplay abilities.

Does this context gathering approach work with Unreal Engine gameplay abilities?

Yes, this context gathering approach works with Unreal Engine gameplay abilities by analyzing existing abilities and their base classes. It provides the necessary C++ project context to ensure generated gameplay code follows project conventions and API patterns.

Why does generated C++ code fail to match existing project API patterns?

Generated C++ code fails to match existing project API patterns when context gathering is skipped or done manually. Validating against known API usage patterns and naming conventions during context gathering ensures code quality and consistency across the codebase.