AgentSkillsCN

ikf-heatmap-contract-enforcer

对所有热力图瓦片进行审计与修复,使其完全契合IKF热力图合约规范(基于信号的颜色映射、数值排序、格式化与布局设计)。

SKILL.md
--- frontmatter
name: ikf-heatmap-contract-enforcer
description: Audits and fixes all heatmap tiles to match IKF Heatmap Contract (signal-based color, numeric sorting, formatting, layout).

IKF Heatmap Contract Enforcer

Objective

Ensure every heatmap-like component in this repo follows the Heatmap Contract defined in CLAUDE.md.

Must Check

  • Hue based ONLY on Signal sign (green/red/neutral).
  • Signal displayed as real number (no %), Pred displayed as 0.xx (no %).
  • Layout: ticker TL, pred BL, signal center-right with no overlaps.
  • Sorting numeric and correct for Signal ASC/DESC (never string sorting).
  • Consistency across: /today, /dashboard mini-heatmaps, /wishlists cells, Compare Drawer ladder.

Output

  1. List of files/components violating the contract.
  2. Minimal diff plan to refactor into shared utilities/components (avoid duplication).
  3. A visual checklist to verify manually.