Agent skill

Cpp String API Review

by tetherto in tetherto/qvac

Review C++ changes for string parameter and call-site efficiency conventions (std::stringview, std::string&&, const std::string&, const char, and TransparentStringMap lookup).

Apache-2.0Auto-check passedAI & LLM Engineering

Install Cpp String API Review

skills CLI
$ npx skills add tetherto/qvac --skill cpp-string-api-review -a claude-code

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

GitHub CLI
$ gh skill install tetherto/qvac cpp-string-api-review --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/tetherto/qvac.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/cpp-string-api-review .claude/skills/cpp-string-api-review && 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-string-api-review
GitHub stars
674
Token cost
~702 tokens
SKILL.md length
249 words
Files
2
Skills in repo
50
Repo updated
First seen
Licence
Apache-2.0

At a glance

Review C++ changes for string parameter and call-site efficiency conventions (std::stringview, std::string&&, const std::string&, const char, and TransparentStringMap lookup).

  • Works in 6 steps: Identify touched C++ files (*.h, *.hpp,… → Inspect string parameters and classify… → Flag cost/correctness issues → …
  • Reviewing C++ code
  • SKILL.md covers When to use this skill, Scope and source of truth, Review workflow and Output format, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Cpp String API Review is an agent skill from tetherto/qvac. Review C++ changes for string parameter and call-site efficiency conventions (std::stringview, std::string&&, const std::string&, const char, and TransparentStringMap lookup). Use when reviewing C++ code, refactoring addon interfaces, or invoking /cpp-string-api-review.

Its SKILL.md is about 700 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in AI & LLM Engineering, covering Refactoring. It works with C++. The repository describes itself as: Open-source local AI SDK - run AI on-device with no cloud, no API keys. Supports GGUF, RAG, image, music, and video generation, speech-to-text, P2P inference, and more… The licence is Apache-2.0.

When your agent uses it

  • Reviewing C++ code
  • Refactoring addon interfaces
  • Invoking /cpp-string-api-review

Example prompts

  • “/cpp-string-api-review”

Workflow steps

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

  1. Identify touched C++ files (*.h, *.hpp, *.cc, *.cpp, *.cxx) in scope.
  2. Inspect string parameters and classify each as
  3. Flag cost/correctness issues
  4. Check for requirement propagation ("requirements bubble up")
  5. Produce findings grouped by severity
  6. Propose precise edits with before/after snippets. Only apply code changes after explicit user confirmation.

What it can do on your machine

Read from SKILL.md and the folder at commit d92f697. 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 markdown).

    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 String API Review loads about 702 tokens when it runs. Until then it costs about 76 tokens; SKILL.md has 249 words of instructions outside code blocks.

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

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 tetherto/qvac at commit d92f697, republished under its Apache-2.0 licence (© tetherto). 249 words, ~702 tokens.

Download SKILL.mdSave it as .claude/skills/cpp-string-api-review/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
cpp-string-api-review
description
Review C++ changes for string parameter and call-site efficiency conventions (`std::string_view`, `std::string&&`, `const std::string&`, `const char*`, and TransparentStringMap lookup). Use when reviewing C++ code, refactoring addon interfaces, or invoking /cpp-string-api-review.
disable-model-invocation
true

C++ String API Review

Review C++ code for string API convention compliance and produce actionable fixes.

When to use this skill

Use when:

  • User asks for a review of C++ string parameter choices.
  • User asks to migrate existing code toward string API conventions.
  • User invokes /cpp-string-api-review.

Do NOT use for:

  • Non-C++ changes.
  • Broad performance review unrelated to string interfaces.

Scope and source of truth

  • Primary reference: docs/conventions/string-api-conventions.md
  • Supporting implementation reference: packages/inference-addon-cpp/src/inference-addon-cpp/TransparentStringMap.hpp

Review workflow

  1. Identify touched C++ files (*.h, *.hpp, *.cc, *.cpp, *.cxx) in scope.
  2. Inspect string parameters and classify each as:
    • read-only non-owning (std::string_view),
    • sink ownership transfer (std::string&&),
    • downstream compatibility (const std::string&),
    • C boundary (const char*).
  3. Flag cost/correctness issues:
    • read-only const std::string& where std::string_view is sufficient,
    • sink modeled as const std::string& + copy instead of std::string&& + move,
    • hidden temporary conversions (std::string{view}) on hot paths,
    • unsafe view.data() usage where null termination is not guaranteed,
    • avoidable temporary key materialization in map lookups.
  4. Check for requirement propagation ("requirements bubble up"):
    • if a wrapper takes std::string_view but must call a const std::string& API, surface the trade-off and propose the correct boundary.
  5. Produce findings grouped by severity:
    • High: correctness/lifetime/null-termination issues,
    • Medium: hidden alloc/copy churn in common paths,
    • Low: style/consistency improvements.
  6. Propose precise edits with before/after snippets. Only apply code changes after explicit user confirmation.

Output format

Use this structure:

markdown
## C++ String API Review

### Findings
- [High|Medium|Low] <short title> — <file/symbol>
  - Why it matters: <cost/correctness impact>
  - Suggested change: <concise fix>

### Recommended edits
1. <edit 1>
2. <edit 2>

### Notes
- <boundary trade-offs, if any>

Quick heuristics

  • Prefer explicit ownership intent over hidden conversions.
  • Prefer leaf-first migration to std::string_view through call chains.
  • If downstream requires const std::string&, do not hide that cost behind wrapper layers.

© tetherto, 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

SKILL.md and 1 other file in .agents/skills/cpp-string-api-review of tetherto/qvac.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit d92f697

Compare with similar skills

Cpp String API Review 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 String API Review compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cpp String API Review this skilltetherto/qvac674—~702Automated safety check: PassApache-2.0
Ss Cpp ModernSerial-Studio/Serial-Studio7.2k—~1.6kAutomated safety check: PassCustom licence
Cpp ProYikai-Liao/symusic1891 repos~1.1kAutomated safety check: PassMIT
Readable Cppcrazyguitar/cppcheatsheet290—~6.4kAutomated safety check: PassMIT
Qt QmlSerial-Studio/Serial-Studio7.2k—~2.9kAutomated safety check: PassCustom licence
Control Flow Clarityyokki-vans/InkPointX105—~737Automated safety check: PassMIT

Similar skills

  • Ss Cpp Modern

    Serial-Studio/Serial-Studio

    Modern C++20 authoring guidance for Serial Studio (Qt 6.11, C++20): concepts, ranges, move/RAII, std smart pointers, constexpr, lock-free SPSC atomics.

    7.2k GitHub stars~1.6k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Cpp Pro

    Yikai-Liao/symusic

    Writes, optimizes, and debugs C++ applications using modern C++20/23 features, template metaprogramming, and high-performance systems techniques.

    189 GitHub starsUsed in 1 repo~1.1k tokens
    DevelopmentAuto-check passed
  • Readable Cpp

    crazyguitar/cppcheatsheet

    Readable C/C++/Rust/CUDA code rules inspired by The Art of Readable Code.

    290 GitHub stars~6.4k tokensUpdated 6 days ago
    DevelopmentAuto-check passed
  • Qt Qml

    Serial-Studio/Serial-Studio

    QML authoring best practices for Serial Studio (Qt 6.11). An agent skill from Serial-Studio/Serial-Studio.

    7.2k GitHub stars~2.9k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Control Flow Clarity

    yokki-vans/InkPointX

    Branching and state-modeling clarity in C/C++. An agent skill from yokki-vans/InkPointX.

    105 GitHub stars~737 tokensUpdated 13 days ago
    DevelopmentAuto-check passed
  • C++ coding standards based on the C++ Core Guidelines (isocpp.github.io).

    274k GitHub starsUsed in 4 repos~5.6k tokens
    DevelopmentAuto-check passed

More from tetherto/qvac

All 50 skills in this repo
  • Creates a Solutions page in the QVAC documentation website from a real use case, generalizing the case into reusable guidance and registering the page in the site navigation.

    674 GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Qv Docs Update

    tetherto/qvac

    Updates the docs website after a change to the SDK or CLI. An agent skill from tetherto/qvac.

    674 GitHub stars~11k tokensUpdated today
    Auto-check passed
  • Qv Agent Stack Sync

    tetherto/qvac

    Plan and prepare the QVAC agent-stack release cascade across @qvac/inference, @qvac/sdk, @qvac/cli, @qvac/ai-sdk-provider, @qvac/opencode-plugin, and @qvac/openclaw-plugin.

    674 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Run the deterministic code-quality audit, turn related findings into contextual remediation groups, prepare approval-gated Asana proposals, reconcile recurring runs, or configure twice-monthly…

    674 GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Qv Addon Changelog

    tetherto/qvac

    Generate changelog entries for a target add-on package. An agent skill from tetherto/qvac.

    674 GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Generate release notes for addon packages (non-SDK inference addons, decoder, OCR).

    674 GitHub stars~1.2k tokensUpdated today
    Auto-check passed

Works with

Questions about Cpp String API Review

What does Cpp String API Review do?

Review C++ changes for string parameter and call-site efficiency conventions (std::stringview, std::string&&, const std::string&, const char, and TransparentStringMap lookup). Cpp String API Review is an agent skill from tetherto/qvac. Review C++ changes for string parameter and call-site efficiency conventions (std::stringview, std::string&&, const std::string&, const char, and TransparentStringMap lookup).

When should I use Cpp String API Review?

Cpp String API Review fits situations like: reviewing C++ code; refactoring addon interfaces; invoking /cpp-string-api-review.

How do I install Cpp String API Review in Claude Code?

Run `npx skills add tetherto/qvac --skill cpp-string-api-review -a claude-code`. Or copy the skill folder (.agents/skills/cpp-string-api-review in tetherto/qvac) into .claude/skills/cpp-string-api-review in your project. Claude Code loads it when a task matches its description.

How do I install Cpp String API Review in Codex?

Run `npx skills add tetherto/qvac --skill cpp-string-api-review -a codex`. Or copy the skill folder (.agents/skills/cpp-string-api-review in tetherto/qvac) into .agents/skills/cpp-string-api-review in your project. Codex loads it when a task matches its description.

Can I use Cpp String API Review 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 tetherto/qvac --skill cpp-string-api-review -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-string-api-review, .gemini/skills/cpp-string-api-review, .github/skills/cpp-string-api-review and .opencode/skills/cpp-string-api-review in your project.

What does Cpp String API Review need to run?

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

Does Cpp String API Review 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 String API Review 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 String API Review use?

Cpp String API Review 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 String API Review use?

About 702 tokens (SKILL.md is roughly 2.8k 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 String API Review?

Skills that share tags, products or a category with Cpp String API Review: Ss Cpp Modern (Serial-Studio/Serial-Studio, 7.2k stars), Cpp Pro (Yikai-Liao/symusic, 189 stars), Readable Cpp (crazyguitar/cppcheatsheet, 290 stars) and Qt Qml (Serial-Studio/Serial-Studio, 7.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cpp String API Review?

tetherto (a GitHub organization) maintains it in tetherto/qvac, which has 674 GitHub stars. The repository holds 50 skills in this directory. The repository was last updated on October 7, 2026.

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