trustabl

AI SDK Tool — AI skill for Claude Code

AI community

Find and fix reliability and safety gaps in AI SDK apps — untyped tools, missing step bounds, unsafe provider shell and file tools, fetch calls with no timeout — from inside an AI SDK agent.

How to install AI SDK Tool

This entry records only its repository, not the path inside it, so there is no exact command to give. Open trustabl/ai-sdk-tool and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What AI SDK Tool does

Find and fix reliability and safety gaps in AI SDK apps — untyped tools, missing step bounds, unsafe provider shell and file tools, fetch calls with no timeout — from inside an AI SDK agent.

Alternatives in AI

  • Internal Safety Collapse — We built an adversarial codespace setup 1.2k ★
  • Qiaomu Markdown Proxy — Fetch any URL as clean Markdown via proxy services (r.jina.ai / defuddle.md) or built-in scripts 426 ★
  • AI Surface — Find and govern AI attack surfaces in application code, at PR time and inside your AI coding tool (MCP server 131 ★

README

@trustabl/ai-sdk

Scan a repository for AI-agent reliability and safety gaps from inside an [AI SDK](https://ai-sdk.dev) agent.

[Trustabl](https://trustabl.ai) is an Apache-2.0 static analyzer for AI-agent codebases. It reads the code, inventories the agents, tools, subagents, skills and MCP servers it declares, and checks each against a versioned rule pack covering nine agent SDKs. It never executes your agent.

npm install @trustabl/ai-sdk

Use with agent

import { generateText } from 'ai';
import { scanRepo } from '@trustabl/ai-sdk';

const { text } = await generateText({
  model: 'openai/gpt-5.1',
  prompt: 'Scan https://github.com/google/adk-python and summarise the three worst issues.',
  tools: { scanRepo: scanRepo() },
});

console.log(text);

The tool takes one argument, `path`, which is either a local directory or a GitHub repository URL. A URL is cloned and scanned.

What it returns

A full scan of a large repository exceeds six megabytes of JSON — past what a model can read. The tool returns a summary instead:

Field What it holds
sdks, languages What the repository actually uses, derived from production code only
inventory Counts of tools, agents, subagents, skills and MCP servers
score Overall readiness, 0 to 1
findingCount, bySeverity Production findings, counted. findingCount always equals the sum of bySeverity
excludedTestPathFindings Findings dropped for living in a test path
belowSeverityFloor Production findings below minSeverity
findings The ones worth acting on: rule id, severity, title, file, line, suggested fix
truncated true when maxFindings capped the list

Read the inventory first. If the tool and agent counts look wrong, the scan was pointed at the wrong place and the findings are not yet worth reporting.

Fixing what it finds

Every finding carries `suggestedFix`, the same remediation text the CLI and the Claude