Fastapi
ericrisco/rsc-harness
A skill your agent uses when building, reviewing, testing, securing or shipping a FastAPI / async Python service — routers, Pydantic v2 schemas, dependency injection, async SQLAlchemy 2.0…
Pydantic Models workflow skill. An agent skill from diegosouzapw/awesome-omni-skills.
$ npx skills add diegosouzapw/awesome-omni-skills --skill pydantic-models-py -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install diegosouzapw/awesome-omni-skills pydantic-models-py --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/diegosouzapw/awesome-omni-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills_omni/pydantic-models-py .claude/skills/pydantic-models-py && 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 "pydantic-models-py" agent skill from https://github.com/diegosouzapw/awesome-omni-skills/tree/main/skills_omni/pydantic-models-py into .claude/skills/pydantic-models-py/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pydantic-models-py", 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/diegosouzapw/awesome-omni-skills/tree/main/skills_omni/pydantic-models-pyType 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 diegosouzapw/awesome-omni-skills --skill pydantic-models-py -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install diegosouzapw/awesome-omni-skills pydantic-models-py --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/diegosouzapw/awesome-omni-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills_omni/pydantic-models-py .agents/skills/pydantic-models-py && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "pydantic-models-py" agent skill from https://github.com/diegosouzapw/awesome-omni-skills/tree/main/skills_omni/pydantic-models-py into .agents/skills/pydantic-models-py/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pydantic-models-py", 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 diegosouzapw/awesome-omni-skills --skill pydantic-models-py -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install diegosouzapw/awesome-omni-skills pydantic-models-py --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/diegosouzapw/awesome-omni-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills_omni/pydantic-models-py .cursor/skills/pydantic-models-py && 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 "pydantic-models-py" agent skill from https://github.com/diegosouzapw/awesome-omni-skills/tree/main/skills_omni/pydantic-models-py into .cursor/skills/pydantic-models-py/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pydantic-models-py", 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/diegosouzapw/awesome-omni-skills.git --path skills_omni/pydantic-models-py--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 diegosouzapw/awesome-omni-skills --skill pydantic-models-py -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install diegosouzapw/awesome-omni-skills pydantic-models-py --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/diegosouzapw/awesome-omni-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills_omni/pydantic-models-py .gemini/skills/pydantic-models-py && 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 "pydantic-models-py" agent skill from https://github.com/diegosouzapw/awesome-omni-skills/tree/main/skills_omni/pydantic-models-py into .gemini/skills/pydantic-models-py/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pydantic-models-py", 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 diegosouzapw/awesome-omni-skills pydantic-models-pyInstalls 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 diegosouzapw/awesome-omni-skills --skill pydantic-models-py -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/diegosouzapw/awesome-omni-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills_omni/pydantic-models-py .github/skills/pydantic-models-py && 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 "pydantic-models-py" agent skill from https://github.com/diegosouzapw/awesome-omni-skills/tree/main/skills_omni/pydantic-models-py into .github/skills/pydantic-models-py/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pydantic-models-py", 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 diegosouzapw/awesome-omni-skills --skill pydantic-models-py -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install diegosouzapw/awesome-omni-skills pydantic-models-py --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/diegosouzapw/awesome-omni-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills_omni/pydantic-models-py .opencode/skills/pydantic-models-py && 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 "pydantic-models-py" agent skill from https://github.com/diegosouzapw/awesome-omni-skills/tree/main/skills_omni/pydantic-models-py into .opencode/skills/pydantic-models-py/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pydantic-models-py", 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.
pydantic-models-pyPydantic Models workflow skill. An agent skill from diegosouzapw/awesome-omni-skills.
Pydantic Models Py is an agent skill from diegosouzapw/awesome-omni-skills. Pydantic Models workflow skill. Use this skill when the user needs Create Pydantic models following the multi-model pattern for clean API contracts and the operator should design explicit request, update, response, and internal model boundaries before merging or handing off.
Its SKILL.md is about 3.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 21 other files, including scripts, reference files and assets (for example `ATTRIBUTION.md`, `OMNI_ENHANCED.json` and `ORIGIN.md`).
It sits in Backend & APIs, covering API design. It works with Pydantic and Python. The repository describes itself as: Public repository of AI coding skills, curated improved best-practice skills, and runtime surfaces for CLI, API, MCP, and A2A. The licence is MIT.
10 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit c3af004. 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.
Ships 1 file in scripts/ (Python, from the files we listed), which the agent can run.
From 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.
Pydantic Models Py loads about 3.2k tokens when it runs, and up to ~4.9k if it reads all its reference files. Until then it costs about 74 tokens; SKILL.md has 1,449 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); the scripts in this folder are not scanned.
The full file from diegosouzapw/awesome-omni-skills at commit c3af004, republished under its MIT licence (© diegosouzapw). 1,449 words, ~3,221 tokens.
.claude/skills/pydantic-models-py/SKILL.md (or your agent's skills folder). This skill also uses 16 other files; get the full folder from GitHub.Use this skill to create or refactor Pydantic models for API integration work where request and response contracts must stay explicit, stable, and safe.
The upstream intent is preserved: use a multi-model pattern instead of one overloaded model for every purpose. The enhanced workflow modernizes that pattern for Pydantic v2 and focuses on operational API contract design:
from_attributes=True instead of legacy orm_modeThis skill is framework-agnostic Python guidance. FastAPI-style patterns are referenced because they are common and well documented, but the workflow applies to general API integration work.
Version guard: this workflow assumes Pydantic v2 semantics such as
model_validate,model_dump,ConfigDict,field_validator, andfrom_attributes.
Use this skill when:
nullDo not use this skill as the primary router when:
| Situation | Recommended model family | Key choices | Primary methods | Main risk |
|---|---|---|---|---|
| Create or POST request | Create / input model | required writable fields, extra='forbid', clear constraints | model_validate(...) | accepting undeclared fields or weak validation |
| Partial update or PATCH request | Update model | all fields optional as transport inputs, use exclude_unset=True | model_dump(exclude_unset=True) | clearing stored values by mistake |
| Public API response | Public / Read model | expose only contract fields, serialize with aliases if wire format needs them | model_validate(...), model_dump(by_alias=True) | leaking internal fields or wrong field names |
| Internal service response | Internal model | include operational metadata only if not public | model_validate(...), model_dump(...) | reusing internal models as public DTOs |
| ORM or document adaptation | Public or Internal model with attribute adaptation | from_attributes=True when validating from objects | model_validate(obj) | legacy orm_mode assumptions or field shape mismatch |
| Persistence shape | separate InDB / persistence model only if contract differs materially | add store-only fields only when needed | validate near persistence boundary | unnecessary model sprawl |
For selection guidance and config tradeoffs, see references/integration-patterns.md.
Identify contract boundaries before writing code. Decide whether the task truly needs separate models for create, update, public response, internal response, or persistence. Do not create extra model families unless the payloads differ in a way that matters.
Start from the external contract, not the database shape.
For API work, define what clients may send and receive first. Persistence-only fields such as internal IDs, doc_type, audit flags, revision tokens, or secret material should not appear in public response models unless explicitly required.
Choose a model taxonomy. A practical default is:
ThingBase: shared constraints only when reuse is genuinely helpfulThingCreate: fields accepted on creationThingUpdate: partial-update transport modelThingPublic: fields returned to API clientsThingInternal or ThingInDB: only when internal or persistence needs differ materiallyIf Base inheritance makes public/private boundaries fuzzy, prefer separate models instead of inheritance.
Set explicit config for request safety. For externally sourced request models, start conservative:
from pydantic import BaseModel, ConfigDict
class WidgetCreate(BaseModel):
model_config = ConfigDict(extra='forbid')Consider stricter settings intentionally. Reject undeclared fields unless you have a compatibility reason not to. Use default_factory for dynamic defaults instead of mutable literals.
Define field naming policy and aliases deliberately.
If Python code uses snake_case but the API contract uses camelCase, encode that policy explicitly. Be consistent about whether validation accepts Python names, wire aliases, or both.
Preferred rule of thumb:
by_alias=True when aliases define the contractSeparate create and update semantics.
Create models usually express required writable fields. Update models usually make all updatable fields optional so the transport layer can represent omission.
Important distinction:
null / None: clear it, if the contract allowsUse model_dump(exclude_unset=True) when applying PATCH-like updates.
Validate and adapt at the correct boundary.
Use model_validate(...) when building models from request payloads, trusted dictionaries, or class instances. When validating from ORM or document objects, configure the target model with from_attributes=True.
Serialize public responses from public models. Prefer:
ThingPublicThingPublic with model_dump(by_alias=True) if aliases define the contractAvoid dumping a richer internal model and trying to hide fields with ad hoc exclude lists.
Place business rules carefully.
Use field_validator or model_validator for transport and shape validation that belongs to the data contract. Keep workflow-specific side effects, repository checks, and cross-service orchestration in endpoint or service logic.
Check generated payloads explicitly. Before finalizing, verify:
Symptoms
Likely causes
by_alias=TrueCorrective actions
model_dump(by_alias=True) when aliases define the API contractSymptoms
NoneLikely causes
exclude_unset=TrueNone is not being distinguished from field omissionCorrective actions
Update modelmodel_dump(exclude_unset=True)None means clear-the-value or invalid input for each fieldSymptoms
Likely causes
from_attributes=TrueCorrective actions
Symptoms
Likely causes
extra handling was left implicitCorrective actions
extra='forbid' for external request models unless a looser contract is intentionalSymptoms
Likely causes
Corrective actions
model_dump(by_alias=True) when aliases are usedSee examples/request-response-example.md for a complete worked example that includes:
extra='forbid' on request modelsfrom_attributes=True for adapting an object into a public DTOnullreferences/integration-patterns.md — model-family selection matrix, alias policy options, config defaults, and contract safety guidanceUse related skills when the task drifts into:
When in doubt, keep this skill focused on Pydantic model boundaries and API contract correctness rather than general backend implementation.
© diegosouzapw, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 16 other files (scripts, references, assets) in skills_omni/pydantic-models-py of diegosouzapw/awesome-omni-skills.
Open the folder on GitHubat commit c3af004
Pydantic Models Py 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 |
|---|---|---|---|---|---|---|
| Pydantic Models Py this skilldiegosouzapw/awesome-omni-skills | 159 | — | ~3.2k | Automated safety check: Pass | MIT | |
| Fastapiericrisco/rsc-harness | 167 | — | ~5k | Automated safety check: Notes | MIT | |
| Agentic Workflows API Documentation Lungoagntcy/coffeeAgntcy | 112 | — | ~2.6k | Automated safety check: Pass | Apache-2.0 | |
| Fastcrudbenavlabs/fastcrud | 1.6k | — | ~5k | Automated safety check: Pass | MIT | |
| API Surface Reviewpolarsource/polar | 10k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Fastapi Appccplugins/awesome-claude-code-plugins | 968 | — | ~1.1k | Automated safety check: Notes | Apache-2.0 |
ericrisco/rsc-harness
A skill your agent uses when building, reviewing, testing, securing or shipping a FastAPI / async Python service — routers, Pydantic v2 schemas, dependency injection, async SQLAlchemy 2.0…
agntcy/coffeeAgntcy
Authors and maintains the human-facing Agentic Workflows API documentation for the lungo subproject at coffeeAGNTCY/coffeeagents/lungo/docs/workflow-instanceapi.md.
benavlabs/fastcrud
A skill your agent uses when building or modifying CRUD endpoints with FastCRUD (the fastcrud PyPI package) in a FastAPI project — covers FastCRUD, crudrouter, EndpointCreator, FilterConfig…
polarsource/polar
Review changes to Polar's API contract — Pydantic schemas, FastAPI endpoints, OpenAPI output and the generated SDKs.
ccplugins/awesome-claude-code-plugins
Bootstrap a new FastAPI backend with async SQLAlchemy 2.0, asyncpg, Alembic, Pydantic v2, and no deprecated APIs.
vipshop/cache-dit
A skill your agent uses when doing operator migration or kernel migration for CUDA, Triton, or custom ops in cache-dit; porting kernels from nunchaku, deepcompressor, or other repos; designing…
diegosouzapw/awesome-omni-skills
Content Creator workflow skill. An agent skill from diegosouzapw/awesome-omni-skills.
diegosouzapw/awesome-omni-skills
Helm Chart Scaffolding workflow skill. An agent skill from diegosouzapw/awesome-omni-skills.
diegosouzapw/awesome-omni-skills
Prompt Engineering Patterns workflow skill. An agent skill from diegosouzapw/awesome-omni-skills.
diegosouzapw/awesome-omni-skills
Prompt Engineering Patterns workflow skill. An agent skill from diegosouzapw/awesome-omni-skills.
diegosouzapw/awesome-omni-skills
📝 Prompt Library workflow skill. An agent skill from diegosouzapw/awesome-omni-skills.
diegosouzapw/awesome-omni-skills
Protocol Reverse Engineering workflow skill. An agent skill from diegosouzapw/awesome-omni-skills.
Categories
Pydantic Models workflow skill. An agent skill from diegosouzapw/awesome-omni-skills. Pydantic Models Py is an agent skill from diegosouzapw/awesome-omni-skills. Pydantic Models workflow skill.
Pydantic Models Py fits situations like: internal model boundaries before merging; tasks that involve API design.
Run `npx skills add diegosouzapw/awesome-omni-skills --skill pydantic-models-py -a claude-code`. Or copy the skill folder (skills_omni/pydantic-models-py in diegosouzapw/awesome-omni-skills) into .claude/skills/pydantic-models-py in your project. Claude Code loads it when a task matches its description.
Run `npx skills add diegosouzapw/awesome-omni-skills --skill pydantic-models-py -a codex`. Or copy the skill folder (skills_omni/pydantic-models-py in diegosouzapw/awesome-omni-skills) into .agents/skills/pydantic-models-py 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 diegosouzapw/awesome-omni-skills --skill pydantic-models-py -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pydantic-models-py, .gemini/skills/pydantic-models-py, .github/skills/pydantic-models-py and .opencode/skills/pydantic-models-py in your project.
Going by SKILL.md and its folder, Pydantic Models Py needs Python for the scripts in its folder. Our summary lists: Python 3.
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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Pydantic Models Py is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.2k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.7k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Pydantic Models Py: Fastapi (ericrisco/rsc-harness, 167 stars), Agentic Workflows API Documentation Lungo (agntcy/coffeeAgntcy, 112 stars), Fastcrud (benavlabs/fastcrud, 1.6k stars) and API Surface Review (polarsource/polar, 10k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
diegosouzapw (a GitHub user) maintains it in diegosouzapw/awesome-omni-skills, which has 159 GitHub stars. The repository holds 39 skills in this directory. The repository was last updated on July 8, 2026.
Source: diegosouzapw/awesome-omni-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.