AGENTS.mdA

AGENTS.md from yuiseki/map-from-scratch is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add yuiseki/map-from-scratch/AGENTS.md@git:20261105.a3ec914

Pins git:20261105.a3ec914 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
AGENTS.md file
Repository
yuiseki/map-from-scratch
Path
AGENTS.md
Versions recorded
7
Latest version
git:20261105.a3ec914, committed Nov 5, 2026
First version recorded
Oct 30, 2026
Size
12,154 bytes
Repository stars
24
License
GPL-3.0

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# AGENTS.md

`map-from-scratch` は、「X をしたいから地図を作って」という個別の依頼ごとに、その目的だけを満たす最小・最速の地図描画器をほぼゼロから作り、計測で証明するためのリポジトリです。

作業を始める前に、メイン手順である [`.agents/skills/map-from-scratch/SKILL.md`](.agents/skills/map-from-scratch/SKILL.md) と、該当するサブ問題のスキル(`.agents/skills/<topic>/SKILL.md`)を必ず読んでください。

---

## 1. 基本原則(絶対ルール)

1. **1依頼・1描画器(One request, one renderer)**
   - 既存の例を拡張して汎用エンジンや共通ライブラリに育ててはいけません。
   - 新しい依頼には、最も近い既存の `examples/<nn>-<slug>/` をコピーして不要な部分を削るところから始めます。
2. **実行時の外部依存ゼロ**
   - 描画器(`examples/`)が実行時に使ってよい外部コードは、ポリゴン三角形分割用の `vendor/earcut`(および例22で版固定された Draco デコーダー等の明示された例外)のみです。
   - Canvas 2D、WebGL2、WebGPU、EGL/GLES3、X11、libc などのプラットフォーム標準 API を直接使います。
   - 汎用地図エンジン(MapLibre など)は比較計測用の `baselines/` 配下にのみ置きます。
3. **ランタイムではなくベイク時に仕事をする**
   - 座標投影、簡略化、三角形分割、描画順ソート、量子化、空間インデックス作成、圧縮などは極力 `bake.ts` で事前に行い、描画器がそのまま GPU / 画面へ流せるデータ構造を設計します。
   - HTTP Range リクエストで読む場合は、最初の数リクエストで必要なビューのデータが揃うようにインデックスとブロック配置(Hilbert / Morton 順や時間順、カラムナ配置など)を設計します。
4. **要件の数値予算化と画面読み戻し検証**
   - 各例は [`spec.yaml`](.agents/skills/map-from-scratch/references/spec-yaml.md) の7節(`requirements`, `evaluation`, `benchmarks`, `datasets`, `performance_knowledge`, `architecture_selection`, `verification`)で定義します。
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add yuiseki/map-from-scratch/AGENTS.md@sha256:3c91570c2ac69eee

The line at the top of this page pins the label git:20261105.a3ec914, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_opc2nfr5j4c35lco.svg)](https://markdownregistry.com/a/art_opc2nfr5j4c35lco)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 7 versions of this file, between Oct 30, 2026 and Nov 5, 2026, about one every day.

versioncommittedcommitsizeaudit
git:20261105.a3ec914 latest2026-11-05 a3ec914 12,154 BA view · diff
git:20261105.c1b774d2026-11-05 c1b774d 12,136 BA view · diff
git:20261103.49f0b172026-11-03 49f0b17 11,800 BA view · diff
git:20261103.1b15e5f2026-11-03 1b15e5f 11,291 BA view · diff
git:20261030.43a26c72026-10-30 43a26c7 10,845 BA view · diff
git:20261030.8e385512026-10-30 8e38551 10,441 BA view · diff
git:20261030.f6fcde02026-10-30 f6fcde0 10,154 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (12154 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

yuiseki/map-from-scratch · 24 stars · license GPL-3.0 · pushed 2026-11-06 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_opc2nfr5j4c35lco
GET https://markdownregistry.com/api/v1/resolve?ref=yuiseki/map-from-scratch/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/3c91570c2ac69eee8e72fe3714f49f551dd5ce97a8b6d25876e550079c9ef38e

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.

More from yuiseki/map-from-scratch

3d-buildings-and-meshes SKILL.md skill
yuiseki/map-from-scratch · .agents/skills/3d-buildings-and-meshes/SKILL.md · How 20 map engines build, store, order, light and cull extruded buildings and imported 3D meshes (OSM/PLATEAU…
git:20261026.79a684e · audit A · 24 stars
3d-tiles-and-hlod SKILL.md skill
yuiseki/map-from-scratch · .agents/skills/3d-tiles-and-hlod/SKILL.md · How map engines stream hierarchical level-of-detail content (3D Tiles, point-cloud octrees, chunked 3D vector and…
git:20261027.80aa384 · audit A · 24 stars
animation-and-camera SKILL.md skill
yuiseki/map-from-scratch · .agents/skills/animation-and-camera/SKILL.md · What 37 map engines learnt about the camera and everything that moves (on-demand redraw, camera state and transforms…
git:20261026.79a684e · audit A · 24 stars
antialiasing-and-blending SKILL.md skill
yuiseki/map-from-scratch · .agents/skills/antialiasing-and-blending/SKILL.md · How map engines smooth edges (MSAA, analytic coverage in the shader, post-process, none), pay for resolution, blend…
git:20261026.79a684e · audit A · 24 stars
api-design-and-extensibility SKILL.md skill
yuiseki/map-from-scratch · .agents/skills/api-design-and-extensibility/SKILL.md · What 40-odd map engines learnt about how much surface a renderer should expose (graphics backends, options, plugin…
git:20261027.231c915 · audit A · 24 stars
data-range-requests SKILL.md skill
yuiseki/map-from-scratch · .agents/skills/data-range-requests/SKILL.md · How map engines read one big static file (PMTiles, GeoParquet, FlatGeobuf, COG, COPC, Zarr) by HTTP Range instead of…
git:20261030.260706a · audit A · 24 stars
draw-order-and-depth SKILL.md skill
yuiseki/map-from-scratch · .agents/skills/draw-order-and-depth/SKILL.md · How 42 map engines decide what is drawn on top (painter's order, depth buffer as layer order, stencil per tile…
git:20261027.231c915 · audit A · 24 stars
float-precision SKILL.md skill
yuiseki/map-from-scratch · .agents/skills/float-precision/SKILL.md · What 44 map engines learnt about float32 (and fixed-point, integer and CSS/Canvas) precision, and which of their fixes…
git:20261027.231c915 · audit A · 24 stars
gpu-memory-and-batching SKILL.md skill
yuiseki/map-from-scratch · .agents/skills/gpu-memory-and-batching/SKILL.md · How map engines cut draw calls, vertex bytes, uploads and GPU memory, which pools and caches they had to cap or remove…
git:20261027.231c915 · audit A · 24 stars
html-in-canvas SKILL.md skill
yuiseki/map-from-scratch · .agents/skills/html-in-canvas/SKILL.md · How to draw real, interactive HTML (popups, label cards, panels with buttons, sliders and links) into a map's Canvas…
git:20261105.a3ec914 · audit A · 24 stars
label-placement SKILL.md skill
yuiseki/map-from-scratch · .agents/skills/label-placement/SKILL.md · How map engines decide which labels and icons to show and where (candidate anchors, collision index, priority…
git:20261026.79a684e · audit A · 24 stars
line-tessellation SKILL.md skill
yuiseki/map-from-scratch · .agents/skills/line-tessellation/SKILL.md · How map engines turn polylines into triangles or pixels of the right width (where the width lives, vertex layout, joins…
git:20261030.5cc6631 · audit A · 24 stars

Every file in yuiseki/map-from-scratch

Other files named AGENTS.md

AGENTS.md AGENTS.md file
morluto/rea · AGENTS.md
git:20261102.920d634 · audit A · 433,876 stars
AGENTS.md AGENTS.md file
obra/superpowers · AGENTS.md
git:20261020.b739a8a · audit A · 314,583 stars
AGENTS.md AGENTS.md file
affaan-m/ecc · AGENTS.md
git:20261030.f29e332 · audit A · 299,696 stars
AGENTS.md AGENTS.md file
firecrawl/firecrawl · AGENTS.md
git:20261008.5a75dca · audit A · 199,595 stars
AGENTS.md AGENTS.md file
dietrichgebert/ponytail · AGENTS.md
git:20261008.2a1fe84 · audit A · 185,249 stars
AGENTS.md AGENTS.md file
graphify-labs/graphify · AGENTS.md
git:20260926.98d73fe · audit A · 144,492 stars
AGENTS.md AGENTS.md file
garrytan/gstack · AGENTS.md
git:20261107.ef99eb5 · audit A · 140,694 stars
AGENTS.md AGENTS.md file
juliusbrussee/caveman · AGENTS.md
git:20261106.e45976c · audit A · 118,366 stars

Browse by kind, by grade A, or by owner.