Skip to content
Back to skills

En

ASecurity

Use when adding or changing an HTTP / RPC API: check naming, validation, errors, pagination, compatibility and security.

  • 824 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgosqlapisecurity

Works with

  • cursor
  • api

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add w01fb0ss/PiBot --skill en --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of En?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for En
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/w01fb0ss-pibot-0dba3336/badge)](https://www.skillsdirectory.com/skills/w01fb0ss-pibot-0dba3336)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: api-design-review
description: "Use when adding or changing an HTTP / RPC API: check naming, validation, errors, pagination, compatibility and security."
metadata:
  pibot-name: "API design review"
  pibot-params: "[{\"name\":\"endpoint\",\"description\":\"Endpoint path or name, or the related files\"}]"
---

# API design review

Endpoint: {endpoint}

## 1. Write down the contract first
Use this format, then review against it:

```
METHOD path / name:
Purpose: one sentence
Request: field | type | required | meaning | allowed values
Response: field | type | meaning
Errors: code | when it happens | what the caller should do
```

## 2. Check each item
- **Naming**: consistent with the project's existing APIs (paths, casing, plurals).
- **Input validation**: types, lengths, ranges and enums validated at the boundary; unknown fields rejected or explicitly ignored.
- **Errors**: expected failures have clear codes and messages; internal exceptions, stack traces and SQL never reach the caller.
- **Lists**: always paginated (cursor or limit + cursor) with a maximum; stable ordering.
- **Idempotency and concurrency**: what happens on a duplicate submit or concurrent edits to the same resource? Add an idempotency key or version when needed.
- **Timeouts and cancellation**: long operations have timeouts and can be cancelled.
- **Authorisation**: who may call it, and can they only touch data they own (check ownership, not just sign-in)?
- **Data**: parameterised queries; transactions for multi-step writes; indexes for common filters.
- **Compatibility**: when changing an existing API, do old callers break? Are new fields optional?
- **Sensitive data**: no passwords, tokens or full ID numbers in responses or logs.

## 3. Output
```
**Contract**: (the table above)
**Findings**:
1. [Must fix / Should fix] problem — reason — suggestion
**Compatibility impact**: …
```

## Scope

Use supplied information first; user requirements on count, format, and scope override this default template. Current capabilities govern permissions, primary/read-only workplaces, Plan mode, and budget; do not switch tools to bypass a refusal. This skill supplies a method, not authority to write, run commands, pay, send, commit, or publish. Identify unperformed or unverified steps.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.