power-platform-developer-suite: Skill for Claude Code

.claude/skills/gates/SKILL.md

gates is a skill for Claude Code from joshsmithxrm/power-platform-developer-suite. It costs 5 tokens per session (1,134 once invoked), scanned A, original, MIT.

A set of automatic pass-or-fail checks for changed code, including compilers, linters, and tests. It selects checks based on the file types involved, such as TypeScript, JavaScript, or .NET.

In plain words
What is it for?
Use it before reviews, after groups of fixes, or before pull requests to check applicable TypeScript, JavaScript, and .NET changes.
Why use it?
It catches build and test failures before code review or a pull request and treats missing required tools as failures rather than silently skipping checks.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is joshsmithxrm/power-platform-developer-suite's own configuration. It tells Claude Code how to work on power-platform-developer-suite itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything power-platform-developer-suite configures →

Reuse

Borrowing it

Nothing to install: this file belongs to joshsmithxrm/power-platform-developer-suite. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/joshsmithxrm/power-platform-developer-suite/main/.claude/skills/gates/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/joshsmithxrm/power-platform-developer-suite

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gates

README.md
[![agentmods](https://agentmods.dev/badge/skills/joshsmithxrm/power-platform-developer-suite/gates/github.svg)](https://agentmods.dev/skills/joshsmithxrm/power-platform-developer-suite/gates)
Your own site
<a href="https://agentmods.dev/skills/joshsmithxrm/power-platform-developer-suite/gates"><img src="https://agentmods.dev/badge/skills/joshsmithxrm/power-platform-developer-suite/gates/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gates

Your own site · 80×15
<a href="https://agentmods.dev/skills/joshsmithxrm/power-platform-developer-suite/gates"><img src="https://agentmods.dev/badge/skills/joshsmithxrm/power-platform-developer-suite/gates.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,134 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00005 $0.01134
Opus 5.5 $0.00002 $0.00454
Sonnet 5.5 $0.00001 $0.00227
Haiku 4.5 $0.00001 $0.00113

Measured 1mo ago against content hash ad8a549a99b8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gates scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/gates/SKILL.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Gates

Mechanical pass/fail checks. No judgment, no opinions - compiler, linter, and tests either pass or they don't. Run before code reviews, after fix batches, and before PRs.

Read REFERENCE.md §1 "Why mechanical gates" for rationale.

Input

$ARGUMENTS = optional scope hint (extension for TS-only, dotnet for C#-only). Default: all applicable gates.

Process

Step 1: Detect What Changed

git diff --name-only main...HEAD

Categorize: .cs -> .NET gates; .ts/.js -> TypeScript gates; both -> all. If $ARGUMENTS specifies a scope, use that.

Step 1.5: Preflight Toolchain & Output Discipline

Before running any gate, confirm its toolchain is on PATH. A missing toolchain is a FAIL, never a SKIP - never report a TS gate as PASS or SKIP when npm is missing.

command -v dotnet >/dev/null 2>&1 || { echo "FAIL (preflight): dotnet missing"; exit 1; }  # if .NET gates scheduled
command -v npm >/dev/null 2>&1 || {
  command -v fnm >/dev/null 2>&1 && eval "$(fnm env --shell bash)" || true
  command -v npm >/dev/null 2>&1 && echo "preflight: self-healed via fnm activation" \
    || { echo "FAIL (preflight): npm missing"; exit 1; }
}  # if TS gates scheduled

Never pipe gate commands through tail/head/grep without set -o pipefail. The trailing command's exit code masks the real one. Read REFERENCE.md §8 "Preflight + pipefail" for safe truncation patterns.

Step 2: Run Gates

Gate 1: .NET Build (if C# changed)

dotnet build PPDS.sln -v q

Pass: 0 errors. On "used by another process", Read REFERENCE.md §2 "File-locking recovery".

Gate 2: .NET Tests (if C# changed)

dotnet test PPDS.sln --filter "Category!=Integration" -v q --no-build

Pass: 0 failures. Fail: report failing test names and assertion messages.

Gate 3: TypeScript Build (if TS/JS changed)

npm run compile --prefix src/PPDS.Extension

Pass: 0 errors.

Gate 3.5: TypeScript Type Check (if TS/JS changed)

npm run typecheck:all --prefix src/PPDS.Extension

Pass: 0 errors across host and webview tsconfigs. Read REFERENCE.md §3 "Compile vs typecheck" for why this is separate.

Read the full file on GitHub · 120 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 120 lines · 5 tokens per session scan A ad8a549a99b8

Subscribe to this mod's changes

gates is a skill published in the GitHub repository joshsmithxrm/power-platform-developer-suite (7 stars, last pushed 4d ago), licensed MIT. It adds 5 tokens to every session and 1,134 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

csharp-dotnet

Use when writing, reviewing, testing, or shipping C# / .NET code — ASP.NET Core APIs (minimal APIs vs controllers), EF Core data access, async correctness, solution layout in .cs/.csproj/.sln. NOT a Java/Spring backend (that is spring-boot), NOT a Node/TypeScript backend (that is nestjs), NOT framework-neutral REST…

ericrisco/rsc-harness · 89 tokens

dynamics365-expert

Expert in Dynamics 365 platform, model-driven apps, canvas apps, Power Automate flows, Dataverse, plugins, and custom workflows. Use when the user mentions Microsoft platforms, ERP, CRM, business apps, the Power Platform, or Dataverse, or when the task involves Dynamics 365 Applications, Dataverse Platform…

personamanagmentlayer/pcl · 80 tokens

PowerAppsControl

Drive the PowerAppsControl MCP server to UX-test a Power App end to end: open and verify an app URL, let the user choose a mode (smoke test = in-depth read-only exploration that produces a repeatable natural-language test plan; or run my test plan), then run it in a recorded session and produce a video + HTML report…

ilyafainberg/PowerAppsControl · 177 tokens

test-failure-explorer

Import and query an existing Vitest 3.2 JSON report to explore test failures, file-level errors and original diagnostic evidence.

QwenLM/qwen-code · 32 tokens

cw-gates

Use before claiming any Codewhale change is done, green, or ready to land: the focused-to-broad verification ladder, the budget checks CI enforces, and the rules for what counts as a passing test.

Hmbown/Codewhale · 48 tokens

verify

Exercise the real app/API/CLI and collect observable evidence; tests alone do not count as end-to-end verification.

Hmbown/CodeWhale · 25 tokens