公司规范只约束代码内容,门禁仍按插件执行;MCP token 不入库。 Co-authored-by: Cursor <cursoragent@cursor.com>
1.7 KiB
1.7 KiB
name, description
| name | description |
|---|---|
| marionettist-context | Generate or update the current task context pack |
Use context-pack-builder.
Use marionettist-planner first if the current slice, validation commands, or stop conditions are not clear enough.
Requirement source: $1
Implementation source: $2
Current slice: $3
Output:
.task/<task-id>/context-pack.md, where <task-id> is read from .task/active.json.
Requirements:
- When
marionettist.config.yamlexists, readmarionettist.languageearly and use it for Marionettist user-facing communication only; supportenandzh-CN, fall back toenwhen absent or unknown unless a higher-priority local safety instruction for that Marionettist interaction explicitly requires another language, and preserve identifiers, file paths, YAML keys, command names, and quoted user text. - Keep the context pack compact.
- Include only what is needed for the current coding slice.
- Include visible gate policy state when available: config
defaultMode, recommended policy, selected policy, effective policy, andfinalApprovalRequired. - If task-local override is allowed and
selectedis still missing at a decision point, surface the available choicesstrict,balanced, andautonomousinstead of silently defaulting when the task still needs an explicit selection. - State allowed modification scope.
- State forbidden modification scope.
- State validation commands.
- State stop conditions.
- Do not code.
- If
.task/active.jsonis missing, do not guess a task path; ask the user to start or select a task first. - If legacy
.task/context-pack.mdexists, use it only as migration fallback and recommend moving context into the active task directory.