{"slug":"goga-cell-cpp","title":"goga-cell-cpp","summary":"C++ CODEMANIFEST contract implementation rules","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-08-24T17:38:05.328597Z","repo":{"url":"https://github.com/qarium/goga","stars":31,"forks":0,"license":"BSD-3-Clause","updatedAt":"2026-09-18T23:57:35Z"},"bodyHtml":"<hr>\n<h2>name: goga-cell-cpp\ndescription: C++ CODEMANIFEST contract implementation rules</h2>\n<h1>C++: Contract Implementation Rules</h1>\n<p>Language skill for C++.</p>\n<p>Apply the specification in the context of the calling skill. Do not retell the content — use it\nfor decision-making.</p>\n<p>Invoked through the <code>goga-lang-disp</code> router.</p>\n<hr>\n<h2>Examples</h2>\n<p>Full CODEMANIFEST example for C++ with all DSL constructs:</p>\n<pre><code>Imports:\n  - Types:\n      - Buffer\n      - StreamConfig AS Config\n    Usages:\n      - memory_layout\n    From: path/to/stream_cell\n\nUsages:\n  conventions: .goga/usages/cpp_conventions.md\n  pattern: |\n    Use RAII for resource management. Prefer stack allocation over heap allocation.\n  testing: |\n    Use Catch2. Each public function must have test coverage.\n\nAnnotations: |\n  Use `conventions` for code style.\n  Use `testing` for test requirements.\n  Use `memory_layout` from Imports for buffer alignment rules.\n\n  Use value semantics only. No raw pointers or references in public API.\n\n---\n\n\"lookup_entry(std::string key) -&gt; value: int\":\n  location: engine.hpp\n  annotations: |\n    Look up an entry by key.\n\n    `key`: lookup key string\n    `value`: found value or 0 if not found\n\n    Use `pattern` for implementation.\n\n\"Parser(input: std::string)\":\n  location: parser.hpp\n  annotations: |\n    Configurable parser for structured input.\n\n    `input`: raw input string\n\n    Use `memory_layout` from Imports for buffer sizing.\n    Use `conventions` for code style.\n  properties:\n    \"position -&gt; int\": |\n      Current parsing position.\n    \"length -&gt; int\": |\n      Total input length.\n  methods:\n    \"parse() -&gt; tokens: std::vector&lt;std::string&gt;\": |\n      Parse input into tokens.\n\n      `tokens`: parsed token list\n\n      Use `pattern` for implementation.\n    \"reset()\": |\n      Reset parser state to beginning.\n\n\"Buffer::StreamBuffer(config: Config)\":\n  location: stream.hpp\n  annotations: |\n    Stream buffer extending Buffer with configurable capacity.\n\n    `config`: buffer configuration from `Config` type.\n\n    Use `memory_layout` from Imports for allocation strategy.\n\n-&gt;Buffer: {}\n\n---\n\nAuthor: Goga\nCreatedAt: 22/05/26\nDescription: |\n  Example CODEMANIFEST demonstrating all DSL constructs for C++.\n</code></pre>\n<h2>Cell</h2>\n<p>A cell is a directory with a public header:</p>\n<pre><code>cell/\n├── CODEMANIFEST\n├── cell.hpp\n</code></pre>\n<h2>Language Features</h2>\n<p><strong>Facade</strong>: the header file (<code>cell.hpp</code>) defines the public API. Everything declared in the header within the cell namespace\nconstitutes the facade. Implementation resides in the corresponding <code>.cpp</code> files.</p>\n<p><strong>Naming</strong>: PascalCase for user-defined classes and structs, snake_case for functions and variables.\nStandard library types (<code>std::string</code>, <code>std::vector</code>) are used as-is (snake_case).</p>\n<p><strong>Namespace</strong>: each cell uses its own namespace for isolation.</p>\n<p><strong>Constructors</strong>: the Entity signature describes the class constructor. Constructor parameters are the input data.</p>\n<p><strong>Memory</strong>: pointers, references, and smart pointers are forbidden in the contract. Use value semantics.</p>\n<h2>Construct Mapping</h2>\n<table>\n<thead>\n<tr>\n<th>C++</th>\n<th>CODEMANIFEST</th>\n<th>Note</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>class</code> / <code>struct</code> in namespace</td>\n<td>Entity</td>\n<td>Constructor → Entity signature</td>\n</tr>\n<tr>\n<td>Free function in namespace</td>\n<td>Routine</td>\n<td></td>\n</tr>\n<tr>\n<td>Public member variable</td>\n<td>Property</td>\n<td></td>\n</tr>\n<tr>\n<td>Public member function</td>\n<td>Method</td>\n<td></td>\n</tr>\n<tr>\n<td>Constructor</td>\n<td>Entity signature</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n<h2>Implementation</h2>\n<ul>\n<li>Public API defined in header</li>\n<li>Use namespace per cell</li>\n</ul>\n<h2>Signature Rules</h2>\n<p>Allowed:</p>\n<pre><code>std::string\nint, double, bool\nstd::vector&lt;T&gt;\nstd::map&lt;K, V&gt;\nstd::optional&lt;T&gt;\n</code></pre>\n<p>Forbidden:</p>\n<pre><code>pointers (*T)\nreferences (&amp;, &amp;&amp;)\nsmart pointers\nvoid*\ntemplates in DSL\n</code></pre>\n<hr>\n","files":[{"path":"SKILL.md","sizeBytes":3941,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-08-24T17:39:19.100385Z","sha256":"584F4D5159C1865DBCDA4797DDD69DC025D5871C7ABF41C114692F363AE7F3B7","sizeBytes":1735},"review":null,"source":{"repositoryUrl":"https://github.com/qarium/goga","path":"goga/assets/skills/goga-cell-cpp","license":"BSD-3-Clause","commit":"9fdb39b191bec889e345e42ffa1549d2727ca247","subtreeSha":"E738E34586B080CE25648E712192BBDF30D4B2B9280A8AF2B3EF861D717C22E7","lastSyncedAt":"2026-09-20T13:50:46.125615Z"},"reviewedAt":"2026-08-24T17:46:48.785924Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/qarium/goga/tree/1.2.x/goga/assets/skills/goga-cell-cpp"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install qarium-goga@llmmart"},{"target":"git","command":"git clone https://github.com/qarium/goga.git"}]}