Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

cpp程序文件

Agent Skill

cpp 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,152

周安装

49

GitHub Stars

25

下载量

404
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cpp(程序文件)
来源仓库:https://github.com/oimiragieo/agent-studio
仓库路径:skills/cpp
安装命令:
npx skills add https://github.com/oimiragieo/agent-studio --skill cpp
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/oimiragieo/agent-studio --skill cpp

简介

cpp 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于 C++ 编程和程序文件相关的研究检索任务。
  • 通过 GitHub 仓库安装,使用 npx skills add 命令添加技能。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • cpp 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Cpp Skill

C++ Programming Guidelines

Basic Principles

  • Use English for all code and documentation.
  • Always declare the type of each variable and function (parameters and return value).
  • Create necessary types and classes.
  • Use Doxygen style comments to document public classes and methods.
  • Don't leave blank lines within a function.
  • Follow the one-definition rule (ODR).

Nomenclature

  • Use PascalCase for classes and structures.
  • Use camelCase for variables, functions, and methods.
  • Use ALL_CAPS for constants and macros.
  • Use snake_case for file and directory names.
  • Use UPPERCASE for environment variables.
  • Avoid magic numbers and define constants.
  • Start each function with a verb.
  • Use verbs for boolean variables. Example: isLoading, hasError, canDelete, etc.
  • Use complete words instead of abbreviations and ensure correct spelling.

- Except for standard abbreviations like API, URL, etc. - Except for well-known abbreviations: - i, j, k for loops - err for errors - ctx for contexts - req, res for request/response parameters

Functions

  • Write short functions with a single purpose. Less than 20 instructions.
  • Name functions with a verb and something else.
  • If it returns a boolean, use isX or hasX, canX, etc.
  • If it doesn't return anything (void), use executeX or saveX, etc.
  • Avoid nesting blocks by:

- Early checks and returns. - Extraction to utility functions.

  • Use standard library algorithms (std::for_each, std::transform, std::find, etc.) to avoid function nesting.
  • Use lambda functions for simple operations.
  • Use named functions for non-simple operations.
  • Use default parameter values instead of checking for null or nullptr.
  • Reduce function parameters using structs or classes

- Use an object to pass multiple parameters. - Use an object to return multiple results. - Declare necessary types for input arguments and output.

  • Use a single level of abstraction.

Data

  • Don't abuse primitive types and encapsulate data in composite types.
  • Avoid data validations in functions and use classes with internal validation.
  • Prefer immutability for data.
  • Use const for data that doesn't change.
  • Use constexpr for compile-time constants.
  • Use std::optional for possibly null values.

Classes

  • Follow SOLID principles.
  • Prefer composition over inheritance.
  • Declare interfaces as abstract classes or concepts.
  • Write small classes with a single purpose.

- Less than 200 instructions. - Less than 10 public methods. - Less than 10 properties.

  • Use the Rule of Five (or Rule of Zero) for resource management.
  • Make member variables private and provide getters/setters where necessary.
  • Use const-correctness for member functions.

Exceptions

  • Use exceptions to handle errors you don't expect.
  • If you catch an exception, it should be to:

- Fix an expected problem. - Add context. - Otherwise, use a global handler.

  • Use std::optional, std::expected, or error codes for expected failures.

Memory Management

  • Prefer smart pointers (std::unique_ptr, std::shared_ptr) over raw pointers.
  • Use RAII (Resource Acquisition Is Initialization) principles.
  • Avoid memory leaks by proper resource management.
  • Use std::vector and other standard containers instead of C-style arrays.

Testing

  • Follow the Arrange-Act-Assert convention for tests.
  • Name test variables clearly.
  • Follow the convention: inputX, mockX, actualX, expectedX, etc.
  • Write unit tests for each public function.
  • Use test doubles to simulate dependencies.

- Except for third-party dependencies that are not expensive to execute.

  • Write integration tests for each module.
  • Follow the Given-When-Then convention.

Project Structure

  • Use modular architecture
  • Organize code into logical directories:

- include/ for header files - src/ for source files - test/ for test files - lib/ for libraries - doc/ for documentation

  • Use CMake or similar build system.
  • Separate interface (.h) from implementation (.cpp).
  • Use namespaces to organize code logically.
  • Create a core namespace for foundational components.
  • Create a utils namespace for utility functions.

Standard Library

  • Use the C++ Standard Library whenever possible.
  • Prefer std::string over C-style strings.
  • Use std::vector, std::map, std::unordered_map, etc. for collections.
  • Use std::optional, std::variant, std::any for modern type safety.
  • Use std::filesystem for file operations.
  • Use std::chrono for time-related operations.

Concurrency

  • Use std::thread, std::mutex, std::lock_guard for thread safety.
  • Prefer task-based parallelism over thread-based parallelism.
  • Use std::atomic for atomic operations.
  • Avoid data races by proper synchronization.
  • Use thread-safe data structures when necessary.

Memory Protocol (MANDATORY)

Before starting:

cat .claude/context/memory/learnings.md

After completing: Record any new patterns or exceptions discovered.

ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.67%
按下载量换算144

Claude

29.83%
按下载量换算121

Cursor

18.33%
按下载量换算74

Gemini CLI

8.82%
按下载量换算36

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills