{"data":{"slug":"discovered-91890154d1fb2977eda7469f3593dd20c5a81f83850cfab4","title":"Cross Surface Changes","summary":"Ensure consistent updates across all surfaces where a fact is stated, including landing pages, documentation, code, and frontend consumers. This includes generating surfaces where possible and running drift tests to prevent inconsistencies.","url":"https:\/\/skillshunter.net\/skills\/discovered-91890154d1fb2977eda7469f3593dd20c5a81f83850cfab4","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-91890154d1fb2977eda7469f3593dd20c5a81f83850cfab4","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-91890154d1fb2977eda7469f3593dd20c5a81f83850cfab4.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-91890154d1fb2977eda7469f3593dd20c5a81f83850cfab4\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before making a change, enumerate all surfaces where the fact appears and update them all. Use drift tests to ensure consistency, and avoid hand-maintaining copies of surfaces that another codebase owns. When renaming a serialized field, search the entire codebase, not just Python call sites.","instructions":"---\nname: shipping-across-surfaces\ndescription: Land a change everywhere the same fact is stated \u2014 enumerating the full surface inventory (landing copy, docs, machine-readable summaries, changelog badges repeated across every page, sitemap, README, descriptions embedded in code, and untyped frontend consumers of typed responses), generating a surface instead of restating it, drift tests where you cannot generate, never hand-maintaining a copy of a surface another codebase owns, shipping a paired PR when you change a format a different codebase decodes, and keeping overloaded product words apart. Use when adding or renaming a user-facing feature, editing product\/marketing copy or docs, renaming a serialized response field, changing a serialization or share-link format, wiring one repo's output into another's checks, or reviewing a PR that touched only one place a fact appears.\n---\n\n# Shipping Across Surfaces\n\nMost product facts are stated more than once. The feature exists in code, is\ndescribed on a landing page, summarized for agents, listed in a changelog,\nrepeated in a nav badge, restated in a README, and embedded again in the\ndescription string of every tool or endpoint that exposes it. Each copy drifts\nindependently, and none of them are covered by tests.\n\nThe failure is never loud. Nothing goes red; the product simply describes itself\ninaccurately in the four places you didn't edit, and the one place a reader\nhappened to look is the stale one.\n\n## Enumerate the surface inventory once, in the repo\n\n\"I'll remember the other places\" does not survive the second feature. Write the\nlist down \u2014 in `CONTRIBUTING.md`, a PR template, or the skill\/guide the project\nalready keeps \u2014 and treat it as the definition of done for a user-facing change.\nA realistic inventory for a product with a public site:\n\n- Landing page: hero, section ledes, the feature cards, the free\/paid list\n- `<meta>` \/ OG \/ Twitter tags, and the structured data (`SoftwareApplication`\n  description, `FAQPage` entries) \u2014 search engines read the copy you forgot\n- Docs page, and any machine-readable summary for agents (`llms.txt`)\n- Changelog entry **and** the version badge repeated in the nav of every page\n- Sitemap, and the footer product column present on every page\n- README, comparison pages, onboarding\/skill files\n- **The descriptions embedded in code** \u2014 every tool, command, or endpoint\n  description, not just the primary one\n\nThat last bullet is the one that gets missed. A rename lands in the tool it was\nnamed after and stays wrong in the three sibling tools that mention it in\npassing. Grep for the old string across the whole tree, not just the docs\ndirectory, before calling the change done.\n\nAll of these ship in the **same PR**. A follow-up \"update docs\" commit means the\ninterval between them shipped a product that contradicted itself.\n\n## Prefer a generated surface to a restated one\n\nThe surfaces above are drudgery precisely because they're copies. Delete the copy\nwhere you can:\n\n- An API reference rendered from the live schema self-syncs and needs no hand\n  edit when the API changes. That page is *free* forever.\n- A version badge repeated across forty pages belongs in a template\/partial or a\n  build-time injection, not in forty files.\n- A \"supported features\" list is better derived from the registry it describes\n  than typed a second time.\n\nWhere generation isn't practical, make drift fail a test rather than a review.\n\n```python\ndef test_readme_documents_every_registered_tool():\n    registered = {t.name for t in get_registered_tools()}\n    documented = parse_tool_names(README.read_text())\n    assert documented == registered   # fails on add, remove, and rename\n```\n\nCompare against the *live* registry, not a second hand-written list \u2014 a test that\ncompares two hand-maintained lists only proves you updated both copies of the\nsame mistake. The same rule covers duplicated dependency metadata and committed\nbuild outputs; see **build-artifacts** (also in this repo's `.claude\/skills\/`).\n\n## A response model is only half the contract\n\nA typed backend and an untyped frontend can disagree without either side\nfailing. Renaming a Pydantic field updates serialization and keeps every Python\ntest green, while a Jinja template's inline JavaScript still reads the old name\ninside a template literal. The browser then renders `undefined`: valid\nJavaScript, no exception, no backend failure.\n\nTreat every serialized field rename as a producer-and-consumer change:\n\n```bash\n# Search the whole tree, not just Python call sites. Templates and committed\n# JavaScript bundles are consumers too.\nrg 'old_field|new_field' .\n```\n\nThen pin the boundary with a test that uses the real serialized response and the\nreal consumer. A browser test is ideal when available. A cheaper contract test\ncan still make the hidden dependency explicit:\n\n```python\ndef test_dashboard_consumes_the_audit_response_contract():\n    payload = AuditResponse.example().model_dump()\n    template = Path(\"templates\/dashboard.html\").read_text()\n\n    for field in (\"summary\", \"recommendations\"):\n        assert field in payload\n        assert f\"result.{field}\" in template\n```\n\nThis test is deliberately narrow: it does not claim to execute JavaScript. It\nmakes a field rename fail in the same change that alters the response model,\ninstead of relying on someone to notice `undefined` in a rendered page. Prefer\ngenerating a typed client or shared schema when the frontend architecture allows\nit; otherwise keep this boundary test beside the producer's contract tests.\n\n## Don't hand-maintain a copy of a surface you don't own\n\nThe tempting shortcut when validating against another system \u2014 another service's\ntool names, another team's enum, a partner API's status codes \u2014 is to paste the\ncurrent values into a constant and check against it.\n\n```python\n# Anti-pattern: a private snapshot of someone else's public surface.\nKNOWN_TOOLS = {\"search\", \"create\", \"archive\"}   # correct until they ship\n```\n\nIt is stale the moment the owner ships, and the staleness surfaces as *your*\nvalidator rejecting valid input. Worse, nothing in your repo can detect it: you\nhave no reference to compare against.\n\nTruth flows **outward from whoever owns it**. The owning codebase publishes a\ngenerated, versioned artifact \u2014 a committed `tools.json` carrying the source\nversion and commit \u2014 and the consumer reads that file. Ask \"who owns this fact,\nand which direction is it moving?\" before writing the check. A design where your\nrepo reaches into theirs to scrape the truth is the wrong direction and will\nbreak on access, auth, or refactor; a design where they publish and you consume\nis stable.\n\nChecks that need **no** external truth are fine to land standalone: a denylist of\nknown-bad legacy patterns, a structural schema check, a \"this field is required\"\nassertion. Those describe your own expectations, not their surface.\n\n## A format change needs its consumer's PR in the same breath\n\nWhen one codebase encodes and a different one decodes \u2014 a share-link payload, an\nexport file, a cache key, a webhook body \u2014 the format is a contract between two\nrepos, and half a contract is an outage.\n\n- Open the paired PR in the consumer repo at the same time, proactively. Don't\n  land the producer side and file an issue for the other end.\n- Version the payload so an old decoder can *detect* a new format instead of\n  misparsing it into plausible garbage.\n- Where the two are on different release cadences (an app store review vs. a\n  static site deploy), ship the decoder first and the encoder second.\n\nIf the counterpart repo is private and this one is public, refer to it by what it\ndoes \u2014 \"the site that serves the share links\" \u2014 never by slug, path, or URL.\nNaming the public product a piece of content is *about* is expected; leaking the\nname of a private repository is not. That distinction is worth a CI check in any\npublic repo that has a private counterpart.\n\n## Keep overloaded words apart\n\nProducts accumulate words that name two different things. One system may have a\nper-feed, unsigned POST configured on a resource *and* an account-wide, signed,\nretried event stream with a delivery log \u2014 and call both a \"webhook.\" Once copy\nuses the bare word, every sentence about either becomes ambiguous and support\nquestions stop being answerable.\n\nWrite the two definitions down with a canonical label for each, put them\nsomewhere new copy is written against, and never let the bare overloaded word\nstand alone in user-facing text. This applies to nav labels and tool descriptions\nas much as to prose \u2014 the label is the surface most people read.\n\n## Make factual claims traceable\n\nCopy that asserts things about behavior (\"processes N per second\", \"caps\nwithdrawals per settlement\") drifts from the code faster than any other surface,\nbecause nothing recompiles when it becomes false.\n\nKeep a claim ledger with stable identifiers, cite the identifier inline from the\ncopy, and record provenance in the ledger rather than repeating it in the prose.\nTwo rules make it survive:\n\n- **Append, never renumber.** A new claim continues the numbering; reusing or\n  renumbering an identifier silently repoints every existing citation.\n- **When two ledgers cover the same fact, cite the more rigorously derived one** \u2014\n  a measured benchmark row over a read-the-source row \u2014 so the weaker claim can't\n  outlive its replacement.\n\nA repo-level check that every factual sentence carries a citation turns this from\na habit into a gate.\n\n## Checklist\n\n```\nBefore calling a user-facing change done:\n- [ ] Surface inventory exists in the repo and was walked, not recalled\n- [ ] Old strings grepped for across the whole tree, including code descriptions\n- [ ] Serialized field renames grepped through templates and frontend code\n- [ ] Untyped response consumers covered by a boundary contract test\n- [ ] Every sibling tool\/endpoint description mentioning the feature updated\n- [ ] Changelog entry added and the repeated version badge bumped everywhere\n- [ ] All surfaces in ONE PR, not a docs follow-up\n\nReducing the surface count:\n- [ ] Anything renderable from a live schema\/registry is generated, not typed\n- [ ] Repeated fragments live in a template\/partial, not N files\n- [ ] Unavoidable duplication has a drift test against the live source\n\nAcross repo boundaries:\n- [ ] No hand-maintained snapshot of a surface another codebase owns\n- [ ] Truth flows outward from the owner as a versioned, generated artifact\n- [ ] Format changes ship a paired consumer PR; payload is versioned\n- [ ] Decoder deploys before encoder when cadences differ\n- [ ] Public content names no private repo slug, path, or URL\n\nWording:\n- [ ] Overloaded product terms have written definitions and canonical labels\n- [ ] Factual claims cite a stable ledger identifier; identifiers are append-only\n```\n\n## Note for this repository (ffmpeg-skill)\n\nThe tool count (42 today) and the per-category tool tables in README.md and\nSKILL.md are exactly this kind of restated surface \u2014 the count drifted more\nthan once when a tool was added and only the code was updated.\n`tests\/test_contract.py`'s `test_mcp_tools_match_contract` and\n`test_mcp_schema_drift_follows_the_scripts` are the \"generated surface\" \/\n\"drift test\" answer for the MCP tool list (MCP's `tools\/list` is derived from\nthe contract, never hand-written), and\n`test_docs_tool_count_matches_the_real_tool_list` is the drift test for the\ncount in the prose: the documents are still hand-edited, but a wrong number\nnow fails. `docs\/contract.md`'s `capability_map`\/`provides` sections are the\nother real example: they explicitly promise \"says nothing tools[] doesn't\nalready say,\" i.e. they are declared to be a re-index, not a second source of\ntruth \u2014 exactly the \"truth flows outward from whoever owns it\" principle.\n\nSource: [wdm0006\/python-skills](https:\/\/github.com\/wdm0006\/python-skills) (MIT).\n","use_cases":["Adding or renaming a user-facing feature","Editing product or marketing copy and documentation","Renaming a serialized response field","Changing a serialization or share-link format","Wiring one repo's output into another's checks","Reviewing a PR that touched only one place a fact appears"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/kajisho5\/ffmpeg-skill\/blob\/daae28ea4fe27223932392be07206798423c0f8b\/.claude\/skills\/cross-surface-changes\/SKILL.md","source_commit":"daae28ea4fe27223932392be07206798423c0f8b","license":null,"version":null,"listing_approved_at":"2026-11-28","created_at":"2026-11-28T08:11:08.000000Z","updated_at":"2026-11-28T18:38:03.000000Z","seo_title":"Cross Surface Changes - Ensure Consistency Across All Product Surfaces","seo_description":"Ensure consistent updates across all surfaces where a fact is stated, including landing pages, documentation, code, and frontend consumers. This includes generating anddr","seo_keywords":["cross surface changes","product consistency","drift tests","surface inventory","user-facing changes","serialized field renaming","documentation updates","frontend-backend alignment"]}}