ClawQL: Skill for Cursor

.cursor/skills/gdp-ts/SKILL.md

gdp-ts is a skill for Cursor from danielsmithdevelopment/ClawQL. It costs 99 tokens per session (1,946 once invoked), scanned A, original, Apache-2.0.

A TypeScript library and workflow for representing authorization checks as compile-time proofs. A protected function requires proof that the caller is allowed to use the exact value being passed.

In plain words
What is it for?
Use it when adding or reviewing ownership, entitlement, or authorization checks in a TypeScript project that uses gdp-ts.
Why use it?
It makes missing, mismatched, or reused authorization checks produce a compile error rather than relying only on runtime discipline. This helps prevent access-control mistakes involving the wrong user, project, or resource.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is danielsmithdevelopment/ClawQL's own configuration. It tells Cursor how to work on ClawQL 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 ClawQL configures →

Reuse

Borrowing it

Nothing to install: this file belongs to danielsmithdevelopment/ClawQL. 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/danielsmithdevelopment/ClawQL/main/.cursor/skills/gdp-ts/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/danielsmithdevelopment/ClawQL

Made for: Cursor.

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 gdp-ts

README.md
[![agentmods](https://agentmods.dev/badge/skills/danielsmithdevelopment/clawql/gdp-ts/github.svg)](https://agentmods.dev/skills/danielsmithdevelopment/clawql/gdp-ts)
Your own site
<a href="https://agentmods.dev/skills/danielsmithdevelopment/clawql/gdp-ts"><img src="https://agentmods.dev/badge/skills/danielsmithdevelopment/clawql/gdp-ts/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 gdp-ts

Your own site · 80×15
<a href="https://agentmods.dev/skills/danielsmithdevelopment/clawql/gdp-ts"><img src="https://agentmods.dev/badge/skills/danielsmithdevelopment/clawql/gdp-ts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,946 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.00099 $0.01946
Opus 5.5 $0.00040 $0.00778
Sonnet 5.5 $0.00020 $0.00389
Haiku 4.5 $0.00010 $0.00195

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

Security

Grade A, and why

gdp-ts 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 17d 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.

.cursor/skills/gdp-ts/SKILL.md · 117 lines

How it starts

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

gdp-ts

A sensitive function (one that reads or changes something only some callers may touch) takes a proof about its exact arguments, so calling it without the check, or with a check about a different value, does not compile.

  1. Name values. name(viewer.id, projectId, async (user, project) => ...) gives each value a compile-time-only name, valid inside the callback.
  2. Prove facts about names. A small trusted module in proofs/ runs the check and returns a proof such as UserIsProjectAdmin<U, P>, or null. Only that module can mint it.
  3. Demand proofs. The sensitive function takes project: Named<P, ProjectId> and _proof: UserIsProjectAdmin<U, P>. The wrong proof, a proof about another value, a raw id or no proof is a compile error.

This is not a theorem prover. Prove the facts whose absence would be an incident, and stop there (where to stop).

Workflow

When adding or changing authorization in a codebase that uses this pattern:

  1. Is the id branded? If not, brand it first.
  2. Is there a proof for the fact you need in proofs/? If yes, reuse it. If no, add one file: private defineProof, exported interface X<...> extends Proof<"X", [...]> {}, exported async function x(...named): Promise<X<...> | null>. Nothing else.
  3. Does the sensitive function take proofs about its named arguments? If it takes raw ids, change the signature; let the compiler list the call sites to fix.
  4. Does the request carry other values the operation trusts (a token in a cookie, an id in the body)? Check them in a trusted module against the resource they claim to unlock (TokenUnlocksUrl<H>). This is where cross-resource and cross-tenant bugs live.
  5. Are there non-user preconditions (plan, scope, state)? Make them proofs too (PlanIncludesPasswordProtection<P>).
  6. In the handler body (not middleware): name(...), call the policy function, turn null into the right HTTP response, do all sensitive work inside the callback. If that block will likely be called from many places, consider moving it into a shared function (recipe step 5).
  7. Never write as to satisfy a proof or Named type. If you feel the need, the signature is wrong or you are outside proofs/. If the codebase has no gdp-ts lint preset yet, add it (recipe step 6); if it does, fix lint errors rather than disabling them.
  8. Never export a prover, never call defineProof outside proofs/, never return a Named, or a proof that mentions that callback's names, from a name() callback.
  9. Add the new mistake you almost made to mistakes.ts (a type-checked file that never runs) as one line under // @ts-expect-error. It is the cheapest regression test you will write (details).
  10. Test the proof function you added. It is the only thing that can be wrong at runtime.
  11. ClawQL: mint where the check happens. The function that performs redaction / hash verify / two-party gate / session verify returns the proof (or { result, proof }). Do not mint in a separate helper that assumes the check already ran.
  12. ClawQL: never store proofs. Do not write proofs into pending records, subscriptions, queues, or Redis. Keep them inside one name() callback / request. Long-lived authority stays with runtime rechecks.
  13. ClawQL: keep gdp-mistakes.ts honest. Add @ts-expect-error lines for no proof, wrong proof, proof about another value, and raw id. CI runs npm run test:gdp-mistakes (see ADR 0013).
  14. ClawQL: never treat a proof as runtime authority from agent code. The gateway must not accept proof objects from skills/scripts. gdp-ts is a quality / promotion gate for TypeScript; containment is sandbox + ATR + OpenAPPA + server-side mandates. Promotion means reusable under declared scope, not unsandboxed. Details: ADR 0013.

Read the full file on GitHub · 117 lines

Files

What ships with it

5 files 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. 17d ago First seen · 117 lines · 99 tokens per session scan A bb60ab452ec4

Subscribe to this mod's changes

gdp-ts is a skill published in the GitHub repository danielsmithdevelopment/ClawQL (13 stars, last pushed today), licensed Apache-2.0. It adds 99 tokens to every session and 1,946 once invoked, about $0.0004 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-10-06.

Related

Other skills, from other repositories

no-bare-casts

Writing as in TypeScript or TSX production code, modifying a file that contains a bare as cast, silencing a type error with a cast, encountering as unknown as, or reviewing a cast site.

prisma/orm · 52 tokens

aws-sst-development

SST v4 (Ion) expert for managing AWS resources as code with the Pulumi-backed framework.

sickn33/agentic-awesome-skills · 26 tokens

league-akari-shard-development

Use when creating, extending, refactoring, splitting, or reviewing League Akari main or renderer shards, including shard file organization, controller/loader/executor/handler boundaries, naming conventions, renderer TSX usage, platform guards, and public contract compatibility.

LeagueAkari/LeagueAkari · 58 tokens

dd-code-generation

Use pup CLI for immediate Datadog operations or generate code for integration into applications.

DataDog/pup · 16 tokens

typescript-magician

Designs complex generic types, refactors any types to strict alternatives, creates type guards and utility types, and resolves TypeScript compiler errors. Use when the user asks about TypeScript (TS) types, generics, type inference, type guards, removing any types, strict typing, type errors, infer, extends…

mcollina/skills · 108 tokens

fast-typescript-check

Keep www-sacred's TypeScript fast to type-check and fast to run. Use when touching the ASCII/canvas animation components (the only real per-frame code here), tightening type-check wall-clock, or auditing a change for runtime or compiler regressions. Scoped to this repo — a React 19 / Next.js 16 component library plus…

internet-development/www-sacred · 84 tokens