xianyu-xuanpin-skill
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "xianyu-xuanpin-skill":https://skillpi.com/zh/skills/deepskill-e91ac27552cf3b48da4179b72e4b929fd308498e0bd675967d5cc1686d3bf3ba。安装前核对上游来源和版本:https://skillhub.cn/skills/user_ab694dd6/xianyu-xuanpin-skill。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
闲鱼选品网站 QA 与修复助手。用于测试、调试与优化闲鱼/二手租赁投资回报率网站,特别针对包含产品刷新接口、投资回算、Recharts 看板及真实源码目录混淆的 React/Vite + Node/SQLite 项目。触发条件:用户请求测试、调试、优化或使闲鱼/二手租赁 ROI 网站支持刷新功能时启用。
介绍来源: third_party · user_ab694dd6 · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 用于端到端测试和加固闲鱼选品/二手租赁 ROI 应用:找到真实源码、验证可刷新的市场数据、检查投资计算,并捕获前端图表和布局 bug。
- 适合谁
- 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.
- 实测状态
- 未测试
文件浏览
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
- 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 asinvestmentCalculator. - Do not edit wrapper folders unless they contain the real app.
- Check the current directory first:
- 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 -sbif the source tree is a Git repo.
- Read
- Establish the runtime.
- If backend depends on
better-sqlite3, prefer Node 22. Check.nvmrc,.node-version,engines, and the actualnode --version. - Avoid killing unrelated dev servers. Check ports with
lsof -nP -iTCP:<port> -sTCP:LISTEN.
- If backend depends on
- 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.
- Typical commands:
- Start local services.
- Backend usually runs on
3001; frontend on Vite5173or the next free port. - If
5173is occupied by another project, use5174.
- Backend usually runs on
- Probe data refresh.
- Use
scripts/qa_probe.pyto check repo shape and running endpoints. - Manually test
GET /api/products,GET /api/products/refresh/status, andPOST /api/products/refreshwhen safe. - Confirm the UI refresh button updates status text and does not leave stale calculations.
- Use
- 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.
- 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.
- 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_VERSIONmismatch. - 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, andpackage.jsonengines.
Refresh works in backend but UI stays stale
Check:
POST /api/products/refreshreturns 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.
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 针对闲鱼选品/二手租赁 ROI 网站提供端到端测试与修复能力,解决真实开发痛点
- 覆盖源码定位、数据刷新、投资计算、图表渲染等关键场景,实用性强
亮点
- 触发词覆盖全面(闲鱼、二手租赁、ROI、选品、测试、调试等),边界清晰,不易误触
亮点
- 文档结构完整,Workflow 步骤清晰,含具体代码示例和命令,frontmatter 规范
亮点
- 工具来源明确,参数正确,覆盖主要异常场景,强调小补丁和验证机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 33 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- 127.0.0.1
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。