Choose the tech stack or target platform (own servers, Power Platform, ServiceNow, Salesforce, Google, whatever exists by then) and make the project idiomatic for it: docs/standards/<stack>.md and the stack's own gates in CI and hooks. Use when the platform must be decided or those gates wired. Live research only, never stack facts from memory.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Stack?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tradebaas-stack)
---
name: stack
description: Choose the tech stack or target platform (own servers, Power Platform, ServiceNow, Salesforce, Google, whatever exists by then) and make the project idiomatic for it: docs/standards/<stack>.md and the stack's own gates in CI and hooks. Use when the platform must be decided or those gates wired. Live research only, never stack facts from memory.
---
# stack: choose deliberately, then be born current
"Stack" here means whatever the product is built *on*: a language and framework on
self-chosen infrastructure, or a hosted platform where the product is largely configured
(Power Platform, ServiceNow, Salesforce, Google's builders, or any successor). This skill
carries a method, not a platform table; every platform fact is looked up live from the
vendor's current official documentation, so platforms and practices that appear after this
skill was written are in scope automatically.
## 1. Decide the stack: options on merit
Derive candidates from BRIEF.md (target, users, constraints, integrations, team). Hosted
platforms are candidates on equal footing when the brief points there (existing tenant,
licensing, citizen-developer handover). Present 2-3 genuinely different options with honest
trade-offs (fit, ecosystem maturity, hiring/handover, cost, compliance implications, e.g. EU
data residency of managed services). Recommend one; the owner confirms. Record as a decision
record with the options and the reason.
**Verify before recommending.** Versions, support status, pricing, EU-residency: check current
authoritative sources (official docs, release pages). Model memory is a rumor with a cutoff.
## 2. Generate `docs/standards/<stack>.md`
**Existing project: read what the code already does before writing a rule.** The linter and
formatter it configures, the test runner and where the tests live, the module layout, the naming
in use, the stages its CI runs: these are the standards the project has, and the file records them
first. A convention the code follows stays unless it fails the floor; a new one arrives with its
reason and its migration path, never by a rewrite of what works.
Start from `docs/standards/TEMPLATE-STACK.md`, which owns the shape. Its floor table is the part
`checks/check.mjs` reads: six classes of risk, each answered with a command, a reasoned
`not applicable`, or a named `manual` check with a `defer:` marker. Fill that table as you
research, because it is what step 3 has to satisfy.
Research what a top engineer in *this* ecosystem does **today**, from primary sources, and write
it down with versions, dates, and source links.
Head the file with what its readers depend on: the stack's name and version, whether it is a
hosted platform (and which one), and the date these facts were last verified against primary
sources. That header carries weight elsewhere - the platform line is what switches on the
platform route in `code-review`, `debug`, `maintain` and `deliver`, and the date is what
`maintain`'s quarterly audit tests for staleness. A file with no platform line reads downstream
as "not a platform", so a platform project that omits it loses all four routes silently. Add a
`Pipeline` field to the same header when this project's CI lives somewhere `stack-gates` does not
already look (it finds `.github/workflows/`, `.gitlab-ci.yml` and `azure-pipelines.yml` by
itself): the bold field, then the path in backticks, inside this project and never this file
itself. That field is the one place a host is named, and without it every `command` answer below
reads as claimed and unproven. Then cover at least:
- Project layout for this stack (senior-readable, conventional, not invented).
- Language/framework idiom: the current blessed patterns, and the deprecated ones to refuse.
- Tooling: formatter, linter, type checking, test framework, dead-code detection: exact tools
and versions, with config that enforces strictness (strict typecheck catches most AI slips).
- Dependency policy for this ecosystem (lockfiles, audit tooling, update cadence).
- Errors & observability, implementing the GLOBAL.md floor in this ecosystem: the error idiom
(exceptions, Result types, or error returns), global-handler wiring, the structured-logging
library and its config, correlation-ID propagation, and the retry/circuit-breaker library
for remote calls.
- Lint rules that make swallowed errors mechanically impossible here (empty catch blocks,
unhandled promises or ignored error returns, debug leftovers such as stray print/log
statements): name the exact rules and wire them into the gates in step 3.
- The stack's sharp edges: the 5-10 mistakes agents actually make here.
`GLOBAL.md` still applies; the stack file only adds or, with stated reason, overrides.
## 3. Scaffold and wire the gates
- Scaffold the conventional project structure (official generator where one exists).
- Wire the gate chain so it runs the same everywhere. **What has to be covered is the floor table
you filled in step 2**, not a list repeated here: every class answered, and every `command`
answer running as a live stage. An SBOM of at least top-level dependencies is the CRA legal
floor, so `dependencies` is answered with one where the stack has any.
- **pre-commit** (`checks/hooks/pre-commit`, versioned): append the fast half (format, lint
staged) after the Groundwork line. Cheap first.
- **CI** (`.github/workflows/ci.yml`, or this host's equivalent): the full authority. Replace
the placeholder stage; CI must fail on any gate. Deleting a placeholder without wiring what it
stood for leaves the class unanswered, and the floor table is where that shows. `stack-gates`
reads whichever pipeline this project has, so another host is a first-class answer rather than
an exemption: found by itself on the three hosts named in step 2, and named in that step's
header field on any other.
- Add this ecosystem's file extensions to `extraTextExtensions`/`extraCodeExtensions` in
`checks/config.json` so the denylist/secrets/zombie checks cover the product code.
- Add the chosen tools' commands to the stack standards file so any agent can run them. The
`renders` class is answered honestly: a screenshot walkthrough per `verify` as `manual` with a
`defer:` marker, or a Playwright screenshot run as `command` once the project has one.
- Prove the gates work: introduce a deliberate violation, watch the gate fail, revert.
An untested gate is false confidence.
## Platform route: when the product is configured, not coded
When the chosen stack is a hosted platform, the same four steps apply with these mappings.
Research each mapping live in the vendor's current ALM/DevOps documentation for that platform;
name the doc and date in the standards file.
- **Source in git stays the rule.** Use the platform's official route to bring configuration
under version control (solution/app export tooling, source-control integration, IaC where
offered). The repo remains the review surface and the undo button; work never lives only in
the platform's editor.
- **Standards file covers the platform's craft**, from primary sources, current: environment
strategy (dev/test/prod), naming conventions, the platform's blessed patterns and the
deprecated ones, connector/integration governance, licensing and cost traps, EU data
residency, and the 5-10 mistakes builders actually make on this platform today.
- **Map every gate to the platform's equivalent** (built-in analyzers, solution checkers,
automated test support, pipeline tooling). A gate with no platform equivalent becomes a named
manual check in the standards file and a `defer:` entry, never a silent drop. The platform's own
pipeline is what proves the `command` answers, and it counts as itself: `stack-gates` reads
`azure-pipelines.yml` where it lies, and any other host from the header's `Pipeline` field.
- **Verify means the platform's runtime**: exercise the flow, app, or generated document in a
real dev environment, not just a clean export.
## 4. Record
Decision record written; BRIEF.md target/stack line filled; STATE.md updated (phase, gates,
next step, usually `architect`). Retired assumptions (old candidate stacks in docs) → denylist.