defineRoute Route Builder
bighadj22/codflow
Creates new API endpoints, and converts older ones, with the defineRoute() pattern used in cod-server, including auth strategies, scopes and OpenAPI output.
API design conventions, namespace coordinate system, RBAC roles, ClawHub compatibility layer, OpenAPI contract sync rules, and CSRF/session handling.
$ npx skills add iflytek/skillhub --skill api-and-namespace-design -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install iflytek/skillhub api-and-namespace-design --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/iflytek/skillhub.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/api-and-namespace-design .claude/skills/api-and-namespace-design && rm -rf skills-srcUse ~/.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/
Install the "api-and-namespace-design" agent skill from https://github.com/iflytek/skillhub/tree/main/.agents/skills/api-and-namespace-design into .claude/skills/api-and-namespace-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-and-namespace-design", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/iflytek/skillhub/tree/main/.agents/skills/api-and-namespace-designType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add iflytek/skillhub --skill api-and-namespace-design -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install iflytek/skillhub api-and-namespace-design --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/iflytek/skillhub.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/api-and-namespace-design .agents/skills/api-and-namespace-design && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "api-and-namespace-design" agent skill from https://github.com/iflytek/skillhub/tree/main/.agents/skills/api-and-namespace-design into .agents/skills/api-and-namespace-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-and-namespace-design", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add iflytek/skillhub --skill api-and-namespace-design -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install iflytek/skillhub api-and-namespace-design --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/iflytek/skillhub.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/api-and-namespace-design .cursor/skills/api-and-namespace-design && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "api-and-namespace-design" agent skill from https://github.com/iflytek/skillhub/tree/main/.agents/skills/api-and-namespace-design into .cursor/skills/api-and-namespace-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-and-namespace-design", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/iflytek/skillhub.git --path .agents/skills/api-and-namespace-design--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add iflytek/skillhub --skill api-and-namespace-design -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install iflytek/skillhub api-and-namespace-design --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/iflytek/skillhub.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/api-and-namespace-design .gemini/skills/api-and-namespace-design && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "api-and-namespace-design" agent skill from https://github.com/iflytek/skillhub/tree/main/.agents/skills/api-and-namespace-design into .gemini/skills/api-and-namespace-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-and-namespace-design", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install iflytek/skillhub api-and-namespace-designInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add iflytek/skillhub --skill api-and-namespace-design -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/iflytek/skillhub.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/api-and-namespace-design .github/skills/api-and-namespace-design && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "api-and-namespace-design" agent skill from https://github.com/iflytek/skillhub/tree/main/.agents/skills/api-and-namespace-design into .github/skills/api-and-namespace-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-and-namespace-design", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add iflytek/skillhub --skill api-and-namespace-design -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install iflytek/skillhub api-and-namespace-design --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/iflytek/skillhub.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/api-and-namespace-design .opencode/skills/api-and-namespace-design && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "api-and-namespace-design" agent skill from https://github.com/iflytek/skillhub/tree/main/.agents/skills/api-and-namespace-design into .opencode/skills/api-and-namespace-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-and-namespace-design", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
api-and-namespace-designAPI design conventions, namespace coordinate system, RBAC roles, ClawHub compatibility layer, OpenAPI contract sync rules, and CSRF/session handling.
API And Namespace Design is an agent skill from iflytek/skillhub. API design conventions, namespace coordinate system, RBAC roles, ClawHub compatibility layer, OpenAPI contract sync rules, and CSRF/session handling.
Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Backend & APIs, covering OpenAPI specifications, Authorization and RBAC and API design. It works with OpenAPI. The repository describes itself as: Self-hosted, open-source agent skill registry for enterprises. Publish & version skill packages, govern with RBAC and audit logs, deploy on-premise with Docker or Kubernetes. The licence is Apache-2.0.
Read from SKILL.md and the folder at commit 7352597. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
makeFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
API And Namespace Design loads about 1.3k tokens when it runs. Until then it costs about 44 tokens; SKILL.md has 495 words of instructions outside code blocks.
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.
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.
The full file from iflytek/skillhub at commit 7352597, republished under its Apache-2.0 licence (© iflytek). 495 words, ~1,263 tokens.
.claude/skills/api-and-namespace-design/SKILL.md (or your agent's skills folder).Use this skill when:
SkillHub uses a two-axis coordinate model:
@{namespace_slug}/{skill_slug}@global/my-skill — Global namespace skill@my-team/my-skill — Team namespace skill (namespace slug is any valid slug)@department-ops/my-skill — Department namespace skillNamespaces (domain/namespace/):
SlugValidatorACTIVE, FROZEN, ARCHIVEDOWNER, ADMIN, MEMBERNamespace-level (domain/namespace/NamespaceRole):
OWNER — Full control over namespace and all skillsADMIN — Can manage members, archive skills, publishMEMBER — Can publish skills to the namespacePlatform-level:
SUPER_ADMIN — Bypasses all permission checks, can publish directly without reviewClawHub CLI uses a single-slug model (no / allowed in slugs). Mapping:
| SkillHub Coordinate | Canonical Slug | Notes |
|---|---|---|
@global/my-skill | my-skill | Global namespace omits prefix |
@team-name/my-skill | team-name--my-skill | Double-dash separator |
Conflict resolution: -- split takes priority. @global/team-name--my-skill would conflict
with @team-name/my-skill, resolved to the team namespace skill. Global skill slugs must NOT
contain --.
skillhub-app (com.iflytek.skillhub.controller/) are transport onlyskillhub-domain) or app services@Operation, @ApiResponse) for API documentationcom.iflytek.skillhub.dto/ReviewTaskRequest / ReviewTaskResponse for review workflowDomainBadRequestException with i18n message keysXSRF-TOKEN cookie and X-XSRF-TOKEN headerX-Mock-User-Id header in local dev/.well-known/clawhub.json returns { "apiBase": "/api/v1" } for ClawHub CLI auto-discovery.
When backend API contracts change:
make generate-apiThis runs openapi-typescript http://localhost:8080/v3/api-docs -o src/api/generated/schema.d.ts.
Commit the updated web/src/api/generated/schema.d.ts with the PR.
To verify no drift:
./scripts/check-openapi-generated.shThis starts local dependencies, boots the backend, regenerates the schema, and fails if the checked-in SDK is stale.
major.minor.patch)latest tag is system-reserved, read-only, auto-follows Skill.latestVersionIdstable, beta) are manually maintainedlatest cannot be moved manuallyyyyyMMdd.HHmmss format when no version is specified in SKILL.md| Method | Path | Purpose |
|---|---|---|
GET | /api/v1/auth/me | Current user info (401 if unauthenticated) |
POST | /api/v1/auth/local/login | Local account login |
POST | /api/v1/auth/local/register | Local account registration |
POST | /api/v1/auth/logout | Logout (302/200/204) |
POST | /api/v1/auth/local/change-password | Password change |
GET | /api/v1/namespaces | List namespaces |
GET | /api/v1/labels | List visible labels (public) |
POST | /api/v1/admin/labels | Create label definition (admin) |
DELETE | /api/v1/admin/labels/{slug} | Delete label definition (admin) |
GET | /actuator/health | Health check |
GET | /actuator/prometheus | Prometheus metrics |
X-XSRF-TOKEN header)© iflytek, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/api-and-namespace-design of iflytek/skillhub.
Open the folder on GitHubat commit 7352597
API And Namespace Design 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| API And Namespace Design this skilliflytek/skillhub | 5.2k | — | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| defineRoute Route Builderbighadj22/codflow | 346 | — | ~924 | Automated safety check: Pass | Apache-2.0 | |
| API Designeraiskillstore/marketplace | 430 | 1 repos | ~3.6k | Automated safety check: Pass | None | |
| API DesignerJeffallan/claude-skills | 12k | 2 repos | ~2k | Automated safety check: Pass | MIT | |
| Old Coder API DesignAmazingAng/old-coder | 749 | 1 repos | ~3.4k | Automated safety check: Pass | MIT | |
| API Surface Reviewpolarsource/polar | 10k | — | ~1.3k | Automated safety check: Pass | MIT |
bighadj22/codflow
Creates new API endpoints, and converts older ones, with the defineRoute() pattern used in cod-server, including auth strategies, scopes and OpenAPI output.
aiskillstore/marketplace
Design and document RESTful and GraphQL APIs with OpenAPI/Swagger specifications, authentication patterns, versioning strategies, and best practices.
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.
AmazingAng/old-coder
Reviews or designs an HTTP/JSON API's endpoints, auth, pagination, versioning and deprecations, guarding against inventing a bespoke interface or silently breaking consumers.
polarsource/polar
Review changes to Polar's API contract — Pydantic schemas, FastAPI endpoints, OpenAPI output and the generated SDKs.
ChenyCHENYU/Robot_Admin
A skill your agent uses when: generating TypeScript API layer (type definitions + request functions) from page-spec JSON or Swagger/OpenAPI docs.
iflytek/skillhub
Answers questions about a past agent run from its recording, using causal graphs and replay, instead of reconstructing events from memory.
iflytek/skillhub
Audits and rewrites formulaic, AI-sounding prose while keeping facts, voice and format, using a local Python scorer and inspect-only, rewrite or embedded-gate modes.
iflytek/skillhub
Access 2,000+ AI models and API tools through one MCP interface for inference, media generation, search, scraping, embeddings, social data, and structured retrieval.
iflytek/skillhub
Drafts a copy-paste-ready LinkedIn post from your facts and ideas, choosing the smallest structure that fits and keeping an accessible plain-text fallback for any styled text.
iflytek/skillhub
Connects an agent to a SkillHub registry and uses the official SkillHub CLI to search, install, list and explicitly upgrade skills from that registry.
iflytek/skillhub
Breaks AI-generated text into checkable claims, verifies them against independent sources and labels each one, with an optional exercise for learners.
Works with
Categories
API design conventions, namespace coordinate system, RBAC roles, ClawHub compatibility layer, OpenAPI contract sync rules, and CSRF/session handling. API And Namespace Design is an agent skill from iflytek/skillhub. API design conventions, namespace coordinate system, RBAC roles, ClawHub compatibility layer, OpenAPI contract sync rules, and CSRF/session handling.
API And Namespace Design fits situations like: tasks that involve OpenAPI specifications; tasks that involve Authorization and RBAC; tasks that involve API design.
Run `npx skills add iflytek/skillhub --skill api-and-namespace-design -a claude-code`. Or copy the skill folder (.agents/skills/api-and-namespace-design in iflytek/skillhub) into .claude/skills/api-and-namespace-design in your project. Claude Code loads it when a task matches its description.
Run `npx skills add iflytek/skillhub --skill api-and-namespace-design -a codex`. Or copy the skill folder (.agents/skills/api-and-namespace-design in iflytek/skillhub) into .agents/skills/api-and-namespace-design in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add iflytek/skillhub --skill api-and-namespace-design -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/api-and-namespace-design, .gemini/skills/api-and-namespace-design, .github/skills/api-and-namespace-design and .opencode/skills/api-and-namespace-design in your project.
Going by SKILL.md and its folder, API And Namespace Design needs the command-line tools its instructions call (make).
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.
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.
API And Namespace Design is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with API And Namespace Design: defineRoute Route Builder (bighadj22/codflow, 346 stars), API Designer (aiskillstore/marketplace, 430 stars), API Designer (Jeffallan/claude-skills, 12k stars) and Old Coder API Design (AmazingAng/old-coder, 749 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
iflytek (a GitHub organization) maintains it in iflytek/skillhub, which has 5,157 GitHub stars. The repository holds 28 skills in this directory. The repository was last updated on October 8, 2026.
Source: iflytek/skillhub on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.