Skip to content
Back to skills

Http Samples

ASecurity

Generate a requests.http REST-client file with a sample request for the API endpoints available inside a file, so you can hit the API by hand.

  • 3 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 19, 2026
ai-agentsgobashnodegitapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add Dometrain/deep-dive-claude-code --skill http-samples --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Http Samples?

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

Security grade badge for Http Samples
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dometrain-http-samples/badge)](https://www.skillsdirectory.com/skills/dometrain-http-samples)

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: http-samples
description: Generate a requests.http REST-client file with a sample request for the API endpoints available inside a file, so you can hit the API by hand.
allowed-tools: Read, Write, Bash(git *), Bash(node *), Grep
model: claude-haiku-4-5
argument-hint: "[name of the API Resource]"
arguments: [resource]
---

Git PR Diff: !`git diff`

Generate the `.http` for the **$resource** resource.

Its slice lives at `app/api/Api/Features/$1s/` (folder pluralised, files prefixed with `$resource`), following the Expenses convention.

Find the live routes currently mapped for this resource: grep `app/api/Api/Features/$resources/` for `MapGet`, `MapPost`, `MapPut`, `MapDelete` and `MapGroup`.

For every route in the group, add one labelled request:
- Follow the REST-client conventions in `${CLAUDE_SKILL_DIR}/references/http-conventions.md`.
- Name the files based on the API Resource name. Example: `clients.http` for /clients endpoints.

Keep it to the endpoints that exist today. Do not invent routes.

After writing the file, validate it:

```
node ${CLAUDE_SKILL_DIR}/scripts/validate-http-file.js <resource>.http
```

Fix every reported error and re-run until it exits 0. Warnings are advisory.


## Gotchas
-  When the resource doesn't exist, propose to create a .http file for that resource based on REST API best practices.

Files in this skill

  • SKILL.md1.3 KB
  • references/http-conventions.md278 B
  • scripts/validate-http-file.js6.9 KB

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.