[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M716WSX1T1CPEBTY0B9V88EB":3,"skill-same:01M716WSX1T1CPEBTY0B9V88EB":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":14,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":51,"install":52,"resources":65},"01M716WSX1T1CPEBTY0B9V88EB","pydantic-models-py",null,"Create Pydantic models following the multi-model pattern for clean API contracts.","sapsapshen\u002Fai-memory-router","sapsapshen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F20347959?v=4","01M6XDQEF1DP50DKF37H81J3J5","shenmian","01M6XDQEJPE41Y3DT2763X8ZJN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fpydantic-models-py\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"pydantic models py","Pydantic","models","create","api","model","multi-model","clean","community","contracts","pattern","multi","for","unknown","api contracts","2026","2026-11-10 10:12:30",false,"---\nname: pydantic-models-py\ndescription: \"Create Pydantic models following the multi-model pattern for clean API contracts.\"\nrisk: unknown\nsource: community\ndate_added: \"2026-02-27\"\n---\n\n# Pydantic Models\n\nCreate Pydantic models following the multi-model pattern for clean API contracts.\n\n## Quick Start\n\nCopy the template from assets\u002Ftemplate.py and replace placeholders:\n- `{{ResourceName}}` → PascalCase name (e.g., `Project`)\n- `{{resource_name}}` → snake_case name (e.g., `project`)\n\n## Multi-Model Pattern\n\n| Model | Purpose |\n|-------|---------|\n| `Base` | Common fields shared across models |\n| `Create` | Request body for creation (required fields) |\n| `Update` | Request body for updates (all optional) |\n| `Response` | API response with all fields |\n| `InDB` | Database document with `doc_type` |\n\n## camelCase Aliases\n\n```python\nclass MyModel(BaseModel):\n    workspace_id: str = Field(..., alias=\"workspaceId\")\n    created_at: datetime = Field(..., alias=\"createdAt\")\n    \n    class Config:\n        populate_by_name = True  # Accept both snake_case and camelCase\n```\n\n## Optional Update Fields\n\n```python\nclass MyUpdate(BaseModel):\n    \"\"\"All fields optional for PATCH requests.\"\"\"\n    name: Optional[str] = Field(None, min_length=1)\n    description: Optional[str] = None\n```\n\n## Database Document\n\n```python\nclass MyInDB(MyResponse):\n    \"\"\"Adds doc_type for Cosmos DB queries.\"\"\"\n    doc_type: str = \"my_resource\"\n```\n\n## Integration Steps\n\n1. Create models in `src\u002Fbackend\u002Fapp\u002Fmodels\u002F`\n2. Export from `src\u002Fbackend\u002Fapp\u002Fmodels\u002F__init__.py`\n3. Add corresponding TypeScript types\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n","# Pydantic Models\n\nCreate Pydantic models following the multi-model pattern for clean API contracts.\n\n## Quick Start\n\nCopy the template from assets\u002Ftemplate.py and replace placeholders:\n- `{{ResourceName}}` → PascalCase name (e.g., `Project`)\n- `{{resource_name}}` → snake_case name (e.g., `project`)\n\n## Multi-Model Pattern\n\n| Model | Purpose |\n|-------|---------|\n| `Base` | Common fields shared across models |\n| `Create` | Request body for creation (required fields) |\n| `Update` | Request body for updates (all optional) |\n| `Response` | API response with all fields |\n| `InDB` | Database document with `doc_type` |\n\n## camelCase Aliases\n\n```python\nclass MyModel(BaseModel):\n    workspace_id: str = Field(..., alias=\"workspaceId\")\n    created_at: datetime = Field(..., alias=\"createdAt\")\n    \n    class Config:\n        populate_by_name = True  # Accept both snake_case and camelCase\n```\n\n## Optional Update Fields\n\n```python\nclass MyUpdate(BaseModel):\n    \"\"\"All fields optional for PATCH requests.\"\"\"\n    name: Optional[str] = Field(None, min_length=1)\n    description: Optional[str] = None\n```\n\n## Database Document\n\n```python\nclass MyInDB(MyResponse):\n    \"\"\"Adds doc_type for Cosmos DB queries.\"\"\"\n    doc_type: str = \"my_resource\"\n```\n\n## Integration Steps\n\n1. Create models in `src\u002Fbackend\u002Fapp\u002Fmodels\u002F`\n2. Export from `src\u002Fbackend\u002Fapp\u002Fmodels\u002F__init__.py`\n3. Add corresponding TypeScript types\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n",{"name":5,"risk":37,"source":32,"date_added":45,"description":7},"2026-02-27","main","7a38d8e7073e61c16eda85681cb32fb68a8657a5","skills-store\u002Fcursor\u002Fpydantic-models-py","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router","https:\u002F\u002Fgithub.com\u002Fsapsapshen","2026-04-14 21:12:12",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add sapsapshen\u002Fai-memory-router --skill pydantic-models-py",{"tool":58,"command":59},"bunx","bunx skills add sapsapshen\u002Fai-memory-router --skill pydantic-models-py",{"tool":61,"command":62},"pnpm","pnpm dlx skills add sapsapshen\u002Fai-memory-router --skill pydantic-models-py","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fpydantic-models-py\u002FSKILL.md",true,[],[67,91,116,126,139,156],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":78,"publishedAt":40},"01M71ATQRKG48SH06FQ697T5G9","wechat-search","Search WeChat Official Account articles using OpenClaw's web search and fetch capabilities with compliance-focused design.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fopenclaw\u002Fwechat-search-release\u002FSKILL.md",[73],{"categoryNo":74,"categoryName":75,"taxonomyType":76,"taxonomyTypeDesc":77},"01JBSEEDCAT000000000000037","律师与法务","PROFESSION","适用职业",[79,80,81,82,83,84,85,86,87,88,89,90],"wechat search","wechat","search","capabilities","openclaw","design","web search","compliance","web","official","fetch","with",{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":40},"01M71ATNAVGZB35PFYM2GC5N00","trend-tap","Real-time trending topics aggregator across 7 platforms (X\u002FTwitter, Reddit, Google Trends, Hacker News, Zhihu, Bilibili, Weibo). Trigger: when user says 'trend', 'trends', 'trend tap', '热点', '热搜', or asks what is trending\u002Fhot. Do NOT use web_search — this skill already fetches live data from all platforms with zero API keys.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fopenclaw\u002Ftrend-tap\u002FSKILL.md",[],[98,99,100,101,102,103,81,104,105,106,107,108,109,110,111,112,113,114,115,28],"trend","trend tap","tap","api keys","Bash","time","trending","hacker","aggregator","do","when","brew","live","data","google","install","read","across",{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":40},"01M71ATJ9AM5KM15AA8PS302EB","trend-radar","Real-time trending topics aggregator across 7 platforms (X\u002FTwitter, Reddit, Google Trends, Hacker News, Zhihu, Bilibili, Weibo). Trigger: when user says 'trend', 'trends', 'trend pulse', '热点', '热搜', or asks what is trending\u002Fhot. Do NOT use web_search — this skill already fetches live data from all platforms with zero API keys.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fopenclaw\u002Ftrend-radar\u002FSKILL.md",[],[123,124,98,109,110,111,112,102,81,114,125,115,28,108,106,105,104,113,103,101],"trend radar","radar","pulse",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":40},"01M71ATGF095N3EJM9G8SD0BB5","tech-news-daily","每日科技新闻汇——从全球多个 RSS 源抓取最新科技新闻，翻译（英→中）、去重、排版成每日简报。当用户询问科技新闻、科技新鲜事、每日科技、技术动态、Daily Tech News 或类似表达时触发此技能。","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fopenclaw\u002Ftech-news-daily\u002FSKILL.md",[],[133,134,135,136,137,138],"news","tech","tech news daily","daily","rss","翻译",{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":148,"publishedAt":40},"01M71ATFAEAMQ17M70NQNY7SR8","summarize","Summarize URLs or files with the summarize CLI (web, PDFs, images, audio, YouTube).","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fopenclaw\u002Fsummarize\u002FSKILL.md",[145],{"categoryNo":146,"categoryName":147,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000021","资料检索与研究",[141,87,149,150,151,90,109,152,153,154,100,155,113],"Audio","cli","youtube","images","https","files","pdfs",{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":40},"01M71ATDNS3R0M4H936PACQAWZ","sonoscli","Control Sonos speakers (discover\u002Fstatus\u002Fplay\u002Fvolume\u002Fgroup).","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fopenclaw\u002Fsonoscli\u002FSKILL.md",[],[158,163,164,165,113,166,153,167,168,169,170,171],"status","play","go","latest","github","discover","control","cmd","volume"]