108518/skill-goldprice/SKILL.md
This skill retrieves real-time precious metal prices (gold, silver, platinum, palladium, etc.) from https://i.jzj9999.com/quoteh5. It provides bid/ask prices, daily high/low prices, and price trends for 20+ metal types.
npx skillsauth add openclaw/skills gold-price-queryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
从 https://i.jzj9999.com/quoteh5 页面获取实时的贵金属价格信息,包括黄金、白银等贵金属的回购价格、销售价格以及高低价。
每个贵金属品种返回以下数据:
{
"name": "品种名称",
"bidPrice": "回购价格",
"askPrice": "销售价格",
"high": "当日最高价",
"low": "当日最低价",
"bidTrend": "回购价涨跌趋势 (up/down/flat)",
"askTrend": "销售价涨跌趋势 (up/down/flat)",
"updateTime": "更新时间"
}
# 安装依赖
npm install
# 运行脚本
npm start
const { getGoldPrices, formatPrices } = require('./index');
async function main() {
const prices = await getGoldPrices();
console.log(formatPrices(prices));
}
main();
如果在支持Playwright MCP的环境中使用,可以直接使用:
// 获取页面快照并解析
state.page = context.pages().find((p) => p.url() === 'about:blank') ?? (await context.newPage())
await state.page.goto('https://i.jzj9999.com/quoteh5', { waitUntil: 'domcontentloaded' })
await waitForPageLoad({ page: state.page, timeout: 5000 })
// 等待价格数据加载
await state.page.waitForSelector('.price-table-row', { timeout: 10000 })
// 提取价格数据
const prices = await state.page.evaluate(() => {
const rows = document.querySelectorAll('.price-table-row');
const result = [];
rows.forEach(row => {
const name = row.querySelector('.symbol-name')?.textContent?.trim();
const bidPrice = row.querySelector('.el-col:nth-child(2) .symbole-price span')?.textContent?.trim();
const askPrice = row.querySelector('.el-col:nth-child(3) .symbole-price span')?.textContent?.trim();
const high = row.querySelector('.el-col:nth-child(4) .symbol-price-rise')?.textContent?.trim();
const low = row.querySelector('.el-col:nth-child(4) .symbol-price-fall')?.textContent?.trim();
if (name) {
result.push({
name,
bidPrice: bidPrice || '--',
askPrice: askPrice || '--',
high: high || '--',
low: low || '--',
updateTime: new Date().toLocaleString('zh-CN')
});
}
});
return result;
});
console.log('贵金属价格:', JSON.stringify(prices, null, 2));
================================================================================
贵金属实时价格
更新时间: 2026/03/05 14:30:25
================================================================================
品种: 黄金9999
回购价: 1144.10 ↓
销售价: 1144.95 ↓
高/低: 1158.00 / 1140.38
品种: 黄金T+D
回购价: 1143.96 ↓
销售价: 1144.06 ↓
高/低: 1159.59 / 1140.00
品种: 白银
回购价: 20.645 ↓
销售价: 20.745 ↓
高/低: 21.644 / 20.437
品种: 铂金
回购价: 491.80 ↓
销售价: 493.30 ↓
高/低: 508.30 / 491.50
================================================================================
说明: 以上行情仅供参考,价格仅适用于融通金公司自身贵金属业务
================================================================================
const prices = await getGoldPrices();
prices.forEach(item => {
console.log(`${item.name}: 回购 ${item.bidPrice}, 销售 ${item.askPrice}`);
});
const prices = await getGoldPrices();
const goldPrices = prices.filter(p => p.name.includes('黄金'));
console.log('黄金品种价格:', goldPrices);
const prices = await getGoldPrices();
prices.forEach(item => {
const spread = parseFloat(item.askPrice) - parseFloat(item.bidPrice);
console.log(`${item.name}: 买卖价差 ${spread.toFixed(2)}`);
});
async function checkPriceAlert(targetPrice) {
const prices = await getGoldPrices();
const gold = prices.find(p => p.name === '黄金9999');
if (gold && parseFloat(gold.bidPrice) >= targetPrice) {
console.log(`价格提醒: 黄金9999回购价达到 ${gold.bidPrice}`);
}
}
try {
const prices = await getGoldPrices();
if (prices && prices.length > 0) {
console.log('获取成功:', prices);
} else {
console.log('未获取到价格数据');
}
} catch (error) {
console.error('获取金价失败:', error.message);
// 可以添加重试逻辑
}
# 安装 Playwright
npm install playwright
# 安装浏览器驱动
npx playwright install chromium
setInterval(async () => {
const prices = await getGoldPrices();
console.log('更新时间:', new Date().toLocaleString());
console.log('价格:', prices);
}, 60000); // 每分钟查询一次
const { exportToJSON } = require('./index');
async function savePrices() {
const prices = await getGoldPrices();
exportToJSON(prices, 'prices-2026-03-05.json');
}
function analyzeTrend(prices) {
return prices.map(item => ({
name: item.name,
trend: item.bidTrend === 'up' ? '上涨' : (item.bidTrend === 'down' ? '下跌' : '持平'),
spread: parseFloat(item.askPrice) - parseFloat(item.bidPrice)
}));
}
开发者昵称: lfq
联系方式:
定制服务:
如需定制开发专属 Skill,欢迎联系!
专注为珠宝行业提供智能化解决方案,助力企业数字化转型。
1. 智能价格监控与分析
技术实现路径:
数据采集层 → 数据清洗 → AI分析引擎 → 可视化展示 → 智能预警
预期交付成果:
2. 智能库存管理
技术实现路径:
销售数据分析 → 需求预测模型 → 库存优化算法 → 补货决策 → 自动化执行
预期交付成果:
3. AI 辅助设计
技术实现路径:
图像识别 → 风格分析 → 趋势挖掘 → AI生成 → 专家评估 → 方案输出
预期交付成果:
4. 智能客服与销售助手
技术实现路径:
知识库构建 → NLP理解 → 意图识别 → 对话管理 → 答案生成 → 多渠道输出
预期交付成果:
5. 市场趋势分析
技术实现路径:
数据采集 → 清洗整合 → 机器学习分析 → 趋势挖掘 → 报告生成 → 决策支持
预期交付成果:
6. 智能鉴定与评估
技术实现路径:
图像采集 → 深度学习识别 → 特征提取 → 品质评估 → 价格计算 → 报告输出
预期交付成果:
| 应用场景 | 解决问题 | 业务价值 | |---------|---------|---------| | 零售门店 | 价格更新慢、库存管理混乱 | 提升效率30%+,降低成本15%+ | | 批发商 | 价格波动风险、需求预测不准 | 降低库存风险,提升资金周转 | | 品牌商 | 设计创新难、市场反应慢 | 加速产品迭代,提升竞争力 | | 电商 | 客服成本高、转化率低 | 降低人工成本,提升转化率 | | 鉴定机构 | 鉴定效率低、成本高 | 提升效率50%+,标准化输出 |
AI/机器学习:
数据处理:
开发框架:
数据分析:
需求调研 → 方案设计 → 原型开发 → 测试验证 → 部署上线 → 培训支持 → 持续优化
服务周期: 2-8周(根据项目复杂度)
服务承诺:
期待与您的合作!
版本: v1.0.0 | 更新日期: 2026-03-05
tools
Use when the user wants to connect to, test, or use the McDonalds service at mcp.mcd.cn, including checking authentication, probing MCP endpoints, listing tools, or calling McDonalds MCP tools through a reusable local CLI.
development
Web scraping platform — Twitter/X data, Vinted marketplace, and general web scraping API
development
SlowMist AI Agent Security Review — comprehensive security framework for skills, repositories, URLs, on-chain addresses, and products (Claude Code version)
data-ai
去除中文文本中的 AI 写作痕迹,使其读起来自然。基于维基百科 AI 写作特征指南,检测 24 种 AI 模式。触发词:humanizer-cn、去除 AI 痕迹、去除 AI 写作痕迹、中文文本人性化。