SkillsGrove
SkillsGrove/문서 작업/Kevin-Liu-01/Claude-of-Tanks/src-presentation-skill

src-presentation-skill

설치

$npx skills add https://github.com/Kevin-Liu-01/Claude-of-Tanks --skill src-presentation-skill
$git clone --depth 1 https://github.com/Kevin-Liu-01/Claude-of-Tanks.git /tmp/Claude-of-Tanks && mkdir -p ~/.claude/skills && cp -r /tmp/Claude-of-Tanks/src/presentation ~/.claude/skills/src-presentation-skill
이 Agent Skill을 설치해 주세요: https://github.com/Kevin-Liu-01/Claude-of-Tanks/tree/b6c100411f0a2ec788bde350b9b73665a4c5d8ec/src/presentation — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · MITMaintain lightweight public navigation, media loading, archive presentation, and public-site contracts.
아래 SKILL.md는 Kevin-Liu-01/Claude-of-Tanks(커밋 b6c1004)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2026 Kevin B. Liu. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

claude-of-tanks / src/presentation

Purpose

<!-- agent-docs:fill:purpose -->

Present the game on public landing/manual/gallery surfaces without importing the heavy game boot graph. Preserve accessible browsing and restrained media cost.

Mental model & key files

<!-- agent-docs:fill:model -->

publicNav.ts and its CSS own responsive public navigation and deferred star counts. publicPages.ts coordinates hero/shot rails, mounts the page's videos through the shared player and owns the Play hand-off. mediaPlayer.ts is the site's one playback policy (brand-ui SPEC 8.3: near-margin source, 50/10 visibility, 10 s release, one transfer at a time, 2 desktop / 1 phone, 150 ms hover, AV1 → VP9 → H.264, nothing by itself under reduced motion or data saving, abortPageMedia before navigating into the game); the fleet takes, the topic headers and the Filming viewer use it too. responsivePicture.ts writes stills with rungs, sizes, explicit size, LQIP/tone and the 640 rung under data saving. Both import nothing and never enter the game's boot graph. home.css is the landing's stylesheet in the Vite graph (hashed under /assets/, cached immutably); every public stylesheet lays out at first paint from media queries at responsiveLayout.ts's band edges, never the body[data-cot-*] hooks the boot module writes after it runs (src/ui/viewportQueries.test-support.mjs, checked by mobileLayout.selftest.mjs). mediaArchive.ts renders the packaged showcase manifest and lightbox; captureRecipes.ts links media to reproducible Scene Studio recipes. publicShell.ts renders the public site's one bar and footer; tools/public-shell.mjs writes them, with the inline symbol block, into every public entry (or checks that each carries exactly that). The landing's blocks between <!--home:NAME--> markers come from tools/home-premiere.mjs (run the shell writer after it); the 404 (notFound.ts) searches the fleet and the manual's prebuilt index (src/docs/docsSearch.ts). localizedHtml.ts makes each /cn document at build: the data-i18n hosts in Chinese, the manual's prerendered chapters (src/docs/topicPrerender.zh-CN.json), body links kept under /cn (localizeLinks; hreflang links untouched), the zh-CN type floor (src/ui/zhTypeFloor.ts) and the localized structured data. It also writes every public page's share clip (og:video, its family's from shareVideoForRoute in siteMetadata.ts) with og:type video.other, in both languages; heads name none. node tools/share-tags.mjs [--dist=dist] [--json] lists every page's og:* and twitter:* tags as a build serves them (diff two builds' lists to review a change). Adjacent selftests also cover root public HTML, SEO metadata, copy, analytics, and loading policy; those contracts extend beyond this directory.

Patterns to follow / invariants

<!-- agent-docs:fill:patterns -->
  • Preserve public/game bundle isolation and lazy archive/recipe loading: a sheet only a dialog or a wall uses loads with its module at that boundary, never as a head <link> (the manual's archive sheet, 247).
  • The bar and footer are generated: change publicShell.ts, then node tools/public-shell.mjs --write; landing blocks: node tools/home-premiere.mjs --write.
  • Element colour resets (a, button, form controls) belong in @layer base; in surfaces they outrank every component's colour (the primary buttons' dark ink).
  • Every public HTML entry declares its page catalog (<meta name="cot-i18n-catalog">); keep node tools/i18n-page-catalogs.mjs --check clean when adding a page or a key pattern (docs/LOCALIZATION.md "Page catalogs").
  • Respect reduced motion, data-saving preferences, compact layouts, and document visibility when deciding autoplay and source retention.
  • Keep near-viewport transfer separate from actual visible playback; retain media briefly across scroll reversals to avoid repeated downloads/decodes.
  • Keep navigation keyboard-accessible with accurate ARIA state and focus restoration. Reuse the shared responsive layout owner.
  • Keep media paths, manifest entries, alt text, recipes, and attribution aligned. Preserve self-hosted telemetry opt-out and locally packaged subresources.
  • GA4 (src/googleAnalytics.ts) reaches only the public non-game pages, lazily after idle through src/analytics.ts and the 404 runtime; it never reaches the game entry. It sends from the production host only, queues Consent Mode first, and strips query strings. analytics.selftest.mjs enforces all of this.

Common tasks → first action

<!-- agent-docs:fill:tasks -->
  • Navigation: inspect publicNav.ts plus affected root HTML, then run node src/presentation/publicNav.selftest.mjs.
  • Loading/motion: run publicLoading.selftest.mjs, mediaPlayer.selftest.mjs and responsivePicture.selftest.mjs; the media receipts are tools/media-fallback, media-freshness, media-page-unique and media-r5/site-video-budget (*.selftest.mjs); after npm run build, npm run media:motion-savedata proves zero video bytes under reduced motion and Save-Data and the Play hand-off in a real browser.
  • New media on a page: a <video data-media-player> lists <source data-src type [data-rung=phone|wide]> in ladder order (AV1, VP9, H.264) with data-poster; a retiring collection goes in media-freshness's RETIRING with the replacement that ends it.
  • Public copy or discovery: run publicCopy.selftest.mjs, seoMetadata.selftest.mjs, and analytics.selftest.mjs as applicable.
  • Archive changes: inspect the packaged manifest and recipe mappings before changing cards, filters, or their shared manual integration.
  • The media library (/media, mediaLibrary.ts on the Filming manual): after publishing or re-rendering pictures under public/media, run node tools/media-library/build.mjs --write and commit the library with them. A new folder gets a rule in tools/media-library/sources.mjs (its pictures' collection, set and caption from its manifest or the catalogs, and a picture's clip from its moving take) or a reason to stay out, films included; media-library.selftest.mjs fails until then. The viewer plays a clip only on its play control's press, through mediaPlayer.ts (mode: 'click').

Gotchas

<!-- agent-docs:fill:gotchas -->

Passing a source-contract selftest does not prove the responsive pixels or media playback lifecycle. The player rides in the fleet takes' chunk (vite.config.ts group): as its own chunk it adds an entry to the game entry's preload list; keep it import-free. Do not eagerly fetch the complete archive on the landing page or import src/main.ts to obtain public product information. backdrop-filter (and transform, filter) on the bar makes it the containing block of its position:fixed descendants: the phone menu sized itself to the 56 px bar until the bar dropped its blur while the menu is open (publicNav.css).

라이선스 전문 보기(MIT)
MIT License

Copyright (c) 2026 Kevin B. Liu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
NOTICE 보기
# Claude of Tanks — authorship notice

Claude of Tanks was created, designed, and directed by **Kevin B. Liu**.
Claude and Codex were development tools; they are not authors, creators, or
copyright holders of the project's first-party work.

Unless a file, embedded notice, or [`docs/ATTRIBUTION.md`](docs/ATTRIBUTION.md)
identifies another author or license, every original file and asset in this
repository is Copyright © 2026 Kevin B. Liu.

The repository is MIT-licensed by default, with the exceptions defined in
[`LICENSE-POLICY.md`](LICENSE-POLICY.md):

- first-party material is licensed under the root MIT License unless it is
  identified as Reserved Content;
- procedural vehicle and battlefield source, fleet and map data, generated
  game assets, authored media and capture recipes, and first-party brand
  content are Reserved Content under the proprietary content license; and
- third-party material retains its original license and ownership.

The path-level map in `LICENSE-POLICY.md` determines which first-party license applies.
An individual file does not need to repeat this notice for that map to apply.
Files that this repository's own tools generate — renders, screenshots, video,
map plates, collision manifests, ledgers, receipts and other derived data — are
original first-party files under this notice, as are the masters they come from.

Every selectable vehicle model is original procedural geometry authored for
this project by Kevin B. Liu. External vehicle models are comparison or
research inputs only; they are not playable geometry and retain their original
authors and licenses.

Third-party fonts, marks, shader code, reference models, environment props,
and other exceptions remain the property of their respective authors. The UI
typefaces are Chakra Petch (Cadson Demak) and IBM Plex Sans and IBM Plex Mono
(IBM Corp., Reserved Font Name "Plex"), each under the SIL Open Font License
1.1 with its license file beside it in `public/fonts/<face>/OFL.txt`;
Cot Symbols, the marks face Kevin B. Liu drew from Chakra Petch's outlines,
ships under the same license in `public/fonts/cot-symbols/`, and Cot Accents,
the accented letters Kevin B. Liu assembled from IBM Plex Sans's own glyphs
under its own name, in `public/fonts/cot-accents/`; Glacis, Kevin Liu's
block face for the markings painted on the tanks, ships under the same license
as its outline module `src/ui/glacis.js` (license in `public/fonts/glacis/`); the
retired ABC Monument Grotesk (Dinamo Typefaces) is no longer in the tree. Their
required notices and exact paths are preserved in
[`docs/ATTRIBUTION.md`](docs/ATTRIBUTION.md) and `docs/licenses/`. The project
licenses do not replace or relicense those works.

Public revisions up to and including commit
`8f3dd548c1e78242f73d37c6b37797c7f9cdcb22` were published under MIT. Those
historical grants remain valid; the current policy governs the revision in
which it first appears and subsequent work.