refactor: move shims from templates/ to scripts/ and drop legacy shims

- Remove 4 legacy shim files; only the unified coinhunter_shim.py remains
- Move the remaining shim from templates/ to scripts/ per skill best practices
- Update all docs (README, CLAUDE, shim-templates) to reference scripts/
This commit is contained in:
2026-04-16 03:03:25 +08:00
parent c07b9c1ae5
commit e75c54ca12
8 changed files with 18 additions and 101 deletions

View File

@@ -103,27 +103,14 @@ Create your initial `positions.json`:
### 4. Deploy the shims
**Option A — unified shim (recommended for new setups and cross-platform):**
Copy the single unified shim into your platform's scripts directory. It accepts the subcommand as its first argument:
Copy the unified shim into your platform's scripts directory. It accepts the subcommand as its first argument:
```bash
# Hermes
cp templates/coinhunter_shim.py ~/.hermes/scripts/coinhunter_shim.py
cp scripts/coinhunter_shim.py ~/.hermes/scripts/coinhunter_shim.py
# OpenClaw
cp templates/coinhunter_shim.py ~/.openclaw/scripts/coinhunter_shim.py
```
**Option B — legacy shims (existing Hermes users, unchanged behavior):**
The original individual shims are still provided for backward compatibility:
```bash
cp templates/coinhunter_precheck_shim.py ~/.hermes/scripts/coinhunter_precheck.py
cp templates/coinhunter_external_gate_shim.py ~/.hermes/scripts/coinhunter_external_gate.py
cp templates/coinhunter_review_context_shim.py ~/.hermes/scripts/coinhunter_review_context.py
cp templates/rotate_external_gate_log_shim.py ~/.hermes/scripts/rotate_external_gate_log.py
cp scripts/coinhunter_shim.py ~/.openclaw/scripts/coinhunter_shim.py
```
### 5. Configure the platform cron job
@@ -207,12 +194,8 @@ coinhunter/
├── README.md # You are here
├── SKILL.md # Full framework spec + gate blueprint
├── CLAUDE.md # Guidance for Claude Code
├── templates/ # Platform cron shims (call the installed coinhunter CLI)
── coinhunter_shim.py # Unified cross-platform shim (recommended)
│ ├── coinhunter_precheck_shim.py
│ ├── coinhunter_external_gate_shim.py
│ ├── coinhunter_review_context_shim.py
│ └── rotate_external_gate_log_shim.py
├── scripts/ # Platform cron shims (call the installed coinhunter CLI)
── coinhunter_shim.py # Unified cross-platform shim
└── references/
├── short-term-trading-framework.md
├── review-template.md