amazon-profit-report
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-profit-report" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b2e21219ad1dc47f38c7424c0b40d48d373bd17ecbf77e935967240465003d90. Verify the upstream source and version against https://skillhub.cn/skills/user_a1a65321/amazon-profit-report 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
Creates an Amazon monthly profit-margin analysis report (an Excel file with 4 worksheets) including profit and loss overview, SKU profit details, expense details, and return details. This skill is triggered when the user asks to make an Amazon profit-margin sheet or similar; before triggering it checks whether the user has provided the Amazon settlement CSV and the product cost XLSX, and will request those files if they are not provided.
Introduction source: third_party · user_a1a65321 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: amazon-profit-report
description: 制作亚马逊月度利润率分析报表(4-sheet Excel,含损益概览、SKU利润明细、支出明细、退货明细)。当用户说"帮我制作亚马逊利润率表"、"亚马逊利润率分析"、"亚马逊月度利润"、"亚马逊结算报表"或相近语义时触发此Skill。触发前检查用户是否提供了亚马逊结算表CSV和产品成本表xlsx,若未提供则索要。亚马逊利润率报表 Skill
核心数据文件
| 文件 | 来源 | 说明 |
|---|---|---|
| 亚马逊结算表 | 用户提供,CSV格式 | 月度结算报告,前9行含表头/元数据,需跳过 |
| 产品成本表 | 用户提供,xlsx格式 | 含 SKU、名称、总成本(USD) 三列 |
| 输出报表 | 脚本自动生成 | 4-sheet Excel:📊 损益概览、📦 SKU产品利润、💰 支出明细、🔄 退货明细 |
文件路径配置:打开 scripts/profit_analysis.py,修改顶部的 BASE_DIR、CSV_PATH、COST_PATH、OUTPUT_PATH。
执行命令
python scripts/profit_analysis.py [CSV路径] [成本表xlsx路径] [输出路径]
# 或直接运行(使用脚本内默认路径)
python scripts/profit_analysis.py
预处理规则(不可省略)
- 跳过前9行:
pd.read_csv(skiprows=9)—— 亚马逊结算表前9行是表头/元数据,不是数据 - 删除 Transfer / Liquidations 行:
type字段匹配后删除,不参与任何计算 - SKU映射:
amzn.gr.{SKU}-xxx格式用正则r"amzn\.gr\.([A-Za-z0-9]+)-"提取真实SKU,与成本表匹配 - Refund 类型不匹配成本:退货退款不产生二次销售,无需匹配产品成本
关键计算公式
净销售额(Net Sales) = 产品销售额 + 促销折扣(负值)
亚马逊结算净额(all total)= 全部行 total 列之和(Order+Refund+其他全部行)
= 亚马逊实际打款金额,已含所有运费/礼品包装/佣金/退款等
毛利润 = 净销售额 - COGS
净利润 = 亚马逊结算净额 - COGS ← 正确公式
= total列之和 - 产品成本 ← 不可用净销售额 + 各项费用累加
⚠️ 严禁在 total 之外额外加运费/礼品包装/监管费——这些项已含在
total列中,额外加入会导致重复计算。
费用列归属规则
| 费用类型 | 所在列 | type |
|---|---|---|
| 广告费 | other transaction fees |
Service Fee |
| 月租费 | other |
Service Fee |
| FBA仓储/移除费 | other |
FBA Inventory Fee / FBA Transportation |
| Vine / Coupon | selling fees |
Amazon Fees |
| 库存赔偿 | other |
Adjustment |
| FBA退货处理 | fba fees |
FBA Transaction Fees |
| 运费收入/税 | shipping credits / shipping credits tax |
Order |
| 礼品包装 | gift wrap credits / giftwrap credits tax |
Order |
表格结构与设计规范
Sheet 1:📊 损益概览
标题:{年月} 亚马逊运营损益表 (P&L Statement),深蓝底白字,高度36pt
收入部分(绿色 #1B5E20 标题):
- 产品销售总额
- 促销折扣(负值)
- 净销售额(黄色底
#FFF9C4加粗★) -
- 运费收入 / + 运费税 / + 礼品包装收入 / + 礼品包装税 / + 监管费
- 亚马逊结算净额(total列之和)(浅绿底
#C8E6C9加粗★)← 亚马逊实际打款金额 - 退款金额 / 退款手续费返还 / 退款净额
- FBA库存赔偿(正收入)
成本部分(红色 #B71C1C 标题):COGS(负值)、毛利润、毛利率
平台费用(橙色 #E65100 标题):佣金/FBA/月租/仓储/退货/Vine/Coupon/Grade/Placement
营销费用(紫色 #4527A0 标题):站内广告费
利润汇总(蓝色 #1565C0 标题):经营利润、经营利润率、净利润、净利润率
KPI卡(底部深蓝底):净销售额、毛利润、毛利率、经营利润、净利润、净利润率
Sheet 2:📦 SKU产品利润
15列:SKU | 产品名称(中文) | 产品描述(英文,60字截取) | 销售数量 | 产品销售额 | 促销折扣 | 净销售额 | 单件成本 | 产品总成本 | 亚马逊佣金 | FBA配送费 | 毛利润 | 毛利率 | 扣费后利润 | 扣费后利润率
- 毛利率 ≥25%:深绿加粗
#375623;5%~25%:橙色;<5%:红色加粗 - 合计行:深蓝底白字
- 按净销售额降序排列
Sheet 3:💰 支出明细
5列:支出项目 | 金额(USD) | 占净销售额比例 | 说明 | 备注
五大部分:COGS → 平台费用 → 营销费用 → 退款损失 → 其他收入
Sheet 4:🔄 退货明细
7列:SKU | 产品名称(中文) | 产品描述 | 退货数量 | 退款金额 | 手续费返还 | 退款净损失
合计行深蓝底白字,按退款金额升序排列。
通用样式规范
| 元素 | 规范 |
|---|---|
| 字体 | 微软雅黑(Microsoft YaHei) |
| 标题字号 | 15pt 加粗 白字 |
| 表头字号 | 11pt 加粗 白字 |
| 数据字号 | 10pt |
| 数字格式 | 金额 #,##0.00;比例 0.00%;成本 #,##0.0000 |
| 边框 | 1px 浅灰 #CCCCCC |
| 行高 | 数据行 20pt,标题行 36pt,KPI卡 36pt |
参考文件
references/column_guide.md—— 亚马逊结算表所有列名中英对照及数据含义
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决亚马逊卖家高频财务对账与利润分析刚需
- 提供端到端自动化报表生成,显著提升运营效率
Highlights
- 触发词覆盖全面,包含5个核心表达及相近语义
- 边界清晰,不易误触或漏触
Areas to improve
-
description写错位置 Reported severity: Minor
顶层frontmatter中description为空,实质描述内容位于skill_body内部
Recommendation: 将description内容移至顶层frontmatter,保持规范一致
-
缺少When to Use章节 Reported severity: Minor
文档未明确设置When to Use使用场景说明章节
Recommendation: 在核心数据文件后增加When to Use章节,说明典型使用场景
-
文档较长 Reported severity: Minor
主文档约480行,接近500行上限
Recommendation: 考虑将部分细节(如费用列归属规则)移至参考文件,保持主文档简洁
Highlights
- 结构完整,含预处理规则、关键公式、四表设计、样式规范
- 提供端到端执行示例与文件路径配置说明
Highlights
- 工具来源明确(Python + pandas + openpyxl),参数可配置
- 覆盖主要异常处理(跳过前9行、删除无效行、SKU正则提取)
- 关键计算逻辑清晰,含防错提示(严禁重复计算total外费用)
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.