从固定点(commit、branch、tag 或 merge-base)开始,沿两条轴线审查变更——规范(代码是否遵循仓库文档化的编码规范?)和规格(代码是否与原始 issue/PRD 的要求一致?)。两条审查线在并行子 agent 中运行,并以并排方式报告结果。当用户想审查一个分支、PR、进行中的变更,或要求"从 X 开始审查"时使用。
中文简介正在准备中。当前显示原文说明。
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.
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
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.
Backend has one shared multi-config collection and one lightweight registration table.
app/models/schema.py
Defines API-facing schedule schemas and shared aliases:
WeeklyPlanConfig, PlanConfigType, PlanCreateType, PlanConfigData, PlanComboxConsumer.app/models/config.py
Defines concrete ConfigBase schedule classes such as MaaPlanConfig and MaaEndPlanConfig.
Registers them in PLAN_BOOK.app/core/config.py
Uses PLAN_BOOK to create plans, delete referenced plans, filter combobox options by consumer, and wire GlobalConfig.PlanConfig.app/api/plan.py
Uses schema models plus PLAN_BOOK for plan CRUD serialization.app/api/info.py
Exposes consumer-specific plan combobox routes through PlanComboxIn.consumer.Frontend has one runtime descriptor registry and separate table implementations.
frontend/src/utils/planTypeRegistry.ts
Owns runtime plan descriptors: config type, create type, label, default name, selector tag, reload behavior, and table component.frontend/src/views/plan/index.vue
Orchestrates plan list state, current plan selection, CRUD calls, name editing, and table dispatch.frontend/src/views/plan/tables/*.vue
Owns concrete table UI and per-type field behavior.frontend/src/composables/usePlanApi.ts
Wraps plan API calls. Do not duplicate generated OpenAPI models here.frontend/src/utils/planNameUtils.ts
Reads the registry for labels/default names.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.
Follow this order.
ConfigBase plan class in app/models/config.py.
Add ConfigItem fields before super().__init__().
Reuse WeeklyPlanConfig only if the new type has the same Info + ALL + weekdays shape.app/models/schema.py.
Extend all four aliases: PlanConfigType, PlanCreateType, PlanConfigData, and PlanComboxConsumer.
Keep model_config = ConfigDict(extra="forbid") on schedule config models.PLAN_CONSUMER_VALUES in app/utils/constants.py.
PLAN_BOOK does 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 the PlanComboxConsumer literal in app/models/schema.py are two independent hardcoded lists of the same values with no generated link. Update both, and keep them in the same order — existing PLAN_BOOK entries reference the tuple positionally, so inserting rather than appending silently repoints existing plan types at the wrong consumer.PLAN_BOOK
Add create_type, config_class, schema_class, consumer, script_class, and field_name.
This is the backend source of truth for plan CRUD, deletion reference cleanup, and combobox filtering.field_name should be reset only for the bound consumer type.frontend/src/utils/planTypeRegistry.ts.
Use generated OpenAPI enum values from @/api.
Point tableComponent to the type-specific table component.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.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.Use this checklist for plan schedule PRs.
PLAN_BOOK is the only backend registration source for supported plan config classes.PlanConfigType, PlanCreateType, PlanConfigData, and PlanComboxConsumer match registered backend types.PLAN_CONSUMER_VALUES in app/utils/constants.py and the PlanComboxConsumer literal agree in both content and order, and existing PLAN_BOOK positional indexes still point at their original consumers.MaaPlan.planTypeRegistry.ts.script.ts or generated OpenAPI files.GeneralPlan, CustomPlan, or placeholder mappings without a complete backend, frontend, and user consumption path.还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
从固定点(commit、branch、tag 或 merge-base)开始,沿两条轴线审查变更——规范(代码是否遵循仓库文档化的编码规范?)和规格(代码是否与原始 issue/PRD 的要求一致?)。两条审查线在并行子 agent 中运行,并以并排方式报告结果。当用户想审查一个分支、PR、进行中的变更,或要求"从 X 开始审查"时使用。
中文简介正在准备中。当前显示原文说明。
一场无休止的盘问,用来打磨你的计划或设计。
中文简介正在准备中。当前显示原文说明。
对用户的计划、决策或想法进行层层盘问。当用户想要压力测试自己的思考,或使用任何 'grill' 触发短语时使用。
中文简介正在准备中。当前显示原文说明。
Define backend API contract standards for FastAPI services. Use when adding or refactoring HTTP/WebSocket endpoints in app/api, designing request/response schemas in app/models/schema.py, standardizing status/error contracts, and maintaining backward compatibility for clients.
中文简介正在准备中。当前显示原文说明。
Use when an AUTO-MAS PR is red in CI, when reproducing a dev-PR gate locally before pushing, when a workflow needs a skip-changelog or changelog-maintenance label, or when editing .github/workflows, .github/actions, scripts/changelog.py or scripts/check_reverts.py. Covers every gate that runs on a PR to dev and the exact local command for each.
中文简介正在准备中。当前显示原文说明。
Use when implementing, fixing, refactoring, or reviewing non-generated AUTO-MAS code, or when preparing code-style guidance, comments, docstrings, version notes, or Conventional Commit wording. Skip read-only diagnosis, explanation, exploration, and planning unless code conventions are requested.
中文简介正在准备中。当前显示原文说明。