{"slug":"resolving-stack-commands","title":"resolving-stack-commands","summary":"Use whenever an agent must run a toolchain command (build, test) and needs the concrete invocation. Resolves build/test commands from the detected stack via the `quality-gates-<tech>` adapters; mutation is never resolved, the developer runs it through /skraft-mutation. No agent h","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-11-29T00:42:33.941643Z","repo":{"url":"https://github.com/SebastienDegodez/skraft-plugin","stars":17,"forks":3,"license":"GPL-3.0","updatedAt":"2026-11-29T00:18:21Z"},"bodyHtml":"<hr>\n<h2>name: resolving-stack-commands\ndescription: Use whenever an agent must run a toolchain command (build, test) and needs the concrete invocation. Resolves build/test commands from the detected stack via the <code>quality-gates-&lt;tech&gt;</code> adapters; mutation is never resolved, the developer runs it through /skraft-mutation. No agent hardcodes <code>dotnet test</code>, <code>dotnet build</code>, or any toolchain command. Loaded by acceptance-designer and software-engineer.</h2>\n<h1>Resolving Stack Commands (stack-agnostic)</h1>\n<p>The single place that maps a repository's stack to its concrete toolchain\ncommands (build, test, lint). No agent and no workflow step may hardcode a\ncommand (<code>dotnet test</code>, <code>dotnet build</code>, <code>mvn test</code>, <code>pytest</code>, ...). They resolve\nit here instead.</p>\n<h2>Why this exists</h2>\n<p>The pipeline must run with .NET today and other stacks tomorrow (Java planned,\nnot yet supported). If each agent embeds <code>dotnet test</code>, swapping or adding a\nstack means editing every agent. Centralizing the mapping keeps agents\ntech-agnostic: they say \"build the solution\" / \"run the test suite\", this skill\nsays how.</p>\n<h2>Detection → adapter</h2>\n<p>Detect the stack from markers at the repo root, then resolve the concrete\ncommands from the matching <code>quality-gates-&lt;tech&gt;</code> adapter (the adapter owns the\nbuild / test commands and their evidence mapping). Architecture, coverage and mutation commands\nare never resolved here: the pipeline never runs them, the project's CI does, and the developer\ngives the mutation command to <code>/skraft-mutation</code>.</p>\n<table>\n<thead>\n<tr>\n<th>Stack</th>\n<th>Detection markers</th>\n<th>Adapter</th>\n<th>Status</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>.NET</td>\n<td><code>*.sln</code>, <code>*.slnx</code>, <code>**/*.csproj</code>, <code>Directory.Packages.props</code></td>\n<td><code>quality-gates-dotnet</code> (<code>dotnet build</code> / <code>dotnet test</code>)</td>\n<td>supported</td>\n</tr>\n<tr>\n<td>TypeScript tested with Vitest (React front end, Node package)</td>\n<td>A <code>package.json</code> whose devDependencies hold <code>vitest</code></td>\n<td><code>quality-gates-typescript</code> (<code>{bin:vitest} run</code> / <code>{bin:typescript:tsc} --noEmit</code> / <code>{bin:eslint} .</code>, run from the package's <code>node_modules</code>)</td>\n<td>supported; uninstalled dependencies are a blocker</td>\n</tr>\n<tr>\n<td>Node JavaScript</td>\n<td>A <code>package.json</code> without <code>vitest</code></td>\n<td><code>quality-gates-javascript</code>: checked-in package scripts and native Node tests</td>\n<td>narrow support</td>\n</tr>\n<tr>\n<td>TypeScript or browser code under another test runner</td>\n<td>Jest, Mocha, Karma or Jasmine without Vitest</td>\n<td>No matching supported adapter</td>\n<td>NOT SUPPORTED</td>\n</tr>\n<tr>\n<td>Python</td>\n<td><code>pyproject.toml</code></td>\n<td><code>quality-gates-python</code> (<code>{python} -m pytest</code> / <code>{python} -m compileall</code>, run from <code>.venv</code>)</td>\n<td>supported; no <code>.venv</code> and no <code>--python</code> is a blocker</td>\n</tr>\n<tr>\n<td>Java</td>\n<td><code>pom.xml</code>, <code>build.gradle</code>, <code>build.gradle.kts</code></td>\n<td><em>(quality-gates-java not yet provided)</em></td>\n<td>NOT SUPPORTED</td>\n</tr>\n</tbody>\n</table>\n<p>Every <code>package.json</code> (outside <code>node_modules</code>), every <code>pyproject.toml</code> and every .NET solution in the repository is a stack to resolve; a front end in <code>web/</code> is a TypeScript stack beside the backend's. If multiple stacks coexist, run each adapter and aggregate results; an unsupported one blocks the whole delivery, even when another stack passes.</p>\n<h2>Unsupported stack → stop, never guess</h2>\n<p>If the detected stack has no <code>quality-gates-&lt;tech&gt;</code> adapter, STOP and emit a\nstructured blocker. Never invent a command:</p>\n<pre><code>status: blocked\ntype: unsupported_stack\nmessage: No quality-gates adapter for the detected stack\ncontext:\n  stack: java\n  markers:\n    - pom.xml\n  needed: test\n</code></pre>\n<h2>Stack-commands file (resolve once per pipeline)</h2>\n<p>Inside a SKRAFT pipeline, resolved commands live in one file every later agent reads:\n<code>.copilot-tracking/skraft-plans/{projectSlug}/details/{date}/stack-commands.md</code>.</p>\n<ul>\n<li><strong>Read before resolving.</strong> When the handoff block lists the file, take the commands\nfrom it and do not run the detection above.</li>\n<li><strong>Resolve only when</strong> the file is absent, a command in it fails to start or to build\n(a test that fails on its assertion is not a command failure), or the stack markers\nchanged since the recorded revision.</li>\n<li><strong>Write:</strong> the first agent that resolves writes the whole file; a later agent that\nre-resolves rewrites only the failing rows and the revision line.</li>\n<li>Never record credentials, tokens or environment-variable values in it.</li>\n</ul>\n<pre><code>&lt;!-- markdownlint-disable-file --&gt;\n# Stack commands\n- Stack: {stack} — adapter `quality-gates-{tech}`\n- Resolved at: {output of git rev-parse HEAD}\n\n| Purpose | Command | Working directory |\n|---|---|---|\n| build | {command} | {dir} |\n| test — full suite | {command} | {dir} |\n| test — one test (filter placeholder `{TestName}`) | {command} | {dir} |\n</code></pre>\n<h2>Contract for callers</h2>\n<ul>\n<li>Resolve the command (build / test) from the matching <code>quality-gates-&lt;tech&gt;</code> adapter; do not embed it in workflow steps.</li>\n<li>Run it, then assert on its output (build succeeds, RED on a business assertion, GREEN gate, etc.).</li>\n<li>Adding a stack = add a <code>quality-gates-&lt;tech&gt;</code> adapter and a row here, with zero edits to agents.</li>\n</ul>\n","files":[{"path":"SKILL.md","sizeBytes":4828,"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-11-29T00:44:25.420501Z","sha256":"7A87FB8F0CFBA733EECFB0261EC55A390BEC653E6591D59C33C7F9CE61C16076","sizeBytes":2244},"review":null,"source":{"repositoryUrl":"https://github.com/SebastienDegodez/skraft-plugin","path":"plugins/skraft-framework/skills/resolving-stack-commands","license":"GPL-3.0","commit":"c6117c6236a25490bf1916b131866069740c9b22","subtreeSha":"E4A0E88D7C2A3081F56FBBFD219B88E4E9DA658B149D8EDF2CC989C84B0CC57C","lastSyncedAt":"2026-11-29T00:42:27.348488Z"},"reviewedAt":"2026-11-29T00:48:35.864982Z","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/SebastienDegodez/skraft-plugin/tree/main/plugins/skraft-framework/skills/resolving-stack-commands"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install sebastiendegodez-skraft-plugin@llmmart"},{"target":"git","command":"git clone https://github.com/SebastienDegodez/skraft-plugin.git"}]}