The managed-skill library was regenerated: 94 narrow per-incident skills
replaced by 25 broader ones (radiance-*, llamacpp-*, homepage-*, fleet/
endpoint ops). Git renders this as mass delete + mass add because whole
directories changed name; old content stays in history at 12c5e88.
Surface check: the 25 on disk are exactly the skills the harness advertises
this session.
1.9 KiB
1.9 KiB
name, description
| name | description |
|---|---|
| fandom-wiki-media-fetch | Fetch audio/image media from a Fandom wiki via its MediaWiki API when the wiki HTML pages 403 curl or hang headless browsers. |
Goal: get direct media URLs (and files) from a starcraft.fandom.com-style Fandom wiki.
Why this route: Fandom HTML pages return a ~5 KB JS shell to curl (403 via read ...:raw) and time out headless Chromium (browser.open/goto >30 s on quotation megapages). The MediaWiki API is plain JSON and answers plain curl.
Steps:
- Find the content page's wikitext:
curl -sL -A "Mozilla/5.0" "https://<wiki>.fandom.com/api.php?action=parse&page=<Page_Name>&prop=wikitext&format=json&formatversion=2"Top-level pages are often tabber/transclusion shells — follow the{{:Subpage}}/{{TemplateName}}references with the same call (e.g.StarCraft_unit_quotations→/Protoss→Template:QuotesSC1Zealot). - Extract media names from the wikitext. StarCraft quotes use
{{sm2|File.ogg|displayed quote}}inside{{UnitQuoteBox|select=...}}fields — match the quote text to pick the exact file. - Resolve direct CDN URLs (works for images too):
curl -sL -A "Mozilla/5.0" ".../api.php?action=query&prop=imageinfo&iiprop=url|size&format=json&formatversion=2&titles=File:A.ogg|File:B.jpg"→query.pages[].imageinfo[0].url=https://static.wikia.nocookie.net/...— downloadable with plaincurl -sfL. - To discover art on a unit page:
action=query&prop=images&imlimit=100&titles=<Page>, filter titles (icon/art/portrait/Head/Render), then resolve the keepers via imageinfo. Note splash/head art naming:File:Zealot SC2 Art1.jpg,File:Archon SC2 Head1.jpg; some obvious guesses (SC1-era units' SC2 splash) do not exist — verify with imageinfo, absent pages returnmissingwith noimageinfo. - Verify downloads (
file sfx/*.ogg→Ogg data, Vorbis audio) — a 403 body saves as a success with-oand no-f.