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.
curl -O https://raw.githubusercontent.com/danielsmithdevelopment/ClawQL/main/.cursor/skills/gdp-ts/SKILL.mdgit clone --depth 1 https://github.com/danielsmithdevelopment/ClawQLWrote 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.
[](https://agentmods.dev/skills/danielsmithdevelopment/clawql/gdp-ts)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
- Name values.
name(viewer.id, projectId, async (user, project) => ...)gives each value a compile-time-only name, valid inside the callback. - Prove facts about names. A small trusted module in
proofs/runs the check and returns a proof such asUserIsProjectAdmin<U, P>, ornull. Only that module can mint it. - 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:
- Is the id branded? If not, brand it first.
- Is there a proof for the fact you need in
proofs/? If yes, reuse it. If no, add one file: privatedefineProof, exportedinterface X<...> extends Proof<"X", [...]> {}, exportedasync function x(...named): Promise<X<...> | null>. Nothing else. - 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.
- 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. - Are there non-user preconditions (plan, scope, state)? Make them proofs
too (
PlanIncludesPasswordProtection<P>). - In the handler body (not middleware):
name(...), call the policy function, turnnullinto 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). - Never write
asto satisfy a proof orNamedtype. If you feel the need, the signature is wrong or you are outsideproofs/. 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. - Never export a prover, never call
defineProofoutsideproofs/, never return aNamed, or a proof that mentions that callback's names, from aname()callback. - 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). - Test the proof function you added. It is the only thing that can be wrong at runtime.
- 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. - 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. - ClawQL: keep
gdp-mistakes.tshonest. Add@ts-expect-errorlines for no proof, wrong proof, proof about another value, and raw id. CI runsnpm run test:gdp-mistakes(see ADR 0013). - 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.
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.
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.
- 17d ago First seen · 117 lines · 99 tokens per session scan A bb60ab452ec4
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.
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.
aws-sst-development
SST v4 (Ion) expert for managing AWS resources as code with the Pulumi-backed framework.
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.
dd-code-generation
Use pup CLI for immediate Datadog operations or generate code for integration into applications.
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…
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…