/ocean-watch:qc-plan-monitorfrom ocean-watch
Manages 巨量千川 (Qianchuan) advertising operations: OAuth/token setup, F2 Cookie config, account/plan management, product/creator discovery, plan diagnosis, material quality inspection, delivery suggestions, and performance reports. Supports Go/Java plugin development.
Ships in ocean-watch. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Classify the user's outcome once, then use the first matching route. Do not search the repository, inspect plugin cache paths, read memory, or run setup probes before a normal business request. Do not call an equivalent CLI route when this table names an MCP tool.
Every ./run below is documentation shorthand for this skill's launcher. Resolve the absolute directory of the loaded SKILL.md and invoke <skill-directory>/run (macOS/Linux) or <skill-directory>\run.cmd (Windows), quoting the path. This applies to Codex, Claude Code, DeepSeek Harness and Sailry; the conversation's working directory is not the skill directory. Claude Code may also use ${CLAUDE_PLUGIN_ROOT}/skills/qc-plan-monitor/run. Do not search unrelated directories. WorkBuddy uses MCP only.
| User outcome | Exact route |
|---|---|
| List local Marketing or Qianchuan templates | MCP list_templates |
| Show one exact template | MCP get_template |
| List accounts I manage/use | MCP list_managed_accounts |
| Query spend/performance for my managed Qianchuan account set | MCP report_qianchuan_managed_accounts |
| Inspect Qianchuan Token/app/advertiser mapping | MCP get_qianchuan_authorization |
| Search selectable Qianchuan products | MCP search_qianchuan_products |
| List Qianchuan product all-domain plans | MCP list_qianchuan_plans |
| Show one exact plan and optional materials | MCP get_qianchuan_plan |
| Fixed account overall/uni report | MCP report_qianchuan_account |
| All-domain account report | MCP report_qianchuan_uni_account |
| Fixed plan report | MCP report_qianchuan_plans |
| Preflight Douyin works without creating or changing a plan | MCP preflight_qianchuan_works |
| Configure or initialize F2 Douyin Cookie | MCP start_f2_configuration |
| Inspect one exact preflight snapshot | MCP get_qianchuan_preflight |
| Check account balance, daily budget and available plan quota | MCP get_qianchuan_account_health |
| Diagnose one exact plan with its current delivery scene | MCP diagnose_qianchuan_plan |
| Inspect original or inefficient labels of exact materials | MCP inspect_qianchuan_material_quality |
| Get official budget, ROI or bid suggestions without changing delivery | MCP get_qianchuan_delivery_suggestions |
| Discover exact unified report topics, dimensions and metrics | MCP get_qianchuan_report_schema |
| Run a custom material, product, author or room report | MCP report_qianchuan_custom |
| User outcome | Exact route |
|---|---|
| Authorize or recover expired Qianchuan access | MCP start_authorization with channel=qianchuan and the original advertiser if known |
| Retry saved authorization account discovery | MCP start_account_sync with channel=qianchuan and the exact authorization ID |
| Approved official query outside the task routes above | MCP get_qianchuan_official_capabilities with a narrow keyword, then exact query_id; MCP query_qianchuan_official with its approved contract |
| Explicit API-documentation, Schema or SDK-example request | The fixed optional MCP route in references/developer-docs.md |
| Execute a reviewed Qianchuan work preflight | MCP prepare_qianchuan_operation, then the protected confirmation/execution flow in references/operations.md |
| Inspect or recover an exact execution operation | MCP get_operation; unknown results use MCP reconcile_operation before any new preflight |
| Confirmed Ocean Watch goal not matched above | MCP get_capabilities once with channel=qianchuan, then use its unique command |
| Initialize, mutate templates/accounts/plans/materials, explicitly advanced CLI reports, or inspect runs | the unique ./run <domain> <action> route in references/workflow-reference.md |
When a row matches, use that exact logical MCP tool. If its declaration is deferred, use the host's supported tool search/discovery mechanism, targeted at ocean-watch and the exact tool name (including a filtered ALL_TOOLS lookup when that is the host API). Read the returned input Schema and invoke the discovered callable name; do not guess a namespace or arguments. Discovery is not a business query and does not require get_capabilities. If discovery or invocation reports the tool unavailable, report that error and stop without a CLI fallback. Do not call get_capabilities when a preceding row matches.
On REAUTHORIZATION_REQUIRED, preserve the original template, links, advertiser and other arguments, then call MCP start_authorization with the explicit channel. Open the returned authorization_url: awaiting_configuration opens the local App ID/Secret form and continues to official OAuth in the same session; awaiting_callback opens official OAuth directly; account synchronization opens the local confirmation page. Never ask for secrets or suggest terminal commands to complete this MCP flow. Poll MCP get_authorization_session with the returned session ID and same channel; do not claim completion while awaiting the user. Only completed with can_resume=true permits rerunning the original read/preflight with its original arguments, without asking for the same links again. Stop automatic retries on failure, cancellation, expiry or scope mismatch. Use MCP cancel_authorization_session when the user cancels.
For reauthorization, include the exact existing authorization_id supplied by the error or the local authorization inspector. Core verifies the official user UID and App before updating that grant, saves the credential before role-based discovery, and retains a saved grant for account synchronization if discovery fails.
On ACCOUNT_SYNC_REQUIRED, obtain the exact pending authorization ID from the local authorization inspector and call MCP start_account_sync; if a session has sync_required=true, use its returned authorization ID. Keep the original advertiser. Present the browser confirmation page and poll the same way; do not repeat OAuth for a saved grant. These tools manage authorization only and never authorize a plan submission.
“配置 F2 / 初始化 F2 / 设置 F2 / 更新或重新配置抖音 Cookie” calls start_f2_configuration with {}. Open or present its configuration_url; the user enters Cookie only in that local page. Never collect Cookie in chat, tool arguments, environment commands or files. Poll get_f2_configuration_session with its session_id; completed plus credential_saved=true and can_resume=true permits retrying the original links/arguments. If the session is not found after a Runtime restart or host switch, inspect error.details.configuration_status: configured=true permits retrying the original request without reopening configuration. Never infer a failed save from a missing session. These checks verify system-vault storage, not live Cookie validity (online_verified=false). Stop on failed/cancelled/expired; use cancel_f2_configuration_session on user cancellation. F2_CONFIGURATION_REQUIRED and per-row f2_cookie_missing/f2_cookie_invalid/f2_credential_unavailable use the same configuration flow. Do not treat a bare HTTP 403 as proof that Cookie is the only cause. F2 Cookie is independent of advertiser OAuth; configure it once for the current OS user, not once per advertiser.
This Skill owns only qianchuan. Route Star Map requests to $xt-plan-monitor. Never reuse Marketing or Star Map apps, credentials, templates, account mappings, endpoints, or creation transactions.
Interpret “我负责的/常用的/管理的户” and contextual paraphrases as responsible-account intent. Membership means list_managed_accounts; spend, ROI, GMV, orders, or dated performance requires a fresh report.
“这个户余额/日预算/还能建几条” uses get_qianchuan_account_health; “我负责的户” selects managed_accounts=true only when that is the user's intended set. Balance, budget and quota failures remain separate. OFFICIAL_API_ERROR or an absent value does not prove the account is healthy.
“这条计划为什么不跑/审核/学习期/成本保障” uses diagnose_qianchuan_plan with the exact plan ID. Keep the verified uni, overall or legacy scene and skipped checks; legacy-only endpoints cannot describe all-domain learning status.
“首发/低效/素材质量” uses inspect_qianchuan_material_quality with exact material IDs, or structured works[] containing url, product and creator hints. A Douyin work ID, creator UID, video ID and material ID are distinct. Labels do not prove ownership or create-plan eligibility.
“官方建议预算/ROI/出价” uses get_qianchuan_delivery_suggestions with its explicit scene and kind. Suggestions preserve the official object and observation time and do not authorize a modification. Use references/official-queries.md only for missing task parameters or a long-tail official query.
For template creation use ./run templates create --input-json with references/template-create.md. Ask only for returned missing_fields/choices: generic requests must select the channel and Qianchuan product or live; never infer these from active state or use the terminal wizard.
“预检/校验这些作品创建计划” without explicit write permission is read-only preflight_qianchuan_works, even when rows include plan type or business owner. Never replace it with CLI batch creation or submission.
ok=true and a preflight_id alone do not mean a group passed. Check each group's status, counts, failed_results, skipped, and query_failures; only would_create, would_append, or already_present describe a completed group preflight. Report failed or pending groups explicitly. Resolve this batch's F2 metadata before using warm owner hints; neither cached nor supplied identity hints skip the current public lookup or official authorization, ownership, and product checks. Plan naming can use the nickname returned by the current official creator check when no row nickname was supplied.
For mixed-product or mixed-advertiser work links, use the same MCP preflight with all structured items[] and omit a global plan_template unless the user actually selected one template for the whole batch. Preserve each row's explicit product_id or exact configured product_name, plan_template, and advertiser_id when supplied. Core resolves a unique active product template and splits advertiser/template batches; never pick the first account or send all links under one template. Rows without explicit routing use public product hints; missing, multiple-product, unmatched, or ambiguous rows stay in pending for only the missing choice.
If F2 cannot provide an identity, accept a user-supplied exact creator_douyin_id and a naming-only creator_name on that row; creator_uid is optional. Core must recover a unique numeric UID through an exact official visible-ID match, then still verify authorization, work ownership, and product. Nicknames never identify or authorize a creator. Do not explain an unknown F2 failure as a proven login or anti-bot block.
For ordinary 全域/乘方 custom material, product, room, author, title, or creative reports, use get_qianchuan_report_schema when the exact topic/dimensions/metrics are unknown, then report_qianchuan_custom for that advertiser. Responsible-account fixed spend/ROI uses report_qianchuan_managed_accounts. Preserve dates, the selected topic and partial failures.
For another approved official query, discover only its narrow catalog entry. enabled=true means local policy and contract allow a call; current OAuth availability remains unverified until the scoped query succeeds. Reuse a contract already established in this conversation. Do not invent an upstream tool, URL, credential, subject relationship or optional parameter.
If one required identifier or business choice is genuinely missing, ask only for that item. Do not enumerate or scan unrelated creators/accounts.
operation_id, version and snapshot_digest, show the returned summary, then call request_operation_confirmation. Only a successful protected user decision returns approval_id; pass those exact references to execute_operation. Never manufacture approval or reuse a different version. If that flow is unavailable, do not silently substitute a legacy write; explain the blocker and use a legacy CLI route only when the user explicitly requests that route and separately confirms its exact dry-run preview. Preview runtimes reject legacy online writes. Missing Broker or tools means the trusted Operation flow is unavailable.For every work-link preflight or submitted batch result, when presentation.required=true, output presentation.rendered_markdown verbatim. Preserve exactly 计划ID|达人昵称|商品ID|素材ID|素材标题 in that order. Show skipped, query failures, and failed results after the table; never replace it with an operational summary table. A preflight_id identifies the preview; trusted execution requires a separately prepared immutable operation and protected confirmation before expiry.
When routed=true, label each batches[] entry with its advertiser and template, then apply that same contract to batches[].preflight.presentation. Show pending and child failures after the tables. There is no cross-account submit ID: preserve every successful child's own preflight_id and expiry. On a child authorization failure, use batches[].failure.error for recovery and retry only that child's original rows; do not rerun successful children or submit them again. CLI diagnostic results use batches[].result for the same child data.
Read references/workflow-reference.md only after the route is known and only for setup/OAuth, template lifecycle, creator discovery, batch submission, material removal, plan settings, explicitly advanced CLI reports, runs, or advanced output rules. Read references/unified-report-routing.md for custom reporting, references/official-queries.md for official task parameters and catalog queries, or references/developer-docs.md for an explicit optional documentation request. Direct task MCP calls with known arguments do not require the full manual.
overall includes 乘方; uni is 全域), channel, advertiser, partial failures, and true source.columns[].unit, decimal-string cells, nulls, observed_at and completeness. Raw units such as 1/100000 CNY must not be presented as yuan without an exact decimal conversion. A partial slice cannot prove absence, a complete inventory or an account-wide total. Continue only with the returned bound cursor and the unchanged parameters; contract_limited queries may expose only the first upstream batch.--out is explicit. Do not expose configuration paths, source links in stored snapshots, raw F2/official responses, credentials, or internal errors.agents/openai.yaml (opens in a new tab)assets/qianchuan-live-plan.example.json (opens in a new tab)assets/qianchuan-product-plan.example.json (opens in a new tab)references/developer-docs.md (opens in a new tab)references/official-api-notes.md (opens in a new tab)references/official-queries.md (opens in a new tab)references/operations.md (opens in a new tab)references/template-create.md (opens in a new tab)references/unified-report-routing.md (opens in a new tab)references/workflow-reference.md (opens in a new tab)run (opens in a new tab)run.cmd (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
qianchuan, douyin-ads, ad-management, campaign-automation, ad-diagnosis
npx claudepluginhub westng/ocean-watch --plugin ocean-watch3 skills in this plugin
/ads-plan-monitorDedicated 巨量营销 skill for first-run setup, local OAuth, current authorized-user advertiser freshness, responsible or commonly managed accounts, advertiser-bound templates, uploaded or creator materials, plan creation/update previews, performance reports, run history, and evidence-based strategy. Use for 巨量营销初始化、授权或刷新 Token、同步新增或移除的广告主、常用账户、模板、素材、计划、消耗/ROI/GMV 报表和投放策略 through official APIs, including colloquial, abbreviated, misspelled, or contextual follow-ups./xt-plan-monitorDedicated 巨量星图 skill for local OAuth, authorization recovery, authorized-account synchronization, managed Star Map accounts, and local app/token/account mappings through the shared Ocean Watch framework. Use for 星图初始化、授权、重新授权、同步账号、常用或负责账号及授权状态, including contextual follow-ups. Star Map plan, material, and performance-report APIs are not integrated yet.Other plugins' skills for the same job