mas-plan-schedule
БесплатноБез исполняемых скриптовНе проверенUse when adding, refactoring, or reviewing AUTO-MAS plan schedule types, including backend PlanConfig registration, plan API/schema contracts, plan combobox…
от AUTO-MAS-Project★ 821 звезда на GitHubОб этом скилле
MAS Plan Schedule
Objective
Keep AUTO-MAS plan schedules easy to extend without turning them into a generic field engine. Each schedule type owns its data model, config class, table UI, and user consumption path. Shared code should only cover type registration, API dispatch, list selection, and CRUD orchestration.
Current Architecture
Backend has one shared multi-config collection and one lightweight registration table.
app/models/schema.pyDefines API-facing schedule schemas and shared aliases:WeeklyPlanConfig,PlanConfigType,PlanCreateType,PlanConfigData,PlanComboxConsumer.app/models/config.pyDefines concreteConfigBaseschedule classes such asMaaPlanConfigandMaaEndPlanConfig. Registers them inPLAN_BOOK.app/core/config.pyUsesPLAN_BOOKto create plans, delete referenced plans, filter combobox options by consumer, and wireGlobalConfig.PlanConfig.app/api/plan.pyUses schema models plusPLAN_BOOKfor plan CRUD serialization.app/api/info.pyExposes consumer-specific plan combobox routes throughPlanComboxIn.consumer.
Frontend has one runtime descriptor registry and separate table implementations.
frontend/src/utils/planTypeRegistry.tsOwns runtime plan descriptors: config type, create type, label, default name, selector tag, reload behavior, and table component.frontend/src/views/plan/index.vueOrchestrates plan list state, current plan selection, CRUD calls, name editing, and table dispatch.frontend/src/views/plan/tables/*.vueOwns concrete table UI and per-type field behavior.frontend/src/composables/usePlanApi.tsWraps plan API calls. Do not duplicate generated OpenAPI models here.frontend/src/utils/planNameUtils.tsReads the registry for labels/default names.
Where Things Belong
Use types/ for type-only shapes that are not already exported by OpenAPI.
Use utils/ or a feature folder for runtime registries, constants, validators, and label maps.
planTypeRegistry.ts is runtime code because it imports Vue defineAsyncComponent and generated API enum values. Do not move it into types/ unless it is split into a type-only file and a runtime registry file.
Do not put plan schedule types in frontend/src/types/script.ts. Script types and schedule types are separate domains.
Adding A New Schedule Type
Follow this order.
- Add backend config class
Create a concrete
ConfigBaseplan class inapp/models/config.py. AddConfigItemfields beforesuper().__init__(). ReuseWeeklyPlanConfigonly if the new type has the sameInfo + ALL + weekdaysshape. - Add backend schema
Create the matching Pydantic schema item/info classes in
app/models/schema.py. Extend all four aliases:PlanConfigType,PlanCreateType,PlanConfigData, andPlanComboxConsumer. Keepmodel_config = ConfigDict(extra="forbid")on schedule config models. - Add the consumer constant
Append the new consumer string to
PLAN_CONSUMER_VALUESinapp/utils/constants.py.PLAN_BOOKdoes not hold consumer literals directly; it indexes this tuple (PLAN_CONSUMER_VALUES[0],[1], ...), so a new type has nothing to reference until the tuple grows. This tuple and thePlanComboxConsumerliteral inapp/models/schema.pyare two independent hardcoded lists of the same values with no generated link. Update both, and keep them in the same order — existingPLAN_BOOKentries reference the tuple positionally, so inserting rather than appending silently repoints existing plan types at the wrong consumer. - Register in
PLAN_BOOKAddcreate_type,config_class,schema_class,consumer,script_class, andfield_name. This is the backend source of truth for plan CRUD, deletion reference cleanup, and combobox filtering. - Wire the user consumer
Add or extend the user config field that stores the selected plan ID.
Use type-specific validation or runtime type checks before dereferencing the plan as a concrete class.
When deleting a plan,
field_nameshould be reset only for the bound consumer type. - Add frontend descriptor
Register the type in
frontend/src/utils/planTypeRegistry.ts. Use generated OpenAPI enum values from@/api. PointtableComponentto the type-specific table component. - Add frontend table
Create a dedicated table component under
frontend/src/views/plan/tables/. Keep per-type field logic in the table or a type-specific utility/composable. Do not build a generic field renderer unless multiple real schedule types share the same behavior. - Regenerate OpenAPI client
Never edit generated files under
frontend/src/api/by hand. Ask the developer to run the project API generation command after backend schema changes. Frontend plan types derive from generated OpenAPI (PlanIndexItem.type,PlanCreateIn.type), so the registry cannot see a new type until regeneration runs.
Review Ch
Установить mas-plan-schedule в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mas-plan-schedule?
Use when adding, refactoring, or reviewing AUTO-MAS plan schedule types, including backend PlanConfig registration, plan API/schema contracts, plan combobox consumers, frontend plan type registry, and per-plan table integration.
Как установить скилл mas-plan-schedule?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mas-plan-schedule запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic