Dxm Qa Check logo

Dxm Qa Check

Community
southernspark-nfxh
dxm-qa-check

店小秘速卖通上品——QA复核模块:逐字段校验1688数据准确性、星号必填项、定价公式、关键字段完整度

Overview

Publishersouthernspark-nfxh
Repositoryaliexpress-auto-listing-skill
Skill namedxm-qa-check
Stars
28
Forks
6
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by southernspark-nfxh on GitHub. Read the source before you install it.

Installation

Install the Dxm Qa Check AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/southernspark-nfxh/aliexpress-auto-listing-skill/tree/main/dxm-qa-check
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/southernspark-nfxh/aliexpress-auto-listing-skill.git /tmp/aliexpress-auto-listing-skill
mkdir -p .claude/skills
cp -r /tmp/aliexpress-auto-listing-skill/dxm-qa-check .claude/skills/dxm-qa-check
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Dxm Qa Check in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Dxm Qa Check on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Dxm Qa Check is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

店小秘上品QA检查模块

触发时机

所有模块(1-9)填完后、保存前,自动执行。

检查维度

1. 1688 数据准确性 ⭐最关键

检查项1688来源页面值规则
成本价1688详情页N/A(不填到页面)用于验算零售价
重量(g)1688参数表包装后重量(kg)g÷1000=kg
库存1688规格行SKU库存>2000封顶2000
材质1688参数表属性→材质选最接近
品牌1688参数表属性→品牌NONE或实际
产地1688参数表属性→产地中国大陆+省份

2. 定价公式验算

零售价 = (1688成本价 + 5) × 1.02 ÷ 0.413
       = (成本 + 5) × 2.469

验证:零售价 ≤ 页面值 ± 0.01
货值 = 零售价(两列同值)

3. 星号字段全覆盖 ⭐提交失败主因

逐模块检查所有 ant-form-item-required 字段:

模块必填项检查方式
基本信息标题、分类标题无中文、分类已选
属性信息产地/品牌/液晶/出餐量/材质/智能/化学品/电池全部非空
产品信息图片/计件单位/容量/SKU定价(全部)6张主图、SKU全填
描述信息PC端描述有内容、图已翻译
包装信息包装后重量非空
模板信息运费/服务/海关非"请选择"
其他信息报价含关税非空

4. 关键字段一致性

检查说明
Green/Pink行一致零售价/货值/库存/重量/原箱/物流 两行完全相同
是否原箱=是select value='1'
物流属性=普货无电池产品
商品编码Green/Pink 已生成
图片翻译主图6张+SKU图+PC描述图 全部提交

执行方法

🥇 首选:execute_code + websocket CDP 全页扫描(2026-07-19新增)

browser_snapshot 输出在 ~1500 行截断,无法覆盖编辑页下半部分。替代方案: 用 execute_code + websocket 直连 CDP relay 进行全页 QA 扫描。

详见 aliexpress-store-ops → references/cdp-websocket-qa-scan.md

python
import asyncio, json
import websockets

async def qa():
    ws = await websockets.connect("ws://127.0.0.1:19223/devtools/page/{targetId}", max_size=None)
    msg = {"id": 1, "method": "Runtime.evaluate", "params": {"expression": """
    (() => {
        const body = document.body.innerText;
        return JSON.stringify({
            chineseError: body.includes('中文字符'),
            pleaseSelectCount: (body.match(/请选择/g) || []).length,
            bodyLength: body.length
        });
    })()
    """, "returnByValue": True}}
    await ws.send(json.dumps(msg))
    resp = await asyncio.wait_for(ws.recv(), timeout=10)
    return json.loads(resp)

targetId 获取: curl -s http://127.0.0.1:19223/json → 找 dianxiaomi.com/web/smt/edit 的 target

备选:批量星号检查(DOM查询,可能误判)

批量星号检查

python
star_report = await page.evaluate('''() => {
    const items = document.querySelectorAll('.ant-form-item');
    const missing = [];
    items.forEach(item => {
        const star = item.querySelector('.ant-form-item-required, [class*="required"]');
        if (!star) return;
        const label = item.querySelector('label');
        const inp = item.querySelector('input');
        const sel = item.querySelector('.ant-select-selector');
        const val = inp ? inp.value : (sel ? sel.textContent.trim() : '?');
        const isEmpty = !val || val.includes('请选择') || val.includes('请选中');
        if (isEmpty) {
            missing.push((label?.textContent || '?').trim());
        }
    });
    return missing;
}''')
# missing 为空 → 全部星号已填 ✅

定价公式验算

python
cost = 1688成本价
expected = round((cost + 5) * 1.02 / 0.413, 2)
actual = float(page输入框中的零售价)
assert abs(expected - actual) < 0.02, f"定价异常: 预期{expected} 实际{actual}"

SKU两行一致性

python
green = {零售价, 货值, 库存, 重量, 原箱, 物流}
pink = {同上}
assert green == pink, "SKU两行不一致!"

报告格式

📋 QA检查报告
━━━━━━━━━━━━━━━━
✅ 1688数据准确性: 通过
✅ 定价公式: 15.56 = (1.30+5)×2.469 ✓
✅ 星号字段: 全部已填 (0个缺失)
✅ SKU一致性: Green=Pink ✓
✅ 图片翻译: 全部提交
✅ 模板: 运费/服务已选
━━━━━━━━━━━━━━━━
结论: 可以保存

⚠️ 常见问题

  1. 最小出餐量容易漏填 —— 1688无数据也要选一个值
  2. Pink行SKU未更新 —— 用nth(2)不是nth(1)
  3. 图片改尺寸后未翻译 —— 检查每个section的翻译提交状态
  4. 包装尺寸无1688数据 —— 跳过,不算缺失
  5. 非星号字段(电源/电压/动力等)所有自动化方法无法选中 —— 已确认的 Vue 3 免疫字段,跳过不纠缠,汇报给用户手动操作

🚨 QA误判陷阱(2026-07-19新增)—— 已填字段被误报为"缺失"

问题: 用 DOM 元素检查法(.ant-select-selection-item、.ant-form-item input)会漏读已填值,产生大量误报。

根因:

  • ant-select-auto-complete 型字段值存储在 input.value 中,不在 .ant-select-selection-item 的 .textContent 中
  • 部分 ant-select 选中值通过嵌套 <div> 渲染,.textContent 可能返回空/空白
  • Vue 3 响应式更新后 DOM 结构可能与预期不同

正确验证方法(按优先级):

  1. 页面 body 全文搜索(最可靠): document.body.innerText.includes('Plastic') 等 —— 只要值在页面上任何地方渲染,就能匹配
  2. 按字段类型分别读取:
    • 普通 ant-select:'.ant-select-selection-item' 的 .textContent.trim()
    • auto-complete 型(材质/最大出餐量等):.ant-select-auto-complete input 的 .value
    • 原生 input:input.value
  3. 不要只依赖一种读取方式 —— 如果 DOM 读不到但 body 文本有值,以 body 文本为准

误报处理规则:

  • 如果 body 文本能找到值 → 字段已填 ✅,不要重新操作
  • 只有在 body 文本中也找不到值时才标记为真正缺失 ❌
  • 向用户汇报时先筛掉误报,只报告真正缺失的字段

作者: 南方星火 SouthernSpark | 小红书 @南方星火 SouthernSpark | AI自动化专家工作流

Frequently asked questions

What does the Dxm Qa Check AI skill do?

店小秘速卖通上品——QA复核模块:逐字段校验1688数据准确性、星号必填项、定价公式、关键字段完整度

Why use Dxm Qa Check on TypingMind?

Because you install it once and use it with any model. Dxm Qa Check is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Dxm Qa Check in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/southernspark-nfxh/aliexpress-auto-listing-skill/tree/main/dxm-qa-check. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Dxm Qa Check?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Dxm Qa Check?

As many as you like. As long as a model supports skills, you can use Dxm Qa Check with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Dxm Qa Check AI skill free?

It is published on GitHub by southernspark-nfxh. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇