Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

sharp-edges

Skill by trailofbits

Analyzes APIs, configurations and interfaces for designs that let developers make security mistakes. Built for reviewers of API designs, configuration schemas and cryptographic library ergonomics.

  • Score 92
  • 8.7k stars
  • CC-BY-SA-4.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install sharp-edges

Built from the published package, never by AI.

git clone --depth 1 https://github.com/trailofbits/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/plugins/sharp-edges/skills/sharp-edges ~/.claude/skills/sharp-edges

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install sharp-edges in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Sharp Edges is an agent skill that checks whether APIs, configurations and interfaces resist developer misuse. It looks for designs where the easy path leads to insecurity, such as algorithm selection parameters, dangerous defaults, primitive byte-based APIs, configuration cliffs, silent failures and stringly-typed security values. Its core principle is the pit of success, where secure usage is the path of least resistance.

The analysis follows four phases: surface identification, edge case probing, threat modeling against three adversary types, and validating findings. Findings are rated Critical, High, Medium or Low. The skill includes reference guides for cryptographic APIs, configuration patterns, authentication, case studies and several languages. It is aimed at people reviewing API designs, configuration schemas or cryptographic library ergonomics. A dedicated sharp-edges-analyzer agent can run the full workflow.

Written from the project's SKILL.md and checked against it.

What it can do

  • Surface identificationMaps security-relevant APIs and the developer choice points where algorithms, timeouts or modes are selected.
  • Edge case probingAsks what zero, empty, null, negative and malformed values do at each choice point.
  • Threat modelingConsiders the scoundrel, lazy developer and confused developer adversary types.
  • Finding validationReproduces suspected misuse, checks exploitability and tests whether safe use is practical.
  • Severity classificationRates each sharp edge as Critical, High, Medium or Low based on how easily misuse occurs.
  • Language referencesProvides general footgun guides for C, Go, Rust, Java, Python, PHP and other languages.

Try asking

  • Review this API design for footguns and insecure defaults
  • Check this config schema for dangerous options or misuse risks
  • Evaluate whether this crypto library follows secure by default principles

Good to know

  • Does not cover implementation bugs, which need standard code review.
  • Does not cover business logic flaws, which need domain-specific analysis.
  • Does not cover performance optimization.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: plugins/sharp-edges/skills/sharp-edges/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Read Grep Glob

  • SKILL.md12 KB
  • agents/openai.yaml239 B
  • assets/trail-of-bits-mark.svg3 KB
  • references/auth-patterns.md7 KB
  • references/case-studies.md8 KB
Show all 19 files
  • references/config-patterns.md10 KB
  • references/crypto-apis.md5 KB
  • references/lang-c.md6 KB
  • references/lang-csharp.md7 KB
  • references/lang-go.md7 KB
  • references/lang-java.md7 KB
  • references/lang-javascript.md7 KB
  • references/lang-kotlin.md7 KB
  • references/lang-php.md6 KB
  • references/lang-python.md6 KB
  • references/lang-ruby.md6 KB
  • references/lang-rust.md6 KB
  • references/lang-swift.md6 KB
  • references/language-specific.md13 KB

Alternatives to sharp-edges

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

sharp-edges: common questions

What is the pit of success in this skill?

It is the core principle that secure usage should be the path of least resistance. If developers must understand cryptography or remember special rules to stay safe, the API has failed.

What kinds of issues does Sharp Edges look for?

It looks for algorithm selection footguns, dangerous defaults, primitive versus semantic API confusion, configuration cliffs, silent failures and stringly-typed security values.

Which tools does the skill use?

The skill declares Read, Grep and Glob as its allowed tools.

How do I install sharp-edges?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is sharp-edges free?

The code is published under the CC-BY-SA-4.0 licence. The service it connects to may have its own pricing.

Is sharp-edges safe to use?

It scores 92 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to sharp-edges?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

sharp-edges Install

Add to stack

Loading.