mas-schema-naming
БесплатноБез исполняемых скриптовНе проверенDefine canonical naming for future backend schema domains. Use when creating new specialized schema models or extending Pydantic contracts in…
от AUTO-MAS-Project★ 821 звезда на GitHubОб этом скилле
MAS Schema Naming
Objective
Standardize naming for future specialized backend schema implementations.
This skill constrains new domain work by default. It does not require retroactive renaming of existing legacy modules unless explicitly requested.
Global Constraints
Apply these constraints while using this skill.
- Make minimal necessary changes first; avoid broad refactors unless explicitly requested.
- Align with current code style and existing project conventions in the touched module.
- Avoid over-engineering, over-abstraction, and defensive programming that does not match existing code patterns.
- Study similar existing implementations deeply before coding and follow established local patterns.
Apply Workflow
- Determine whether the field is shared semantic or domain-specific semantic.
- For shared semantic, use the canonical name from this skill.
- For domain-specific semantic, keep naming local to the domain block.
- Keep public config-model field style consistent:
PascalCase. - When touching legacy modules, prefer compatibility-first edits and avoid broad rename-only refactors.
Canonical Structure For New Domains
Use this top-level structure for new script/user schema models.
class XxxConfig(BaseModel):
Info: XxxConfig_Info | None
Run: XxxConfig_Run | None
Emulator: XxxConfig_Emulator | None # only if emulator semantics exist
class XxxUserConfig(BaseModel):
Info: XxxUserConfig_Info | None
Data: XxxUserConfig_Data | None
Notify: XxxUserConfig_Notify | None
# optional domain blocks, e.g. Task/Stage/Game
Shared Naming Matrix
Use these names when semantics are the same.
| Semantic | Canonical name | Block |
|---|---|---|
| Script display name | Name |
Info |
| Script runtime path | Path |
Info |
| Emulator id | Id |
Emulator |
| Emulator index | Index |
Emulator |
| Transition strategy | TaskTransitionMethod |
Run |
| Daily proxy limit | ProxyTimesLimit |
Run |
| Retry limit | RunTimesLimit |
Run |
| Runtime timeout | RunTimeLimit |
Run |
| User display name | Name |
User.Info |
| User id | Id |
User.Info |
| User enabled status | Status |
User.Info |
| Remaining day budget | RemainedDay |
User.Info |
| User note | Notes |
User.Info |
| User tag payload | Tag |
User.Info |
| Last proxy date | LastProxyDate |
User.Data |
| Proxy run count | ProxyTimes |
User.Data |
| Manual-check result | IfPassCheck |
User.Data |
| Notify enabled | Enabled |
User.Notify |
| Send statistic | IfSendStatistic |
User.Notify |
| Send mail | IfSendMail |
User.Notify |
| Mail receiver | ToAddress |
User.Notify |
| ServerChan enabled | IfServerChan |
User.Notify |
| ServerChan key | ServerChanKey |
User.Notify |
Boundary For Domain-Specific Names
- Keep domain-specific semantics inside dedicated domain blocks.
- Do not force shared naming when semantics differ.
- Do not add synonym fields for the same semantic in one block.
Drift To Avoid In New Work
- Same semantic, different names (
PathvsRootPath). - Same semantic, different block placement (
DatavsInfo). - Same semantic, mixed boolean style in the same block.
Compatibility Rule
When canonicalizing an existing public field:
- Keep read compatibility for legacy payloads during migration.
- Prefer writing canonical names in new responses.
- Remove legacy names only after consumer migration is complete.
PR Checklist
- New specialized schema models follow this canonical matrix for shared semantics.
- Domain-specific fields stay in domain-specific blocks.
- No new synonym names are introduced for existing shared semantics.
- Legacy modules are not renamed in bulk unless explicitly in scope.
Установить mas-schema-naming в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл mas-schema-naming?
Define canonical naming for future backend schema domains. Use when creating new specialized schema models or extending Pydantic contracts in app/models/schema.py, standardizing shared Info/Data/Notify/Run semantics, and avoiding new naming drift without forcing retroactive changes on legacy modules.
Как установить скилл mas-schema-naming?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mas-schema-naming запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic