amazon-asin-profit
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "amazon-asin-profit" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-6259f29f7ff930c05bad77d7f112da10b50486ddc8cf52c6baffa7178eff485c. Verify the upstream source and version against https://skillhub.cn/skills/user_a1a65321/amazon-asin-profit before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Generate SKU/ASIN-level profitability reports for Amazon based on platform transaction data. Triggered when the user says phrases like “SKU profit table,” “ASIN profit table,” “product profit report,” or “Amazon product profit report.” Requires three input files: monthly unified transactions CSV, product cost Excel, and advertising promotion product report Excel.
Introduction source: third_party · user_a1a65321 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Generate a product-dimension profit margin report (50-column Excel, A-AX) from Amazon transaction, cost, and advertising data.
- Inputs and outputs
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: amazon-asin-profit
description: >
Generate Amazon SKU/ASIN-level profit margin reports from platform transaction data.
Triggers when user says: "SKU利润率表", "ASIN利润率表", "产品利润率报表", "Amazon product profit report",
or similar phrases. Requires 3 input files: (1) monthly unified transaction CSV,
(2) product cost Excel, (3) advertising promoted products report Excel.Amazon ASIN Profit Report Generator
Generate a product-dimension profit margin report (50-column Excel, A-AX) from Amazon transaction, cost, and advertising data.
Required Input Files
Ask the user to provide all three:
- Platform transaction CSV — Monthly Unified Transaction report (Amazon Settlement)
- Product cost Excel — Cost table with columns:
名称,SKU,ASIN,采购成本(USD),头程运费(USD),总成本(USD) - Advertising data Excel — Promoted products report (
商品推广_推广的商品_报告) with广告SKUcolumn for spend alignment - Template Excel —
sale_profit_asin_template.xlsx(50-column template A-AX, in user workspace)
Output
A 50-column Excel file with per-SKU profit rows + totals row. See references/template_mapping.md for full column definitions.
Workflow
Step 1: Verify Data Files
Confirm the user has all 3 data files and the template. Check column names match expected format. If any are missing, ask the user to provide them.
Step 2: Run the Script
Use the bundled script scripts/generate_report.py with the actual file paths:
python scripts/generate_report.py \
--csv <transaction_csv> \
--cost <cost_xlsx> \
--ad <ad_xlsx> \
--template <template_xlsx> \
--output <output_xlsx>
The script:
- Reads CSV (skips 9 metadata rows, filters Transfer/Cost of Advertising)
- Extracts real SKU from
amzn.gr.XXX-prefixed values - Aggregates orders, refunds, adjustments by SKU
- Reads cost table, builds SKU→cost mapping
- Reads ad data (promoted products report), groups by
广告SKU, aggregates spend/sales/orders - Allocates shared costs (storage, service fees, liquidation) by net sales ratio
- Computes all 50 columns per SKU
- Writes output with proper formatting (currency, percentage, integer, rate)
Step 3: Present Results
After the script runs, show the user a summary table with key metrics:
| SKU | 净销售额 | 毛利润(I) | 毛利率(J) | 平均毛利润(K) | 广告占比(L) |
|---|---|---|---|---|---|
| ... | |||||
| 合计 |
Column Mapping Reference
Load references/template_mapping.md when detailed column definitions or formula explanations are needed.
Customizations
If the user's data files use different column names, adapt the script's column references accordingly before running.
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决 Amazon 卖家核心财务分析需求,提供 SKU/ASIN 级别利润率报表
- 面向明确电商运营场景,实用价值高,受众清晰
Highlights
- 触发词覆盖中英文,包括“SKU利润率表”、“Amazon product profit report”等,边界清晰
Areas to improve
-
description 内容重复 Reported severity: Minor
顶层 frontmatter 和 skill_body 内部均包含完整 description,存在冗余
Recommendation: 建议移除 skill_body 内部的 description 重复内容,保持唯一性
Highlights
- 文档结构完整,包含输入文件说明、执行步骤、输出格式、参考文档链接
- 提供端到端 bash 命令示例,流程清晰可执行
Highlights
- 脚本路径和参数明确,数据清洗逻辑详尽(跳过元数据、提取真实 SKU)
- 成本分摊机制合理(按净销售额比例分配共享费用),输出格式规范
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.