Communitygithub.com

skill

A silent showcase of a region's history over a long span: a map of the region on top, a timeline along the bottom, no narration. The map shows who held which territory in each year; the timeline shows which powers were alive, when each was founded and when it fell. The viewer watches territory change colour and the timeline slide, and reads a short introduction at each key year.

What is skill?

skill is a Claude Code agent skill that a silent showcase of a region's history over a long span: a map of the region on top, a timeline along the bottom, no narration. The map shows who held which territory in each year; the timeline shows which powers were alive, when each was founded and when it fell. The viewer watches territory change colour and the timeline slide, and reads a short introduction at each key year.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/a125477365/map-timeline-history-video/tree/HEAD

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Map-and-Timeline History Video

A silent showcase of a region's history over a long span: a map of the region on top, a timeline along the bottom, no narration. The map shows who held which territory in each year; the timeline shows which powers were alive, when each was founded and when it fell. The viewer watches territory change colour and the timeline slide, and reads a short introduction at each key year.

The format

  • Horizontal 16:9, 1920x1080, 24fps, silent — no narration, no voiceover.
  • Top: the map of the region. Bottom: the timeline. The two use the same colours for the same state, so a colour means the same power in both places.
  • The map is a real terrain base (not a stylised drawing) filling the whole frame; territories are drawn by code from real geography, following real physical features (rivers, mountain ranges, walls) as boundaries.
  • A state too small to read at full-frame scale gets a zoomed explanation, then the view returns to the full map.
  • Build a short trial first (one dense period, roughly 80-90 seconds) and show it to the user before the full video.

The map

  • Draw territories from the merged, audited territory dataset only — never from a pre-audit or superseded copy.
  • A region with no state covering it stays blank (bare terrain, no fill). Never invent territory.
  • Key states are filled with their colour. Non-key states get no fill — name only, in the smallest label tier.
  • Territory fills are semi-opaque so the terrain shows through; highlighted states are full saturation with a bright border, all others dimmed — dimmed hard enough that the highlighted state jumps out at a glance (dimming that is barely visible is not dimming).
  • The terrain base is slightly darkened so map text stays readable.
  • The map is driven by year: at every territorial change year in the data (not only key years) the map updates, with a short smooth transition (border fade / crossfade, about half a second), never a hard jump. In a stretch with no change year the map holds that year's state and does not move on its own.
  • Territory polygons must not overlap — they must share a border, not cover each other. Where they overlap, the later-drawn state covers the earlier one, and the border line is drawn on top of another state's fill, reading as a stray line inside one country. No colour change fixes this. (Root causes to check: a region tile assigned wholesale to a later state while a smaller state's own polygon still sits inside that tile; a polygon that extends into a neighbour after an audit correction.) Fix the data (carve the smaller state out of the tile, or trim the polygon) or the draw order.
  • A non-key state with no fill still draws its border — check every non-key state's border against every key state it touches. A border drawn on a key state's fill reads as a stray line inside that key state, even though the two states have different colours.
  • Borders are thin and light; labels only where they fit, never overlapping; in crowded areas, label the large states first.
  • Check fronts and borders against a reference for every segment; do not draw a straight line where the real line bends. Clip every front line and arrow to the landmass it describes — keep fronts and arrows out of neighbouring countries and out of the sea.
  • When the user points out one map error, self-check every analogous case across the whole film to the same standard before reporting the fix.

Map labels

  • A state's name sits at the centre of its territory (the pole of inaccessibility — the centre of the largest inscribed circle), at a size that fits INSIDE the shape (not just inside its bounding box), and at most roughly three-quarters of the shape's width and about half its height, so a label never dominates its state.
  • Three label sizes: the state named in the current introduction gets the largest; key states get medium; non-key states get the smallest.
  • A state too small to fit even the smallest label inside gets its name OUTSIDE, joined to the state by a thin leader line to the nearest free spot.
  • Labels never overlap. Leader lines never cross another label or the fixed overlays (ruler panel, event text, title, current-year label).
  • A map label must sit INSIDE its own state's filled territory, never on a neighbour's fill. Verify an in-state label's anchor against the actually-rendered fill (after draw order), not only against its own polygon — an anchor can be inside its own polygon yet covered by a neighbour drawn later when polygons overlap.
  • Leader-line label placement must verify the label does not sit on a neighbouring state's fill. Checking only that it does not overlap placed names, that it avoids fixed zones, and that the leader line does not cross text is NOT enough — most misplaced labels are leader-line labels for small states, so check those first and hardest.
  • Non-highlighted labels are dimmed so a name cannot pull the eye away from the highlighted state. Dimming covers the name as well as the fill — a bright name on a dimmed state still pulls the eye.
  • A state's name is placed at the centre of its territory; if the territory is too small for the name, use a leader line to place the name outside — never squeeze it into a neighbour's territory.

The timeline

  • The timeline is one long strip sliding under a fixed triangle. The triangle never moves (it sits at the centre of the frame); the strip slides underneath it, and the current year is always aligned to the triangle.
  • The scale is fixed and linear for the whole video (one year equals a fixed number of pixels) and never changes mid-video. Do not vary the speed by information density — a slow ancient stretch and a fast dense stretch run at the same fixed pace (varying speed by density was considered and rejected: it makes the strip unreadable at high speed and breaks the fixed scale).
  • The timeline spans the full width of the frame, edge to edge. Sliding left, the strip exits at the left edge and new strip enters at the right edge.
  • Only key states get bands. Non-key states do not enter the timeline; they appear on the map only.
  • No lane lines, no reserved empty lanes. However many key states are alive at a moment, that many bands fill the whole timeline height with zero gaps. When a state is founded or falls, the bands re-divide from that year onward — never reserve space in advance.
  • Band heights are equal: the alive states share the timeline height equally. Territory size is shown on the map only; the timeline does not encode area.
  • A state's band is drawn only within its own lifetime — it starts at its founding year and stops at its fall, and never changes colour.
  • Stacking is stable and geographic: north on top, south below, fixed once by the founding-year area-weighted centroid latitude, never changing (unless a state falls and later rises again, which is a new band).
  • When a band is split into pieces (because the alive-state count changed and the bands re-divided), every piece carries the state's name; the widest piece carries the full "name + years" label and the other pieces carry the bare name.
  • The full "name + years" label is centred horizontally on the WHOLE band — its centre is the midpoint between the state's founding and fall years, not the midpoint of its widest piece. The other pieces' bare names are centred on their own piece.
  • The full label is drawn in the piece that contains the whole-band midpoint, sized by that piece. If it spills past that piece into neighbouring pieces of the same state, its vertical position must keep it inside the state's band in every interval it covers (neighbouring pieces sit at different heights). If no size down to the smallest readable size keeps it on the band, the state gets bare names only — record this as an explicit fallback, never silently place the label off-centre.
  • Band labels are pure white, sized by the band piece's area (wider and taller pieces get larger type), and capped so they never overflow the piece. The white playhead line crosses the text as before — do not break the line around labels.
  • No dark bar or strip below the bands: the axis follows directly under the bands. If the bar is removed from a layer, remove it from every layer it appears in (it is drawn in multiple layers; removing it from one leaves it in the others). Removing it leaves a gap between the band bottom and the axis — decide whether the axis moves up; do not leave a blank band. There is also a soft shadow under the whole timeline extending below the bands — confirm whether it stays or goes when the bar is removed; do not leave a stray shadow that reads as a bar.
  • Axis ticks at a fixed interval, year labels at a wider fixed interval (labels too close together overlap). Year labels at the sliding edges are clipped — that is inherent to a sliding strip.
  • The same text is written only once on the timeline — never repeat a label in the same stretch.

Labelling — centre by ink, not by the font box

  • Centre every label — timeline band labels and map names alike — by the VISIBLE INK of its glyphs, not by the font's em box. For the CJK bold face used here the ink centre sits roughly 28-30% of the font size BELOW the em-box centre at every size (a small label sits a few pixels low; a large highlighted name sits tens of pixels low), so em-box centring leaves every label visibly low in its band or territory. This applies to every drawing point that centres a label: all timeline-band label sites (full labels and bare names, in every layer) and the map-name routine, and the ruler-panel block.
  • Compute a label's collision/overlap box from its INK box, not its em box — a large label's ink extends well below its em box and can cover a neighbour's name even when the boxes do not overlap.
  • Top-anchored text (axis year labels, event text, titles, the current-year label) has no centring target, so it is not affected by this — but do not assume a top-anchored element is centred.
  • Verify centring by LOOKING at the rendered frame the way the viewer sees it. A pixel measurement that says "centred" does not count if the eye sees it off-centre.

Which states enter the timeline

  • A state enters the timeline only if it ruled the whole region, or the entire north, or the entire south at the time. A state that ruled only part of the north or part of the south stays map-only: it is labelled on the map but gets no band and no introduction.
  • This is an editorial standard, not a historiographical law. Borderline cases are flagged for the user to review; do not silently promote or demote a state.
  • A container dynasty — a dynasty that sits above several parallel states as their common sovereign, rather than competing with them as one state among others — gets no band. Mark it on the timeline with only two vertical lines (founding and fall). Draw the dynasty AND the states inside it on the map; mark the dynasty's and the states' key years on the timeline.
  • Whether a renamed, interrupted, or restored polity counts as a new state or as a continuation is decided in the dataset and flagged for the user; do not merge or split silently.

Introductions and ruler panels

  • Every state on the timeline gets an introduction at its founding. No timeline state is introduced late or skipped — a long stretch with no introduction means a state was missed.
  • The introduction text is a short gold line (or two) at the top centre of the frame: the year, then what happened ("in this year, this person founded this state" / "in this year, this state destroyed that state"). It is bright gold, serif bold, large, centred, with a dark outline and no box; it is repositioned in the frame as needed so it never covers the state being discussed.
  • When a state falls to a state that already exists, the introduction names the conqueror ("in this year, this state destroyed that state") and the ruler panel shows the CONQUEROR's ruler list.
  • When a state falls to a newly founded state, the introduction names both ("in this year, this person founded this state, and that state fell") and the ruler panel shows the NEW state's list.
  • When a founding and a fall happen in the same year, the introduction covers both, and the ruler panel shows the new state's list.
  • At a battle or war key year, the ruler panel shows the WINNER's list.
  • The ruler panel lists that state's rulers (with reign years and names) in the empty space at the side of the frame; two columns when the list is long. It has no background, is transparent, has no frame — only text with a dark outline. Where no reliable list exists, it shows "no references" rather than inventing one.
  • The period title sits at the bottom right, above the timeline, with no underline. It changes with the period: the title is the title of the period the current year belongs to, and it changes the moment the period changes. Define the period titles as an ordered list of (start year, title) covering the whole range with no gaps; the title for a year is the last entry whose start year is not after that year.
  • The current year is shown at the bottom right, above the period title, in a conspicuous colour (gold), bold, with a dark outline. It is never placed in the middle or lower centre of the frame.

Highlight

  • The highlight shows only the parties named in the current introduction: one state for a founding, two for a conflict / destruction / war (who attacked whom).
  • The highlighted state is full saturation with a bright border and its name in large bright type; all other key states keep their own colours but are dimmed — dimmed hard enough that the highlighted state jumps out at a glance.
  • Non-key states keep name-only (no fill) and their names are dimmed too.
  • The highlight on the map and the highlight on the timeline change together, on the same frame as the introduction text.

Colours

  • A state has one colour for its whole lifetime, the same on the map and on the timeline, never changing.
  • States alive at the same time must be visually clearly different — different hues, obvious at a glance, not just different RGB values.
  • States that succeed one another in time (one falls, another takes over) must also be clearly different, or the viewer reads them as one continuing state.
  • States that follow one another in the same lane must also be clearly different, or a change of dynasty is invisible.
  • A colour is reused only for states that do not overlap in time and are not adjacent in succession.
  • Map colours are soft (political-map style); neighbouring states always have different colours; borders are thin and light.

Pacing and duration

  • There is no duration limit: the video runs until every introduction is done. Its length is decided by the number of key years.
  • The founding AND the fall of every key state both count as key years, and each key year gets one segment. Several events in the same year share one segment, and the introduction covers them all.
  • Each segment is a fixed duration (4 seconds), sliding at a uniform speed, the triangle moving continuously without stopping or jumping. A one-year difference still gets a full segment. The segment shows that segment's starting event's introduction.
  • The opening is a fixed-duration title card (5 seconds): the title on screen, mysterious, with background music, no narration, no introduction.
  • A final hold of one segment's duration closes the video on the last event.
  • Verify each event's on-screen duration by frame inspection — event text, ruler panel, and highlight must all switch on the same frame — not only by the config. The config saying a fixed duration does not prove the viewer sees that duration.
  • If the viewer still perceives an event as longer than its segment, the cause is the ~0.5s map crossfade or a segment with few year-changes feeling slow, not a timing error. Do not lengthen or shorten segments to chase the perception; check the specific timestamp by frame inspection instead.

Music and sound

  • The full video has no narration. The only sound is background music and, optionally, ruler quotes.
  • Background music is generated for the video — never an existing commercial track, and never a track the viewer would recognise from another video.
  • The music's mood follows the situation: calm in peaceful periods, urgent in war periods.
  • Use instruments from the period being shown where possible; where there is no suitable period instrument, omit the music rather than forcing one.
  • When introducing a state, at most one real famous quote from that state's ruler may be played, in a voice matching that person's character. The quote must be real; if there is no suitable real quote, or the voice cannot be matched, do not play one. A quote is a single line, never expanded into an explanation.

Data and verification

  • The dataset must cover the whole range with no gap years and no missing states, however small or short-lived. Every state in the range is in the dataset, with founding year, fall year, and territory.
  • Key a state by (name, founding year, fall year), not by name alone. Two entries with the same name are different states unless they are the same continuous polity split by a data boundary; a state split across a data boundary is one state, keyed by its full span.
  • A state's founding base must be its ACTUAL territory in its founding year — not its peak extent. The commonest data error is drawing a long-lived great state at its peak extent for its whole life; check the founding base first.
  • Every intermediate territorial change must be recorded at its change year — a major expansion or contraction is never left to the founding base alone. Changes are applied as a union with the existing territory at that year.
  • Ruler lists are verified against sources; a reign is dated by accession year, and its end is the year the ruler died (or ceased to rule), not the year they were captured if the two differ.
  • The dataset is audited before the build: every state is checked one by one, none skipped. Corrections go into the merged dataset and the build renders only from that merged, audited dataset — never from a pre-audit or superseded copy. Keep a backup of the pre-merge dataset.
  • A territory that no state covers in a given year is left blank — never filled in by invention. A state whose sources are too thin to draw precisely is drawn as approximate and marked as such in the data, not silently drawn as exact.

Workflow and verification

  • Build a short trial first (one dense period) and show it to the user before the full video. Do not render the full video until the trial is approved.
  • Verify by LOOKING at rendered frames the way the user sees them. A pixel measurement that says "centred" or "correct" does not count if the eye sees it off-centre or wrong. Read the frames yourself; do not substitute numbers for the viewer's eye.
  • Verify each event's on-screen duration by frame inspection, and verify every map label sits inside its own fill by inspecting the rendered frames at several sampled years.
  • When the user points out one error, self-check every analogous case across the whole film to the same standard before reporting the fix — check all drawing sites, all label positions, all adjacent pairs, all segments, not just the one they pointed at. Report what else was found, not only the one fix.
  • A video with known problems does not ship — fix it properly even if it delays delivery. Quality is a hard gate; output frequency is flexible.
  • Do not adopt a technique from a reference video without deciding it explicitly. In particular: do not vary the pacing by information density, and do not use an existing commercial track for the music — both were considered and rejected for this format.

Format parameters

These settings define the format; keep them the same across every video made with this skill unless the user changes them.

  • Frame 1920x1080, 24fps, silent.
  • Timeline scale: 1 year = 10 pixels, fixed and linear for the whole video.
  • One segment per key year: 4 seconds (96 frames at 24fps), uniform speed; a final hold of 4 seconds closes the video.
  • Opening title card: 5 seconds.
  • Triangle (playhead): fixed at the horizontal centre of the frame (x=960 on a 1920-wide frame), below the axis pointing up, with a white vertical line from its tip up to the top of the bands.
  • Timeline band area: a fixed height (120px in the reference build); the alive states divide it equally.
  • Axis: tick marks every 10 years, year labels every 20 years, below the axis.
  • Band-label type: pure white, sized by the band piece's area, capped at about 28px so it never overflows the piece; the smallest readable size is 12px — below that, the state gets a bare name only.
  • Event text: bright gold (#FFB300), serif bold, 56px, top centre, dark outline, no box; repositioned in the frame as needed.
  • Period title: bottom right, above the timeline, no underline.
  • Current-year label: bottom right, above the period title, gold, 44px bold, dark outline.
  • Territory fills: semi-opaque (alpha about 210 of 255) so the terrain shows through; highlighted states full saturation with a bright border; other key states dimmed (alpha about 150); terrain base slightly darkened (brightness about 0.85) so map text stays readable.
  • Map projection: linear in longitude and latitude (a real terrain base in equirectangular projection), so a year-to-pixel mapping is exact with no fitting error.
  • Territory change transition: about 0.5s crossfade.

Related Skills