Agent skill

Cpp Header Template

by ClickHouse in ClickHouse/pg_stat_ch

Generate C++ header files following Google Style Guide. An agent skill from ClickHouse/pg_stat_ch.

Apache-2.0Auto-check passedWriting & Content

Install Cpp Header Template

skills CLI
$ npx skills add ClickHouse/pg_stat_ch --skill cpp-header-template -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ClickHouse/pg_stat_ch cpp-header-template --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ClickHouse/pg_stat_ch.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/cpp-header-template .claude/skills/cpp-header-template && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cpp-header-template
GitHub stars
124
Token cost
~772 tokens
SKILL.md length
98 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
Apache-2.0

At a glance

Generate C++ header files following Google Style Guide. An agent skill from ClickHouse/pg_stat_ch.

  • Works in 9 steps: Related header (for .cc files) → Blank line → C system headers () → …
  • Creating new header files
  • SKILL.md covers Usage, Template, Include Guard Format and Struct Template, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Cpp Header Template is an agent skill from ClickHouse/pg_stat_ch. Generate C++ header files following Google Style Guide. Use when creating new header files or asking for a header template.

Its SKILL.md is about 770 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Writing & Content. It works with C++, ClickHouse and PostgreSQL. The licence is Apache-2.0.

When your agent uses it

  • Creating new header files
  • Asking for a header template

Example prompts

  • “/cpp-header-template”

Workflow steps

9 steps, taken from the first numbered list in SKILL.md.

  1. Related header (for .cc files)
  2. Blank line
  3. C system headers ()
  4. Blank line
  5. C++ standard library (, )
  6. Blank line
  7. Other libraries
  8. Blank line
  9. Project headers

What it can do on your machine

Read from SKILL.md and the folder at commit 10be897. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are cpp).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cpp Header Template loads about 772 tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 98 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~36
When it runs · the whole SKILL.md, loaded when a task matches
~772

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ClickHouse/pg_stat_ch at commit 10be897, republished under its Apache-2.0 licence (© ClickHouse). 98 words, ~772 tokens.

Download SKILL.mdSave it as .claude/skills/cpp-header-template/SKILL.md (or your agent's skills folder).
name
cpp-header-template
description
Generate C++ header files following Google Style Guide. Use when creating new header files or asking for a header template.
disable-model-invocation
true

C++ Header File Template Generator

Generate header files following Google C++ Style Guide conventions.

Usage

Provide: class name, namespace, and file path to generate a compliant header.

Template

cpp
// Copyright [year] [copyright holder]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

#ifndef [PROJECT]_[PATH]_[FILENAME]_H_
#define [PROJECT]_[PATH]_[FILENAME]_H_

// C system headers (if needed)
// #include <sys/types.h>

// C++ standard library headers
#include <memory>
#include <string>
#include <vector>

// Other library headers
// #include "other/library.h"

// Project headers
// #include "project/base.h"

namespace [namespace] {

// Forward declarations (avoid when possible)

/// Brief description of the class.
///
/// Detailed description if needed. Include:
/// - Purpose and responsibilities
/// - Thread safety guarantees
/// - Example usage (for complex classes)
class [ClassName] {
 public:
  // Types and type aliases
  using ValueType = int;

  // Static constants
  static constexpr int kDefaultSize = 100;

  // Factory functions (if needed)
  static std::unique_ptr<[ClassName]> Create();

  // Constructors
  [ClassName]();
  explicit [ClassName](int value);

  // Rule of five - be explicit about copy/move
  [ClassName](const [ClassName]&) = default;
  [ClassName]& operator=([const ClassName]&) = default;
  [ClassName]([ClassName]&&) noexcept = default;
  [ClassName]& operator=([ClassName]&&) noexcept = default;

  // Destructor
  ~[ClassName]();

  // Public methods
  void Process();

  // Accessors and mutators
  int value() const { return value_; }
  void set_value(int value) { value_ = value; }

 protected:
  // Protected members (only if needed for inheritance)

 private:
  // Private methods
  void InternalHelper();

  // Data members (always private for classes)
  int value_ = 0;
  std::string name_;
};

}  // namespace [namespace]

#endif  // [PROJECT]_[PATH]_[FILENAME]_H_

Include Guard Format

Convert path to uppercase with underscores:

File PathGuard
foo/bar/baz.hFOO_BAR_BAZ_H_
src/http/parser.hSRC_HTTP_PARSER_H_
my_project/utils.hMY_PROJECT_UTILS_H_

Struct Template

For passive data with public members and no invariants:

cpp
namespace [namespace] {

/// Brief description.
struct [StructName] {
  int field_one;           // No trailing underscore for structs
  std::string field_two;
  float field_three = 0.0f;  // Default values OK
};

}  // namespace [namespace]

Include Order

  1. Related header (for .cc files)
  2. Blank line
  3. C system headers (<unistd.h>)
  4. Blank line
  5. C++ standard library (<string>, <vector>)
  6. Blank line
  7. Other libraries
  8. Blank line
  9. Project headers

Each section sorted alphabetically.

© ClickHouse, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/cpp-header-template of ClickHouse/pg_stat_ch.

Open the folder on GitHubat commit 10be897

Compare with similar skills

Cpp Header Template next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cpp Header Template compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cpp Header Template this skillClickHouse/pg_stat_ch124—~772Automated safety check: PassApache-2.0
Chdb Datastorevemetric/vemetric3942 repos~1.4kAutomated safety check: PassApache-2.0
PgjevrealZachi/pg-jev1k—~2.9kAutomated safety check: PassCustom licence
Chdb SQLvemetric/vemetric3941 repos~1.2kAutomated safety check: PassApache-2.0
Observal AdminObserval/Observal4.1k—~774Automated safety check: PassApache-2.0
Backend Dev Guidelineslitefuse/litefuse1001 repos~5.8kAutomated safety check: PassCustom licence

Similar skills

  • Chdb Datastore

    vemetric/vemetric

    A skill your agent uses when the user has tabular data (pandas DataFrame, parquet, csv, Arrow, json) and wants to filter, group, aggregate, join, or speed up slow pandas.

    394 GitHub starsUsed in 2 repos~1.4k tokens
    Data & AnalyticsAuto-check passed
  • Pgjev

    realZachi/pg-jev

    Install, configure, query and explain pgjev (the jev PostgreSQL extension that filters, ranks and classifies rows with plain-language conditions via TypeSafe's Jev model).

    1k GitHub stars~2.9k tokensUpdated yesterday
    Writing & ContentAuto-check passed
  • Chdb SQL

    vemetric/vemetric

    A skill your agent uses when the user wants to run SQL — especially analytical SQL — on local files (parquet/csv/json), URLs, S3 paths, or remote databases (Postgres, MySQL, MongoDB, ClickHouse…

    394 GitHub starsUsed in 1 repo~1.2k tokens
    DatabasesAuto-check passed
  • Observal Admin

    Observal/Observal

    Administers Observal users, settings, diagnostics, review queues, security events, audit logs, SAML, SCIM, the local Observal server, its upgrades and rollback, and its own PostgreSQL and ClickHouse…

    4.1k GitHub stars~774 tokensUpdated today
    DatabasesAuto-check passed
  • Backend Dev Guidelines

    litefuse/litefuse

    Comprehensive backend development guide for Litefuse's Next.js 14/tRPC/Express/TypeScript monorepo.

    100 GitHub starsUsed in 1 repo~5.8k tokens
    Backend & APIsAuto-check passed
  • Querying Tempo

    tempoxyz/tidx

    Query indexed Tempo chain data via tidx HTTP API and CLI. An agent skill from tempoxyz/tidx.

    107 GitHub stars~3.1k tokensUpdated today
    DatabasesAuto-check passed

More from ClickHouse/pg_stat_ch

  • Cpp Naming Check

    ClickHouse/pg_stat_ch

    Check C++ naming conventions against Google Style Guide. An agent skill from ClickHouse/pg_stat_ch.

    124 GitHub stars~701 tokensUpdated yesterday
    Auto-check passed
  • Cpp Review

    ClickHouse/pg_stat_ch

    Review C++ code against Google C++ Style Guide. An agent skill from ClickHouse/pg_stat_ch.

    124 GitHub stars~609 tokensUpdated yesterday
    Auto-check passed
  • Google Cpp Style

    ClickHouse/pg_stat_ch

    Google C++ Style Guide rules for writing clean, maintainable C++ code.

    124 GitHub stars~951 tokensUpdated yesterday
    Auto-check passed
  • Create New Release

    ClickHouse/pg_stat_ch

    Create and push a new semver release tag. An agent skill from ClickHouse/pg_stat_ch.

    124 GitHub stars~488 tokensUpdated yesterday
    Auto-check passed

Questions about Cpp Header Template

What does Cpp Header Template do?

Generate C++ header files following Google Style Guide. An agent skill from ClickHouse/pg_stat_ch. Cpp Header Template is an agent skill from ClickHouse/pg_stat_ch. Generate C++ header files following Google Style Guide.

When should I use Cpp Header Template?

Cpp Header Template fits situations like: creating new header files; asking for a header template.

How do I install Cpp Header Template in Claude Code?

Run `npx skills add ClickHouse/pg_stat_ch --skill cpp-header-template -a claude-code`. Or copy the skill folder (.claude/skills/cpp-header-template in ClickHouse/pg_stat_ch) into .claude/skills/cpp-header-template in your project. Claude Code loads it when a task matches its description.

How do I install Cpp Header Template in Codex?

Run `npx skills add ClickHouse/pg_stat_ch --skill cpp-header-template -a codex`. Or copy the skill folder (.claude/skills/cpp-header-template in ClickHouse/pg_stat_ch) into .agents/skills/cpp-header-template in your project. Codex loads it when a task matches its description.

Can I use Cpp Header Template in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ClickHouse/pg_stat_ch --skill cpp-header-template -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cpp-header-template, .gemini/skills/cpp-header-template, .github/skills/cpp-header-template and .opencode/skills/cpp-header-template in your project.

What does Cpp Header Template need to run?

SKILL.md names no scripts, command-line tools or credentials: Cpp Header Template is instructions for the agent only.

Does Cpp Header Template access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Cpp Header Template safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Cpp Header Template use?

Cpp Header Template is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cpp Header Template use?

About 772 tokens (SKILL.md is roughly 3.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Cpp Header Template?

Skills that share tags, products or a category with Cpp Header Template: Chdb Datastore (vemetric/vemetric, 394 stars), Pgjev (realZachi/pg-jev, 1k stars), Chdb SQL (vemetric/vemetric, 394 stars) and Observal Admin (Observal/Observal, 4.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cpp Header Template?

ClickHouse (a GitHub organization) maintains it in ClickHouse/pg_stat_ch, which has 124 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 6, 2026.

Source: ClickHouse/pg_stat_ch on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.