ask-matt
MAmattpocock/skills337k4,978 new stars in the last 7 days
Locate historical Chinese events, classical poems, battles, ancient places, and single or multi-person life trajectories on the Jiangshan Historical Atlas (江山时序, 403 BCE – 2026 CE) by resolving a question into (year, place) or (--person A,B), generating an interactive deep-link URL, inspecting structured administrative/biographical context, and optionally rendering a high-resolution map screenshot. Use when the user asks about the time, location, territorial context, administrative genealogy, life trajectory, or shared historical encounters of Chinese historical events, poems (e.g. "雪拥蓝关马不前"), figures (e.g. "李白和杜甫在哪里相遇", "诸葛亮与司马懿交锋"), or ancient places.
江山时序) SkillUse 江山时序 (Jiangshan Atlas) to turn any question about Chinese history, classical literature, poetry, battles, historical figures, or ancient geography into:
?year=<YEAR>&place=<PLACE> or ?person=<FIGURES>)--inspect) returning the exact reign era, regime (polity), macro-region (道/路/行省), prefecture (郡/州/府), modern province, nearest ancient city (with capital status and era-specific historical remark), the 2,400-year city/pass overview (lore with bilingual tag/desc and tagEn/descEn), or single/multi-person life trajectories and shared historical encounters (person.encounters)--out) showing dynastic territories, mountains/rivers, red pinpoint marker, single/multi-person trajectory (点人溯事 · 同途相逢 / 时空平行对照), or the 2,000-year administrative genealogy card (点地溯源 · 古今政区沿革).year and Disambiguated place First (先考据年份与地点)When a user asks about a historical event, classical novel scene, poem, battle, or idiom, the prompt often omits the exact year or uses a literary/event phrase (e.g., "找到水浒传宋江江州劫法场的地方"). Before building any URL or running the script, always deduce:
Deduce the Historical Era & Representative Year (先定年份):
-403 to 2026, negative for BCE, no year 0) behind the event or literary setting.year=1102 (or 1110).year=819.year to -403 while explaining the actual date in prose.year=1079,1080,1094,1097).Deduce & Disambiguate the Canonical Place (再定地点 · 古今消歧):
place=江州劫法场 or place=风雪山神庙. Extract the actual geographic site (浔阳 / Xunyang / 九江 / Jiujiang).江州 in Qin/Han/Three Kingdoms (巴郡江州) was modern 重庆 (Chongqing), whereas 江州 in Eastern Jin, Tang, and Song (e.g., 白居易“江州司马”、宋江“刺配江州”) had its seat at 浔阳 (Xunyang), i.e., modern 江西九江 (Jiujiang).浔阳/Xunyang, 浔阳楼, 梁山泊/Mount Liang, 景阳冈, 大名府/Daming, 风波亭, 蓝关/Lantian Pass/Languan, 长安/Chang'an/Changan, 赤壁/Red Cliffs/Chibi, 京口/Jingkou, 五丈原/Wuzhang Plains, 马嵬坡/Mawei, 白帝城/Baidicheng, 采石矶, 长平/Changping, 巨鹿/Julu, 垓下/Gaixia, 官渡/Guandu, 肥水/Fei River, 牧野/Muye, 鸣条/Mingtiao, 崖山/Yamen, 土木堡/Tumu, 滕王阁/Tengwang Pavilion, 黄鹤楼, 岳阳楼, 兰亭, 瓜洲, 轮台, 寒山寺, 卢沟桥) OR its modern prefecture/county city name (九江/Jiujiang, 运城/Yuncheng, 镇江/Zhenjiang, 黄冈/Huanggang, 宝鸡/Baoji, 奉节/Fengjie, 绍兴/Shaoxing).place=浔阳, place=九江, or place=Xunyang, never place=浔阳(九江)).--inspectOnce (year, place) are deduced, format the deep-link URL (do NOT guess longitude or latitude numbers):
https://deanchen.me/jiangshan-map/?year=<YEAR>&place=<PLACE>
year=<INT>&place=<SITE> in Chinese or English/Pinyin (e.g., ?year=1102&place=浔阳, ?year=819&place=蓝关, or ?year=819&place=Lantian+Pass&lang=en).;): Pass comma-separated place names in chronological order (place=剑外,巴峡,巫峡,襄阳,洛阳 with year=763, or place=Huzhou,Huangzhou,Huizhou,Danzhou with year=1079,1080,1094,1097), or semicolon-separated converging routes (place=许昌,江陵,赤壁;柴桑,樊口,赤壁 with year=208). The atlas draws curved high-contrast trajectories (1 → 2 → 3...), frames the camera bounding box, and lets the user click any numbered stop to jump to its year and open its 2,000-year administrative genealogy card.person=<FIGURE>&stop=<INDEX>): Opens the curated multi-stop life & poetry trajectory (点人溯事 · 人物生平纪事) for any of the 125+ curated historical figures (such as sushi, zhugeliang, huoqubing, libai, dufu, gaoshi, caocao, xinqiji, xuanzang, wangyangming, zhangqian, baijuyi, hanyu, liuyuxi, yuefei, wentianxiang, zhenghe, banzhao, wangzhaojun, wenji, mulan, liqingzhao, qinshihuang, xiangyu, simamaqian, weiqing, banchao, zengguofan, etc.), any reigning monarch with ≥2 historical milestones, or the 传国玉玺 (yuxi) relic in Chinese, English, or Pinyin (?person=sushi or ?person=sushi&stop=2).person=<FIG1>,<FIG2>[,<FIG3>]): Pass 2–4 comma-separated figures (?person=libai,dufu, ?person=libai,dufu,gaoshi, ?person=caocao,liubei,sunquan, ?person=zhugeliang,simayi, ?person=liubei,caocao, ?person=xiangyu,liubang, ?person=wanganshi,simaguang, ?person=xuanzang,lishimin, ?person=liqingzhao,yuefei, or ?person=libai,sushi). Merges all selected figures onto one unified chronological timeline and map layer with symmetric pairwise encounter matching: solo events carry a single badge ([🔴 李白]) and map bead, while co-located / co-participating events ($|\Delta\text{year}| \le 3,\ \le 45\text{ km}$) naturally carry 2 or 3 badges ([🔴 李白] [🔵 杜甫] [🟢 高适]) and a multi-dot capsule (🔴🔵🟢) on the map.event=<KEY>[&stop=<INDEX>]): Opens a two-camp event sandtable (点事溯局 · 事件始末) that unfolds stop by stop while the base map follows the dates: ?event=anshi (安史之乱), ?event=jingkang (靖康之变), ?event=qintongyi (秦灭六国), ?event=chuhan (楚汉之争), ?event=changzheng (红军长征). Use event for these events rather than person.hover=<PREFECTURE>: Highlights one 州/府/郡 polygon of that year's snapshot and pops its tooltip (江州 · 属 宋 · 今:江西省). Supports both Chinese and English/Pinyin prefecture titles in that era (hover=江州 or hover=Jiangzhou in 1102, hover=黄州 or hover=Huangzhou in 1083, hover=应天府 or hover=Yingtian Fu in 1415). Pair with place so the camera frames the prefecture (?year=1102&place=浔阳&hover=江州); place also settles pinyin homophones (绛州 and 江州 are both Jiangzhou in 1102) by highlighting the one nearest that place.lang=zh-tw / lang=en: Renders the Traditional Chinese (lang=zh-tw) or English (lang=en) atlas UI when the user writes in Traditional Chinese or English, or asks for a Traditional Chinese / English map (place, person, and hover work in Simplified Chinese, Traditional Chinese, or English/Pinyin, e.g., ?year=741&place=長安&lang=zh-tw or ?year=1082&place=Huangzhou&hover=Huangzhou&lang=en).Use --inspect to verify place or figure resolution and retrieve structured historical metadata (regime, circuit/province, prefecture, modern province, nearestCity with isCapital and era-specific remark, lore with 2,400-year city/pass overview tag/desc/tagEn/descEn, route distance, and person life events) as JSON without needing to read a screenshot:
python3 skills/jiangshan-atlas/scripts/jiangshan.py --year 1102 --place 浔阳 --hover 江州 --inspect
python3 skills/jiangshan-atlas/scripts/jiangshan.py --person sushi --stop 2 --inspect
python3 skills/jiangshan-atlas/scripts/jiangshan.py --person libai,dufu --inspect
| User Prompt | Step 1: Historical & Geographic Deduction (先考据) | Step 2: Deep-Link URL (后构建 URL) |
|---|---|---|
| "找到水浒传宋江江州劫法场的地方" | 《水浒传》宋江刺配江州、浔阳楼题反诗、劫法场背景为北宋徽宗崇宁年间(约 1102 年);宋代江南西路江州治所为浔阳(今江西九江,非巴郡重庆) | https://deanchen.me/jiangshan-map/?year=1102&place=浔阳&hover=江州 |
| "雪拥蓝关马不前 当时是什么时间地点?" | 韩愈于唐宪宗元和十四年(819 年)贬潮州途中经秦岭蓝田关(蓝关)(今陕西西安蓝田) | https://deanchen.me/jiangshan-map/?year=819&place=蓝关 |
| "杜甫《闻官军收河南河北》即从巴峡穿巫峡,便下襄阳向洛阳路线?" | 唐代宗广德元年(763 年)杜甫在剑外(四川梓州)闻叛乱平定,规划同年水陆返洛阳路线 | https://deanchen.me/jiangshan-map/?year=763&place=剑外,巴峡,巫峡,襄阳,洛阳 |
| "苏轼问汝平生功业,黄州惠州儋州贬谪路线?" | 苏轼自乌台诗案(1079 湖州)起,历贬黄州(1080)、惠州(1094)、儋州(1097) | https://deanchen.me/jiangshan-map/?year=1079,1080,1094,1097&place=湖州,黄州,惠州,儋州 |
| "李白和杜甫一辈子在哪些地方相遇过?" | 唐天宝三载至四载(744–745),李白与杜甫先后于洛阳初遇、与高适同游梁宋(开封/商丘)、齐鲁兖州话别 | https://deanchen.me/jiangshan-map/?person=libai,dufu |
| "李白、杜甫、高适三人的交集与各自命运如何?" | 744 年三人同游梁宋(开封/商丘);752 年杜甫与高适同登长安慈恩寺塔;安史之乱后李白流放夜郎,高适出任彭州刺史与成都草堂杜甫唱和(760) | https://deanchen.me/jiangshan-map/?person=libai,dufu,gaoshi |
| "诸葛亮北伐与司马懿在哪几处正面交锋?" | 蜀汉建兴六年至十二年(228–234),两人先后于祁山、卤城/木门道、五丈原展开宿命对决 | https://deanchen.me/jiangshan-map/?person=zhugeliang,simayi |
| "文天祥《过零丁洋》惶恐滩头说惶恐,零丁洋里叹零丁抗元路线?" | 南宋末文天祥自赣州起兵(1275),撤退经江西万安惶恐滩(1277),于珠江口零丁洋被俘(1278),至崖山海战(1279) | https://deanchen.me/jiangshan-map/?year=1275,1277,1278,1279&place=赣州,惶恐滩,零丁洋,崖山 |
| "辛弃疾写京口北固亭怀古时天下局势如何?" | 南宋宁宗开禧元年(1205 年)辛弃疾任镇江知府,登京口(今江苏镇江)北固亭北望金朝 | https://deanchen.me/jiangshan-map/?year=1205&place=京口 |
| "苏轼写《记承天寺夜游》时黄州归哪里管?" | 北宋神宗元丰六年(1083 年)苏轼贬居淮南西路黄州(今湖北黄冈),高亮黄州州界 | https://deanchen.me/jiangshan-map/?year=1083&place=黄州&hover=黄州 |
| "Where was Su Shi exiled when he wrote the Red Cliff odes?" | Northern Song Yuanfeng 5 (1082 CE), exiled at Huangzhou (黄州, modern Huanggang, Hubei), English UI | https://deanchen.me/jiangshan-map/?year=1082&place=Huangzhou&lang=en |
--out)Follow these three execution rules to keep responses fast and avoid wasted turns:
--inspect first, screenshot on-demand: The deep-link URL and --inspect JSON are instantaneous and sufficient for most answers. Only pass --out <PATH> to render a PNG screenshot when the user asks for an image/map or when visual territorial/route comparison clearly adds value.jiangshan-map (or with JIANGSHAN_REPO_ROOT set), --inspect (~0.2s via Node) and --out (~3–5s) work completely offline. When running standalone without a local checkout, headless Chrome must fetch ~3 MB of map/terrain assets from deanchen.me (typically 6–12s): run with network access enabled from the start (do not try in an offline sandbox first) and set a synchronous wait/timeout of at least 10–15 seconds.jiangshan.py automatically verifies the PNG header, dimensions (>=800x500), and pixel variance (exiting with code 1 on blank renders). Once it exits 0, embed the PNG path directly in your response without calling an image-viewing tool unless you specifically need to inspect visual details on the canvas.# 1. Inspect + single-site pinpoint screenshot (0D)
python3 skills/jiangshan-atlas/scripts/jiangshan.py \
--year 1102 \
--place 浔阳 \
--hover 江州 \
--inspect \
--out /tmp/jiangshan_1102_xunyang.png
# 2. Same-year poetic trajectory (1D)
python3 skills/jiangshan-atlas/scripts/jiangshan.py \
--year 763 \
--place 剑外,巴峡,巫峡,襄阳,洛阳 \
--inspect \
--out /tmp/jiangshan_763_dufu_route.png
# 3. Multi-year historical trajectory (4D spacetime)
python3 skills/jiangshan-atlas/scripts/jiangshan.py \
--year 1079,1080,1094,1097 \
--place 湖州,黄州,惠州,儋州 \
--inspect \
--out /tmp/jiangshan_sushi_exile_route.png
# 4. Multi-person shared encounters / parallel lives comparison
python3 skills/jiangshan-atlas/scripts/jiangshan.py \
--person libai,dufu \
--inspect \
--out /tmp/jiangshan_libai_dufu.png
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
OBobra/superpowers331k4,772 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days