agentleFS
TradebaasTradebaas/Groundwork/.agents/skills/stack/SKILL.md

stack

Skill2 starsChanged 3 months agoMITView on GitHub

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.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Start from docs/standards/TEMPLATE-STACK.md, which owns the shape.

    line 35
  2. Distinctive:

    Run the CI command itself to reproduce a CI finding locally.

    line 102
  3. Very specific:

    Add this ecosystem's file extensions to extraTextExtensions/extraCodeExtensions in checks/config.json so the denylist/secrets/zombie checks …

    line 106
  4. Distinctive:

    Add the chosen tools' commands to the stack standards file so any agent can run them.

    line 108
  5. Distinctive:

    When the chosen stack is a hosted platform, the same four steps apply with these mappings.

    line 120
  6. Distinctive:

    Source in git stays the rule: Use the platform's official route to bring configuration under version control (solution/app export tooling, …

    line 124

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.
    • Design detector, when the product has a user interface: a CI stage that runs the design method's own detector over the surfaces this project ships, beside the typecheck and the tests. It is deterministic, model-free and needs no key, so it belongs with the mechanical gates rather than with the design skill. Give the stage a runner that meets the method's stated engines.node, which can be higher than the one the rest of CI uses:

      - name: The shipped surfaces carry none of the tells this framework refuses
        run: npx -y "impeccable@$(node checks/design-method.mjs --pinned)" detect <the paths this project ships>

      No continue-on-error and no fallback: a detector that cannot install is a red job, because a green tick standing for a scan that never ran is worse than no scan. stack-gates reads this stage and counts the detector as wired only when a workflow actually runs it. The edit hook needs nothing here: it is installed with the payload by node checks/design-method.mjs --install, and it reports while the code is being written. Run the CI command itself to reproduce a CI finding locally. Measured on 2026-08-07: the detector bundled with the installed payload reports less than the published CLI on the same file (9 findings against 0 on this repo's own page), so the hook's silence is not the gate's verdict.

  • 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. Where the detector is wired, that file also says what it looks at (the tells a rendered interface gives away: type, layout, color, motion, contrast, design-system drift) and how a false positive is retired: the narrowest exception that fits, recorded with its reason in .impeccable/config.json through the method's own hooks ignore-value command, never by editing the config by hand and never by widening the rule off the whole project. A finding nobody examined is not a false positive.
  • 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. ⚓

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.