qing1989620/skillnet-demo/cpp
Claude Code and agent skill by qing1989620/skillnet-demo
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Language-specific super-code guidelines for cpp.
Install
npx vskill@latest install qing1989620/skillnet-demo/cppSKILL.md
The same SKILL.md was published earlier as lingxling/awesome-skills-cn/cpp.
C++: Idiomatic Efficiency Reference
When to Use
- Use this skill when the task matches this description: Language-specific super-code guidelines for cpp.
Table of Contents
- Memory & Ownership
- Modern Types & Containers
- Move Semantics & References
- Templates & Concepts
- Error Handling
- Concurrency
- Anti-patterns specific to C++
1. Memory & Ownership {#memory}
Rule: if you type `new`, you almost certainly want `make_unique` or `make_shared`.
2. Modern Types & Containers {#types}
Use `std::string_view` for function parameters that don't need ownership.
3. Move Semantics & References {#move}
4. Templates & Concepts {#templates}
Concepts make template errors readable — prefer them over SFINAE and static_assert.
5. Error Handling {#errors}
6. Concurrency {#concurrency}
Use `std::scoped_lock` over `lock_guard` — it handles multiple mutexes and avoids deadlock.
7. Anti-patterns specific to C++ {#antipatterns}
| Anti-pattern | Preferred | |
|---|---|---|
Raw new/delete | make_unique / make_shared | |
(Type)expr C-style cast | static_cast<Type>(expr) | |
#define constants | constexpr variables | |
NULL | nullptr | |
using namespace std; in headers | explicit std:: prefix | |
| Manual loop for transform/filter | std::ranges or <algorithm> | |
std::endl | '\n' (endl flushes — slow) | |
char* for string parameters | std::string_view | |
Exception specification throw() | noexcept | |
Inheriting from std:: containers | composition, not inheritance | |
volatile for thread synchronization | std::atomic | |
| Header-only mega-templates | separate declaration/definition where compile time matters |
Limitations
- These are language-specific guidelines and do not cover overall architectural decisions.
- Over-compression might reduce readability; apply judgement.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingseed/community/skills/gh-agentic-super-code-bf8e4e/cpp/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/qing1989620/skillnet-demo/cpp)