Gamma Local Dev LoopSAFE
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
Overview
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
4f83675ca38aOBSERVED · 2026-10-08Host compatibility
What the documentation claims. We have not run a compatibility test.
| Host | Status | Notes |
|---|---|---|
| claude-code | mentioned |
What it tells the agent
The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.
--- name: gamma-local-dev-loop description: 'Set up local development workflow for Gamma API integration. Use when building automation scripts, testing API calls locally, or configuring a dev environment with mock responses. Trigger: "gamma local dev", "gamma development setup", "gamma test locally", "gamma mock API", "gamma dev workflow". ' allowed-tools: Read, Write, Edit, Bash(curl:*), Bash(node:*), Bash(npm:*) version: 1.13.0 license: MIT author: Jeremy Longshore <[email protected]> tags: - saas - gamma - development - testing compatibility: Designed for Claude Code --- # Gamma Local Dev Loop ## Output Create a local validation receipt with fixture version, schema result, owner, and redacted failure reference. Never commit private presentations, viewer data, or secrets. ## Examples Run offline tests using fictional presentation fixtures, verify logs are redacted and no production credential is required, then remove temporary artifacts after validation. ## Overview Set up an efficient local development workflow for Gamma API integrations. Since Gamma is a REST API with no SDK, the dev loop centers on HTTP request/response testing, mock servers for offline development, and a reusable client wrapper. ## Prerequisites - Completed `gamma-install-auth` setup - Node.js 18+ with `tsx` for TypeScript execution - `GAMMA_API_KEY` in `.env` ## Instructions ### Step 1: Project Structure ``` gamma-integration/ ├── src/ │ ├── client.ts # Reusable Gamma API client │ ├── generate.ts # Generation workflows │ └── poll.ts # Polling helper ├── test/ │ ├── mock-server.ts # Local mock for offline dev │ └── integration.test.ts ├── .env # GAMMA_API_KEY (gitignored) ├── .env.example # Template without secrets ├── package.json └── tsconfig.json ``` ### Step 2: Reusable Client Wrapper ```typescript // src/client.ts import "dotenv/config"; const GAMMA_BASE = "https://public-api.gamma.app/v1.0"; export interface GammaClient { generate(body: GenerateRequest): Promise<GenerateResponse>; poll(generationId: string): Promise<PollResponse>; listThemes(): Promise<Theme[]>; listFolders(): Promise<Folder[]>; } export function createClient(apiKey?: string, baseUrl?: string): GammaClient { const key = apiKey ?? process.env.GAMMA_API_KEY; if (!key) throw new Error("GAMMA_API_KEY required"); const base = baseUrl ?? GAMMA_BASE; const headers = { "X-API-KEY": key, "Content-Type": "application/json" }; async function request(method: string, path: string, body?: unknown) { const res = await fetch(`${base}${path}`, { method, headers, body: body ? JSON.stringify(body) : undefined, }); if (!res.ok) { const text = await res.text(); throw new Error(`Gamma ${res.status}: ${text}`); } return res.json(); } return { generate: (body) => request("POST", "/generations", body), poll: (id) => request("GET", `/generations/${id}`), listThemes: () => request("GET", "/themes"), listFolders: () => request("GET", "/folders"), }; } ``` ### Step 3: Poll Helper with Timeout ```typescript // src/poll.ts import type { GammaClient } from "./client"; export async function waitForCompletion( client: GammaClient, generationId: string, opts = { intervalMs: 5000, timeoutMs: 120000 } ) { const deadline = Date.now() + opts.timeoutMs; while (Date.now() < deadline) { const result = await client.poll(generationId); if (result.status === "completed") return result; if (result.status === "failed") throw new Error(`Generation failed: ${result.error}`); await new Promise((r) => setTimeout(r, opts.intervalMs)); } throw new Error(`Poll timeout after ${opts.timeoutMs}ms`); } ``` ### Step 4: Mock Server for Offline Dev ```typescript // test/mock-server.ts import http from "node:http"; const MOCK_PORT = 9876; const generations = new Map<string, { status: string; tick: number }>(); const server = http.createServer((req, res) => { res.setHeader("Content-Type", "application/json"); // POST /v1.0/generations if (req.method === "POST" && req.url === "/v1.0/generations") { const id = `mock_${Date.now()}`; generations.set(id, { status: "in_progress", tick: 0 }); res.end(JSON.stringify({ generationId: id })); return; } // GET /v1.0/generations/:id — completes after 3 polls const pollMatch = req.url?.match(/\/v1\.0\/generations\/(.+)/); if (req.method === "GET" && pollMatch) { const gen = generations.get(pollMatch[1]); if (!gen) { res.writeHead(404); res.end("{}"); return; } gen.tick++; if (gen.tick >= 3) gen.status = "completed"; res.end(JSON.stringify({ generationId: pollMatch[1], status: gen.status, ...(gen.status === "completed" && { gammaUrl: `https://gamma.app/docs/mock-${pollMatch[1]}`, exportUrl: `https://export.gamma.app/mock.pdf`, creditsUsed: 10, }), })); return; } // GET /v1.0/themes if (req.url === "/v1.0/themes") { res.end(JSON.stringify([ { id: "theme_1", name: "Professional" }, { id: "theme_2", name: "Modern" }, ])); return; } // GET /v1.0/folders if (req.url === "/v1.0/folders") { res.end(JSON.stringify([{ id: "folder_1", name: "Test Folder" }])); return; } res.writeHead(404); res.end("{}"); }); server.listen(MOCK_PORT, () => console.log(`Mock Gamma API on :${MOCK_PORT}`)); ``` ### Step 5: Development Scripts ```json { "scripts": { "dev:mock": "tsx test/mock-server.ts", "dev:generate": "tsx src/generate.ts", "test": "vitest run", "test:integration": "GAMMA_BASE=http://localhost:9876/v1.0 vitest run test/integration" } } ``` ### Step 6: Integration Test ```typescript // test/integration.test.ts import { describe, it, expect } from "vitest"; import { createClient } from "../src/client"; import { waitForCompletion } from "../src/poll"; const BASE = proc
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (0)
No findings outside the package's declared scope.
Gates applied: no_behavioural_pass.
4f83675ca38afull audit observations/trust-audit/skill/jeremylongshore__gamma-local-dev-loop.json · Report an issue / request a re-scanAudit history
Every audit this skill has had.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 4f83675ca38a | SAFE | B | 89 | first audit |
Questions
What does the Gamma Local Dev Loop skill do?
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
Is Gamma Local Dev Loop safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Gamma Local Dev Loop access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
Which assistants does Gamma Local Dev Loop work with?
Its documentation mentions claude-code. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (4f83675ca38a), read on 2026-10-08. The repository is watched, and a new audit runs when it changes — this is the first audit.