xianyu-xuanpin-skill

Xianyu product-selection website QA and repair assistant. Used to test, debug, and optimize Xianyu/second-hand rental ROI websites, specifically for React/Vite + Node/SQLite projects that include product refresh APIs, investment calculations, Recharts dashboards, and obfuscated real source directories. Trigger: enabled when the user asks to test, debug, optimize, or make a Xianyu/second-hand rental ROI site refreshable.

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 "xianyu-xuanpin-skill" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-e91ac27552cf3b48da4179b72e4b929fd308498e0bd675967d5cc1686d3bf3ba. Verify the upstream source and version against https://skillhub.cn/skills/user_ab694dd6/xianyu-xuanpin-skill 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

Xianyu product-selection website QA and repair assistant. Used to test, debug, and optimize Xianyu/second-hand rental ROI websites, specifically for React/Vite + Node/SQLite projects that include product refresh APIs, investment calculations, Recharts dashboards, and obfuscated real source directories. Trigger: enabled when the user asks to test, debug, optimize, or make a Xianyu/second-hand rental ROI site refreshable.

0 Downloads

Introduction source: third_party · user_ab694dd6 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "闲鱼选品"
description: |
  闲鱼选品网站 QA 与修复助手。用于测试和优化闲鱼/二手租赁投资回报率网站,尤其是带产品刷新接口、投资计算、Recharts 看板和真实源码目录混淆的 React/Vite + Node/SQLite 项目。
  Trigger when the user asks to test, debug, optimize, or make refreshable a Xianyu/second-hand rental ROI website.

闲鱼选品

用于端到端测试和加固闲鱼选品/二手租赁 ROI 应用:找到真实源码、验证可刷新的市场数据、检查投资计算,并捕获前端图表和布局 bug。

When To Use

  • The user mentions 闲鱼, 咸鱼, 二手租赁, 投资回报率, ROI, IRR, 选品, or rental product dashboards.
  • The project has a React/Vite frontend plus Node/Express backend.
  • Data should refresh by clicking a button or through scheduled backend updates.
  • Charts use Recharts or similar responsive chart containers.
  • The visible project folder may be an empty wrapper rather than the real editable source.

Workflow

  1. Find the real source tree.
    • Check the current directory first: pwd, find . -maxdepth 2 -name package.json.
    • If it is an empty wrapper, search likely user folders for package.json, vite.config.*, backend/package.json, and files such as investmentCalculator.
    • Do not edit wrapper folders unless they contain the real app.
  2. Read project docs and state.
    • Read AGENTS.md, README*, tasks.md, package.json, backend/package.json, vite.config.*, and route/service files around products and calculations.
    • Run git status -sb if the source tree is a Git repo.
  3. Establish the runtime.
    • If backend depends on better-sqlite3, prefer Node 22. Check .nvmrc, .node-version, engines, and the actual node --version.
    • Avoid killing unrelated dev servers. Check ports with lsof -nP -iTCP:<port> -sTCP:LISTEN.
  4. Run static checks and builds.
    • Typical commands: npm run lint, npx tsc -b --pretty false, cd backend && npm run build, npm run build.
    • Treat Browserslist stale data as maintenance unless it blocks the build.
  5. Start local services.
    • Backend usually runs on 3001; frontend on Vite 5173 or the next free port.
    • If 5173 is occupied by another project, use 5174.
  6. Probe data refresh.
    • Use scripts/qa_probe.py to check repo shape and running endpoints.
    • Manually test GET /api/products, GET /api/products/refresh/status, and POST /api/products/refresh when safe.
    • Confirm the UI refresh button updates status text and does not leave stale calculations.
  7. Browser-test the core flow.
    • Load market table and confirm products render.
    • Click refresh and wait for success status.
    • Change budget, hold years, risk level, and funding/reinvestment settings.
    • Open portfolio and analysis tabs.
    • Check for failed requests, console errors, NaN, blank charts, and mobile overflow.
  8. Fix bugs in small patches.
    • Preserve existing app patterns.
    • Keep calculation fixes covered by type/build/browser verification.
    • For Recharts inside Tabs, ensure active chart panels have explicit nonzero dimensions.
  9. Retest and summarize.
    • Rerun the relevant checks.
    • Stop local test servers before finishing unless the user wants a running URL.
    • Report cause, files changed, verification, and remaining risks.

Common Bugs And Fix Patterns

Recharts renders blank inside Tabs

Symptoms:

  • Chart title is visible, but no chart SVG is rendered.
  • Console warns that chart width or height is 0.

Fix:

  • Give the active chart panel explicit height and prevent flex shrink.
  • Add a minimum height to ResponsiveContainer.

Example:

const chartPanelClassName = 'h-[350px] min-h-[350px] flex-none';

<TabsContent value="yearly" className={chartPanelClassName}>
  <ResponsiveContainer width="100%" height="100%" minHeight={350}>
    {/* chart */}
  </ResponsiveContainer>
</TabsContent>

better-sqlite3 native module mismatch

Symptoms:

  • Backend crashes with a NODE_MODULE_VERSION mismatch.
  • TypeScript build may pass, but runtime fails.

Fix:

  • Use the Node major version that compiled the native module, usually Node 22 for this project family.
  • Add or verify .nvmrc, .node-version, and package.json engines.

Refresh works in backend but UI stays stale

Check:

  • POST /api/products/refresh returns the refreshed product list and metadata.
  • Frontend replaces products, updates refresh metadata, and recalculates portfolio from current config.
  • Comparison calculations receive the full current config, not only budgets.

Hold-year labels are wrong

Check:

  • Net profit labels should follow selected hold years, for example 2年净利润.
  • Residual value should be applied at the selected exit year, not always year 3 unless the model intentionally does that.

Probe Script

Run from the skill repository or copy the script path:

python3 scripts/qa_probe.py --root /path/to/app --backend-url http://127.0.0.1:3001 --frontend-url http://127.0.0.1:5174

Useful options:

python3 scripts/qa_probe.py --root /path/to/app --post-refresh
python3 scripts/qa_probe.py --root /path/to/app --json

The script does not install dependencies, start servers, or modify files. It only inspects local files and reachable HTTP endpoints.

Final Report Shape

When finishing a QA/fix task, use concise Chinese headings when the user writes in Chinese:

  • 问题原因
  • 我做了哪些改动
  • 改动后效果
  • 建议下一步

Include exact commands/checks run and mention any checks that were skipped or blocked.

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 针对闲鱼选品/二手租赁 ROI 网站提供端到端测试与修复能力,解决真实开发痛点
  • 覆盖源码定位、数据刷新、投资计算、图表渲染等关键场景,实用性强
Trigger Precision95/100

Highlights

  • 触发词覆盖全面(闲鱼、二手租赁、ROI、选品、测试、调试等),边界清晰,不易误触
Structure and Standards95/100

Highlights

  • 文档结构完整,Workflow 步骤清晰,含具体代码示例和命令,frontmatter 规范
Execution Reliability90/100

Highlights

  • 工具来源明确,参数正确,覆盖主要异常场景,强调小补丁和验证机制
Evidence Verifiability (mean of the first four)91/100

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.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 33
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • 127.0.0.1

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

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.