Install
openclaw skills install @lucianaib2004/lifetrace-amapUse when creating a sourced lifetime footprint map for a historical figure, public figure, family member, or private person from public research, JSON, or CSV data, especially when the result should be an interactive HTML timeline using AMap geocoding or map links.
openclaw skills install @lucianaib2004/lifetrace-amap把人物经历整理为“时间—地点—事件—来源—可信度”数据,并生成可播放、可点击的动态 HTML 人生足迹图。
AMAP_KEY;新版 Key 可同时提供 AMAP_SECURITY_KEY。serve 仅监听本机 127.0.0.1。amap-cli-skill,用于高德地图状态与交互校验。<person-slug>-portrait.png 保存。用户已提供授权图片时优先使用该图片,不重复生成。serve 从环境变量加载真实高德地图,检查动态播放、重置、标记、人物画廊、故事图和侧栏联动。confirmed、inferred、disputed 表示可信度。验证数据:
node life-trace.mjs validate liu-bei.json
生成公开人物地图:
node life-trace.mjs build liu-bei.json demo.html
生成普通人地图:
node life-trace.mjs build personal-template.csv my-life.html --person "我的人生地图"
经用户允许后用高德查询坐标:
$env:AMAP_KEY="你的高德 Web 服务 Key"
node life-trace.mjs geocode "四川省成都市"
Key 只从环境变量读取,不写入 Skill、数据或 HTML。
启动真实高德地图 Demo:
$env:AMAP_KEY="你的高德 Web JS API Key"
$env:AMAP_SECURITY_KEY="对应的安全密钥(旧版 Key 可留空)"
node life-trace.mjs serve demo.html
固定预览地址为 http://127.0.0.1:8777/demo.html。不要直接双击 demo.html:页面需要由 serve 在内存中注入高德配置。凭据错误时必须显示错误,不得用案例轮廓图冒充高德在线地图。
先运行 node life-trace.mjs build liu-bei.json demo.html,再运行 node life-trace.mjs serve demo.html 并打开输出地址:
AMAP_KEY 或 AMAP_SECURITY_KEY,由本机 serve 运行时注入。