giovortu-creativemu-2-hooks-instructions.ocm.json json Copy{
"ocm": "1",
"id": "giovortu-creativemu-2-hooks-instructions",
"kind": "skill",
"name": "hooks",
"description": "Run these checks before committing C++ changes:",
"publisher": "giovortu",
"version": "1.0.0",
"capabilities": {
"domains": [
"general"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Run these checks before committing C++ changes:"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/giovortu/creativemu-2",
"path": ".github/instructions/cpp/hooks.instructions.md",
"ref": "9df9ccbf2f81cb5df0588e697b01430c9e07048b",
"url": "https://github.com/giovortu/creativemu-2/blob/9df9ccbf2f81cb5df0588e697b01430c9e07048b/.github/instructions/cpp/hooks.instructions.md",
"key": "giovortu/creativemu-2/.github/instructions/cpp/hooks.instructions.md"
}
},
"instructions": "# C++ Hooks\n\n> This file extends [common/hooks.md](../common/hooks.md) with C++ specific content.\n\n## Build Hooks\n\nRun these checks before committing C++ changes:\n\n```bash\n# Format check\nclang-format --dry-run --Werror src/*.cpp src/*.hpp\n\n# Static analysis\nclang-tidy src/*.cpp -- -std=c++17\n\n# Build\ncmake --build build\n\n# Tests\nctest --test-dir build --output-on-failure\n```\n\n## Recommended CI Pipeline\n\n1. **clang-format** — formatting check\n2. **clang-tidy** — static analysis\n3. **cppcheck** — additional analysis\n4. **cmake build** — compilation\n5. **ctest** — test execution with sanitizers",
"cost": {
"context_tokens": 149
}
}