api-inferrer-from-files

api-inferrer-from-files is a skill for Claude Code, Codex from LambdaTest/agent-skills. It costs 151 tokens per session (1,583 once invoked), scanned A, original, MIT.

A tool for inferring likely REST API endpoints from file names or a project directory structure. REST endpoints are URLs and HTTP methods such as GET or POST that applications use to access resources.

In plain words
What is it for?
Listing likely CRUD endpoints such as creating, reading, updating, and deleting users or products. It produces one method, path, and short description per inferred endpoint, without schemas or request examples.
Why use it?
It gives a quick outline of an API when only the project files are available. This avoids manually turning controller, route, service, model, or handler names into an initial endpoint list.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Listing likely CRUD endpoints such as creating, reading, updating, and deleting users or products. It produces one method, path, and short description per inferred endpoint, without schemas or request examples.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lambdatest/agent-skills/api-inference-from-files
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add LambdaTest/agent-skills --skill api-inference-from-files
Clone the repo
git clone --depth 1 https://github.com/LambdaTest/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api-inferrer-from-files

README.md
[![agentmods](https://agentmods.dev/badge/skills/lambdatest/agent-skills/api-inference-from-files/github.svg)](https://agentmods.dev/skills/lambdatest/agent-skills/api-inference-from-files)
Your own site
<a href="https://agentmods.dev/skills/lambdatest/agent-skills/api-inference-from-files"><img src="https://agentmods.dev/badge/skills/lambdatest/agent-skills/api-inference-from-files/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for api-inferrer-from-files

Your own site · 80×15
<a href="https://agentmods.dev/skills/lambdatest/agent-skills/api-inference-from-files"><img src="https://agentmods.dev/badge/skills/lambdatest/agent-skills/api-inference-from-files.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 151 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,583 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 100
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 106
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Privilege Escalation · line 111
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Excessive Agency · line 3
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00151 $0.01583
Opus 5 $0.00076 $0.00792
Sonnet 5 $0.00030 $0.00317
Haiku 4.5 $0.00015 $0.00158

Measured 9d ago against content hash 80703f49ac4d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

api-inferrer-from-files scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

api-skill/api-inference-from-files/SKILL.md · 157 lines

How it starts

The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.

API Endpoint Inferrer

Generate a concise list of REST API endpoints inferred from file names or project structures. Output is intentionally minimal: one line per endpoint — the method + path + a single-sentence description. No schemas, no request bodies, no examples, no documentation blocks.


Input Formats Accepted

  • A flat list of file names: userController.js, productService.py, etc.
  • A directory tree (from tree, ls -R, find, or copy-pasted folder structure)
  • A mix of both
  • File names with or without extensions
  • Any backend language/framework (Node, Python, Go, Ruby, Java, PHP, etc.)

Inference Rules

1. Extract Resources

Identify the core resource name from each file. Strip common suffixes:

  • Controller, Router, Route, Handler, Service, Model, View, Schema, Repository, Repo, Store, Manager, API

Examples:

  • userController.js → resource: user
  • product_routes.py → resource: product
  • OrderService.java → resource: order
  • auth.go → resource: auth

2. Map Files to Standard CRUD Endpoints

For each resource, infer standard REST endpoints based on typical conventions:

Pattern Endpoints to infer
*Controller, *Router, *Route, *Handler Full CRUD: GET list, GET by ID, POST, PUT/PATCH, DELETE
*Service Same as controller (services back controllers)
*Model, *Schema GET list, GET by ID, POST (data-centric)
auth*, *Auth* POST /login, POST /logout, POST /register, POST /refresh
*upload*, *file*, *media* POST upload, GET file by ID, DELETE file
*search* GET /search with query params
*config*, *settings* GET settings, PUT settings
*health*, *status*, *ping* GET /health or GET /status
*webhook* POST /webhook
*middleware*, *interceptor* Skip — not an endpoint
*util*, *helper*, *constant* Skip — not an endpoint
*test*, *spec*, *mock* Skip — not an endpoint

3. Naming Convention → URL Path

Convert resource names to kebab-case plural paths:

  • User/users
  • ProductCategory/product-categories
  • OrderItem/order-items
  • auth stays → /auth

Read the full file on GitHub · 157 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 157 lines · 151 tokens per session scan A 80703f49ac4d

Subscribe to this mod's changes

api-inferrer-from-files is a skill published in the GitHub repository LambdaTest/agent-skills (366 stars, last pushed 1mo ago), licensed MIT. It adds 151 tokens to every session and 1,583 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

detecting-broken-object-property-level-authorization

Detect and test for OWASP API3:2023 Broken Object Property Level Authorization vulnerabilities including excessive data exposure and mass assignment attacks.

xalgorix/xalgorix · 36 tokens

API Test Suite Generator

Automatically generate comprehensive API test suites from OpenAPI specifications covering CRUD operations, error handling, authentication, pagination, and edge cases.

PramodDutta/qaskills · 29 tokens

flowforge-testing

Generate, modify, validate, execute and triage Flow Forge API test cases. Use when the user wants to turn requirement documents, API documents, table structures or business rules into executable YAML/Excel test cases, revise existing cases after requirement/API changes, run cases with the Flow Forge executor and…

Remon-16/flow-forge · 90 tokens

kahea

Safely use HTTP APIs and finite WebSocket sessions through the Kāhea deterministic invocation kernel. Use when an agent must discover operations from OpenAPI, Postman, HAR, cURL, HTTP files, direct descriptors, websocket-session JSON/YAML, or the supported AsyncAPI 2.6/3.0 WebSocket subset; create and review sealed…

copyleftdev/kahea · 102 tokens

bruno

Comprehensive operational skill specification for Anthropic Claude to automate, script, troubleshoot, and optimize Bruno API Client, Bru markup language (.bru), CLI runner (@usebruno/cli), and CI/CD test pipelines.

alivirgo/Major-AI-Skills · 46 tokens

api-spec-generator

Generate a ready-to-import Postman or Bruno collection from an API spec, Swagger/OpenAPI file, or endpoint description. Use this skill whenever the user wants to create, export, or scaffold an API test collection. Triggers on: "generate Postman collection", "create Bruno spec", "import-ready collection", "generate…

oumaimah-QA/QIOS · 110 tokens