From 73a3cb69524d4a005d040f0bc669a4cf0e0ad061 Mon Sep 17 00:00:00 2001 From: Tacit Lab Date: Thu, 16 Apr 2026 03:03:25 +0800 Subject: [PATCH] refactor: change data directory from .coin-hunter to .coinhunter - Update SKILL.md references to use ~/.coinhunter/ - Update user-data-layout.md with new directory paths - Update init_user_state.py ROOT path - Unify naming convention with .stockbuddy style --- SKILL.md | 10 +++++----- references/user-data-layout.md | 10 +++++----- scripts/init_user_state.py | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/SKILL.md b/SKILL.md index 13f3e62..58685b7 100644 --- a/SKILL.md +++ b/SKILL.md @@ -1,5 +1,5 @@ --- -name: coin-hunter +name: Coin Hunter description: Hunt, triage, and compare speculative crypto coins — especially meme coins, 妖币-style runners, fake-hype pumps, and possible rug/scam setups. Use when a user wants to actively search for coins with breakout potential, rank a shortlist, ask whether a coin still has "妖性", or check whether a token looks late, fragile, manipulated, or likely to be a scam. --- @@ -62,7 +62,7 @@ Preferred source order: - **CoinGecko** for market-cap, rank, and metadata cross-check - **web_search** for discovery, narratives, and scam-discussion context -Private user state must live outside the skill directory under `~/.coin-hunter/`, not inside `skills/coin-hunter/`. +Private user state must live outside the skill directory under `~/.coinhunter/`, not inside `skills/coinhunter/`. Read `references/provider-playbook.md` when choosing which source to trust first. Read `references/user-data-layout.md` when adding or updating personal accounts, positions, watchlists, or notes. Use `scripts/market_probe.py` for deterministic provider lookups. @@ -217,8 +217,8 @@ If the user wants runners, meme coins, or small-cap candidates: `market_probe.py birdeye-token
` requires `BIRDEYE_API_KEY` in the environment. If it is not configured, say so briefly and continue with DexScreener + CoinGecko + web search. ### Private portfolio state -If the user wants account, position, watchlist, or thesis tracking for coin-hunter: -1. initialize `~/.coin-hunter/` with `python3 scripts/init_user_state.py` +If the user wants account, position, watchlist, or thesis tracking for coinhunter: +1. initialize `~/.coinhunter/` with `python3 scripts/init_user_state.py` 2. store private data only there 3. never place personal holdings inside the skill folder 4. treat the skill folder as logic only, and the user-data directory as state only @@ -289,7 +289,7 @@ If the user wants more depth, expand in this order: ## References Read `references/provider-playbook.md` for source selection and provider roles. -Read `references/user-data-layout.md` for private state layout under `~/.coin-hunter/`. +Read `references/user-data-layout.md` for private state layout under `~/.coinhunter/`. Read `references/radar-checklist.md` for a quick scoring framework. Read `references/search-workflow.md` for active discovery. Read `references/output-templates.md` for compact response structure. diff --git a/references/user-data-layout.md b/references/user-data-layout.md index 1f3d68c..84d129e 100644 --- a/references/user-data-layout.md +++ b/references/user-data-layout.md @@ -1,13 +1,13 @@ # User Data Layout -Store private coin-hunter data outside the skill directory. +Store private coinhunter data outside the skill directory. ## Root directory Use: ```text -~/.coin-hunter/ +~/.coinhunter/ ``` This keeps personal accounts, positions, and watchlists out of packaged skill artifacts. @@ -15,7 +15,7 @@ This keeps personal accounts, positions, and watchlists out of packaged skill ar ## Layout ```text -~/.coin-hunter/ +~/.coinhunter/ ├── config.json ├── accounts.json ├── positions.json @@ -136,8 +136,8 @@ Store disposable API results or normalized snapshots. Never treat this as source ## Rules -- Keep personal data only under `~/.coin-hunter/` -- Never write personal account or position data into `skills/coin-hunter/` +- Keep personal data only under `~/.coinhunter/` +- Never write personal account or position data into `skills/coinhunter/` - Treat `cache/` as disposable - Prefer stable IDs for accounts like `bybit-main` - For meme coins, include `chain` and `contract_address` when known diff --git a/scripts/init_user_state.py b/scripts/init_user_state.py index 1cce039..1465136 100644 --- a/scripts/init_user_state.py +++ b/scripts/init_user_state.py @@ -3,7 +3,7 @@ import json from datetime import datetime, timezone from pathlib import Path -ROOT = Path.home() / ".coin-hunter" +ROOT = Path.home() / ".coinhunter" CACHE_DIR = ROOT / "cache"