fastapi-dict-module-skill

fastapi-dict-module-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 86 tokens per session (1,381 once invoked), scanned A, original, Apache-2.0.

A FastAPI add-on for managing shared lists of values and application settings. A dictionary is a named set of items, such as status choices; the add-on exposes these through REST APIs and can cache dictionary data.

In plain words
What is it for?
Use it to create dictionary types and items, manage system configuration, provide create/read/update/delete APIs, and query cached dictionary data.
Why use it?
It avoids creating separate tables and endpoints whenever an application needs editable options or system parameters. Centralising these values makes them easier to manage and reuse.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create dictionary types and items, manage system configuration, provide create/read/update/delete APIs, and query cached dictionary data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/fastapi-dict-module-skill
Install

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.

Any agent
npx skills add jiushiwon/wg-skills --skill fastapi-dict-module-skill
Clone the repo
git clone --depth 1 https://github.com/jiushiwon/wg-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for fastapi-dict-module-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiushiwon/wg-skills/fastapi-dict-module-skill/github.svg)](https://agentmods.dev/skills/jiushiwon/wg-skills/fastapi-dict-module-skill)
Your own site
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/fastapi-dict-module-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/fastapi-dict-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.

agentmods 80×15 button for fastapi-dict-module-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/fastapi-dict-module-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/fastapi-dict-module-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,381 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00086 $0.01381
Opus 5.5 $0.00034 $0.00552
Sonnet 5.5 $0.00017 $0.00276
Haiku 4.5 $0.00009 $0.00138

Measured 2mo ago against content hash 65ec174c0097, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fastapi-dict-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 2mo 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.

backend/python/fastapi-module/fastapi-dict-module-skill/SKILL.md · 168 lines

How it starts

The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FastAPI Dict Module Skill

面向已有 FastAPI 项目的开发者,快速集成字典和配置管理能力。

能力清单

能力 说明
字典类型 字典分类管理
字典项 字典数据 CRUD
系统配置 系统参数配置
缓存 字典数据缓存
接口 RESTful API

触发场景

用户说"帮我加字典模块"或"加配置管理"时触发。

数据模型

字典类型表

from sqlalchemy import Column, BigInteger, String, Integer, DateTime, Boolean
from sqlalchemy.sql import func

class DictType(Base):
    __tablename__ = "wg_dict_type"
    
    id = Column(BigInteger, primary_key=True, autoincrement=True)
    name = Column(String(100), nullable=False, comment="字典名称")
    code = Column(String(50), nullable=False, unique=True, comment="字典编码")
    description = Column(String(500), comment="描述")
    status = Column(Integer, default=1, comment="状态:0禁用 1正常")
    created_at = Column(DateTime, server_default=func.now())
    updated_at = Column(DateTime, server_default=func.now(), onupdate=func.now())
    deleted_at = Column(DateTime, nullable=True)

字典项表

class DictItem(Base):
    __tablename__ = "wg_dict_item"
    
    id = Column(BigInteger, primary_key=True, autoincrement=True)
    dict_type_id = Column(BigInteger, nullable=False, comment="字典类型ID")
    label = Column(String(100), nullable=False, comment="显示标签")
    value = Column(String(100), nullable=False, comment="值")
    sort = Column(Integer, default=0, comment="排序")
    status = Column(Integer, default=1, comment="状态")
    created_at = Column(DateTime, server_default=func.now())
    updated_at = Column(DateTime, server_default=func.now(), onupdate=func.now())
    deleted_at = Column(DateTime, nullable=True)

系统配置表

class SysConfig(Base):
    __tablename__ = "wg_sys_config"
    
    id = Column(BigInteger, primary_key=True, autoincrement=True)
    config_key = Column(String(100), nullable=False, unique=True, comment="配置键")
    config_value = Column(String(500), comment="配置值")
    config_type = Column(String(20), default="string", comment="类型:string/int/json")
    description = Column(String(500), comment="描述")
    status = Column(Integer, default=1, comment="状态")
    created_at = Column(DateTime, server_default=func.now())
    updated_at = Column(DateTime, server_default=func.now(), onupdate=func.now())

Read the full file on GitHub · 168 lines

Files

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.

Changes

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.

  1. 2mo ago First seen · 168 lines · 86 tokens per session scan A 65ec174c0097

Subscribe to this mod's changes

fastapi-dict-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 86 tokens to every session and 1,381 once invoked, about $0.0003 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-09-15.

Related

fastapi-dict-module-skill compared with skills from other repositories

fastapi-dict-module-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fastapi-dict-module-skilljiushiwon/wg-skillsSkill1546d agoApache-2.0A86Claude Code, Codex
event-store-designwshobson/agentsSkill43kyesterdayMITA33Claude Code
platform-custom-field-generateforcedotcom/sf-skillsSkill1.2k4d agoApache-2.0A139Claude Code
durable-objectsfcakyon/claude-codex-settingsSkill1.2ktodayApache-2.0A22Claude Code
field-service-sobject-create-configureforcedotcom/sf-skillsSkill1.2k4d agoApache-2.0A74Claude Code
nornicdb-grpcorneryd/NornicDBSkill937todayMITA98Claude Code, Codex
firebaseericrisco/rsc-harnessSkill6915d agoMITA77Claude Code, Codex