RetroReversing Contributing (Repo Skill)
Read this skill in full before making content changes. Never load only the first N lines, pass a line-limit to the reader, or stop after the opening sections.
Use this skill whenever you create or edit content in the retroReversing repo (Markdown pages/posts, _includes, or related site content). The goal is to keep changes consistent with CONTRIBUTING.md.
Non-negotiables
- Target audience is technical: assume programming literacy, don’t assume reverse-engineering literacy.
- Prefer linking to high-quality sources over duplicating other sites’ content; still provide a short summary so the page reads coherently without clicking out.
- Reference sources for technical claims and dates; Wikipedia only as a last resort.
- Do not remove YouTube iframes and the reference information, they were added to the page for a reason, but you may move them to another section if required.
Workflow (content edits)
1) Decide fit: does this belong on RetroReversing (retro game dev + reverse engineering / digital archaeology; ~1980–2015)?
2) Choose location + frontmatter:
- For useful topics that are not yet large enough for a standalone page, add them to the most relevant category or hub page first.
- When a category section grows large enough to stand alone, split it into a dedicated page and leave a short summary plus an internal link from the category page.
- Treat category pages as curated “awesome lists” and readable articles: keep high-quality links, explain their value, and weave concrete technical context through the sections. Preserve an apt “Awesome list of …” excerpt and the page’s natural voice; do not flatten either into generic reference copy.
- Compare question headings on related console hubs when expanding a category. Use a question only when reliable, console-specific sources can answer it; fold the answer into an existing section when the topic is already covered. Describe interview examples as particular projects, not typical team sizes, schedules or workflows.
- Follow the “standard shape” from
CONTRIBUTING.md (use modern minimal frontmatter; don’t clone old pages blindly).
title must not contain colons.
permalink must not end with a trailing /.
tags/recommend values must be valid and used appropriately (recommend can be omitted and will fall back to tags).
- Preserve existing valid
image and twitterimage values. For a new game, leak, or source page without a curated preview, feed local WebP box art through placeholderimages (one or two paths, most relevant platform first) and run node scripts/generate-placeholder-social-images.js. Commit public/generated/placeholders/<permalink-slug>.jpg when generated.
3) Write like a technical handbook (not a blog post):
- Short paragraphs, short sentences, encourage hands-on experimentation.
- Present terminology first, then explain/justify.
- Open a game or source article with a direct identifying sentence: developer (and former name if the files still use it), year, genre, and what the game is based on or which platforms it shipped for. Do not open with a scene, joke, or isolated source detail. Those belong in later sections, once the reader is oriented. Fun and visual material should follow the introduction, not replace it.
- Sections should be readable non-linearly (don’t rely on strict reading order).
- Address the article’s reader, who may never have the source files. Turn research notes and instructions to inspect, compare, or report findings into explanations of what the evidence reveals about the game. Keep procedural directions inside explicit tutorials or interactive exercises.
- Use stable site wording. Avoid phrases that imply a recent site change, such as “we now have”, “now has its own page”, or “this now lives”; prefer “For the full history, see:” or “A dedicated page covers this in more detail:”.
- For new pages about an individual game, follow the Turok page’s visual-to-technical progression: short introduction and box art; cartridge or other release medium; inside view such as a PCB when available; development hardware and software; then source code, assets, build process, and deeper analysis.
- Match physical images to the game, platform, and relevant edition. Caption and credit them. Identify what is confirmed versus inferred, especially when development tools are evidenced only by a related game. If an image or evidence is unavailable, continue without inventing it; use an appropriate release image or screenshot for digital-only games.
4) Apply Markdown/structure rules:
- Don’t bold headings; don’t put emojis or backticks in headings.
- Use
--- before major section jumps, and when jumping back up the heading hierarchy.
- No blank line between
--- and the next heading.
- No blank line between a heading and its first paragraph.
- Lists: never use numbered lists; use
* bullets; always introduce a list with a sentence ending in :, with no blank line before the list.
- Tables: always introduce with a sentence; keep formatting compact (no padded spacing; don’t start rows with
|).
- Table of contents: don’t write your own; the site generates it at runtime from headings.
5) Character hygiene:
- Use straight quotes (
"), not smart quotes (“).
- Use
- hyphen, not em dashes (—).
- Avoid non-standard keyboard characters.
6) Glossaries (when acronym-heavy):
- Add a glossary near the top.
- Add explicit anchors like
<a id="glossary-foo"></a> so in-page links are stable.
- Link the first meaningful mention per section, not every occurrence.
7) Links and references:
- Never place two
link-to-other-post.html or link-to-other-site.html cards directly after each other. This includes mixed card types and both include and include_cached calls.
- Separate cards with meaningful article content. Blank lines, comments, headings, and horizontal rules alone do not count; do not add filler text to satisfy the rule.
- For grouped resources, use inline links in cohesive prose, an introduced list, or a table instead of stacking cards. Check card placement before finishing a content edit.
- Use footnotes for citations under an H1
# References at the end.
- If a footnote is at sentence end: put it before the period (
text [^1].).
- If the prose is talking about a specific external site, article, tool page, archive, or other resource, link the name or descriptive phrase directly in the body text.
- Footnotes are enough when the source is only being used to support a claim, date, or technical detail.
- For external “standalone” links (own paragraph/line), use the include:
link-to-other-site.html with title, url, description.
- When mentioning a company or console with a dedicated category page, link the first meaningful mention in that section to the internal page, such as
[Datel](/companies/datel), [Sony PlayStation](/ps1), or [PlayStation 2](/ps2).
- Do not add links to headings just to satisfy the company/console rule; keep headings plain and link the first suitable body-text mention.
- Feature an important related RetroReversing article with a
link-to-other-post.html card so readers get a visual preview, as the Game Gear hub does for its development hardware guide. Introduce the page in prose and give the card a useful description: {% include_cached link-to-other-post.html post="/permalink" description="Why this page is useful." %}. Use ordinary inline links when grouping several pages or referring again to a page already featured by a card.
8) Code examples:
- Use TypeScript when it’s runnable interactively in-browser; otherwise use Python for local scripts.
- Use fenced code blocks with a language tag; use
nasm for assembly highlighting.
- On concept-heavy reference pages, place code examples directly under the section they illustrate rather than collecting them in a separate generic example section.
- Only use a standalone “examples” section when the page is explicitly structured as a tutorial, walkthrough, or end-to-end implementation guide.
- Mermaid diagrams: use sparingly; keep labels short; bold the first line in nodes when there’s a title + explanation.
Preferred Site Components (use instead of ad-hoc HTML)
- External “standalone” link blocks:
link-to-other-site.html.
- Internal links to RetroReversing pages:
link-to-other-post.html via {% include_cached ... %}.
- Article illustrations: use
article-figure.html for single images and capture figure includes into article-gallery.html for responsive groups. Shared CSS loads automatically. Use size="small" for low-resolution archive pictures that should not be stretched. See the contributing guide for parameters and examples.
- Folder listings / nested trees:
connected-folder-tree.html rather than raw HTML or bullet dumps.
- Large browsable archives:
archive-explorer.html with file records and descriptions in a JSON manifest under public/data. Use layout="sgi" for the SGI skin; future layouts should add a skin without embedding archive-specific data in the component. Exclude .DS_Store and other incidental operating-system metadata. Base descriptions on inspected content where possible, and state uncertainty where contents do not establish a purpose. Omit extraction timestamps when original dates are unavailable. If the same article explains a file, add an article link (href plus title) so the source index can jump to that section.
- Interactive game systems:
game-data-visual.html with a unique id and game-specific config passed from _data (for example, config=site.data.turok_game_visuals.boss). Choose bars for measured comparisons, reveal for gated visibility, timeline for ordered events, stages for short state transitions, pipeline for ordered checks or flows, mode-table for real state-table entries, card for alternate text and UI, meter for thresholds, collection for bitmask-like assembly, or occlusion for weighted clear/blocked samples. A pipeline option can add a sight or sound signal cue when it explains that route. Keep game labels and values out of shared includes and JavaScript. Load its shared CSS and JavaScript once per article; see CONTRIBUTING.md for configuration examples and the variant selection table. Explain the evidence in adjacent prose and mark schematic or fabricated scenes clearly.
- Source-file callouts:
source-code-card.html / source-code-card-grid.html when actually showing real file contents/symbols.
- The
functions, variables, and lines fields must be exact numeric counts from the file.
- Omit the card if you can’t provide exact counts yet.
- Tabs: prefer the
rr-tabs.html and rr-tab.html includes shown in CONTRIBUTING.md when comparing variants (e.g., C vs ASM).
rr-tabs.html defaults to a scrollable content area with max-height: 50vh.
- Use the optional
maxHeight argument on rr-tabs.html when you need to override that default for a specific page.
Visual storytelling for substantial articles
- Plan relevant illustrations while researching substantial history, tool, and archive articles, without waiting for the user to ask for images. Keep small edits and brief reference pages proportionate; there is no image quota.
- Inspect local source collections and existing site assets first. Prefer original covers, diagrams, catalogue photographs, tool screenshots, and people over decorative imagery; never substitute generated images for historical evidence.
- Place visuals near the material they explain. Use pairs or small galleries for comparisons and larger figures for important documents or photographs. Add useful source-linked captions and identify crops or reconstructions.
- Follow the contributing guide’s visual article guidance for layout and verification. Use the reusable figure/gallery includes; the DTS article demonstrates their use.
- Verify desktop and narrow layouts, aspect ratios, loading, caption readability, and full-size links. Existing image/figure styles can distort scans or turn captions vertically; override within the new layout as needed. Do not assume a
data-lightbox attribute alone enables enlargement.
Images
- Prefer linking externally hosted box-art (e.g. MobyGames) for “section about a specific game” figures when appropriate.
- Prefer Libretro-hosted box art over Wikia/Fandom image URLs when suitable covers are available. Wikia/Fandom URLs can return HTTP 403 and leave the site showing placeholders. Match the game, platform, and relevant edition or region. Convert Libretro covers to WebP before adding them to the repo.
- For card and social thumbnails, check existing
image and twitterimage values and keep them when they load correctly. If no valid curated preview exists, omit those fields and list local covers in placeholderimages. The generator blends up to two images side by side. Keep in-article figures for the body.
- Before finishing, check new or replaced external image URLs with a GET request: confirm a successful response, an image content type, and actual image data rather than an HTML error page or placeholder. Replace blocked or broken URLs with a verified alternative.
- When a rendered preview is available, check that the images visibly load on the page. A successful URL request alone does not guarantee browser loading. Use descriptive alt text.
- Never leave pasted Markdown images named only
image.png in the repository.
- Use WebP for new images added to the repository. Prefer lossless WebP for original pixel artwork, icons, and images that need transparency. Do not add new PNG or JPG files when WebP can represent the same image.
- Convert generic pasted PNG files to WebP. Use lossless WebP when transparency or pixel-perfect detail is required.
- Rename generic pasted image files to a descriptive filename. Prefer the manually filled alt text; otherwise infer the name from the nearest useful heading, caption, or surrounding paragraph context.
- Update Markdown references after renaming/converting pasted images so no content points at
image.png.
- Lazy loading: use
<img class="lazy-load" data-image-full="/images/highres.jpg" ...> (optionally with a placeholder src).
- Full-size images: use working image links. Existing markup uses
postImage and data-lightbox, but verify that the runtime actually initializes a lightbox before relying on it.
Visual readability helpers
- Emoji callout under heading (not in the heading): add
<div class="emoji">...</div> on the line after the heading.
Workflow (_includes edits)
- Prefer Liquid comments (``) over HTML comments to avoid shipping docs into generated pages.
CSS colours
- Use design tokens from
public/css/variables.css (--rr-color-*) for all colours, borders, and surfaces in new or edited CSS.
- Do not hardcode hex/rgb values when a token exists or can be added; tokens adapt to dark mode and homepage feed styling.
- Navbar controls on the dark header should use the search/sidebar token groups (e.g.
--rr-color-search-field-*), not content-page light tokens.
Spelling
- Use cspell blocks when needed:
<!-- cspell:disable --> / <!-- cspell:enable -->
Videos
Make sure to have a sentence before any embedded youtube video explaining who created the video and what it contains, e.g:
[PothOnProgramming](https://www.youtube.com/watch?v=b5TjpTBW6yw) offers a technical breakdown of the 2D dot product and its critical applications in game design and engine logic. The video highlights several fundamental applications of the dot product used in game development and vector math.
<iframe width="560" height="315" src="https://www.youtube.com/embed/b5TjpTBW6yw" title="2D Dot Product - Cool Things To Know" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
Reminder
CONTRIBUTING.md is the source of truth for edge-cases and newer patterns; consult it if unsure.