This is a Next.js portfolio website using the App Router (not Pages Router), React, TypeScript, and Material-UI with Emotion. The project follows a modular structure with path aliases, comprehensive testing, and Progressive Web App (PWA) capabilities.
- Framework: Next.js App Router with React Server Components
- Styling: Material-UI (MUI) + Emotion (use
sxprop, not CSS modules) - Testing: Jest (unit tests), Cypress (E2E tests with accessibility via cypress-axe)
- Monitoring: Sentry error tracking, Firebase Analytics/Performance, Vercel Speed Insights
- PWA: Service Worker in
public/sw.js, manifest viasrc/app/manifest.ts
npm run dev # Start dev server at localhost:3000
npm run validate # Full check: prettier → eslint → tsc → jest → cypress → build → markdown
npm run test:jest # Unit tests only
npm run test:cypress:e2e # E2E tests headless
npm run build # Production buildAlways run npm run validate before committing, and frequently while making changes. It runs the fixing variants (prettier, eslint, lint:markdown): it repairs whatever an autofix can repair and exits non-zero on the rest, so commit what it rewrote. CI runs the reading variants (prettier:check, eslint:check, lint:markdown:check) and modifies nothing, so a fix left unstaged fails the build.
Never make the repository depend on AI agent files. If .claude/, .claude-plugin/, and .github/prompts/ were deleted, everything must still build, test, and lint. .claude-plugin/ holds only the plugin marketplace, which sits there because VS Code looks for a marketplace only at the repository root. No package.json script, config, workflow, or page under docs/ may reference or invoke anything in them. The dependency runs one way: agent tooling may name a project command, never the reverse. The only exception is an ignore or exclude glob, which is inert when the path is absent. Agent tooling that needs running gets a target in .claude/Makefile, which is deleted along with the tooling it drives.
Documentation and comments describe the current state, in every file type. A comment, document, or config header states what the code does now. Never narrate the past ("replaces", "used to", "formerly", "for the first time", "unlike the old") and never name a file, flag, or tool that no longer exists: git carries that history, and a reader cannot check a claim against something that is gone. The future belongs nowhere but a TODO. An architectural or cross-cutting decision goes in a decision record of its own under docs/, created when the first one is needed, rather than scattered through the files it touches. The reason a particular piece of code is written as it is stays in a comment beside that code.
- One test file per source file, colocated and same-named:
Banner.tsxgivesBanner.test.tsx(seesrc/components/banner/Banner.test.tsx). No orphan tests, no test file named after a function, no second test file for one source. - Logic changes, bug fixes, and new features land with their tests in the same change. Pure refactors need no new tests, but every existing test must still pass. A diff that skips or weakens a test is a behaviour change, not a refactor.
- No test file for static data (
src/data/*), type-only modules, metadata routes (manifest.ts,robots.ts), or instrumentation entry points. A test that only asserts a static data literal against itself adds no behaviour coverage. A consumer's test may import an exported value as its expected value. Components always get one. - Never skip, gut, or delete a failing test: read the test, read the source, fix the cause. No
it.skip/describe.skip, noexpect(true).toBe(true), no assertions that restate the implementation, noexpect(typeof x).toBe('string')on an already-typed value, no one-rowit.eachtable, and never add a?? fallbackin production code to make a test pass. Also never leave a test that would still pass if the behaviour it names were broken, write cases that cannot fail independently of one another, or build setup disproportionate to what the assertion reads. - Do not mock. Start from zero and add one only when the real dependency cannot run in the test. This covers every substitution technique: mocks, stubs, fakes, behaviour-replacing spies, hand-written doubles. A test whose collaborators are all mocked asserts only that mocks were called. Try first, in order: the real implementation with real inputs; passing the dependency in as an argument instead of replacing a module; a real fixture asserted on its real output; moving the assertion to where the seam is real, or into Cypress
- Never mock code that holds logic, whoever wrote it: helpers, utilities, domain logic, components, hooks, constants,
src/data/*. Never mock the subject under test, even partially - Mock only at an I/O boundary, outermost one needed, from this closed list: a third-party SDK that reaches the network (
firebase/*or@sentry/nextjsin the wrapper's own test); this repo's wrapper around one when testing a consumer (@configs/firebaseor@configs/sentryfrom a component test); framework context the renderer cannot supply (next/navigation); the clock (jest.useFakeTimers()); browser APIs jsdom omits (navigator). A wrapper qualifies only because its whole job is reaching the outside world. Anything else needs a comment naming which boundary it crosses; if you cannot write that sentence, use the real thing - Never mock to make a failing test pass - that hides the failure. Read mock state with
jest.requireMock(...)oras jest.MockedFunction<typeof fn>, neverrequire() - Naming:
describe('<Subject>')plusit('<third-person verb phrase>'), e.g.renders the ProjectsGrid title. New titles do not start with "should"; existing ones are grandfathered. - Table-driven: use
it.eachwhen rows vary input and expected output across the same code path, and name every field. Rows that differ in the assertion body belong in separateit()blocks. - House patterns:
render/screenfrom@testing-library/react;fireEvent(@testing-library/user-eventis not a dependency);beforeEach(() => { jest.clearAllMocks(); render(<X />); }); fake timers viajest.useFakeTimers()withjest.runOnlyPendingTimers()inafterEach. Assert accessibility through roles and accessible names.next/imageis not mocked, so assert its rewrittensrcwithexpect.stringContaining. - Import carve-out: the subject under test is imported relatively (
./Banner) while collaborators use path aliases. This is the one exception to the alias rule below. - Setup and E2E:
jest/setup.tswith the jsdom environment, which clears every cookie after each test; Cypress specs incypress/e2e/, everydescribeclosing withafterEach(() => { cy.a11yCheck(); })(cypress-axe). NobaseUrlis set, so specs callcy.visit('http://localhost:3000'). npm run test:jestcarries--passWithNoTests, so exit code 0 alone does not prove a test ran. Check the reported count.- Coverage:
npm run test:jest:coverage. No threshold is configured, so it is a report rather than a gate.
Always use TypeScript path aliases defined in tsconfig.json:
import Avatar from '@components/banner/Avatar';
// NOT '../components/banner/Avatar'
import { DELAYS } from '@constants/index';
// NOT '../../constants'
import { isNetworkFast } from '@util/isNetworkFast';Also: import Node built-ins with the node: prefix (import { readFileSync } from 'node:fs', require('node:util')), never the bare specifier. A misspelled bare name is looked up in node_modules, where a typosquatted package would load, while a misspelled node: name fails to load; node:test and node:sqlite exist only under the prefix. No lint rule checks it, so review is what keeps it. Use import type { Foo } when a symbol is used only as a type, and export type { Foo } when re-exporting one (isolatedModules is on).
Export style follows the kind of module. Components, layouts, App Router route files (src/app/page.tsx), the data modules (src/data/projects.ts), and src/styles/theme.ts default-export their subject. Configs, constants, helpers, utilities, instrumentation, and the SVG components in src/images/icons.tsx use named exports. One module can carry both: src/app/layout.tsx default-exports RootLayout beside named metadata and viewport. Never export let.
Use sx prop for styling, never inline styles or CSS modules:
<Box
component='div'
sx={{
display: 'flex',
margin: '3rem auto',
fontSize: 'clamp(1.5rem, 2.5rem, 2.5rem)',
}}
>SVGs are imported as React components via @svgr/webpack. See src/images/icons.tsx:
import Icon from './icons/example.svg';
export const ExampleIcon = (props: SvgIconProps) =>
<SvgIcon component={Icon} inheritViewBox {...props} />;Static data lives in src/data/:
projects.ts: Project portfolio with typed interfacepublications.ts: Academic publicationssocials.ts: Social media linkskeywords.ts: SEO keywords array
Centralized constants in src/constants/index.ts with as const for type safety:
DELAYS.PROJECT_HOVER_VIDEO; // 1000ms before video plays on hover
THRESHOLDS.SNEEZE_TRIGGER_INTERVAL; // Easter egg triggers
NETWORK.SLOW_NETWORK_TYPES; // Network performance checksThe module also exports ANIMATIONS and MAX_STARS.
- Indentation: Tabs (not spaces) - enforced by Prettier (
useTabs,tabWidth4 in.prettierrc) - Quotes and punctuation: single quotes including JSX (
jsxSingleQuote), semicolons required, trailing commas everywhere - Line length: Prettier wraps at
printWidth120 (.prettierrc) - Import sorting: Handled by
@trivago/prettier-plugin-sort-imports
One rule set for every file, JavaScript and TypeScript alike, parsed by @typescript-eslint/parser:
- Console logs are allowed
- Unused vars are an error, with
_-prefixed names ignored (e.g._unusedParam) curlyis set tomulti-line, so it enforces the braced-block rule below only for a body spanning lines; a long single-line early exit passes it, and the length judgement stays manual
- Strict mode: Enabled in
tsconfig.json - No implicit any: All types must be explicit
- React 19: Uses new
react-jsxtransform - Run
npm run tscto check types (no emit) - Do not "fix" an existing
anyby swapping it tounknownor adding aneslint-disable. Replace it with a concrete type, and respect ananythat is intentional.
Follow the Google TypeScript Style Guide except where this file or the framework overrides it. The deltas that matter (fuller digest in google-typescript-style-digest.md, with the naming, readability, and function-body rules in SKILL.md beside it):
- Naming:
UpperCamelCasetypes and components,lowerCamelCasevalues,CONSTANT_CASEmodule-level constants and enum values. Acronyms are words:loadHttpUrl, notloadHTTPURL. A name is also clear to a reader meeting it for the first time: do not abbreviate by deleting letters, and keep short names for an established idiom in a tight scope (a loop index, a caught error). A run of unrelated single letters (a,b,c) is an absent name, not a short one - Types:
interfacefor object shapes, not atypealias of an object literal; no| nullor| undefinedinside a type alias, with nullability added at the use site;T[]for simple element types andArray<T>for complex ones; neverString,Number,Boolean,Symbol,Object, orFunctionas types, since a call throughFunctionis untyped and returnsany - Assertions: annotate object literals (
const config: Foo = { ... }) rather than asserting them, sinceassuppresses excess-property checking.asand!are unsafe, so prefer a runtime check and say why in a comment when one is impossible. Useas, never angle brackets - Suppressions: no
@ts-ignoreor@ts-nocheck.@ts-expect-erroris permitted in tests only, with a comment; prefer casting the one expression, since the directive suppresses every error on its line. An assertion between unrelated types goes throughunknown, neveranyor{} - Control flow:
===and!==always, except== nullwhen bothnullandundefinedshould match. Preferfor...of, never unfilteredfor...in, which walks inherited keys and returns an array's indices as strings. Everyswitchhas adefaultand no non-empty group falls through - Language defects, each provable from the language rather than from intent: never array-spread a non-iterable, since
[...null]throws where{...null}evaluates to{}; no unary+orparseFloatto read a number, andparseIntonly for a non-decimal radix, so useNumber(); checkNaNexplicitly, since it compares unequal to itself; neverArray()as a constructor, sinceArray(3)builds empty slots;sort()compares by string, so numbers need a comparator; never coerce an enum value to a boolean, since its first member is0; pass an arrow that forwards its arguments rather than a named function as a callback, since['1', '2', '3'].map(parseInt)returns[1, NaN, NaN] - Unhandled promises fail silently: flag a promise whose rejection is neither handled nor propagated, an
asynccallback handed to a non-awaiting iterator such asforEachwhen the caller needs to await its completion, andmapproducing promises without awaiting or returning an aggregate such asPromise.all - Errors: throw only
Erroror a subclass, always vianew Error(...), and reject a promise or abort a signal only with one.{ cause }takes anError. An emptycatchneeds a comment saying why - Narrowing (TypeScript Handbook): a truthiness check used as a presence check is a defect where a falsy value of the type is meaningful, so
if (count)onnumber | undefinedtreats zero as missing, whileif (items.length), which means "non-empty", is intended. Variants are a discriminated union rather than optional fields read through!, and aswitchover one assigns the value toneverin itsdefault. A callback whose result is ignored returnsvoid, and its parameters are optional only when the caller omits them
Not adopted: the ban on default exports (this repository uses them for the module kinds listed above) and snake_case filenames (kebab-case directories with PascalCase components here). Return-type annotations stay optional, as Google leaves them. The _ prefix on an intentionally unused binding, which eslint.config.js requires, is Google's own rule; Google bans _ only as a suffix or a privacy marker.
Each rule is decidable from the component's code; the sources are MDN Accessibility and the Web Content Accessibility Guidelines (WCAG) criteria MDN lists. The Cypress cy.a11yCheck() scan (cypress-axe) checks the rendered page; these rules are for reviewing the source.
- A native element before an ARIA role. Anything clickable is a
<button>(MUIButton/IconButton), or an<a href>when it navigates; adivwithonClickis the finding. A custom widget exposes its name, role, and state (aria-expanded,aria-pressed) in the same code path that changes it - No positive
tabIndex; never remove a focus outline without a:focus-visiblereplacement. Move focus withelement.focus(), giving a non-interactive targettabIndex={-1} - A modal sets initial focus and returns focus to its trigger on close. A live region exists before its text changes,
politeorrole="status"by default,assertiveorrole="alert"for errors only - Every form control has a programmatically associated label (a placeholder is not one), and an
aria-labelcontains the visible label's words. An icon-only button has anaria-label - Every image has
alt(alt=""when decorative); link text makes sense out of context; data tables use<th scope>; headings descend without skipping a level - Colour is never the only signal; where both colours are literal in the code, text contrast is at least 4.5:1 (3:1 for large text). Script-driven animation checks
matchMedia('(prefers-reduced-motion: reduce)'). Pointer targets are at least 24 by 24 CSS pixels. Focus or input never changes the context on its own
- Braced blocks for anything that is not a short single-line early exit.
if (!data) return;may stay unbraced on one line, as maybreak,continue, andthrow; everything else takes{ }. Length is what makes that exit readable, not the fact that it exits early: a long condition returning a long expression takes braces, and the condition is extracted to a named predicate.curlyis configured here asmulti-line, which permits the long form, and Prettier prints an unbraced single-statementifas written however far past the 120-character print width it runs, so neither tool objects and the judgement is yours - A blank line before
return,break,continue, andthrowwhen it is not the first statement in its block - No blank lines between
switchcases - Separate groups that do different work with a blank line: setup, action, assertion; or fetch, transform, render. A body with no blank line anywhere is the finding. Prettier collapses and strips blank lines and never inserts one, so a file written as a single block stays one block, correctly indented and unreadable
- A function body whose length, nesting depth, or widest expression runs past what a reader holds at once is a finding, backstopped at 50 lines, three levels, and a condition of more than about three logical operators or wider than the 120-character print width. A long condition is usually type narrowing, so extract it to a named predicate, or to a type guard (
function isFoo(x: unknown): x is Foo) where the caller needs the narrowing that a barebooleandiscards. A deeply nested body flattens by early return, and a nested chain oftypeof/in/truthiness checks wants a discriminated union read by an exhaustiveswitch - JSX props sorted alphabetically, or grouped by purpose (identity, data, behaviour, styling). Choose one per component and do not mix
- Comments describe the code as it stands. Never narrate a change, fix, or prior state ("now uses", "previously", "no longer", "restored", "replaces", "used to", "formerly", "for the first time"), and never name a file, flag, or tool that no longer exists. Never argue that the code is correct or safe; a sentence giving the reason the code is written as it is is not an argument and stays. Name the code each comment describes (a line, a block, the function, or the file). Where no code corresponds, correct the comment to the current fact it carries, and delete it only when none remains. An existing comment, public or private, is kept by default: delete it only when it is commented-out code, every sentence restates the code beneath it, it narrates a change stating no current fact, or it copies above a use what the declaration's comment already says (under the guard below). Being private or short is never a reason. A verbose comment is tightened by whole sentences, keeping its summary and every reason, constraint, or warning that no other kept sentence gives, and cutting its history and the alternatives not taken, and only inside the requested scope. Inside that scope, a comment you correct for drift is still tightened, and tightening also cuts a sentence arguing the code is safe, a scenario or consequence no code, test, or document states, or a general explanation of what a language, library, or platform does. A comment the change added is held to the length of a new comment: one sentence saying what the code does, plus at most one for an error, a constraint, a caller duty, or the reason the code cannot show. Delete commented-out code. A comment contradicting the code is corrected, not deleted. A note about a deliberate omission the code depends on, and a file header, pass this test.
- Every exported symbol carries a
/** */block, as do members of an exported structure (interface properties, object keys, enum values). Never delete the block or cut it below one sentence. Keep the sentence saying what the symbol does, even where it restates the name, code, or syntax; where unclear, keep the first sentence. Correct a wrong or absent-content claim from the body. If the body was not read, keep the block and report it. Write new blocks from the body: one sentence saying what the symbol does, and a second only for an error, constraint, or caller obligation the body or a test proves. A file-level block says what the module is for and never tours its exports. Cut other sentences by whole sentences; tags follow the rule on existing tags below. - A private helper gets a new block only when its name and signature do not carry it (non-obvious logic, a reason, or a constraint); an existing one is kept under the rule above. A binding inside a function body gets no new block, and a comment there whose every sentence restates the next line is noise. A fact about a symbol is stated once, on its declaration. An export or re-export statement is a declaration, not a use. Never repeat a fact above a line that reads, calls, or branches on the symbol. A member of an exported structure is its own declaration. Remove a copy above a use only where both sites are in scope, the declaration's body was read, and the copy says no more than the declaration's comment; fold any additional constraint into the declaration first. Otherwise leave both and say so.
- In a block you write, do not put types in JSDoc. TypeScript ignores
@param {string},@returns {number},@type, and@typedefin.ts/.tsx, so they drift from the signature. Skip@implements,@enum,@private, and@overridebeside the keyword, and add@param/@returnswhere they say more than the name and type do - Leave existing tags alone unless wrong. A
@param/@returnsalready in the tree was added deliberately, annotation and all. Read the surrounding code, fix what is factually wrong, change nothing else: do not strip a{type}, reword accurate prose, or delete a tag for looking redundant. Delete only when wrong and uncorrectable, such as documenting a parameter the signature no longer has @throws,@example,@deprecated(naming its replacement), and@seeare encouraged: none are expressible in the type system. Open a block with a third-person verb phrase; one tag per line; bodies are Markdown- No Markdown link syntax in JSDoc.
[text](url)is Markdown's, not JSDoc's, and[name](#anchor)has no document to anchor into so it renders as dead text. Reference a symbol with{@link SvgIconProps}, which TypeScript resolves into working hover and Go to Definition; point at an external page with@see https://example.comor{@link https://example.com Display text} //for implementation notes, consecutive//for multi-line. No/* */inside a function body except to name an argument at a call site:someFunction(/* shouldRender= */ true)- Never delete a directive:
//@ts-check,/// <reference types="..." />,// @ts-expect-error,eslint-disable. Moving one is not deleting it: where the same directive repeats across files and the tool reads that setting from its own configuration, setting the key once and removing the copies relocates the instruction. What this forbids is stripping a directive during work with no reason to touch it
- Count seven things on any file you write or review, since no tool checks them, each with the threshold that backstops it: lines in the file (600), members of each exported type against how many a caller uses (15), files sitting directly in the directory (20, counted whatever subdirectories sit beside them, so one subdirectory does not make the loose files next to it grouped), occurrences of a repeated block (3, counting test cases too, where three differing only in a value are one table-driven case), files repeating one declaration (3), parameters a function branches on rather than operates on (more than one, and only on a utility, meaning one named for a single operation or exported for general use rather than one coordinating a sequence, which takes its modes legitimately), and the shape of each function body as three numbers together (lines, nesting depth, widest expression), which is the one unit the other six never reach inside. Name the principle a structural finding violates rather than describing it: single responsibility, control coupling for a branched-on parameter, common coupling for shared mutable module state, content coupling for reaching past an interface, stamp coupling for a whole record where a field would do, dependency inversion, interface segregation, or DRY. Those numbers apply where every sibling is equally large; the sharper test is being an outlier in this tree, stated against what it is measured on. A count triggers a look and is never a finding alone; what makes it one is the concrete split
- A component gets a directory, not a loose file: kebab-case directory under
src/components/, PascalCase file, colocated test, asnavbar/Navbar.tsxdoes. Eleven of the twelve spell it that way, andStars/is the single PascalCase exception rather than a second convention: match the eleven. Related files are grouped into a subdirectory rather than left flat, and entries sharing a name prefix are the group to propose. Detect the scheme the tree uses; never impose a methodology - A setting the tooling reads from configuration is set once, never per file.
jest.config.jsalready setstestEnvironment: 'jsdom'for every test, so only the minority that needs another environment carries a@jest-environmentdocblock (tests that build a fetchRequestorResponserun innode, because jsdom has neither), and path aliases live intsconfig.jsonmirrored intojest.config.jsrather than re-declared per import. Where the same directive would go into three or more files, search for the key, not for the directive's own spelling, since the two are rarely the same word, then hoist the majority and leave the minority declared, counting the majority over every file the setting governs rather than over the files in front of you - Reuse before writing. Before hand-writing behaviour that has a name outside this repository (a wire format, a version-ordering rule, a retry schedule, a cryptographic construction), check three sources in order and say which you read: this repository's own
helpersandutilmodules, thenpackage.jsonand the lockfile, which lists what is resolved where the manifest lists only what was asked for, then the standard library and the platform. Read what the modules a file already imports export before accepting a hand-written block beneath them, since hand-rolling half of what the file imports is the shape this misses most often. The tell is vocabulary: code spelling a specification's own field names is implementing that specification whatever the function is called. Where nothing present provides it, say so and stop rather than adding a dependency. Never hand-roll anything that signs, verifies, encrypts, hashes a credential, or settles an authorization outcome. A test building a value by hand to exercise a rejection path is not this finding
All metadata configured in src/app/layout.tsx:
export const metadata: Metadata = {
title: { template: `%s | ${metadataValues.title}`, default: metadataValues.title },
keywords: seoKeywords,
openGraph: { ... },
robots: { index: true, follow: true },
};- Default: Server Components (no
'use client') - Client-only: Components with hooks, event handlers, browser APIs
- Example client component:
src/components/ServiceWorkerRegister.tsx
Security headers configured in next.config.js headers() function. Every route includes:
- X-Content-Type-Options: nosniff
- X-XSS-Protection: 1; mode=block
- X-Frame-Options: DENY
- Strict-Transport-Security (HSTS)
- Referrer-Policy: same-origin
- Permissions-Policy
The /sw.js route sets Content-Type, Cache-Control, and Service-Worker-Allowed headers.
src/util/isNetworkFast.ts checks Network Information API to conditionally load heavy assets based on connection speed.
src/helpers/aaaahhhh.ts: Fun image replacement logic triggered by avatar interactionssrc/helpers/ascii.ts: Console ASCII art
- Lives in
public/sw.jsand served by Next.js from the public directory at/sw.js - Registration in
src/components/ServiceWorkerRegister.tsx, mounted bysrc/components/consent/services/ConsentedServices.tsxonly once the visitor allows Offline access - Used for PWA offline support
Firebase starts only after the visitor allows Analytics: src/components/consent/services/ConsentedServices.tsx is the one caller of init() from src/configs/firebase.ts. Never call init() elsewhere, and never load another tracker, embed, or device storage outside a consent purpose in src/util/consent/consentStore.ts. init() sets Google Consent Mode with every advertising signal denied and turns off Google signals; the site has no advertising purpose.
import { logAnalyticsEvent } from '@configs/firebase';
logAnalyticsEvent('event_name', { params }); // Does nothing until Analytics is allowedArchitecture docs in docs/architecture/:
index.md: system overviewcomponents/index.md: per-component docs for Avatar, Projects, Publications, and the rest
When writing or editing any Markdown, the full rules are in audit-docs.prompt.md, and the audit-docs skill carries the same rules with worked examples beside them. The always-apply subset:
- Two readers: every document serves a newcomer meeting the system for the first time and someone who already works in it. Orientation first (what the subject is, why a reader would reach for it, what they must already know), then the detail. A page only its author can follow is not finished
- Keep it short and plain: match the length to what the change needs, with no filler sections, repeated summaries, or boilerplate. Write complete, grammatical sentences for a developer reading once, and state what the code does rather than consequences no source states. Documentation includes code comments: audit the comments in every code file a change touched, and cut a long comment to its summary, reasons, and warnings, dropping history and alternatives not taken
- Introduce every acronym and term of art on first use per document, in a parenthesis or a link to the document defining it, and spell a concept one way across
docs/; expanding an acronym is not introducing it - Zero hallucination: document only what the code provably does. Know the file that proves a claim before writing it
- No em-dashes or en-dashes: replace each with a comma, parenthesis, colon, separate sentence, or a spaced hyphen, including existing ones in any file you edit
- Canadian English for prose you write or change (colour, behaviour, standardize), never for code identifiers, config keys, or package names
- No subjective adjectives (important, robust, seamless). State the fact that would earn the adjective
- Readability first: correct content, never form. An existing list, table, heading, or code block keeps its form; never turn a list into prose. A usage example, command, config entry, data sample, or short logic excerpt stays, corrected against the code; only a block transcribing an implementation a link serves as well becomes that link
- Every file reference is a clickable Markdown link to a file, never a bare filename or a directory, and every Mermaid diagram carries both
accTitleandaccDescr. The exception is a skill'sREADME.md, which names a file beside it in a code span, because the plugin page VS Code opens from its Agent Plugins view strips a relative link's target