📦 deps(thirdparty): update snapshots
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "antigravity-bundle-aas-python-api-builder",
|
||||
"version": "12.9.0",
|
||||
"version": "13.0.0",
|
||||
"description": "Editorial \"AAS Python API Builder\" bundle for Claude Code from Antigravity Awesome Skills.",
|
||||
"author": {
|
||||
"name": "sickn33 and contributors",
|
||||
|
||||
+10
-5
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "agyb-aas-python-api-builder",
|
||||
"version": "12.9.0",
|
||||
"description": "Install the \"AAS Python API Builder\" editorial skill bundle from Antigravity Awesome Skills.",
|
||||
"version": "13.0.0",
|
||||
"description": "Install the \"AAS Python API Builder\" workflow plugin from Antigravity Awesome Skills.",
|
||||
"author": {
|
||||
"name": "sickn33 and contributors",
|
||||
"url": "https://github.com/sickn33/antigravity-awesome-skills"
|
||||
@@ -19,8 +19,8 @@
|
||||
"skills": "./skills/",
|
||||
"interface": {
|
||||
"displayName": "AAS Python API Builder",
|
||||
"shortDescription": "Specialized Product Plugins - Next Wave · 8 curated skills",
|
||||
"longDescription": "Python developers building APIs, services, and tests. Covers Python Pro, Python Patterns, and 6 more skills.",
|
||||
"shortDescription": "Build Python APIs and services with FastAPI, Django, Pydantic, OpenAPI, async patterns, tests, and API design.",
|
||||
"longDescription": "Build Python APIs and services with FastAPI, Django, Pydantic, OpenAPI, async patterns, tests, and API design. A language-specialized plugin is useful when it bundles framework guidance, async patterns, testing, and API design together. Recommended for: Python backend teams, FastAPI and Django builders, API maintainers. Not for: Language-agnostic API governance, Frontend-only implementation. Covers Python Pro, Python Patterns, and 8 more skills.",
|
||||
"developerName": "sickn33 and contributors",
|
||||
"category": "Specialized Product Plugins - Next Wave",
|
||||
"capabilities": [
|
||||
@@ -28,6 +28,11 @@
|
||||
"Write"
|
||||
],
|
||||
"websiteURL": "https://github.com/sickn33/antigravity-awesome-skills",
|
||||
"brandColor": "#111827"
|
||||
"brandColor": "#111827",
|
||||
"defaultPrompt": [
|
||||
"Use this plugin to design a FastAPI service with routes, Pydantic models, validation, async boundaries, and tests.",
|
||||
"Use this plugin to review this Django API for structure, performance, OpenAPI coverage, and test coverage.",
|
||||
"Use this plugin to refactor this Python service toward clearer API and async patterns."
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
---
|
||||
name: openapi-spec-generation
|
||||
description: "Generate and maintain OpenAPI 3.1 specifications from code, design-first specs, and validation patterns. Use when creating API documentation, generating SDKs, or ensuring API contract compliance."
|
||||
risk: safe
|
||||
source: community
|
||||
date_added: "2026-02-27"
|
||||
---
|
||||
|
||||
# OpenAPI Spec Generation
|
||||
|
||||
Comprehensive patterns for creating, maintaining, and validating OpenAPI 3.1 specifications for RESTful APIs.
|
||||
|
||||
## Use this skill when
|
||||
|
||||
- Creating API documentation from scratch
|
||||
- Generating OpenAPI specs from existing code
|
||||
- Designing API contracts (design-first approach)
|
||||
- Validating API implementations against specs
|
||||
- Generating client SDKs from specs
|
||||
- Setting up API documentation portals
|
||||
|
||||
## Do not use this skill when
|
||||
|
||||
- The task is unrelated to openapi spec generation
|
||||
- You need a different domain or tool outside this scope
|
||||
|
||||
## Instructions
|
||||
|
||||
- Clarify goals, constraints, and required inputs.
|
||||
- Apply relevant best practices and validate outcomes.
|
||||
- Provide actionable steps and verification.
|
||||
- If detailed examples are required, open `resources/implementation-playbook.md`.
|
||||
|
||||
## Resources
|
||||
|
||||
- `resources/implementation-playbook.md` for detailed patterns and examples.
|
||||
|
||||
## Limitations
|
||||
- Use this skill only when the task clearly matches the scope described above.
|
||||
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
|
||||
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
|
||||
+1027
File diff suppressed because it is too large
Load Diff
+69
@@ -0,0 +1,69 @@
|
||||
---
|
||||
name: pydantic-models-py
|
||||
description: "Create Pydantic models following the multi-model pattern for clean API contracts."
|
||||
risk: unknown
|
||||
source: community
|
||||
date_added: "2026-02-27"
|
||||
---
|
||||
|
||||
# Pydantic Models
|
||||
|
||||
Create Pydantic models following the multi-model pattern for clean API contracts.
|
||||
|
||||
## Quick Start
|
||||
|
||||
Copy the template from assets/template.py and replace placeholders:
|
||||
- `{{ResourceName}}` → PascalCase name (e.g., `Project`)
|
||||
- `{{resource_name}}` → snake_case name (e.g., `project`)
|
||||
|
||||
## Multi-Model Pattern
|
||||
|
||||
| Model | Purpose |
|
||||
|-------|---------|
|
||||
| `Base` | Common fields shared across models |
|
||||
| `Create` | Request body for creation (required fields) |
|
||||
| `Update` | Request body for updates (all optional) |
|
||||
| `Response` | API response with all fields |
|
||||
| `InDB` | Database document with `doc_type` |
|
||||
|
||||
## camelCase Aliases
|
||||
|
||||
```python
|
||||
class MyModel(BaseModel):
|
||||
workspace_id: str = Field(..., alias="workspaceId")
|
||||
created_at: datetime = Field(..., alias="createdAt")
|
||||
|
||||
class Config:
|
||||
populate_by_name = True # Accept both snake_case and camelCase
|
||||
```
|
||||
|
||||
## Optional Update Fields
|
||||
|
||||
```python
|
||||
class MyUpdate(BaseModel):
|
||||
"""All fields optional for PATCH requests."""
|
||||
name: Optional[str] = Field(None, min_length=1)
|
||||
description: Optional[str] = None
|
||||
```
|
||||
|
||||
## Database Document
|
||||
|
||||
```python
|
||||
class MyInDB(MyResponse):
|
||||
"""Adds doc_type for Cosmos DB queries."""
|
||||
doc_type: str = "my_resource"
|
||||
```
|
||||
|
||||
## Integration Steps
|
||||
|
||||
1. Create models in `src/backend/app/models/`
|
||||
2. Export from `src/backend/app/models/__init__.py`
|
||||
3. Add corresponding TypeScript types
|
||||
|
||||
## When to Use
|
||||
This skill is applicable to execute the workflow or actions described in the overview.
|
||||
|
||||
## Limitations
|
||||
- Use this skill only when the task clearly matches the scope described above.
|
||||
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
|
||||
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
|
||||
Reference in New Issue
Block a user