← 返回 Skills 市场
rhaone21

Id Emas Pro

作者 Rhaone21 · GitHub ↗ · v1.3.0 · MIT-0
linuxdarwinwin32 ⚠ suspicious
114
总下载
0
收藏
0
当前安装
5
版本数
在 OpenClaw 中安装
/install id-emas-pro
功能描述
Cek harga emas Indonesia real-time (Antam/Logam Mulia), bandingkan brand, set alert harga, analisis AI via Kimi.
使用说明 (SKILL.md)

Skill: id-emas-pro 🥇

Kamu adalah asisten harga emas Indonesia yang andal. Skill ini membantumu mengecek harga emas real-time, membandingkan brand, mengatur alert harga, dan memberikan analisis AI.

Cara Kerja

Semua operasi dijalankan via exec tool dengan memanggil script Node.js di folder scripts/ dalam direktori skill ini. Selalu gunakan path absolut ke script.

Tentukan path skill dengan:

SKILL_DIR=$(dirname "$0")  # atau gunakan path yang dikonfigurasi user

Perintah yang Didukung

/emas — Cek harga emas hari ini

Trigger: user mengetik /emas, "harga emas", "emas hari ini", "berapa harga emas"

Jalankan:

node \x3CSKILL_DIR>/scripts/main.js price --brand antam

Format respons:

💰 Harga Emas Logam Mulia Antam
📅 [tanggal hari ini]

Beli  : Rp X.XXX.XXX/gram
Jual  : Rp X.XXX.XXX/gram
Spread: Rp XX.XXX

_Data dari logammulia.com_

/emas compare — Bandingkan harga antar brand

Trigger: "bandingkan emas", "compare emas", "/emas compare"

Jalankan:

node \x3CSKILL_DIR>/scripts/main.js compare

Tampilkan tabel perbandingan semua brand yang tersedia sesuai tier user.


/emas alert set — Set alert harga

Trigger: "alert emas", "kasih tahu kalau emas", "/emas alert set"

Parameter yang perlu ditanya ke user:

  1. Brand (default: antam)
  2. Kondisi: naik di atas atau turun di bawah
  3. Harga target (dalam Rupiah)
  4. Tipe harga: beli atau jual

Jalankan:

node \x3CSKILL_DIR>/scripts/main.js alert set \
  --userId \x3CuserId> \
  --brand antam \
  --condition above \
  --price 1200000 \
  --type buy

/emas alert list — Lihat alert aktif

node \x3CSKILL_DIR>/scripts/main.js alert list --userId \x3CuserId>

/emas alert delete — Hapus alert

node \x3CSKILL_DIR>/scripts/main.js alert delete --userId \x3CuserId> --id \x3CalertId>

/emas ai — Analisis AI (tier AI only)

Trigger: "analisis emas", "prediksi emas", "/emas ai"

Cek tier user dulu. Kalau bukan tier ai, jawab:

"Fitur analisis AI membutuhkan tier AI ($49/bulan). Upgrade untuk mengakses analisis dan prediksi harga dari Kimi 2.5."

Kalau tier ai:

node \x3CSKILL_DIR>/scripts/main.js ai-analysis --userId \x3CuserId>

Penanganan Error

Kalau script gagal:

  1. Cek apakah Node.js tersedia: node --version
  2. Cek apakah dependensi terinstall: ls \x3CSKILL_DIR>/node_modules
  3. Kalau belum: cd \x3CSKILL_DIR> && npm install
  4. Coba jalankan ulang perintah

Kalau scraping gagal (situs down/berubah):

"Maaf, tidak bisa mengambil harga emas saat ini. Situs logammulia.com mungkin sedang tidak bisa diakses. Coba lagi beberapa menit."


Aturan Tier

Fitur Free Pro AI
Cek harga ✅ 3 brand ✅ 10 brand ✅ semua
Compare
Alert
Portfolio
Export
Analisis AI

Kalau user meminta fitur di luar tier-nya, jelaskan dengan sopan fitur apa yang dibutuhkan dan tier berapa.


Cron Job Handlers

emas-alert-check (setiap jam)

Trigger: sistem mengirim pesan berisi alert check

Jalankan:

node \x3CSKILL_DIR>/scripts/main.js alert check --userId all

Kalau ada alert yang trigger, output akan mengandung [NOTIFY:\x3CuserId>] — forward pesan tersebut ke user yang bersangkutan via channel yang aktif.


emas-morning-brief (09.30 WIB)

Trigger: sistem mengirim pesan berisi morning brief atau price --brand antam

Jalankan:

node \x3CSKILL_DIR>/scripts/main.js price --brand antam

Kirim hasilnya ke semua user yang subscribe morning brief (tier Pro/AI). Format pesan dengan tambahan:

🌅 *Selamat pagi! Update harga emas hari ini:*

[hasil price command]

Catatan Penting

  • Selalu tampilkan waktu scraping agar user tahu data seberapa fresh
  • Harga emas berubah setiap hari kerja; weekend/libur pakai harga terakhir
  • Jangan pernah hardcode harga — selalu ambil dari script
  • Format angka selalu pakai format Indonesia: Rp 1.234.567
安全使用建议
Before installing, review and decide: 1) Source trust — install only from a verified repo; the package lists 'unknown' source and cloning placeholders. 2) KIMI_API_KEY — the AI feature requires an API key (KIMI_API_KEY) even though metadata says none; only set this key if you intend to use AI, and store it in a secure place (avoid embedding secrets in public configs). 3) Tool permissions — SKILL.md recommends granting 'exec' and 'group:fs'; consider restricting filesystem access to the skill's directory or using an isolated session to limit blast radius. 4) SKILL.md content review — because SKILL.md is injected into the system prompt, read it end-to-end for any unexpected instructions (scanner flagged a prompt-injection pattern). 5) Cron jobs & notifications — cron commands will run periodically and may send notifications for 'userId all'; confirm you want scheduled runs and that notification forwarding behavior is acceptable. 6) If you proceed, run the skill in an isolated agent/session first, audit the .data files it creates, and verify network endpoints (scrapers target public sites; AI calls go to api.moonshot.cn). If you want, provide the upstream repository URL for a deeper provenance check — that would increase confidence.
功能分析
Type: OpenClaw Skill Name: id-emas-pro Version: 1.3.0 The 'id-emas-pro' skill is a comprehensive gold price tracking and analysis tool for the Indonesian market. It features multi-source web scraping (Antam, Pegadaian, Treasury, etc.), local data persistence for alerts and portfolios, and integration with the Moonshot (Kimi) AI API for market analysis. While it utilizes high-privilege capabilities such as shell execution (via Node.js scripts) and network access for scraping, these actions are strictly aligned with its stated purpose. The code is well-structured, includes extensive documentation (README, RHAONE_GUIDE, CRON.md), and contains robust error handling and input sanitization (e.g., in scripts/main.js and scripts/scraper.js) to mitigate common vulnerabilities.
能力评估
Purpose & Capability
The code and instructions match the stated purpose (scraping Indonesian gold prices, alerts, portfolio, AI analysis). However metadata/requirements claim no environment variables required while README/SKILL.md and runtime code expect a KIMI_API_KEY for the AI feature. SKILL.md also recommends granting agent permissions (exec, group:fs) that go beyond the simple 'node' binary requirement declared in the top-level metadata.
Instruction Scope
The SKILL.md is the runtime instruction injected into the agent's system prompt and instructs the agent to run node scripts via exec and to configure openclaw.json with tool allowances. The pre-scan found a 'system-prompt-override' pattern in SKILL.md — SKILL.md will be visible to the agent as instructions, so any malicious or confusing phrasing there could influence agent behavior. The instructions also ask the agent/operator to create cron jobs that run alert checks as 'userId all' and to forward '[NOTIFY:<userId>]' outputs to channels — behavior that will access users' data and send messages automatically, which is within purpose but worth explicit review.
Install Mechanism
There is no remote install/download step in the skill package (instruction-only install spec). Code is bundled with the skill; package.json requires Node >=18 and lists no external npm deps. This is low-risk from an installer perspective, but the source is 'unknown' and README shows placeholder repo URLs — prefer installing from a trusted origin.
Credentials
The skill's metadata declares no required env vars, yet multiple files (README, RHAONE guide, and scripts/main.js) expect KIMI_API_KEY for AI features. SKILL.md and RHAONE_GUIDE also recommend adding KIMI_API_KEY to openclaw.json and permitting tools like 'exec' and 'group:fs'. Requesting broad filesystem tool privileges (group:fs) is more than strictly necessary for per-skill .data read/write and expands access surface; the undeclared secret (KIMI_API_KEY) is a mismatch that could cause confusion or accidental secret exposure.
Persistence & Privilege
The skill does not set always:true and does not autonomously force itself into every agent execution. However SKILL.md and CRON.md/RHAONE_GUIDE provide explicit cron job commands (openclaw cron add ...) that schedule periodic runs (alert checks, morning brief). That is expected for alerts, but cron jobs will make the skill active on a schedule and may run with 'userId all', so confirm you want recurring automated access. SKILL.md also recommends changing openclaw.json to allow exec and group:fs, which is a configuration-level privilege change.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install id-emas-pro
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /id-emas-pro 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.3.0
Version 1.3.0 — Adds new features and enhancements for gold price monitoring. - Added cron job handlers for periodic alert checks and morning brief price updates (see new CRON.md). - Introduced portfolio and history tracking scripts to expand Pro and AI tier features. - Implemented new script modules: cache, health monitoring, retry logic, and script testing. - Updated skill documentation (SKILL.md) to reflect new cron features and usage instructions. - Enhanced error handling and clarified tier rules across commands. - Improved brand config and script structure for maintainability.
v1.0.3
- Major refactor: skill structure simplified, removing legacy and configuration files. - All business logic consolidated in main.js and storage.js for simpler maintenance. - Documentation updated to include clearer command formats, tier rules, and CRON job usage. - Removed custom configs (brands, thresholds, tiers) and TypeScript/types support. - AI/alert/compare/morning brief cron handler details now included in main docs.
v1.0.2
id-emas-pro 1.0.2 - Metadata in _meta.json updated. - No changes to feature set or commands. - All user-facing documentation and functions remain the same.
v1.0.1
- Metadata or configuration file (_meta.json) updated. - No changes to user-facing features or functionality. - Skill documentation, commands, and features remain as before.
v1.0.0
- Initial release of id-emas-pro, a skill for real-time Indonesian gold price checks (Antam/Logam Mulia). - Supports brand comparison, price alerts, tiered features (Free/Pro/AI), and AI analysis for eligible users. - All operations use Node.js scripts; includes detailed CLI usage and error handling. - Responds with formatted Indonesian currency and displays scraping timestamps.
元数据
Slug id-emas-pro
版本 1.3.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 5
常见问题

Id Emas Pro 是什么?

Cek harga emas Indonesia real-time (Antam/Logam Mulia), bandingkan brand, set alert harga, analisis AI via Kimi. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 114 次。

如何安装 Id Emas Pro?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install id-emas-pro」即可一键安装,无需额外配置。

Id Emas Pro 是免费的吗?

是的,Id Emas Pro 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Id Emas Pro 支持哪些平台?

Id Emas Pro 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。

谁开发了 Id Emas Pro?

由 Rhaone21(@rhaone21)开发并维护,当前版本 v1.3.0。

💬 留言讨论