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.
npx skills add jiushiwon/wg-skills --skill fastapi-org-permission-module-skillgit clone --depth 1 https://github.com/jiushiwon/wg-skillsWrote 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.
[](https://agentmods.dev/skills/jiushiwon/wg-skills/fastapi-org-permission-module-skill)<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/fastapi-org-permission-module-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/fastapi-org-permission-module-skill/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.
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/fastapi-org-permission-module-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/fastapi-org-permission-module-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00105 | $0.02233 |
| Opus 5.5 | $0.00042 | $0.00893 |
| Sonnet 5.5 | $0.00021 | $0.00447 |
| Haiku 4.5 | $0.00011 | $0.00223 |
Grade A, and why
fastapi-org-permission-module-skill 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 293 lines — stays where its author put it; the contents beside it link to each section on GitHub.
FastAPI Org Permission Module Skill
面向已有 FastAPI 项目的开发者,快速集成组织权限能力。
能力清单
| 能力 | 说明 |
|---|---|
| 组织架构 | 组织/部门管理 |
| 用户管理 | 用户-部门-岗位关联 |
| 角色管理 | 角色定义与权限分配 |
| 菜单管理 | 前后端菜单配置 |
| 权限控制 | 按钮/接口级权限 |
| 数据权限 | 行级数据隔离 |
触发场景
用户说"帮我加权限"或"集成 RBAC"时触发。
核心实现
依赖配置
pip install sqlalchemy python-jose passlib
数据模型
# models.py
from sqlalchemy import Column, BigInteger, String, Integer, Text, DateTime, Enum as SQLEnum
from sqlalchemy.sql import func
from database import Base
import enum
class RoleType(str, enum.Enum):
SYSTEM = "system"
CUSTOM = "custom"
class MenuType(str, enum.Enum):
CATALOG = "catalog"
MENU = "menu"
BUTTON = "button"
class Org(Base):
__tablename__ = "wg_org"
id = Column(BigInteger, primary_key=True, autoincrement=True)
name = Column(String(100), nullable=False)
parent_id = Column(BigInteger, default=0)
parent_ids = Column(String(500), default="0/")
sort = Column(Integer, default=0)
leader = Column(String(50))
phone = Column(String(20))
status = Column(Integer, default=1)
created_at = Column(DateTime, server_default=func.now())
class Dept(Base):
__tablename__ = "wg_dept"
id = Column(BigInteger, primary_key=True, autoincrement=True)
org_id = Column(BigInteger, nullable=False)
parent_id = Column(BigInteger, default=0)
name = Column(String(100), nullable=False)
sort = Column(Integer, default=0)
leader = Column(String(50))
status = Column(Integer, default=1)
created_at = Column(DateTime, server_default=func.now())
class User(Base):
__tablename__ = "wg_user"
id = Column(BigInteger, primary_key=True, autoincrement=True)
username = Column(String(50), unique=True, nullable=False)
password = Column(String(255), nullable=False)
nickname = Column(String(100))
dept_id = Column(BigInteger)
post_id = Column(BigInteger)
email = Column(String(100))
phone = Column(String(20))
status = Column(Integer, default=1)
created_at = Column(DateTime, server_default=func.now())
class Role(Base):
__tablename__ = "wg_role"
id = Column(BigInteger, primary_key=True, autoincrement=True)
name = Column(String(50), nullable=False)
code = Column(String(50), unique=True, nullable=False)
description = Column(String(200))
type = Column(SQLEnum(RoleType), default=RoleType.CUSTOM)
status = Column(Integer, default=1)
created_at = Column(DateTime, server_default=func.now())
class Menu(Base):
__tablename__ = "wg_menu"
id = Column(BigInteger, primary_key=True, autoincrement=True)
name = Column(String(50), nullable=False)
parent_id = Column(BigInteger, default=0)
path = Column(String(200))
component = Column(String(200))
icon = Column(String(50))
sort = Column(Integer, default=0)
type = Column(SQLEnum(MenuType), default=MenuType.MENU)
permission = Column(String(100))
status = Column(Integer, default=1)
created_at = Column(DateTime, server_default=func.now())
# 关联表
class UserRole(Base):
__tablename__ = "wg_user_role"
user_id = Column(BigInteger, primary_key=True)
role_id = Column(BigInteger, primary_key=True)
class RoleMenu(Base):
__tablename__ = "wg_role_menu"
role_id = Column(BigInteger, primary_key=True)
menu_id = Column(BigInteger, primary_key=True)
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 3mo ago First seen · 293 lines · 105 tokens per session scan A effe2644a4c8
fastapi-org-permission-module-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 6d ago), licensed Apache-2.0. It adds 105 tokens to every session and 2,233 once invoked, about $0.0004 per session on Opus 5.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.
fastapi-org-permission-module-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| fastapi-org-permission-module-skilljiushiwon/wg-skills | Skill | 154 | 6d ago | Apache-2.0 | A | 105 | Claude Code, Codex |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 70k | 3d ago | Apache-2.0 | A | 217 | Claude Code, Codex |
| tao-run-inference-serviceNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 92 | Claude Code |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 78 | Claude Code |
| fastapi-router-pymicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 46 | Claude Code |
| dev-runtimelangwatch/langwatch | Skill | 5.1k | today | Apache-2.0 | A | 172 | Claude Code |
| api-designericrisco/rsc-harness | Skill | 691 | 5d ago | MIT | A | 105 | Claude Code, Codex |