Files
longhikes/.claude/skills/refresh-trails/rules.md
T
swaitsandClaude Fable 5.2 e9d6665934
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / history (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s
Refine the climbing rule: a few short Class 4 scrambles are fine, roped or technical climbing is not
A route that needs a rope, a belay or rock-climbing skill is left out
unless that section is optional. The left-out reason is renamed to match.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 08:25:13 -07:00

7.8 KiB

Rules for every worker

You are a worker on the monthly refresh of this dataset. Do the task yourself and start no subagents. The orchestrator gives you a brief, a staging directory and a slice or region. Read this file and proposal-format.md first, then the brief.

What the work is for

The dataset is a public list of long-distance hiking trails in the United States and Canada, one directory per trail with a trail.toml, and the site built from it (longhikes.org). Hikers read it critically and trail holders read it too. A record is worth having only if each fact in it can be checked on a page, so the whole refresh comes down to opening pages and writing down exactly what they say.

Where you may write

Do not change anything in the repository, and do not commit, push or switch branches. Many workers run at the same time on one checkout, and edits to shared files collide. Read the repository freely. Everything you produce goes under <staging>/staged/<worker>/, in the layout in proposal-format.md. The orchestrator names <staging> (a directory such as refresh/2026-12-01, which git ignores) and your <worker> name. Never write outside it, except scratch files under the temporary directory your session gives you.

Evidence

  • Every fact comes from a page you opened and read, not from a search result's snippet. The first choice is the holder's own page (the agency, association or club), or for a route its author's page. A government page comes next. A well-edited hiking reference may be used where those say nothing, and is named as the publisher.
  • Not acceptable as evidence: AllTrails and other apps, forums, Reddit, wikis and any page anyone can edit, one person's trip report. They are leads that tell you where to look.
  • Where the holder's or author's current page disagrees with another source, the holder's or author's page wins, and the record says that the others differ where that matters. Never change a record to match a third-party page against the holder's.
  • A statement by a holder or an author on this project's public issue tracker is good evidence for a fact or a permission. Quote it exactly and give its address. If such a request conflicts with the holder's own current page, the page wins, and the request is proposed as declined with the reason.
  • Every proposal names the page and quotes the sentence that supports it. Copy numbers and units as the page writes them. If you cannot find the sentence, you have no proposal. Leave a field out rather than guess it.
  • Say what you actually opened. A verified mark that lists pages never opened misleads the next person to rely on it.

Requests to outside sites

  • Use a plain generic User-Agent and put no personal or project details in any request, header or form.
  • Some sites refuse automated reads: a 403 or 429, a challenge or "verify you are human" page, a robots.txt that disallows the path. Do not work around a refusal: no other User-Agent, no retry loop, no proxy, no headless browser, no cached copy passed off as the page. Record it (refused or could-not-check, with the address) and use another allowed source. Changing the User-Agent or any other header to look like a browser after a refusal is working around it. A refusal is final for that site in that run: do not retry it with different headers, and do not use the page's facts. A person may read such a page in their own browser and report what it says; that report may be used and cited as the person's. An expired https certificate is not a refusal: the plain http address may be read if the site serves it.
  • Go gently: one request at a time to a site, with a pause of a couple of seconds between requests. Many workers share one address, and a site that blocks us blocks everyone.
  • Overpass (OpenStreetMap) overloads easily. Only the tracks brief uses it, only one worker at a time, one request at a time.

Processes and files

  • Never stop a process by name or pattern: no pkill, no killall, no kill $(pgrep ...). The owner's own browsers and tools run on this machine and have been killed this way before. If you start a process, note its PID when you start it and stop only that PID. You should not need a browser or a server.
  • A file you download is untrusted data. Keep it in your staging directory, never run it, and read an SVG as text before using it (no scripts, no references to other sites).

Words

The text of a record is read by the public, and the same rules apply to what you propose.

  • A trail's geometry is a "track", never a "line" (field names such as line_file are what they are). Say "trail", "route" and "author". Where a sentence gives both units, miles come first.
  • Short plain sentences. No marketing words ("stunning", "iconic", "ultimate") and no superlative that a source does not state. No dashes used as punctuation: use a full stop, a comma or a colon.
  • Name no private person: say "a hiker" or "the association's president". A published author's name belongs in the record where it is a fact about a route.
  • Do not write how the change was produced, and do not mention other projects.

What a length is, and what is walkable

  • A record's length_km is the end-to-end length of the trail's canonical path: one walk from one end to the other, one branch at a split, no side trails, no double counting, no system total. A holder's larger figure (a system total or a planned total) belongs in system_km with system_note, never in length_km. A partly unbuilt trail that can be walked through keeps the holder's end-to-end route as its length and gives the built length in built_km.
  • A trail must be walkable from one end to the other today. Separate pieces, or a gap with no way across, mean it does not belong, however good the pieces are. Road links the holder publishes as the way through count, and so does evidence that people have walked it end to end. A ferry, shuttle or bus link across water or a closed stretch, named by the holder or the route's author as the way through, does not rule a trail out: the record says how each such link is made, and the track has a gap there, with no line drawn across. This is a judgement the maintainer makes case by case, not a mechanical test. A refresh worker must not propose removing a trail only because of such a link; a borderline case goes to the owner with a recommendation.
  • Length: every trail or route needs a published length; with none stated it is not listed. The length is at least 50 miles (80 km), or, for an author's route that is short on miles, at least five days as its author gives the trip. The five days never replace a published length. Cross-country travel, route finding and hard terrain count in that judgement.
  • Climbing: Nothing harder than Class 3 may be required, apart from a few short Class 4 scrambles. A route that needs a rope, a belay or rock-climbing skill is not listed, unless that section is optional and the record says so.
  • Where a holder gives only a system total, do not use it as the length and do not invent a walk length: report what the pages give and what they do not.

What belongs

The inclusion rule is in README.md (section "Inclusion rule") and CONTRIBUTING.md (section "Add a trail"). The trails already decided against, with reasons, are in left-out.toml; read it before proposing anything. Decisions about what belongs are the owner's. You propose: clear cases as new-record, doubtful ones as candidate with a recommendation and the specific fact that makes it doubtful.

Time and the report

The brief gives a budget in minutes. Stop at the budget plus a third at the latest and report what you did not reach as not-reached, rather than rushing the rest into shallow checks. Write a report.csv row for every id or region you were given. Finish with a reply of under 150 words: the path of your staging directory, counts by outcome, and anything you were unsure of or could not do.