Agent skill

Ns API

by NethServer in NethServer/nethsecurity

Write or modify a NethSecurity Python RPCD API script or hook.

Custom licenceAuto-check passedBackend & APIs

Install Ns API

skills CLI
$ npx skills add NethServer/nethsecurity --skill ns-api -a claude-code

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

GitHub CLI
$ gh skill install NethServer/nethsecurity ns-api --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/NethServer/nethsecurity.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/ns-api .claude/skills/ns-api && 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
ns-api
GitHub stars
191
Token cost
~2.8k tokens
SKILL.md length
580 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
Custom licence

At a glance

Write or modify a NethSecurity Python RPCD API script or hook.

  • Works in 2 steps: packages/ns-api/README.md —… → packages/ns-api/openapi.yml —…
  • Tasks that involve OpenAPI specifications
  • SKILL.md covers What I do, When to use me, File Structure and Protocol, plus 10 more sections
  • Calls curl, ruff and jq

What it does

Ns API is an agent skill from NethServer/nethsecurity. Write or modify a NethSecurity Python RPCD API script or hook. Use when creating or updating ns. RPCD API endpoints, handling UCI configuration changes, managing pre/post-commit hooks, defining ACL permissions, and documenting methods in OpenAPI 3.1.0. Covers stdin/stdout JSON protocol, error handling, naming conventions, code style, and spec file updates.

Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Works with OpenCode and other Agent Skills-compatible tools. Requires Python 3.11+ and knowledge of OpenWrt rpcd framework.

It sits in Backend & APIs, covering OpenAPI specifications, REST APIs and Error handling. It works with OpenAPI, Python and Ruff. The repository describes itself as: NethSecurity image and build environment.

When your agent uses it

  • Tasks that involve OpenAPI specifications
  • Tasks that involve REST APIs
  • Tasks that involve Error handling

Example prompts

  • “/ns-api”

Requirements

  • Python 3
  • Node.js
  • Compatibility (from SKILL.md): Works with OpenCode and other Agent Skills-compatible tools. Requires Python 3.11+ and knowledge of OpenWrt rpcd framework.

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. packages/ns-api/README.md — Human-friendly narrative documentation. Update with method descriptions, parameters, and examples. This is the…
  2. packages/ns-api/openapi.yml — Machine-readable OpenAPI 3.1.0 specification. Add or update the method's path entry under paths. See OpenAPI…

What it can do on your machine

Read from SKILL.md and the folder at commit a22e7f9. 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:

    • curl
    • ruff
    • jq
    • npx

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

  • Network

    No URLs in SKILL.md. Its commands use curl and npx, 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.

  • Compatibility

    Works with OpenCode and other Agent Skills-compatible tools. Requires Python 3.11+ and knowledge of OpenWrt rpcd framework.

    From compatibility in the SKILL.md frontmatter.

Context cost

Ns API loads about 2.8k tokens when it runs. Until then it costs about 92 tokens; SKILL.md has 580 words of instructions outside code blocks.

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

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 580 words (~2,784 tokens).

“Use this skill when you are:”

— opening of SKILL.md by NethServer, Custom licence
name
ns-api
compatibility
Works with OpenCode and other Agent Skills-compatible tools. Requires Python 3.11+ and knowledge of OpenWrt rpcd framework.
metadata.domain
nethsecurity-apis
metadata.type
api-development

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/ns-api of NethServer/nethsecurity.

Open the folder on GitHubat commit a22e7f9

Compare with similar skills

Ns API 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.

Ns API compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ns API this skillNethServer/nethsecurity191—~2.8kAutomated safety check: PassCustom licence
API DesignerJeffallan/claude-skills12k2 repos~2kAutomated safety check: PassMIT
Dotnet Webapidotnet/skills5.6k2 repos~5.5kAutomated safety check: PassMIT
FastAPI ExpertJeffallan/claude-skills12k—~1.8kAutomated safety check: PassMIT
Python Fastapi Patternsaiskillstore/marketplace4301 repos~1.3kAutomated safety check: NotesNone
API Endpointslatitude-dev/latitude-llm4.7k—~6.5kAutomated safety check: PassMIT

Similar skills

  • API Designer

    Jeffallan/claude-skills

    Designs REST and GraphQL APIs from resource modeling to an OpenAPI 3.1 contract, with versioning, pagination and RFC 7807 error handling.

    12k GitHub starsUsed in 2 repos~2k tokens
    Backend & APIsAuto-check passed
  • Dotnet Webapi

    dotnet/skills

    Official

    Guides creation and modification of ASP.NET Core Web API endpoints with correct HTTP semantics, OpenAPI metadata, and error handling.

    5.6k GitHub starsUsed in 2 repos~5.5k tokens
    Backend & APIsAuto-check passed
  • FastAPI Expert

    Jeffallan/claude-skills

    Builds async Python APIs with FastAPI and Pydantic V2, covering endpoints, JWT authentication, async SQLAlchemy, WebSockets and pytest checks against the OpenAPI docs.

    12k GitHub stars~1.8k tokensUpdated 4 days ago
    Backend & APIsAuto-check passed
  • Python Fastapi Patterns

    aiskillstore/marketplace

    FastAPI web framework patterns. An agent skill from aiskillstore/marketplace.

    430 GitHub starsUsed in 1 repo~1.3k tokens
    Backend & APIsAuto-check: notes
  • API Endpoints

    latitude-dev/latitude-llm

    Adding or changing API operations in @repo/operations. An agent skill from latitude-dev/latitude-llm.

    4.7k GitHub stars~6.5k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • REST API Expert

    cin12211/orca-q

    REST API design and development expert specializing in endpoint design, HTTP semantics, versioning, error handling, pagination, and OpenAPI documentation.

    223 GitHub stars~3.2k tokensUpdated 16 days ago
    Backend & APIsAuto-check passed

More from NethServer/nethsecurity

  • Openwrt Package Update

    NethServer/nethsecurity

    A skill your agent uses when updating any forked OpenWrt package in a NethSecurity workspace from the upstream openwrt/packages feed.

    191 GitHub stars~841 tokensUpdated yesterday
    Auto-check passed
  • Netifyd

    NethServer/nethsecurity

    Work with the Netify Agent (netifyd) DPI daemon on NethSecurity — its configuration graph, processor/sink plugins, flow-actions rules, criteria expressions, address groups, telemetry records and CLI.

    191 GitHub stars~3.5k tokensUpdated yesterday
    Auto-check passed
  • Create Issue

    NethServer/nethsecurity

    Turn messy raw material — coworker chat excerpts, support discussions, log snippets, debugging findings, CI failures — into a well-formed GitHub issue on the NethServer/nethsecurity tracker via the…

    191 GitHub stars~3.1k tokensUpdated yesterday
    Auto-check passed
  • Openwrt Package

    NethServer/nethsecurity

    Create or modify an OpenWrt ns- package including Makefile, config fragments, and upstream patches.

    191 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Python Nethsecurity

    NethServer/nethsecurity

    Write or modify Python scripts for NethSecurity packages. An agent skill from NethServer/nethsecurity.

    191 GitHub stars~2k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Ns API

What does Ns API do?

Write or modify a NethSecurity Python RPCD API script or hook. Ns API is an agent skill from NethServer/nethsecurity. Write or modify a NethSecurity Python RPCD API script or hook.

When should I use Ns API?

Ns API fits situations like: tasks that involve OpenAPI specifications; tasks that involve REST APIs; tasks that involve Error handling.

How do I install Ns API in Claude Code?

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

How do I install Ns API in Codex?

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

Can I use Ns API 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 NethServer/nethsecurity --skill ns-api -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ns-api, .gemini/skills/ns-api, .github/skills/ns-api and .opencode/skills/ns-api in your project.

What does Ns API need to run?

Going by SKILL.md and its folder, Ns API needs the command-line tools its instructions call (curl, ruff, jq and npx). Our summary lists: Python 3; Node.js. Compatibility (from SKILL.md): Works with OpenCode and other Agent Skills-compatible tools. Requires Python 3.11+ and knowledge of OpenWrt rpcd framework..

Does Ns API access the network?

SKILL.md contains no URLs. Its commands use curl and npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Ns API 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 Ns API use?

Ns API 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 Ns API use?

About 2.8k tokens (SKILL.md is roughly 11k 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 Ns API?

Skills that share tags, products or a category with Ns API: API Designer (Jeffallan/claude-skills, 12k stars), Dotnet Webapi (dotnet/skills, 5.6k stars), FastAPI Expert (Jeffallan/claude-skills, 12k stars) and Python Fastapi Patterns (aiskillstore/marketplace, 430 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ns API?

NethServer (a GitHub organization) maintains it in NethServer/nethsecurity, which has 191 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 6, 2026.

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