xauusd-trading — Claude Code skill: gold scalping signals
Pulls XAUUSD quotes and has the model read them, producing scalping signals with a 5-point stop. Built for small accounts on 5m/15m charts.
npx skills add huynguyen03dev/xauusd-trading --skill xauusd-trading -a claude-codeWhat xauusd-trading does
The skill feeds your agent live gold data. fetch_price.sh returns the current price, the OHLC of the active candle and an indicator set across 5m/15m/1h; fetch_candles.sh returns candle history for intervals from 1min to 1day. Twelve Data is the main source and needs a key exported as TWELVE_DATA_API_KEY. Without that key you fall back to fetch_gold.sh on Yahoo Finance, where quotes run roughly 15-20 minutes behind.
Analysis follows a fixed order. Price structure comes first: where price sits against support, resistance and swing points. Candle patterns come next, and indicators only confirm or deny what structure already shows. RSI, MACD or Stoch on their own are not a reason to enter. A table of extreme readings backs this up — Stoch K under 10, CCI under -100, RSI under 30 for longs, mirrored thresholds for shorts.
Filters run before any signal. When 5m ATR is above 8 points, or 15m ATR above 20, the skill skips the trade: a 5-point stop is noise at that volatility. Trading between 21:00 and 22:00 UTC is blocked outright, since stop hunts cluster around the daily rollover — the author moved this from a soft warning to a hard gate after two 5-point stops were swept back to back. Scheduled news such as CPI, NFP and rate decisions also closes the door, because gold can travel dozens of points in seconds. Factor in the spread of 2-3 points plus slippage: your real stop cost lands at 8-9 points, not 5.
What it helps with
- pull live gold price and indicators into the chat
- skip trades during rollover and news releases
- find an entry at a level instead of mid-range
- size stop and target for a 5-point risk account
- check whether volatility is too high to scalp
Example prompts for the agent
- Analyze XAUUSD on the 5m and give me a signal
- Run
fetch_candles.sh 5min 30and mark the swing levels - Check ATR and tell me if a gold long is worth taking now
How to install xauusd-trading
1Skills CLI (Vercel)
npx skills add huynguyen03dev/xauusd-trading --skill xauusd-trading -a claude-code2Manually: put the files in place
~/.claude/skills/xauusd-trading/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/xauusd-trading/
1Skills CLI (Vercel)
npx skills add huynguyen03dev/xauusd-trading --skill xauusd-trading -a codex2Manually: put the files in place
.agents/skills/xauusd-trading/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add huynguyen03dev/xauusd-trading --skill xauusd-trading -a cursor2Manually: put the files in place
.cursor/skills/xauusd-trading/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install huynguyen03dev/xauusd-trading xauusd-trading2Manually: put the files in place
.github/skills/xauusd-trading/SKILL.md1Skills CLI (Vercel)
npx skills add huynguyen03dev/xauusd-trading --skill xauusd-trading -a gemini-cli2Platform CLI
gemini skills install https://github.com/huynguyen03dev/xauusd-tradingManually: put the files in place
.devin/skills/xauusd-trading/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add huynguyen03dev/xauusd-trading --skill xauusd-trading -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about xauusd-trading
How do I install xauusd-trading in Claude Code?
Run npx skills add huynguyen03dev/xauusd-trading --skill xauusd-trading -a claude-code. The skill lands at ~/.claude/skills/xauusd-trading/SKILL.md.
What does xauusd-trading do?
It fetches XAUUSD quotes and candle history, reads price structure, and returns a scalping signal with a 5-point stop, entry zone and take-profit levels.
Does the skill need an API key?
Real-time data without delay requires a Twelve Data key in TWELVE_DATA_API_KEY. Without it, the Yahoo Finance path stays available, running about 15-20 minutes behind.