Agent skill

Shadmin CLI

by ahaodev in ahaodev/shadmin

A skill your agent uses when the user asks to query Shadmin admin platform resources (users, roles, menus, registered API resources) from a terminal — for example "list shadmin users", "show shadmin…

MITAuto-check: notesBackend & APIs

Install Shadmin CLI

skills CLI
$ npx skills add ahaodev/shadmin --skill shadmin-cli -a claude-code

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

GitHub CLI
$ gh skill install ahaodev/shadmin shadmin-cli --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/ahaodev/shadmin.git skills-src && mkdir -p .claude/skills && cp -r skills-src/cli/skill/shadmin-cli .claude/skills/shadmin-cli && 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
shadmin-cli
GitHub stars
174
Token cost
~1.1k tokens
SKILL.md length
443 words
Files
6
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when the user asks to query Shadmin admin platform resources (users, roles, menus, registered API resources) from a terminal — for example "list shadmin users", "show shadmin…

  • Works in 3 steps: The shadmin-cli binary is on $PATH. → The user has run shadmin-cli login at… → The Shadmin server is reachable (default…
  • The user asks to query Shadmin admin platform resources (users
  • SKILL.md covers Prerequisites, Command reference (MVP,…, Response envelope and Error handling guidance, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Shadmin CLI is an agent skill from ahaodev/shadmin. Use this skill when the user asks to query Shadmin admin platform resources (users, roles, menus, registered API resources) from a terminal — for example "list shadmin users", "show shadmin role detail", "dump shadmin menu tree", "what API endpoints does shadmin expose". The skill calls the shadmin-cli binary, which wraps the Shadmin REST API and inherits the logged-in user's RBAC permissions. Do NOT use this skill for write operations (create / update / delete) — the MVP exposes read-only commands only.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files (for example `examples/api-resources-list.json`, `examples/menus-tree.json` and `examples/roles-list.json`).

It sits in Backend & APIs, covering REST APIs and Authorization and RBAC. It works with Vite, React, TypeScript and shadcn/ui. The repository describes itself as: An Enterprise-Grade Full-Stack RBAC Permission Management System Built with Go + React. The licence is MIT.

When your agent uses it

  • The user asks to query Shadmin admin platform resources (users
  • Registered API resources) from a terminal — for example list shadmin users
  • Show shadmin role detail
  • Dump shadmin menu tree

Example prompts

  • “list shadmin users”
  • “show shadmin role detail”
  • “dump shadmin menu tree”
  • “/shadmin-cli”

Workflow steps

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

  1. The shadmin-cli binary is on $PATH.
  2. The user has run shadmin-cli login at least once on this machine.
  3. The Shadmin server is reachable (default http://localhost:55667).

What it can do on your machine

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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash and json).

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

  • Network

    No URLs in SKILL.md.

    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

Shadmin CLI loads about 1.1k tokens when it runs. Until then it costs about 131 tokens; SKILL.md has 443 words of instructions outside code blocks.

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

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:19
    `cli/.env` or the `SHADMIN_CONFIG` path (mode 0600).
  • NoteMentions a .env fileSKILL.md:62
    r `cli/` (`.env.example`); backend root `.env`
  • NoteMentions a .env fileSKILL.md:64
    - `cli/.env` is generated by `shadmin-cli login` as the local token cache.

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

The full file from ahaodev/shadmin at commit c35806d, republished under its MIT licence (© ahaodev). 443 words, ~1,105 tokens.

Download SKILL.mdSave it as .claude/skills/shadmin-cli/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
shadmin-cli
description
Use this skill when the user asks to query Shadmin admin platform resources (users, roles, menus, registered API resources) from a terminal — for example "list shadmin users", "show shadmin role detail", "dump shadmin menu tree", "what API endpoints does shadmin expose". The skill calls the `shadmin-cli` binary, which wraps the Shadmin REST API and inherits the logged-in user's RBAC permissions. Do NOT use this skill for write operations (create / update / delete) — the MVP exposes read-only commands only.

shadmin-cli skill

shadmin-cli is a thin Go CLI on top of the Shadmin REST API. It is designed to be driven by external AI agents.

  • Authentication: OAuth device authorization flow → JWT cached locally in cli/.env or the SHADMIN_CONFIG path (mode 0600).
  • Authorization: every request reuses the logged-in user's existing RBAC. The CLI cannot bypass server-side permission checks.
  • Output: JSON by default (stable, machine-readable). Pass --pretty for human-readable tables.
  • Exit codes: 0 ok · 1 generic · 2 usage · 3 network · 4 unauthenticated / token expired · 5 permission denied (403) · 6 not found · 7 server error.

Prerequisites

  1. The shadmin-cli binary is on $PATH.
  2. The user has run shadmin-cli login at least once on this machine.
    • To check: run shadmin-cli whoami. Exit code 4 means not logged in.
  3. The Shadmin server is reachable (default http://localhost:55667).

If the user is not logged in, ask for the server URL, then run:

bash
shadmin-cli login --server <URL>
# Open the printed URL in a browser and enter the displayed user code.

Command reference (MVP, read-only)

CommandPurpose
shadmin-cli login [--server URL]Cache JWT locally via device auth
shadmin-cli logoutClear local tokens
shadmin-cli whoamiCurrent user profile
shadmin-cli users list [--page --page-size --keyword]List users (paginated)
shadmin-cli users get <id>Get user by id
shadmin-cli roles listList roles
shadmin-cli roles get <id>Get role by id
shadmin-cli menus treeMenu tree (UI nav structure)
shadmin-cli menus listFlat menu list
shadmin-cli menus get <id>Get menu by id
shadmin-cli api-resources listAll API endpoints registered by backend

Global flags:

  • --server URL overrides the saved server URL for this invocation.
  • --pretty switches output format. JSON is the default.
  • SHADMIN_SERVER overrides the saved server URL for this invocation.
  • CLI env examples live under cli/ (.env.example); backend root .env files should not contain CLI-only settings.
  • cli/.env is generated by shadmin-cli login as the local token cache.
Show full SKILL.md (153 more words)Show less

Response envelope

The CLI strips Shadmin's {code, msg, data} envelope and prints the inner data directly. List endpoints return either:

json
{ "list": [...], "total": N, "page": N, "page_size": N, "total_pages": N }

…or a plain array (e.g. roles list). api-resources list uses items instead of list. Inspect the JSON shape before parsing.

Error handling guidance

  • Exit 4 → token expired or missing. Ask the user to re-run shadmin-cli login and retry.
  • Exit 5 → the logged-in user lacks RBAC permission for that API. Do not retry; report the permission gap to the user.
  • Exit 3 → network failure. Verify the server URL and retry once.
  • Exit 6 → the requested id does not exist. Surface the error verbatim.

Safety

  • Write operations (create / update / delete) are NOT exposed in this MVP. If the user asks for one, refuse and explain.
  • The CLI uses the same permissions as the logged-in user. Do not assume an agent context implies elevated access.

Examples

See examples/ for real JSON outputs from each MVP command.

© ahaodev, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files in cli/skill/shadmin-cli of ahaodev/shadmin.

  • SKILL.md
  • examples/api-resources-list.json
  • examples/menus-tree.json
  • examples/roles-list.json
  • examples/users-list.json
  • examples/whoami.json

Open the folder on GitHubat commit c35806d

Compare with similar skills

Shadmin CLI 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.

Shadmin CLI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Shadmin CLI this skillahaodev/shadmin174—~1.1kAutomated safety check: NotesMIT
Web Artifacts Builderanthropics/skills180k40 repos~769Automated safety check: PassApache-2.0
Morphous CatalogAmeyanagi/morphos102—~2.1kAutomated safety check: PassApache-2.0
Redesign My Landingpageinstructa/agent-skills139—~1.8kAutomated safety check: PassNone
Vite Shadcn Tailwind4IgorWarzocha/Opencode-Workflows122—~1.3kAutomated safety check: PassNone
Opinionated Nextjs Patternspproenca/dot-skills214—~3kAutomated safety check: PassMIT

Similar skills

  • Web Artifacts Builder

    anthropics/skills

    Official

    Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.

    180k GitHub starsUsed in 40 repos~769 tokens
    Frontend & DesignAuto-check passed
  • Morphous Catalog

    Ameyanagi/morphos

    Create or refresh Morphous website design-system/theme bundles from animal, insect, plant, landscape, mineral, weather, or other nature motifs.

    102 GitHub stars~2.1k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed
  • Redesign My Landingpage

    instructa/agent-skills

    Build, critique, and iterate high-converting marketing or product landing pages using React + Vite + TypeScript + Tailwind and shadcn/ui components, with all icons sourced from Iconify.

    139 GitHub stars~1.8k tokensUpdated 8 days ago
    Frontend & DesignAuto-check passed
  • Vite Shadcn Tailwind4

    IgorWarzocha/Opencode-Workflows

    Initialize shadcn/ui + Tailwind CSS v4 in Vite projects (Vite-specific, not Next.js/Remix).

    122 GitHub stars~1.3k tokensUpdated 8 mo ago
    Frontend & DesignAuto-check passed
  • Opinionated Nextjs Patterns

    pproenca/dot-skills

    Opinionated, backend-agnostic Next.js 16 (App Router) architecture — authorization at the data layer, server-side loading with cache()+Promise.all, mutations through next-safe-action + typed route…

    214 GitHub stars~3k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Code Refactor Review

    kcsujeet/ilamy-calendar

    Reviews code changes for reuse, composition, codebase consistency, and slop.

    351 GitHub starsUsed in 2 repos~1.6k tokens
    DevelopmentAuto-check passed

More from ahaodev/shadmin

  • Shadmin Dev

    ahaodev/shadmin

    Apply Shadmin feature-development standards (backend Go/Gin/Ent + frontend React/TS).

    174 GitHub stars~2.7k tokensUpdated 5 days ago
    Auto-check passed
  • Cleanup Specialist

    ahaodev/shadmin

    Safe cleanup of Shadmin's Go backend, React frontend, Go CLI, and docs — remove dead code, consolidate duplication, and improve maintainability without changing behavior or adding features.

    174 GitHub stars~1.3k tokensUpdated 5 days ago
    Auto-check passed

Categories

Questions about Shadmin CLI

What does Shadmin CLI do?

A skill your agent uses when the user asks to query Shadmin admin platform resources (users, roles, menus, registered API resources) from a terminal — for example "list shadmin users", "show shadmin…. Shadmin CLI is an agent skill from ahaodev/shadmin. Use this skill when the user asks to query Shadmin admin platform resources (users, roles, menus, registered API resources) from a terminal — for example "list shadmin users", "show shadmin role detail", "dump shadmin menu tree", "what API endpoints does shadmin expose".

When should I use Shadmin CLI?

Shadmin CLI fits situations like: the user asks to query Shadmin admin platform resources (users; registered API resources) from a terminal — for example list shadmin users; show shadmin role detail; dump shadmin menu tree.

How do I install Shadmin CLI in Claude Code?

Run `npx skills add ahaodev/shadmin --skill shadmin-cli -a claude-code`. Or copy the skill folder (cli/skill/shadmin-cli in ahaodev/shadmin) into .claude/skills/shadmin-cli in your project. Claude Code loads it when a task matches its description.

How do I install Shadmin CLI in Codex?

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

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

What does Shadmin CLI need to run?

SKILL.md names no scripts, command-line tools or credentials: Shadmin CLI is instructions for the agent only.

Does Shadmin CLI 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 Shadmin CLI safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Shadmin CLI use?

Shadmin CLI is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Shadmin CLI use?

About 1.1k tokens (SKILL.md is roughly 4.4k 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 Shadmin CLI?

Skills that share tags, products or a category with Shadmin CLI: Web Artifacts Builder (anthropics/skills, 180k stars), Morphous Catalog (Ameyanagi/morphos, 102 stars), Redesign My Landingpage (instructa/agent-skills, 139 stars) and Vite Shadcn Tailwind4 (IgorWarzocha/Opencode-Workflows, 122 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Shadmin CLI?

ahaodev (a GitHub user) maintains it in ahaodev/shadmin, which has 174 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 2, 2026.

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