AI 用法手册English

端到端流水线:App 商店文案——从事实清单到双语文案,再到后台更新

状态
已发布
规格版本
0.1.0
设计成熟度
draft
更新时间
2026-11-23
来源提交
51a5939868
对应配方
端到端流水线:App 商店文案——从事实清单到双语文案,再到后台更新

导出到你的 Agent

路径: e2e-store-listing-localization-pipeline-spec/SKILL.md

预览
---
name: e2e-store-listing-localization-pipeline-spec
description: "端到端流水线:App 商店文案——从事实清单到双语文案,再到后台更新的流水线设计规格(不可执行)。用户要按此设计搭建或评审流水线时使用。"
metadata:
  kind: "pipeline-design"
  status: "published"
  version: "0.1.0"
  source-commit: "5f7272be13826bec473d6f2e073c82a5a620f1d2"
---

# 端到端流水线:App 商店文案——从事实清单到双语文案,再到后台更新 — 流水线设计

- execution: prohibited
- 发布状态: published
- 规格版本: 0.1.0
- 设计成熟度: draft
- 来源提交: 5f7272be13826bec473d6f2e073c82a5a620f1d2

> 设计稿,未经运行验证,不可直接执行。仅在用户要求时参照;任何花钱、外发、合并发布或删除都要先问人。

## 目标

For a solo app developer: produce accurate, within-limit English (and optional Simplified Chinese) store text without inventing features.

## 阶段

- id: intake_factsheet; kind: human; purpose: Owner lists the app, target languages, fields to change and the verified feature list (what the shipped build really does); gate: g_facts
- id: backup_current; kind: code; purpose: Copy the current live text of every field to be changed into a dated file; depends_on: intake_factsheet; gate: g_backup
- id: draft_copy; kind: model; purpose: Draft name, subtitle, keywords, promo text, description per language from the fact sheet only; depends_on: backup_current; model: writer-class model (example: claude-sonnet-5-5; Anthropic region restriction - not supported in mainland China/Hong Kong/Macau since 2026-11-12, verified 2026-11-23; domestic alternatives: Kimi/GLM/Qwen/DeepSeek); gate: g_limits
- id: limit_check; kind: code; purpose: Count characters and UTF-8 bytes per field; check keyword rules; check no CJK in the English field and vice versa; depends_on: draft_copy; gate: g_limits
- id: claim_review; kind: model; purpose: Reviewer maps every claim in the copy to a line of the fact sheet; flags invented or not-yet-shipped features; depends_on: limit_check; model: a different model family than the writer, read-only (example: Codex CLI); gate: g_claims
- id: human_review; kind: human; purpose: Owner reads both languages (Chinese by a native reader), checks screenshots plan, approves; depends_on: claim_review; gate: g_human
- id: console_update; kind: human; purpose: Owner pastes approved text into the store console: promo text can go live alone; other fields ride on the next version; reopen and verify; never submit for review in this run; depends_on: human_review; gate: g_readback

## 闸门

- id: g_facts; type: human; check: fact sheet marks each feature shipped / not shipped; pass_condition: no unmarked feature; on_fail: block_and_review
- id: g_backup; type: deterministic; check: old text saved for every field to change; pass_condition: one file per field and language exists; on_fail: block_and_review
- id: g_limits; type: deterministic; check: name<=30, subtitle<=30, promo<=170, description<=4000 characters; keywords <=100 UTF-8 bytes, comma-separated, each longer than 2 characters; no CJK in English fields; pass_condition: all counts within limits (limits re-checked against Apple pages on the run date); on_fail: block_and_review
- id: g_claims; type: reviewer; check: every claim maps to a shipped-feature line; pass_condition: 0 unsupported claims; on_fail: block_and_review
- id: g_human; type: human; check: owner and a native reader approve; pass_condition: approval note per language; on_fail: block_and_review
- id: g_readback; type: human; check: reopen the console field and the public page; pass_condition: text matches approved copy; delay noted if public page lags; on_fail: block_and_review

## 人审点

- before_stage: draft_copy; action: paid or external model call for this stage (writer, reviewer or fallback); bound to endpoint, payload class and a spend cap derived from budget.per_run; a different provider or model needs a new approval; approver: owner
- before_stage: claim_review; action: paid or external model call for this stage (writer, reviewer or fallback); bound to endpoint, payload class and a spend cap derived from budget.per_run; a different provider or model needs a new approval; approver: owner
- before_stage: console_update; action: paste approved text into live store console fields (promo text); approver: owner (account holder/admin)

## 禁止事项

- Claude (Anthropic) region restriction / Claude 地区限制 - Anthropic does not support mainland China / Hong Kong / Macau since 2026-11-12 (不支持中国大陆、香港、澳门), verified 2026-11-23, see https://www.anthropic.com/legal/supported-regions
- 无凭据、私有数据或真实发送地址 / No credentials, private data or actual sending addresses
- 未获人审不得花钱、外发、合并发布或删除 / No spending, external sends, merge/release or deletion without human review
- No claim about a feature that is not shipped in the build under review
- Do not paste Chinese into the English field to fill space

## 预算

- per_run: 1
- per_month: 5
- max_tokens_per_run: 60000
- max_wall_seconds_per_run: 7200
- on_exceed: pause_and_notify

## 完整规格 (YAML)

```yaml
# 填好的流水线规格(设计文档,不可运行)/ Filled pipeline spec (design only, not executable).
# 模板 / template: ../templates/pipeline.yaml  ·  配方 / recipe: ../../recipes/content-creation/e2e-store-listing-localization-pipeline.md
# 所有数值为估算或合成。/ All numbers are estimates or synthetic.
schema_version: 0.1.0
document_kind: pipeline_design
execution: prohibited
status: draft
pipeline: 'Store listing copy: fact sheet -> localized copy -> limits and claims check -> console update'
owner: solo developer
version: 0.1.0
goal: 'For a solo app developer: produce accurate, within-limit English (and optional Simplified Chinese) store
  text without inventing features.'
audience:
- creators
- developers
trigger:
  kind: manual
  description: Owner starts before a release or when downloads data suggests a language change
  timezone: null
runs_per_month: 3
inputs:
- id: in_brief
  source: owner fact sheet
  format: text/markdown
  schema_ref: feature list with shipped/not-shipped marks
  examples:
  - 3 shipped iOS apps, ASO checklist of 2026-11-23 (internal, redacted)
- id: in_current_listing
  source: owner pastes the current live store text
  format: text/plain
  schema_ref: one field per file, per language
  examples:
  - synthetic placeholder text only in this repo
output:
  format: text tables per language
  schema_ref: field | text | chars | UTF-8 bytes
  destination: store console (manual paste)
  acceptance:
  - g_facts
  - g_backup
  - g_limits
  - g_claims
  - g_human
  - g_readback
pattern: workflow:chain
pattern_reason: Fixed order, small text; the risky parts (limits, invented features) are code checks and one reviewer,
  so no agent loop is needed.
stages:
- id: intake_factsheet
  kind: human
  purpose: Owner lists the app, target languages, fields to change and the verified feature list (what the shipped
    build really does)
  depends_on: []
  input_refs:
  - in_brief
  input_format: bullet fact sheet; each feature marked shipped / not shipped
  output_format: fact_sheet.md
  model: null
  tool_ref: null
  fallback:
    models: []
    when: not a model stage
    on_exhausted: pause_for_human
    recheck_gates: true
  est_tokens:
    in: null
    out: null
  cacheable_prefix: null
  batchable: null
  gate:
  - g_facts
  side_effects:
  - none
  cost: {}
- id: backup_current
  kind: code
  purpose: Copy the current live text of every field to be changed into a dated file
  depends_on:
  - intake_factsheet
  input_refs:
  - intake_factsheet
  - in_current_listing
  input_format: text pasted by owner from the store console
  output_format: old_<field>_<lang>.txt
  model: null
  tool_ref: shell/editor
  fallback:
    models: []
    when: not a model stage
    on_exhausted: pause_for_human
    recheck_gates: true
  est_tokens:
    in: null
    out: null
  cacheable_prefix: null
  batchable: null
  gate:
  - g_backup
  side_effects:
  - writes local files
  cost: {}
- id: draft_copy
  kind: model
  purpose: Draft name, subtitle, keywords, promo text, description per language from the fact sheet only
  depends_on:
  - backup_current
  input_refs:
  - intake_factsheet
  input_format: fact sheet + field limits + competitor-free brief
  output_format: 'one table per language: field | text'
  model: 'writer-class model (example: claude-sonnet-5-5; Anthropic region restriction - not supported in mainland China/Hong Kong/Macau since 2026-11-12, verified 2026-11-23; domestic
    alternatives: Kimi/GLM/Qwen/DeepSeek)'
  tool_ref: null
  fallback:
    models:
    - Kimi / GLM / Qwen / DeepSeek (any, untested)
    when: quota or region
    on_exhausted: pause_for_human
    recheck_gates: true
  est_tokens:
    in: 12000
    out: 4000
  cacheable_prefix: field limits + style rules
  batchable: false
  gate:
  - g_limits
  side_effects:
  - none
  cost:
    expected_calls_per_run: 1
    in_price_per_mtok: 2.0
    out_price_per_mtok: 10.0
    price_source_url: https://platform.claude.com/docs/en/about-claude/pricing
    price_checked_on: null
    cacheable_prefix_tokens: 4000
    cache_hit_rate: 0.5
    cache_read_multiplier: 0.1
    cache_write_tokens: null
    cache_write_price: null
    batch_adopted: false
    batch_factor: 1
    off_peak_eligible: null
    off_peak_adopted: false
    off_peak_factor: 1
    discount_source: null
    retry_rate: 0.3
    included_in_existing_plan: true
- id: limit_check
  kind: code
  purpose: Count characters and UTF-8 bytes per field; check keyword rules; check no CJK in the English field and
    vice versa
  depends_on:
  - draft_copy
  input_refs:
  - draft_copy
  input_format: draft tables
  output_format: pass/fail list with counts
  model: null
  tool_ref: python3 stdlib script (to be written; not in this repo)
  fallback:
    models: []
    when: not a model stage
    on_exhausted: pause_for_human
    recheck_gates: true
  est_tokens:
    in: null
    out: null
  cacheable_prefix: null
  batchable: null
  gate:
  - g_limits
  side_effects:
  - none
  cost: {}
- id: claim_review
  kind: model
  purpose: Reviewer maps every claim in the copy to a line of the fact sheet; flags invented or not-yet-shipped
    features
  depends_on:
  - limit_check
  input_refs:
  - draft_copy
  - intake_factsheet
  input_format: draft + fact sheet
  output_format: claim -> fact line table, verdict
  model: 'a different model family than the writer, read-only (example: Codex CLI)'
  tool_ref: null
  fallback:
    models:
    - another independent model session
    when: reviewer unavailable
    on_exhausted: pause_for_human
    recheck_gates: true
  est_tokens:
    in: 10000
    out: 2000
  cacheable_prefix: fact sheet
  batchable: false
  gate:
  - g_claims
  side_effects:
  - none (read-only)
  cost:
    expected_calls_per_run: 1
    in_price_per_mtok: 2.0
    out_price_per_mtok: 10.0
    price_source_url: https://platform.claude.com/docs/en/about-claude/pricing
    price_checked_on: null
    cacheable_prefix_tokens: 4000
    cache_hit_rate: 0.5
    cache_read_multiplier: 0.1
    cache_write_tokens: null
    cache_write_price: null
    batch_adopted: false
    batch_factor: 1
    off_peak_eligible: null
    off_peak_adopted: false
    off_peak_factor: 1
    discount_source: null
    retry_rate: 0.3
    included_in_existing_plan: true
- id: human_review
  kind: human
  purpose: Owner reads both languages (Chinese by a native reader), checks screenshots plan, approves
  depends_on:
  - claim_review
  input_refs:
  - draft_copy
  - claim_review
  input_format: copy (draft_copy) + verdict (claim_review)
  output_format: approved copy file
  model: null
  tool_ref: null
  fallback:
    models: []
    when: not a model stage
    on_exhausted: pause_for_human
    recheck_gates: true
  est_tokens:
    in: null
    out: null
  cacheable_prefix: null
  batchable: null
  gate:
  - g_human
  side_effects:
  - none
  cost: {}
- id: console_update
  kind: human
  purpose: 'Owner pastes approved text into the store console: promo text can go live alone; other fields ride on
    the next version; reopen and verify; never submit for review in this run'
  depends_on:
  - human_review
  input_refs:
  - human_review
  input_format: approved copy
  output_format: console updated + read-back note
  model: null
  tool_ref: null
  fallback:
    models: []
    when: not a model stage
    on_exhausted: pause_for_human
    recheck_gates: true
  est_tokens:
    in: null
    out: null
  cacheable_prefix: null
  batchable: null
  gate:
  - g_readback
  side_effects:
  - live store page text changes (promo text only)
  cost: {}
scope:
  in_scope:
  - name, subtitle, keywords, promo text, description, screenshot caption wording
  out_of_scope:
  - uploading screenshots
  - submitting a version for review
  - ads and keyword-volume tools
  - claims about features not in the shipped build
prohibitions:
- Claude (Anthropic) region restriction / Claude 地区限制 - Anthropic does not support mainland China / Hong Kong / Macau since 2026-11-12 (不支持中国大陆、香港、澳门), verified 2026-11-23, see https://www.anthropic.com/legal/supported-regions
- 无凭据、私有数据或真实发送地址 / No credentials, private data or actual sending addresses
- 未获人审不得花钱、外发、合并发布或删除 / No spending, external sends, merge/release or deletion without human review
- No claim about a feature that is not shipped in the build under review
- Do not paste Chinese into the English field to fill space
irreversible_action_policy:
  default: require_human_approval
  on_missing_or_denied: block
  approval_scope: exact_action_and_payload
human_checkpoints:
- before_stage: draft_copy
  action: 'paid or external model call for this stage (writer, reviewer or fallback); bound to endpoint, payload class and a spend cap derived from budget.per_run; a different provider or model needs a new approval'
  approver: owner
  approval_record_ref: future owner approval note (redacted label) naming endpoint, payload class and spend cap; settings alone are not approval
- before_stage: claim_review
  action: 'paid or external model call for this stage (writer, reviewer or fallback); bound to endpoint, payload class and a spend cap derived from budget.per_run; a different provider or model needs a new approval'
  approver: owner
  approval_record_ref: future owner approval note (redacted label) naming endpoint, payload class and spend cap; settings alone are not approval
- before_stage: console_update
  action: paste approved text into live store console fields (promo text)
  approver: owner (account holder/admin)
  approval_record_ref: owner approval of the exact copy recorded in human_review (read-back note with date is completion evidence, not approval)
gates:
- id: g_facts
  type: human
  check: fact sheet marks each feature shipped / not shipped
  pass_condition: no unmarked feature
  evidence_ref: fact_sheet.md
  reviewer_model: null
  on_fail: block_and_review
- id: g_backup
  type: deterministic
  check: old text saved for every field to change
  pass_condition: one file per field and language exists
  evidence_ref: backup folder listing
  reviewer_model: null
  on_fail: block_and_review
- id: g_limits
  type: deterministic
  check: name<=30, subtitle<=30, promo<=170, description<=4000 characters; keywords <=100 UTF-8 bytes, comma-separated,
    each longer than 2 characters; no CJK in English fields
  pass_condition: all counts within limits (limits re-checked against Apple pages on the run date)
  evidence_ref: count table
  reviewer_model: null
  on_fail: block_and_review
- id: g_claims
  type: reviewer
  check: every claim maps to a shipped-feature line
  pass_condition: 0 unsupported claims
  evidence_ref: claim map
  reviewer_model: 'a different model family than the writer, read-only (example: Codex CLI)'
  on_fail: block_and_review
- id: g_human
  type: human
  check: owner and a native reader approve
  pass_condition: approval note per language
  evidence_ref: approved copy
  reviewer_model: null
  on_fail: block_and_review
- id: g_readback
  type: human
  check: reopen the console field and the public page
  pass_condition: text matches approved copy; delay noted if public page lags
  evidence_ref: read-back note
  reviewer_model: null
  on_fail: block_and_review
reliability:
  retries: 1
  retryable_errors:
  - model timeout
  non_retryable_errors:
  - limit exceeded after 2 revision tries (human edits instead)
  - unsupported claim
  backoff:
    strategy: exponential
    initial_seconds: 30
    max_seconds: 300
    respect_retry_after: true
  timeout_seconds: 1800
  max_agent_turns: null
  idempotency_key: app + language + field + fact-sheet hash
  deduplication: old text files are never overwritten; new files carry the run date
  checkpoint_resume: each stage writes a file; resume from the last file
  on_final_failure: stop_and_notify_human
  notify:
    events:
    - completed
    - failed
    - budget_exceeded
    - approval_required
    mechanism: manual_record
    recipient_role: owner
observability:
  trace: files per stage in a dated folder
  log_tokens_and_cost: true
  fields:
  - run_id
  - pipeline_version
  - stage_id
  - model_revision
  - prompt_skill_versions
  - token_usage
  - cost_currency_basis
  - latency_seconds
  - retry_count
  - gate_results
  - approval_ref
  - failure_class
  redaction: no account IDs or private URLs in published samples
  retention_days: 180
  review_cadence: owner, each run
budget:
  per_run: 1
  per_month: 5
  max_tokens_per_run: 60000
  max_wall_seconds_per_run: 7200
  on_exceed: pause_and_notify
eval:
  golden_set: listing-copy-gold-v0 (6 cases, 2026-11-23)
  min_pass_rate: 1.0
  run_on:
  - prompt_change
  - model_change
  - skill_change
  - weekly
  pass_k: null
  result_ref: null
versioning:
  prompts: null
  skills: null
  implementation_ref: null
cost_roi:
  currency: USD
  calculation_scope: api_rough_estimate
  human_min_per_run: 120
  review_min_per_run: 25
  hourly_rate: 40
  build_hours: 6
  debug_token_cost: 3
  maintenance_h_per_month: 0.5
  cost_of_bad_output: 'low-medium: a rejected or misleading listing delays a release; wrong claims risk review rejection'
  subscription_roi_method: undecided
  evidence:
  - field: runs_per_month
    basis: estimated
    source: 3 apps in one pass on 2026-11-23; cadence guess
    checked_on: '2026-11-23'
    sample_size: null
  - field: human_min_per_run
    basis: estimated
    source: baseline NOT measured
    checked_on: '2026-11-23'
    sample_size: null
  - field: review_min_per_run
    basis: estimated
    source: NOT timed
    checked_on: '2026-11-23'
    sample_size: null
  - field: hourly_rate
    basis: synthetic
    source: placeholder
    checked_on: '2026-11-23'
    sample_size: null
  - field: stages[*].est_tokens
    basis: estimated
    source: order of magnitude
    checked_on: '2026-11-23'
    sample_size: null
  - field: stages[*].cost.{in,out}_price_per_mtok
    basis: estimated
    source: secondary aggregators 2026-11-23; official page not verified
    checked_on: '2026-11-23'
    sample_size: null
  - field: stages[*].cost.{expected_calls_per_run,retry_rate,cacheable_prefix_tokens,cache_hit_rate,cache_read_multiplier}
    basis: synthetic
    source: design assumptions; no usage logs, cache hit rate and retries NOT measured
    checked_on: '2026-11-23'
    sample_size: null
  - field: stages[*].cost.price_checked_on
    basis: estimated
    source: left null on purpose - prices came from secondary aggregators, official page not verified; verify and date before reuse
    checked_on: '2026-11-23'
    sample_size: null
  - field: stages[claim_review].cost.{in,out}_price_per_mtok
    basis: synthetic
    source: the Claude list price is used only as an API-price PROXY for the read-only reviewer (example Codex CLI is on a subscription, price not looked up); replace with the real provider price
    checked_on: '2026-11-23'
    sample_size: null
  results:
    cost_per_run: 0.13
    monthly_cost: 0.4
    monthly_net_benefit: 170
    initial_cost: 243
    break_even_months: 1.4
    calculation_note: ESTIMATE ONLY. API cost is negligible (well under 1 USD per run); the result is dominated
      by unmeasured human time. Not worth building for a single app and a single update.
```

规格原文

# 填好的流水线规格(设计文档,不可运行)/ Filled pipeline spec (design only, not executable).
# 模板 / template: ../templates/pipeline.yaml  ·  配方 / recipe: ../../recipes/content-creation/e2e-store-listing-localization-pipeline.md
# 所有数值为估算或合成。/ All numbers are estimates or synthetic.
schema_version: 0.1.0
document_kind: pipeline_design
execution: prohibited
status: draft
pipeline: 'Store listing copy: fact sheet -> localized copy -> limits and claims check -> console update'
owner: solo developer
version: 0.1.0
goal: 'For a solo app developer: produce accurate, within-limit English (and optional Simplified Chinese) store
  text without inventing features.'
audience:
- creators
- developers
trigger:
  kind: manual
  description: Owner starts before a release or when downloads data suggests a language change
  timezone: null
runs_per_month: 3
inputs:
- id: in_brief
  source: owner fact sheet
  format: text/markdown
  schema_ref: feature list with shipped/not-shipped marks
  examples:
  - 3 shipped iOS apps, ASO checklist of 2026-11-23 (internal, redacted)
- id: in_current_listing
  source: owner pastes the current live store text
  format: text/plain
  schema_ref: one field per file, per language
  examples:
  - synthetic placeholder text only in this repo
output:
  format: text tables per language
  schema_ref: field | text | chars | UTF-8 bytes
  destination: store console (manual paste)
  acceptance:
  - g_facts
  - g_backup
  - g_limits
  - g_claims
  - g_human
  - g_readback
pattern: workflow:chain
pattern_reason: Fixed order, small text; the risky parts (limits, invented features) are code checks and one reviewer,
  so no agent loop is needed.
stages:
- id: intake_factsheet
  kind: human
  purpose: Owner lists the app, target languages, fields to change and the verified feature list (what the shipped
    build really does)
  depends_on: []
  input_refs:
  - in_brief
  input_format: bullet fact sheet; each feature marked shipped / not shipped
  output_format: fact_sheet.md
  model: null
  tool_ref: null
  fallback:
    models: []
    when: not a model stage
    on_exhausted: pause_for_human
    recheck_gates: true
  est_tokens:
    in: null
    out: null
  cacheable_prefix: null
  batchable: null
  gate:
  - g_facts
  side_effects:
  - none
  cost: {}
- id: backup_current
  kind: code
  purpose: Copy the current live text of every field to be changed into a dated file
  depends_on:
  - intake_factsheet
  input_refs:
  - intake_factsheet
  - in_current_listing
  input_format: text pasted by owner from the store console
  output_format: old_<field>_<lang>.txt
  model: null
  tool_ref: shell/editor
  fallback:
    models: []
    when: not a model stage
    on_exhausted: pause_for_human
    recheck_gates: true
  est_tokens:
    in: null
    out: null
  cacheable_prefix: null
  batchable: null
  gate:
  - g_backup
  side_effects:
  - writes local files
  cost: {}
- id: draft_copy
  kind: model
  purpose: Draft name, subtitle, keywords, promo text, description per language from the fact sheet only
  depends_on:
  - backup_current
  input_refs:
  - intake_factsheet
  input_format: fact sheet + field limits + competitor-free brief
  output_format: 'one table per language: field | text'
  model: 'writer-class model (example: claude-sonnet-5-5; Anthropic region restriction - not supported in mainland China/Hong Kong/Macau since 2026-11-12, verified 2026-11-23; domestic
    alternatives: Kimi/GLM/Qwen/DeepSeek)'
  tool_ref: null
  fallback:
    models:
    - Kimi / GLM / Qwen / DeepSeek (any, untested)
    when: quota or region
    on_exhausted: pause_for_human
    recheck_gates: true
  est_tokens:
    in: 12000
    out: 4000
  cacheable_prefix: field limits + style rules
  batchable: false
  gate:
  - g_limits
  side_effects:
  - none
  cost:
    expected_calls_per_run: 1
    in_price_per_mtok: 2.0
    out_price_per_mtok: 10.0
    price_source_url: https://platform.claude.com/docs/en/about-claude/pricing
    price_checked_on: null
    cacheable_prefix_tokens: 4000
    cache_hit_rate: 0.5
    cache_read_multiplier: 0.1
    cache_write_tokens: null
    cache_write_price: null
    batch_adopted: false
    batch_factor: 1
    off_peak_eligible: null
    off_peak_adopted: false
    off_peak_factor: 1
    discount_source: null
    retry_rate: 0.3
    included_in_existing_plan: true
- id: limit_check
  kind: code
  purpose: Count characters and UTF-8 bytes per field; check keyword rules; check no CJK in the English field and
    vice versa
  depends_on:
  - draft_copy
  input_refs:
  - draft_copy
  input_format: draft tables
  output_format: pass/fail list with counts
  model: null
  tool_ref: python3 stdlib script (to be written; not in this repo)
  fallback:
    models: []
    when: not a model stage
    on_exhausted: pause_for_human
    recheck_gates: true
  est_tokens:
    in: null
    out: null
  cacheable_prefix: null
  batchable: null
  gate:
  - g_limits
  side_effects:
  - none
  cost: {}
- id: claim_review
  kind: model
  purpose: Reviewer maps every claim in the copy to a line of the fact sheet; flags invented or not-yet-shipped
    features
  depends_on:
  - limit_check
  input_refs:
  - draft_copy
  - intake_factsheet
  input_format: draft + fact sheet
  output_format: claim -> fact line table, verdict
  model: 'a different model family than the writer, read-only (example: Codex CLI)'
  tool_ref: null
  fallback:
    models:
    - another independent model session
    when: reviewer unavailable
    on_exhausted: pause_for_human
    recheck_gates: true
  est_tokens:
    in: 10000
    out: 2000
  cacheable_prefix: fact sheet
  batchable: false
  gate:
  - g_claims
  side_effects:
  - none (read-only)
  cost:
    expected_calls_per_run: 1
    in_price_per_mtok: 2.0
    out_price_per_mtok: 10.0
    price_source_url: https://platform.claude.com/docs/en/about-claude/pricing
    price_checked_on: null
    cacheable_prefix_tokens: 4000
    cache_hit_rate: 0.5
    cache_read_multiplier: 0.1
    cache_write_tokens: null
    cache_write_price: null
    batch_adopted: false
    batch_factor: 1
    off_peak_eligible: null
    off_peak_adopted: false
    off_peak_factor: 1
    discount_source: null
    retry_rate: 0.3
    included_in_existing_plan: true
- id: human_review
  kind: human
  purpose: Owner reads both languages (Chinese by a native reader), checks screenshots plan, approves
  depends_on:
  - claim_review
  input_refs:
  - draft_copy
  - claim_review
  input_format: copy (draft_copy) + verdict (claim_review)
  output_format: approved copy file
  model: null
  tool_ref: null
  fallback:
    models: []
    when: not a model stage
    on_exhausted: pause_for_human
    recheck_gates: true
  est_tokens:
    in: null
    out: null
  cacheable_prefix: null
  batchable: null
  gate:
  - g_human
  side_effects:
  - none
  cost: {}
- id: console_update
  kind: human
  purpose: 'Owner pastes approved text into the store console: promo text can go live alone; other fields ride on
    the next version; reopen and verify; never submit for review in this run'
  depends_on:
  - human_review
  input_refs:
  - human_review
  input_format: approved copy
  output_format: console updated + read-back note
  model: null
  tool_ref: null
  fallback:
    models: []
    when: not a model stage
    on_exhausted: pause_for_human
    recheck_gates: true
  est_tokens:
    in: null
    out: null
  cacheable_prefix: null
  batchable: null
  gate:
  - g_readback
  side_effects:
  - live store page text changes (promo text only)
  cost: {}
scope:
  in_scope:
  - name, subtitle, keywords, promo text, description, screenshot caption wording
  out_of_scope:
  - uploading screenshots
  - submitting a version for review
  - ads and keyword-volume tools
  - claims about features not in the shipped build
prohibitions:
- Claude (Anthropic) region restriction / Claude 地区限制 - Anthropic does not support mainland China / Hong Kong / Macau since 2026-11-12 (不支持中国大陆、香港、澳门), verified 2026-11-23, see https://www.anthropic.com/legal/supported-regions
- 无凭据、私有数据或真实发送地址 / No credentials, private data or actual sending addresses
- 未获人审不得花钱、外发、合并发布或删除 / No spending, external sends, merge/release or deletion without human review
- No claim about a feature that is not shipped in the build under review
- Do not paste Chinese into the English field to fill space
irreversible_action_policy:
  default: require_human_approval
  on_missing_or_denied: block
  approval_scope: exact_action_and_payload
human_checkpoints:
- before_stage: draft_copy
  action: 'paid or external model call for this stage (writer, reviewer or fallback); bound to endpoint, payload class and a spend cap derived from budget.per_run; a different provider or model needs a new approval'
  approver: owner
  approval_record_ref: future owner approval note (redacted label) naming endpoint, payload class and spend cap; settings alone are not approval
- before_stage: claim_review
  action: 'paid or external model call for this stage (writer, reviewer or fallback); bound to endpoint, payload class and a spend cap derived from budget.per_run; a different provider or model needs a new approval'
  approver: owner
  approval_record_ref: future owner approval note (redacted label) naming endpoint, payload class and spend cap; settings alone are not approval
- before_stage: console_update
  action: paste approved text into live store console fields (promo text)
  approver: owner (account holder/admin)
  approval_record_ref: owner approval of the exact copy recorded in human_review (read-back note with date is completion evidence, not approval)
gates:
- id: g_facts
  type: human
  check: fact sheet marks each feature shipped / not shipped
  pass_condition: no unmarked feature
  evidence_ref: fact_sheet.md
  reviewer_model: null
  on_fail: block_and_review
- id: g_backup
  type: deterministic
  check: old text saved for every field to change
  pass_condition: one file per field and language exists
  evidence_ref: backup folder listing
  reviewer_model: null
  on_fail: block_and_review
- id: g_limits
  type: deterministic
  check: name<=30, subtitle<=30, promo<=170, description<=4000 characters; keywords <=100 UTF-8 bytes, comma-separated,
    each longer than 2 characters; no CJK in English fields
  pass_condition: all counts within limits (limits re-checked against Apple pages on the run date)
  evidence_ref: count table
  reviewer_model: null
  on_fail: block_and_review
- id: g_claims
  type: reviewer
  check: every claim maps to a shipped-feature line
  pass_condition: 0 unsupported claims
  evidence_ref: claim map
  reviewer_model: 'a different model family than the writer, read-only (example: Codex CLI)'
  on_fail: block_and_review
- id: g_human
  type: human
  check: owner and a native reader approve
  pass_condition: approval note per language
  evidence_ref: approved copy
  reviewer_model: null
  on_fail: block_and_review
- id: g_readback
  type: human
  check: reopen the console field and the public page
  pass_condition: text matches approved copy; delay noted if public page lags
  evidence_ref: read-back note
  reviewer_model: null
  on_fail: block_and_review
reliability:
  retries: 1
  retryable_errors:
  - model timeout
  non_retryable_errors:
  - limit exceeded after 2 revision tries (human edits instead)
  - unsupported claim
  backoff:
    strategy: exponential
    initial_seconds: 30
    max_seconds: 300
    respect_retry_after: true
  timeout_seconds: 1800
  max_agent_turns: null
  idempotency_key: app + language + field + fact-sheet hash
  deduplication: old text files are never overwritten; new files carry the run date
  checkpoint_resume: each stage writes a file; resume from the last file
  on_final_failure: stop_and_notify_human
  notify:
    events:
    - completed
    - failed
    - budget_exceeded
    - approval_required
    mechanism: manual_record
    recipient_role: owner
observability:
  trace: files per stage in a dated folder
  log_tokens_and_cost: true
  fields:
  - run_id
  - pipeline_version
  - stage_id
  - model_revision
  - prompt_skill_versions
  - token_usage
  - cost_currency_basis
  - latency_seconds
  - retry_count
  - gate_results
  - approval_ref
  - failure_class
  redaction: no account IDs or private URLs in published samples
  retention_days: 180
  review_cadence: owner, each run
budget:
  per_run: 1
  per_month: 5
  max_tokens_per_run: 60000
  max_wall_seconds_per_run: 7200
  on_exceed: pause_and_notify
eval:
  golden_set: listing-copy-gold-v0 (6 cases, 2026-11-23)
  min_pass_rate: 1.0
  run_on:
  - prompt_change
  - model_change
  - skill_change
  - weekly
  pass_k: null
  result_ref: null
versioning:
  prompts: null
  skills: null
  implementation_ref: null
cost_roi:
  currency: USD
  calculation_scope: api_rough_estimate
  human_min_per_run: 120
  review_min_per_run: 25
  hourly_rate: 40
  build_hours: 6
  debug_token_cost: 3
  maintenance_h_per_month: 0.5
  cost_of_bad_output: 'low-medium: a rejected or misleading listing delays a release; wrong claims risk review rejection'
  subscription_roi_method: undecided
  evidence:
  - field: runs_per_month
    basis: estimated
    source: 3 apps in one pass on 2026-11-23; cadence guess
    checked_on: '2026-11-23'
    sample_size: null
  - field: human_min_per_run
    basis: estimated
    source: baseline NOT measured
    checked_on: '2026-11-23'
    sample_size: null
  - field: review_min_per_run
    basis: estimated
    source: NOT timed
    checked_on: '2026-11-23'
    sample_size: null
  - field: hourly_rate
    basis: synthetic
    source: placeholder
    checked_on: '2026-11-23'
    sample_size: null
  - field: stages[*].est_tokens
    basis: estimated
    source: order of magnitude
    checked_on: '2026-11-23'
    sample_size: null
  - field: stages[*].cost.{in,out}_price_per_mtok
    basis: estimated
    source: secondary aggregators 2026-11-23; official page not verified
    checked_on: '2026-11-23'
    sample_size: null
  - field: stages[*].cost.{expected_calls_per_run,retry_rate,cacheable_prefix_tokens,cache_hit_rate,cache_read_multiplier}
    basis: synthetic
    source: design assumptions; no usage logs, cache hit rate and retries NOT measured
    checked_on: '2026-11-23'
    sample_size: null
  - field: stages[*].cost.price_checked_on
    basis: estimated
    source: left null on purpose - prices came from secondary aggregators, official page not verified; verify and date before reuse
    checked_on: '2026-11-23'
    sample_size: null
  - field: stages[claim_review].cost.{in,out}_price_per_mtok
    basis: synthetic
    source: the Claude list price is used only as an API-price PROXY for the read-only reviewer (example Codex CLI is on a subscription, price not looked up); replace with the real provider price
    checked_on: '2026-11-23'
    sample_size: null
  results:
    cost_per_run: 0.13
    monthly_cost: 0.4
    monthly_net_benefit: 170
    initial_cost: 243
    break_even_months: 1.4
    calculation_note: ESTIMATE ONLY. API cost is negligible (well under 1 USD per run); the result is dominated
      by unmeasured human time. Not worth building for a single app and a single update.