Agent skill

Add API Resource

by blockscout in blockscout/frontend

Declare new API resource(s) in an existing API service. An agent skill from blockscout/frontend.

Custom licenceAuto-check passed

Install Add API Resource

skills CLI
$ npx skills add blockscout/frontend --skill add-api-resource -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install blockscout/frontend add-api-resource --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/blockscout/frontend.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/add-api-resource .claude/skills/add-api-resource && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
add-api-resource
GitHub stars
307
Token cost
~1.9k tokens
SKILL.md length
1,070 words
Files
1
Skills in repo
23
Repo updated
First seen
Licence
Custom licence

At a glance

Declare new API resource(s) in an existing API service. An agent skill from blockscout/frontend.

  • Works in 6 steps: Interview (REQUIRED before writing… → Fetch a real sample response → Add the resource entry → …
  • The app needs to call an endpoint that has no service:name resource yet
  • SKILL.md covers Step 0 — Interview (REQUIRED…, Step 1 — Fetch a real sample…, Step 2 — Add the resource entry and Step 3 — Add the payload-type…, plus 3 more sections
  • Calls pnpm

What it does

Add API Resource is an agent skill from blockscout/frontend. Declare new API resource(s) in an existing API service. Use whenever the app needs to call an endpoint that has no service:name resource yet.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Front-end application for Blockscout chain explorer.

When your agent uses it

  • The app needs to call an endpoint that has no service:name resource yet

Example prompts

  • “/add-api-resource”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Interview (REQUIRED before writing anything)
  2. Fetch a real sample response
  3. Add the resource entry
  4. Add the payload-type branch
  5. Filters / sorting (only when the task names them)
  6. Verify

What it can do on your machine

Read from SKILL.md and the folder at commit 6b91209. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pnpm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Add API Resource loads about 1.9k tokens when it runs. Until then it costs about 40 tokens; SKILL.md has 1,070 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~40
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,070 words (~1,948 tokens).

“Every request the app makes goes through a resource: an entry in the per-service registry under src/api/resources/services/ that maps a service:name key (e.g. core:token, stats:lines) to a path template and, via a sibling conditional type, to its response type. This…”

— opening of SKILL.md by blockscout, Custom licence
name
add-api-resource

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/add-api-resource of blockscout/frontend.

Open the folder on GitHubat commit 6b91209

Compare with similar skills

Add API Resource next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Add API Resource compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add API Resource this skillblockscout/frontend307—~1.9kAutomated safety check: PassCustom licence
Agent Resource Allocatorruvnet/ruflo74k2 repos~4.9kAutomated safety check: PassMIT
Resourceswindmill-labs/windmill18k—~1.7kAutomated safety check: PassCustom licence
Resource Hintsthedaviddias/Front-End-Checklist74k—~430Automated safety check: PassMIT
Declarative Agentsgithub/awesome-copilot40k1 repos~1.2kAutomated safety check: PassMIT
Get Available ResourcesK-Dense-AI/scientific-agent-skills48k1 repos~2.9kAutomated safety check: PassMIT

Similar skills

  • Agent skill for resource-allocator - invoke with $agent-resource-allocator

    74k GitHub starsUsed in 2 repos~4.9k tokens
    Auto-check passed
  • Resources

    windmill-labs/windmill

    MUST use when managing resources.

    18k GitHub stars~1.7k tokensUpdated today
    Backend & APIsAuto-check passed
  • Resource Hints

    thedaviddias/Front-End-Checklist

    A skill your agent uses when auditing slow page loads, heavy assets, or rendering delays related to Use resource hints for faster loading.

    74k GitHub stars~430 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Declarative Agents

    github/awesome-copilot

    Official

    Complete development kit for Microsoft 365 Copilot declarative agents with three comprehensive workflows (basic, advanced, validation), TypeSpec support, and Microsoft 365 Agents Toolkit integration

    40k GitHub starsUsed in 1 repo~1.2k tokens
    Documents & OfficeAuto-check passed
  • Get Available Resources

    K-Dense-AI/scientific-agent-skills

    Detects host inventory and effective CPU, memory, disk, scheduler, container, and accelerator limits when a user asks for resource-aware planning or before a clearly resource-sensitive local workload.

    48k GitHub starsUsed in 1 repo~2.9k tokens
    Testing & QAAuto-check passed
  • Free Design Resources

    sickn33/agentic-awesome-skills

    Design resource register: resource and provider, licence type, commercial-use and attribution rules, export format, lock-in risk, free tier limit and accessibility notes.

    47k GitHub starsUsed in 1 repo~6.5k tokens
    Frontend & DesignAuto-check passed

More from blockscout/frontend

All 23 skills in this repo
  • Slack File

    blockscout/frontend

    Download Slack attachments by file ID, or upload local files into a Slack thread.

    307 GitHub stars~540 tokensUpdated yesterday
    Auto-check passed
  • Add Env Var

    blockscout/frontend

    Step-by-step checklist for adding a new NEXTPUBLIC environment variable.

    307 GitHub stars~1.6k tokensUpdated yesterday
    Auto-check: notes
  • Add New Page

    blockscout/frontend

    Scaffold a new page (index / detail / general) and optionally wire it to API data.

    307 GitHub stars~3.9k tokensUpdated yesterday
    Auto-check passed
  • Create Issue

    blockscout/frontend

    Create a GitHub issue from the available context. An agent skill from blockscout/frontend.

    307 GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Deprecate Env Var

    blockscout/frontend

    Checklist for deprecating a NEXTPUBLIC environment variable — immediate removal, or a grace period before a later removal.

    307 GitHub stars~2.6k tokensUpdated yesterday
    Auto-check: notes
  • Publish Beta Types

    blockscout/frontend

    Publish a beta version of a @blockscout/-types npm package and pin it here.

    307 GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed

Questions about Add API Resource

What does Add API Resource do?

Declare new API resource(s) in an existing API service. An agent skill from blockscout/frontend. Add API Resource is an agent skill from blockscout/frontend. Declare new API resource(s) in an existing API service.

When should I use Add API Resource?

Add API Resource fits situations like: the app needs to call an endpoint that has no service:name resource yet.

How do I install Add API Resource in Claude Code?

Run `npx skills add blockscout/frontend --skill add-api-resource -a claude-code`. Or copy the skill folder (.agents/skills/add-api-resource in blockscout/frontend) into .claude/skills/add-api-resource in your project. Claude Code loads it when a task matches its description.

How do I install Add API Resource in Codex?

Run `npx skills add blockscout/frontend --skill add-api-resource -a codex`. Or copy the skill folder (.agents/skills/add-api-resource in blockscout/frontend) into .agents/skills/add-api-resource in your project. Codex loads it when a task matches its description.

Can I use Add API Resource in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add blockscout/frontend --skill add-api-resource -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-api-resource, .gemini/skills/add-api-resource, .github/skills/add-api-resource and .opencode/skills/add-api-resource in your project.

What does Add API Resource need to run?

Going by SKILL.md and its folder, Add API Resource needs the command-line tools its instructions call (pnpm).

Does Add API Resource access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Add API Resource safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Add API Resource use?

Add API Resource has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Add API Resource use?

About 1.9k tokens (SKILL.md is roughly 7.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Add API Resource?

Skills that share tags, products or a category with Add API Resource: Agent Resource Allocator (ruvnet/ruflo, 74k stars), Resources (windmill-labs/windmill, 18k stars), Resource Hints (thedaviddias/Front-End-Checklist, 74k stars) and Declarative Agents (github/awesome-copilot, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add API Resource?

blockscout (a GitHub organization) maintains it in blockscout/frontend, which has 307 GitHub stars. The repository holds 23 skills in this directory. The repository was last updated on October 6, 2026.

Source: blockscout/frontend on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.