[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78FM8KJ75VNFBNG9Z1CXRXW":3,"skill-same:01M78FM8KJ75VNFBNG9Z1CXRXW":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M78FM8KJ75VNFBNG9Z1CXRXW","solid-optimistic-ui",null,"Use when Solid app interactions block on pod writes, implementing optimistic non-blocking mutations, save indicators, rollback after failure, debounced teardown flushes, or guarding stale writes from clobbering newer edits.","jeswr\u002Fsolid-sdk","jeswr","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F63333554?v=4","01M78F8AE112CQ0KHFC3R0Z8SJ","Jesse Wright","01M78F8AERJX4YWDA1S4BMF74V",2,"MIT","https:\u002F\u002Fgithub.com\u002Fjeswr\u002Fsolid-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fsolid-optimistic-ui\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: solid-optimistic-ui\ndescription: Use when Solid app interactions block on pod writes, implementing optimistic non-blocking mutations, save indicators, rollback after failure, debounced teardown flushes, or guarding stale writes from clobbering newer edits.\n---\n\n## Quick reference\n\n\u003C!-- AUTHORED-BY Codex GPT-5 -->\n\n**Make pod mutations optimistic**\n\nUpdate local UI state first, persist asynchronously, reconcile in the background, and expose a small non-blocking saving state.\n\n### Correct rollback\n\nCapture both the original fields and the optimistic result.\n\n- Revert only fields changed by the failed mutation, applied to the current record. Replacing the whole record can discard unrelated edits made while the request was in flight.\n- Revert only if the current value still matches that mutation's optimistic value or mutation ID. A late failure must not undo a newer edit to the same field.\n- If the record was deleted or superseded, drop the stale failure.\n- Detect no-op changes before entering the saving state.\n\n```ts\npersist(write).catch(() => {\n  setItems((current) => revertChangedFieldsIfStillCurrent(current, mutation));\n});\n```\n\n### Persistence lifecycle\n\n- Keep optimistic state in the durable, WebID-scoped cache so a reload during a write does not resurrect older state.\n- Reconcile after success because a server-side write may update coupled fields.\n- Generation-fence refreshes so an older response cannot overwrite newer local or server state.\n- For debounced writes, flush on `visibilitychange` to hidden and `pagehide`.\n- Use `fetch(..., { keepalive: true })` only when the encoded body fits the browser's keepalive budget; otherwise fall back to a normal best-effort fetch.\n- Single-flight duplicate teardown flushes for the same snapshot, but do not coalesce a keepalive flush onto a normal fetch that teardown can cancel.\n- Clear the durable pending marker only after the write resolves; retain it for retry after failure.\n\nUse `role=\"status\"` and `aria-live=\"polite\"` for Saving\u002FSaved\u002FError feedback. Avoid modal progress and avoid blocking the user's next action.\n\n### Agent persona\n\nWhen this work is delegated to a sub-agent, spawn the `solid-frontend-dev` persona from\n[`.claude\u002Fagents\u002Fsolid-frontend-dev.md`](..\u002F..\u002F.claude\u002Fagents\u002Fsolid-frontend-dev.md) — it routes through this skill.\nOrchestration: `.claude\u002Fagents\u002Fsolid-app-orchestration.md`.\n\n\u003C!-- AUTHORED-BY Codex GPT-6.1-Sol -->\n\n## Detailed patterns\n\nRead [solid-app-shell](..\u002Fsolid-app-shell\u002FSKILL.md) for the detailed source behind this\nquick reference: field-scoped rollback, mutation ownership, teardown flushes,\nsave indicators, and background reconciliation. The original detailed source is\nnamed `solid-app-shell`; both existing skill names remain discoverable.\n","## Quick reference\n\n\u003C!-- AUTHORED-BY Codex GPT-5 -->\n\n**Make pod mutations optimistic**\n\nUpdate local UI state first, persist asynchronously, reconcile in the background, and expose a small non-blocking saving state.\n\n### Correct rollback\n\nCapture both the original fields and the optimistic result.\n\n- Revert only fields changed by the failed mutation, applied to the current record. Replacing the whole record can discard unrelated edits made while the request was in flight.\n- Revert only if the current value still matches that mutation's optimistic value or mutation ID. A late failure must not undo a newer edit to the same field.\n- If the record was deleted or superseded, drop the stale failure.\n- Detect no-op changes before entering the saving state.\n\n```ts\npersist(write).catch(() => {\n  setItems((current) => revertChangedFieldsIfStillCurrent(current, mutation));\n});\n```\n\n### Persistence lifecycle\n\n- Keep optimistic state in the durable, WebID-scoped cache so a reload during a write does not resurrect older state.\n- Reconcile after success because a server-side write may update coupled fields.\n- Generation-fence refreshes so an older response cannot overwrite newer local or server state.\n- For debounced writes, flush on `visibilitychange` to hidden and `pagehide`.\n- Use `fetch(..., { keepalive: true })` only when the encoded body fits the browser's keepalive budget; otherwise fall back to a normal best-effort fetch.\n- Single-flight duplicate teardown flushes for the same snapshot, but do not coalesce a keepalive flush onto a normal fetch that teardown can cancel.\n- Clear the durable pending marker only after the write resolves; retain it for retry after failure.\n\nUse `role=\"status\"` and `aria-live=\"polite\"` for Saving\u002FSaved\u002FError feedback. Avoid modal progress and avoid blocking the user's next action.\n\n### Agent persona\n\nWhen this work is delegated to a sub-agent, spawn the `solid-frontend-dev` persona from\n[`.claude\u002Fagents\u002Fsolid-frontend-dev.md`](..\u002F..\u002F.claude\u002Fagents\u002Fsolid-frontend-dev.md) — it routes through this skill.\nOrchestration: `.claude\u002Fagents\u002Fsolid-app-orchestration.md`.\n\n\u003C!-- AUTHORED-BY Codex GPT-6.1-Sol -->\n\n## Detailed patterns\n\nRead [solid-app-shell](..\u002Fsolid-app-shell\u002FSKILL.md) for the detailed source behind this\nquick reference: field-scoped rollback, mutation ownership, teardown flushes,\nsave indicators, and background reconciliation. The original detailed source is\nnamed `solid-app-shell`; both existing skill names remain discoverable.\n",{"name":5,"description":7},"main","5482abfe2666cc12f835fe360e8fad1f1e1dea8c","skills\u002Fsolid-optimistic-ui",0,"https:\u002F\u002Fgithub.com\u002Fjeswr\u002Fsolid-sdk","https:\u002F\u002Fgithub.com\u002Fjeswr","jeswr.org\u002F#me","@solid Lead @theodi | PhD Candidate @OxfordHCC\r\n\r\n","2026-11-15 05:20:24",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add jeswr\u002Fsolid-sdk --skill solid-optimistic-ui",{"tool":39,"command":40},"bunx","bunx skills add jeswr\u002Fsolid-sdk --skill solid-optimistic-ui",{"tool":42,"command":43},"pnpm","pnpm dlx skills add jeswr\u002Fsolid-sdk --skill solid-optimistic-ui","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjeswr\u002Fsolid-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fsolid-optimistic-ui\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M78FNRF6EV6SKPEYRZ6JTTQ3","storage-conformance","Work on @jeswr\u002Fstorage-conformance, the shared storage conformance suite package in the Solid SDK workspace.","https:\u002F\u002Fgithub.com\u002Fjeswr\u002Fsolid-sdk\u002Fblob\u002Fmain\u002Ftools\u002Fstorage-conformance\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M78FNMS7HQGD9EE43WAFEW6A","fetch-rdf-engine-tests","Maintain fetch-rdf's real Node WASM parser integration tests without introducing a reverse engine dependency in fetch-rdf.","https:\u002F\u002Fgithub.com\u002Fjeswr\u002Fsolid-sdk\u002Fblob\u002Fmain\u002Ftools\u002Ffetch-rdf-engine-tests\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M78FNK5M6ASAR3909JT6BZV1","alpha","Use when checking fixtures, including folded YAML descriptions.","https:\u002F\u002Fgithub.com\u002Fjeswr\u002Fsolid-sdk\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fcheck-skills\u002Fvalid\u002Fskills\u002Falpha\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M78FNGATR8F4N09HWSFVWBAF","widget","Use when testing package skills: YAML quoting works.","https:\u002F\u002Fgithub.com\u002Fjeswr\u002Fsolid-sdk\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fcheck-skills\u002Fvalid\u002Fpackages\u002Fwidget\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M78FN9M05GCHYTK848SSMN9R","web-seo","Use when improving technical and entity SEO for a modern personal, portfolio, documentation, or marketing site, including crawlable HTML, canonical metadata, sitemap and robots, Person\u002FProfilePage JSON-LD, Core Web Vitals, and honest ranking expectations.","https:\u002F\u002Fgithub.com\u002Fjeswr\u002Fsolid-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fweb-seo\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M78FN5ANETMSPMEFACSJ7JMC","solid-wac","Use when implementing or auditing Solid server WAC authorization, ACL creation and inheritance, auxiliary-resource escalation, method-to-mode mapping, 401 versus 403 challenges, WAC-Allow, or defensive typed ACL parsing with @solid\u002Fobject and @rdfjs\u002Fwrapper.","https:\u002F\u002Fgithub.com\u002Fjeswr\u002Fsolid-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fsolid-wac\u002FSKILL.md",[],[]]