Fix Cppheaders logo

Fix Cppheaders

Organization
HLND2T
fix-cppheaders

Use when s2sdk C++ headers must be repaired to match the latest vtable or record-layout YAML references. Runs run_cpp_tests.py to obtain layout diffs, maps failing cpp_tests entries to their configured headers, edits only those headers, and repeats validation until the differences are resolved. Triggers: fix cpp headers, fix-cppheaders, repair vtable layout, repair record layout, header layout differences.

Overview

PublisherHLND2T
RepositoryCS2_VibeSignatures
Skill namefix-cppheaders
Stars
67
Forks
11
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by HLND2T on GitHub. Read the source before you install it.

Installation

Install the Fix Cppheaders AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/HLND2T/CS2_VibeSignatures/tree/main/.claude/skills/fix-cppheaders
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/HLND2T/CS2_VibeSignatures.git /tmp/CS2_VibeSignatures
mkdir -p .claude/skills
cp -r /tmp/CS2_VibeSignatures/.claude/skills/fix-cppheaders .claude/skills/fix-cppheaders
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Fix Cppheaders in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Fix Cppheaders on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Fix Cppheaders is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Fix C++ Headers

Overview

Repair s2sdk declarations from compiler-versus-YAML layout differences. Treat run_cpp_tests.py as the source of truth for both the initial diff and final verification.

Resolve GAMEVER from the user's explicit request or CS2VIBE_GAMEVER; use only configs/$GAMEVER.yaml for test definitions and fail if it is missing.

Constraints

  • Edit only header paths listed in the failing configs/<GAMEVER>.yaml cpp_tests entry.
  • Require every edited header to be under s2sdk/.
  • Preserve existing names and style when the reference exposes only a slot or offset.
  • Keep compiler declarations for gaps in incomplete reference YAMLs unless surrounding index shifts prove removal.
  • Name unknown virtual slots consistently with nearby declarations, such as unk_001; when only a known function name is available, use virtual void FunctionName() = 0; until a reliable prototype is known.
  • Interpret Class_dtor and Class_vdtor reference entries as virtual destructors for Class.
  • Do not edit reference YAMLs, tracked bin_artifacts, cpp test sources, or comparison code to hide a difference.
  • Do not invoke an external agent runner. This SKILL owns the repair loop directly.
  • Stop and report a blocker when the diff is ambiguous, the configured header is missing, or a required edit is outside s2sdk/.

Workflow

  1. Determine the game version from the user's request. If omitted, read CS2VIBE_GAMEVER from .env.

  2. Resolve a release-local immutable symbol candidate. Use a caller-provided actual candidate when available; otherwise build one from tracked bin_artifacts/<gamever>/ with gamesymbol_candidate.py build and explicit temporary output/ session paths. Never use a tracked gamesymbols/ fallback or read per-symbol truth from bin/.

  3. Run the complete comparison with debug details:

    powershell
    uv run run_cpp_tests.py -gamever <gamever> -configyaml configs/<gamever>.yaml -snapshot <snapshot> -debug
  4. For each test reporting layout differences, find its cpp_tests entry in configs/<GAMEVER>.yaml and read its symbol, headers, target, aliases, and reference modules.

  5. Read the configured headers and the complete diff sections:

    • Current vtable entries versus YAML reference vtable entries
    • Current record members versus YAML reference struct members
  6. Make the smallest declaration-only edit that aligns the header with the reference. Typical edits are reordering, adding, or removing virtual declarations; correcting inheritance; and adjusting record members or padding.

  7. Re-run the same command with the same snapshot. If differences remain, use the new output rather than the previous diff and repeat.

  8. Finish only when the command exits successfully with zero compile failures, invalid items, and layout differences.

Failure Handling

  • If compilation fails after an edit, inspect the compiler error, repair the edited declaration, and rerun.
  • If unrelated pre-existing failures prevent a clean full run, verify the affected test output as far as the runner permits and report the unrelated failures verbatim.
  • If headers is absent or empty, do not guess an edit target. Report the test name and request a config correction.
  • If multiple headers are configured, trace the declared symbol before choosing the file; do not edit every header blindly.

Completion Report

Report the headers changed, the layout mismatches corrected, and the exact final verification command and result.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Fix Cppheaders AI skill do?

Use when s2sdk C++ headers must be repaired to match the latest vtable or record-layout YAML references. Runs run_cpp_tests.py to obtain layout diffs, maps failing cpp_tests entries to their configured headers, edits only those headers, and repeats validation until the differences are resolved. Triggers: fix cpp headers, fix-cppheaders, repair vtable layout, repair record layout, header layout differences.

Why use Fix Cppheaders on TypingMind?

Because you install it once and use it with any model. Fix Cppheaders is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Fix Cppheaders in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/HLND2T/CS2_VibeSignatures/tree/main/.claude/skills/fix-cppheaders. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Fix Cppheaders?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Fix Cppheaders?

As many as you like. As long as a model supports skills, you can use Fix Cppheaders with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Fix Cppheaders AI skill free?

Yes. It is published on GitHub by HLND2T under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇