[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-meta-passcode-for-testing":3,"mdc-bjfd5-key":34,"related-repo-meta-passcode-for-testing":1390,"related-org-meta-passcode-for-testing":1496},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":29,"sourceUrl":32,"mdContent":33},"passcode-for-testing","add passcode screen for testing","Add a 3-digit combination lock passcode screen to a Meta Display Glasses webapp to gate public access during testing. Offered as an opt-in step within \u002Ftest-on-device since Vercel deployment protection is disabled for glasses browser compatibility.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"meta","Meta Open Source","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fmeta.png","facebook",[13,17,20],{"name":14,"slug":15,"type":16},"Security","security","tag",{"name":18,"slug":19,"type":16},"Auth","auth",{"name":21,"slug":22,"type":16},"Testing","testing",189,"https:\u002F\u002Fgithub.com\u002Ffacebook\u002Fmeta-wearables-webapp","2026-09-01T08:30:29.780188",null,33,[],{"repoUrl":24,"stars":23,"forks":27,"topics":30,"description":31},[],"AI-assisted development toolkit for building web applications on Meta Ray-Ban Display glasses.","https:\u002F\u002Fgithub.com\u002Ffacebook\u002Fmeta-wearables-webapp\u002Ftree\u002FHEAD\u002Fplugins\u002Fmeta-wearables-webapp\u002Fskills\u002Fpasscode-for-testing","---\nname: passcode-for-testing\ndescription: >-\n  Add a 3-digit combination lock passcode screen to a Meta Display Glasses webapp\n  to gate public access during testing. Offered as an opt-in step within\n  \u002Ftest-on-device since Vercel deployment protection is disabled for glasses\n  browser compatibility.\nargument-hint: \"[app-directory]\"\n---\n\n# Passcode for Testing\n\nAdd a combination lock screen that gates access to your webapp during Vercel preview deployments. Since `\u002Ftest-on-device` disables Vercel's deployment protection, this prevents the public from accessing your app.\n\nThis skill is offered as an opt-in by `\u002Ftest-on-device` (Step 0.5) — it is not auto-invoked. `\u002Fpublish-to-vercel` will not add a passcode, and if one already exists it will offer to disable the routing for production (the lock files stay on disk).\n\n## Prerequisites\n\n- Existing webapp with `index.html` (created via `\u002Fcreate-webapp` or manually)\n- The app directory must have `server.js` and `vercel.json` (created by `\u002Fcreate-webapp` or `\u002Ftest-on-device`)\n\n## Steps\n\n### 1. Gather Information\n\nAsk the user:\n- **Passcode** — 3 digits, each 0-9 (e.g. 2-4-7)\n\n### 2. Create `lock.html`\n\nRead [templates\u002Flock.html](templates\u002Flock.html) and write it to the app directory.\n\nReplace the two placeholder values in the `\u003Cscript>` block:\n- `__DIGIT_0__`, `__DIGIT_1__`, `__DIGIT_2__` — the user's chosen passcode digits (as integers)\n- `__APP_NAME__` in the `STORAGE_KEY` — the project name from `package.json` with hyphens replaced by underscores (e.g. `ipl-live-scores` → `ipl_live_scores`)\n\n### 3. Update Routing\n\n**`server.js`** — change the root path to serve `lock.html`:\n\n```javascript\n\u002F\u002F Find this:\nvar filePath = '.' + (req.url === '\u002F' ? '\u002Findex.html' : req.url);\n\u002F\u002F Replace with:\nvar filePath = '.' + (req.url === '\u002F' ? '\u002Flock.html' : req.url);\n```\n\n**`vercel.json`** — add a rewrite rule before the catch-all:\n\n```json\n{\n  \"rewrites\": [\n    { \"source\": \"\u002F\", \"destination\": \"\u002Flock.html\" },\n    { \"source\": \"\u002F(.*)\", \"destination\": \"\u002F$1\" }\n  ]\n}\n```\n\n### 4. Add Guard to `index.html`\n\nAdd this inline script in `\u003Chead>`, after `\u003Cmeta>` tags and before any `\u003Clink>` or `\u003Cscript>` tags:\n\n```html\n\u003Cscript>if(localStorage.getItem('\u003CSTORAGE_KEY>')!=='1')window.location.replace('lock.html');\u003C\u002Fscript>\n```\n\nReplace `\u003CSTORAGE_KEY>` with the same key used in `lock.html` (e.g. `ipl_live_scores_unlocked`).\n\nThis prevents bypassing the lock by navigating directly to `index.html`.\n\n## Verify\n\n- [ ] `lock.html` exists in the app directory\n- [ ] Passcode digits and `STORAGE_KEY` are set correctly in `lock.html`\n- [ ] `server.js` serves `lock.html` on root path `\u002F`\n- [ ] `vercel.json` has the `\u002F` → `\u002Flock.html` rewrite before the catch-all\n- [ ] `index.html` has the localStorage guard script in `\u003Chead>`\n- [ ] Correct passcode shows green digits, \"Unlocked\" animation, and redirects\n- [ ] After unlock, refreshes and new tabs skip the lock (localStorage persists)\n- [ ] Direct navigation to `\u002Findex.html` redirects back to lock if not unlocked\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| Lock screen doesn't appear | Check `server.js` serves `lock.html` on `\u002F` and `vercel.json` has the rewrite |\n| Can bypass lock via `\u002Findex.html` | Ensure the localStorage guard script is in `index.html` `\u003Chead>` |\n| Wrong passcode unlocks | Verify `PASSCODE` array in `lock.html` matches the user's chosen digits |\n| Unlock doesn't redirect | Ensure `STORAGE_KEY` is consistent between `lock.html` and `index.html` guard |\n\n## Related Skills\n\n- `\u002Ftest-on-device` — Offers this skill as an opt-in (Step 0.5) before deploying\n- `\u002Fcreate-webapp` — Create a new webapp before adding passcode protection\n- `\u002Fpublish-to-vercel` — Will not add a passcode; if one already exists, offers to disable the routing for production while leaving the lock files on disk\n",{"data":35,"body":37},{"name":4,"description":6,"argument-hint":36},"[app-directory]",{"type":38,"children":39},"root",[40,48,63,83,90,151,157,164,169,183,195,208,221,292,298,318,564,577,791,802,837,983,1010,1021,1027,1182,1188,1345,1351,1384],{"type":41,"tag":42,"props":43,"children":44},"element","h1",{"id":4},[45],{"type":46,"value":47},"text","Passcode for Testing",{"type":41,"tag":49,"props":50,"children":51},"p",{},[52,54,61],{"type":46,"value":53},"Add a combination lock screen that gates access to your webapp during Vercel preview deployments. Since ",{"type":41,"tag":55,"props":56,"children":58},"code",{"className":57},[],[59],{"type":46,"value":60},"\u002Ftest-on-device",{"type":46,"value":62}," disables Vercel's deployment protection, this prevents the public from accessing your app.",{"type":41,"tag":49,"props":64,"children":65},{},[66,68,73,75,81],{"type":46,"value":67},"This skill is offered as an opt-in by ",{"type":41,"tag":55,"props":69,"children":71},{"className":70},[],[72],{"type":46,"value":60},{"type":46,"value":74}," (Step 0.5) — it is not auto-invoked. ",{"type":41,"tag":55,"props":76,"children":78},{"className":77},[],[79],{"type":46,"value":80},"\u002Fpublish-to-vercel",{"type":46,"value":82}," will not add a passcode, and if one already exists it will offer to disable the routing for production (the lock files stay on disk).",{"type":41,"tag":84,"props":85,"children":87},"h2",{"id":86},"prerequisites",[88],{"type":46,"value":89},"Prerequisites",{"type":41,"tag":91,"props":92,"children":93},"ul",{},[94,116],{"type":41,"tag":95,"props":96,"children":97},"li",{},[98,100,106,108,114],{"type":46,"value":99},"Existing webapp with ",{"type":41,"tag":55,"props":101,"children":103},{"className":102},[],[104],{"type":46,"value":105},"index.html",{"type":46,"value":107}," (created via ",{"type":41,"tag":55,"props":109,"children":111},{"className":110},[],[112],{"type":46,"value":113},"\u002Fcreate-webapp",{"type":46,"value":115}," or manually)",{"type":41,"tag":95,"props":117,"children":118},{},[119,121,127,129,135,137,142,144,149],{"type":46,"value":120},"The app directory must have ",{"type":41,"tag":55,"props":122,"children":124},{"className":123},[],[125],{"type":46,"value":126},"server.js",{"type":46,"value":128}," and ",{"type":41,"tag":55,"props":130,"children":132},{"className":131},[],[133],{"type":46,"value":134},"vercel.json",{"type":46,"value":136}," (created by ",{"type":41,"tag":55,"props":138,"children":140},{"className":139},[],[141],{"type":46,"value":113},{"type":46,"value":143}," or ",{"type":41,"tag":55,"props":145,"children":147},{"className":146},[],[148],{"type":46,"value":60},{"type":46,"value":150},")",{"type":41,"tag":84,"props":152,"children":154},{"id":153},"steps",[155],{"type":46,"value":156},"Steps",{"type":41,"tag":158,"props":159,"children":161},"h3",{"id":160},"_1-gather-information",[162],{"type":46,"value":163},"1. Gather Information",{"type":41,"tag":49,"props":165,"children":166},{},[167],{"type":46,"value":168},"Ask the user:",{"type":41,"tag":91,"props":170,"children":171},{},[172],{"type":41,"tag":95,"props":173,"children":174},{},[175,181],{"type":41,"tag":176,"props":177,"children":178},"strong",{},[179],{"type":46,"value":180},"Passcode",{"type":46,"value":182}," — 3 digits, each 0-9 (e.g. 2-4-7)",{"type":41,"tag":158,"props":184,"children":186},{"id":185},"_2-create-lockhtml",[187,189],{"type":46,"value":188},"2. Create ",{"type":41,"tag":55,"props":190,"children":192},{"className":191},[],[193],{"type":46,"value":194},"lock.html",{"type":41,"tag":49,"props":196,"children":197},{},[198,200,206],{"type":46,"value":199},"Read ",{"type":41,"tag":201,"props":202,"children":204},"a",{"href":203},"templates\u002Flock.html",[205],{"type":46,"value":203},{"type":46,"value":207}," and write it to the app directory.",{"type":41,"tag":49,"props":209,"children":210},{},[211,213,219],{"type":46,"value":212},"Replace the two placeholder values in the ",{"type":41,"tag":55,"props":214,"children":216},{"className":215},[],[217],{"type":46,"value":218},"\u003Cscript>",{"type":46,"value":220}," block:",{"type":41,"tag":91,"props":222,"children":223},{},[224,250],{"type":41,"tag":95,"props":225,"children":226},{},[227,233,235,241,242,248],{"type":41,"tag":55,"props":228,"children":230},{"className":229},[],[231],{"type":46,"value":232},"__DIGIT_0__",{"type":46,"value":234},", ",{"type":41,"tag":55,"props":236,"children":238},{"className":237},[],[239],{"type":46,"value":240},"__DIGIT_1__",{"type":46,"value":234},{"type":41,"tag":55,"props":243,"children":245},{"className":244},[],[246],{"type":46,"value":247},"__DIGIT_2__",{"type":46,"value":249}," — the user's chosen passcode digits (as integers)",{"type":41,"tag":95,"props":251,"children":252},{},[253,259,261,267,269,275,277,283,285,291],{"type":41,"tag":55,"props":254,"children":256},{"className":255},[],[257],{"type":46,"value":258},"__APP_NAME__",{"type":46,"value":260}," in the ",{"type":41,"tag":55,"props":262,"children":264},{"className":263},[],[265],{"type":46,"value":266},"STORAGE_KEY",{"type":46,"value":268}," — the project name from ",{"type":41,"tag":55,"props":270,"children":272},{"className":271},[],[273],{"type":46,"value":274},"package.json",{"type":46,"value":276}," with hyphens replaced by underscores (e.g. ",{"type":41,"tag":55,"props":278,"children":280},{"className":279},[],[281],{"type":46,"value":282},"ipl-live-scores",{"type":46,"value":284}," → ",{"type":41,"tag":55,"props":286,"children":288},{"className":287},[],[289],{"type":46,"value":290},"ipl_live_scores",{"type":46,"value":150},{"type":41,"tag":158,"props":293,"children":295},{"id":294},"_3-update-routing",[296],{"type":46,"value":297},"3. Update Routing",{"type":41,"tag":49,"props":299,"children":300},{},[301,309,311,316],{"type":41,"tag":176,"props":302,"children":303},{},[304],{"type":41,"tag":55,"props":305,"children":307},{"className":306},[],[308],{"type":46,"value":126},{"type":46,"value":310}," — change the root path to serve ",{"type":41,"tag":55,"props":312,"children":314},{"className":313},[],[315],{"type":46,"value":194},{"type":46,"value":317},":",{"type":41,"tag":319,"props":320,"children":325},"pre",{"className":321,"code":322,"language":323,"meta":324,"style":324},"language-javascript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F Find this:\nvar filePath = '.' + (req.url === '\u002F' ? '\u002Findex.html' : req.url);\n\u002F\u002F Replace with:\nvar filePath = '.' + (req.url === '\u002F' ? '\u002Flock.html' : req.url);\n","javascript","",[326],{"type":41,"tag":55,"props":327,"children":328},{"__ignoreMap":324},[329,341,458,467],{"type":41,"tag":330,"props":331,"children":334},"span",{"class":332,"line":333},"line",1,[335],{"type":41,"tag":330,"props":336,"children":338},{"style":337},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[339],{"type":46,"value":340},"\u002F\u002F Find this:\n",{"type":41,"tag":330,"props":342,"children":344},{"class":332,"line":343},2,[345,351,357,363,368,374,379,384,389,393,398,403,407,412,416,421,425,430,434,439,444,448,453],{"type":41,"tag":330,"props":346,"children":348},{"style":347},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[349],{"type":46,"value":350},"var",{"type":41,"tag":330,"props":352,"children":354},{"style":353},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[355],{"type":46,"value":356}," filePath ",{"type":41,"tag":330,"props":358,"children":360},{"style":359},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[361],{"type":46,"value":362},"=",{"type":41,"tag":330,"props":364,"children":365},{"style":359},[366],{"type":46,"value":367}," '",{"type":41,"tag":330,"props":369,"children":371},{"style":370},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[372],{"type":46,"value":373},".",{"type":41,"tag":330,"props":375,"children":376},{"style":359},[377],{"type":46,"value":378},"'",{"type":41,"tag":330,"props":380,"children":381},{"style":359},[382],{"type":46,"value":383}," +",{"type":41,"tag":330,"props":385,"children":386},{"style":353},[387],{"type":46,"value":388}," (req",{"type":41,"tag":330,"props":390,"children":391},{"style":359},[392],{"type":46,"value":373},{"type":41,"tag":330,"props":394,"children":395},{"style":353},[396],{"type":46,"value":397},"url ",{"type":41,"tag":330,"props":399,"children":400},{"style":359},[401],{"type":46,"value":402},"===",{"type":41,"tag":330,"props":404,"children":405},{"style":359},[406],{"type":46,"value":367},{"type":41,"tag":330,"props":408,"children":409},{"style":370},[410],{"type":46,"value":411},"\u002F",{"type":41,"tag":330,"props":413,"children":414},{"style":359},[415],{"type":46,"value":378},{"type":41,"tag":330,"props":417,"children":418},{"style":359},[419],{"type":46,"value":420}," ?",{"type":41,"tag":330,"props":422,"children":423},{"style":359},[424],{"type":46,"value":367},{"type":41,"tag":330,"props":426,"children":427},{"style":370},[428],{"type":46,"value":429},"\u002Findex.html",{"type":41,"tag":330,"props":431,"children":432},{"style":359},[433],{"type":46,"value":378},{"type":41,"tag":330,"props":435,"children":436},{"style":359},[437],{"type":46,"value":438}," :",{"type":41,"tag":330,"props":440,"children":441},{"style":353},[442],{"type":46,"value":443}," req",{"type":41,"tag":330,"props":445,"children":446},{"style":359},[447],{"type":46,"value":373},{"type":41,"tag":330,"props":449,"children":450},{"style":353},[451],{"type":46,"value":452},"url)",{"type":41,"tag":330,"props":454,"children":455},{"style":359},[456],{"type":46,"value":457},";\n",{"type":41,"tag":330,"props":459,"children":461},{"class":332,"line":460},3,[462],{"type":41,"tag":330,"props":463,"children":464},{"style":337},[465],{"type":46,"value":466},"\u002F\u002F Replace with:\n",{"type":41,"tag":330,"props":468,"children":470},{"class":332,"line":469},4,[471,475,479,483,487,491,495,499,503,507,511,515,519,523,527,531,535,540,544,548,552,556,560],{"type":41,"tag":330,"props":472,"children":473},{"style":347},[474],{"type":46,"value":350},{"type":41,"tag":330,"props":476,"children":477},{"style":353},[478],{"type":46,"value":356},{"type":41,"tag":330,"props":480,"children":481},{"style":359},[482],{"type":46,"value":362},{"type":41,"tag":330,"props":484,"children":485},{"style":359},[486],{"type":46,"value":367},{"type":41,"tag":330,"props":488,"children":489},{"style":370},[490],{"type":46,"value":373},{"type":41,"tag":330,"props":492,"children":493},{"style":359},[494],{"type":46,"value":378},{"type":41,"tag":330,"props":496,"children":497},{"style":359},[498],{"type":46,"value":383},{"type":41,"tag":330,"props":500,"children":501},{"style":353},[502],{"type":46,"value":388},{"type":41,"tag":330,"props":504,"children":505},{"style":359},[506],{"type":46,"value":373},{"type":41,"tag":330,"props":508,"children":509},{"style":353},[510],{"type":46,"value":397},{"type":41,"tag":330,"props":512,"children":513},{"style":359},[514],{"type":46,"value":402},{"type":41,"tag":330,"props":516,"children":517},{"style":359},[518],{"type":46,"value":367},{"type":41,"tag":330,"props":520,"children":521},{"style":370},[522],{"type":46,"value":411},{"type":41,"tag":330,"props":524,"children":525},{"style":359},[526],{"type":46,"value":378},{"type":41,"tag":330,"props":528,"children":529},{"style":359},[530],{"type":46,"value":420},{"type":41,"tag":330,"props":532,"children":533},{"style":359},[534],{"type":46,"value":367},{"type":41,"tag":330,"props":536,"children":537},{"style":370},[538],{"type":46,"value":539},"\u002Flock.html",{"type":41,"tag":330,"props":541,"children":542},{"style":359},[543],{"type":46,"value":378},{"type":41,"tag":330,"props":545,"children":546},{"style":359},[547],{"type":46,"value":438},{"type":41,"tag":330,"props":549,"children":550},{"style":353},[551],{"type":46,"value":443},{"type":41,"tag":330,"props":553,"children":554},{"style":359},[555],{"type":46,"value":373},{"type":41,"tag":330,"props":557,"children":558},{"style":353},[559],{"type":46,"value":452},{"type":41,"tag":330,"props":561,"children":562},{"style":359},[563],{"type":46,"value":457},{"type":41,"tag":49,"props":565,"children":566},{},[567,575],{"type":41,"tag":176,"props":568,"children":569},{},[570],{"type":41,"tag":55,"props":571,"children":573},{"className":572},[],[574],{"type":46,"value":134},{"type":46,"value":576}," — add a rewrite rule before the catch-all:",{"type":41,"tag":319,"props":578,"children":582},{"className":579,"code":580,"language":581,"meta":324,"style":324},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"rewrites\": [\n    { \"source\": \"\u002F\", \"destination\": \"\u002Flock.html\" },\n    { \"source\": \"\u002F(.*)\", \"destination\": \"\u002F$1\" }\n  ]\n}\n","json",[583],{"type":41,"tag":55,"props":584,"children":585},{"__ignoreMap":324},[586,594,621,699,773,782],{"type":41,"tag":330,"props":587,"children":588},{"class":332,"line":333},[589],{"type":41,"tag":330,"props":590,"children":591},{"style":359},[592],{"type":46,"value":593},"{\n",{"type":41,"tag":330,"props":595,"children":596},{"class":332,"line":343},[597,602,607,612,616],{"type":41,"tag":330,"props":598,"children":599},{"style":359},[600],{"type":46,"value":601},"  \"",{"type":41,"tag":330,"props":603,"children":604},{"style":347},[605],{"type":46,"value":606},"rewrites",{"type":41,"tag":330,"props":608,"children":609},{"style":359},[610],{"type":46,"value":611},"\"",{"type":41,"tag":330,"props":613,"children":614},{"style":359},[615],{"type":46,"value":317},{"type":41,"tag":330,"props":617,"children":618},{"style":359},[619],{"type":46,"value":620}," [\n",{"type":41,"tag":330,"props":622,"children":623},{"class":332,"line":460},[624,629,634,640,644,648,652,656,660,665,669,674,678,682,686,690,694],{"type":41,"tag":330,"props":625,"children":626},{"style":359},[627],{"type":46,"value":628},"    {",{"type":41,"tag":330,"props":630,"children":631},{"style":359},[632],{"type":46,"value":633}," \"",{"type":41,"tag":330,"props":635,"children":637},{"style":636},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[638],{"type":46,"value":639},"source",{"type":41,"tag":330,"props":641,"children":642},{"style":359},[643],{"type":46,"value":611},{"type":41,"tag":330,"props":645,"children":646},{"style":359},[647],{"type":46,"value":317},{"type":41,"tag":330,"props":649,"children":650},{"style":359},[651],{"type":46,"value":633},{"type":41,"tag":330,"props":653,"children":654},{"style":370},[655],{"type":46,"value":411},{"type":41,"tag":330,"props":657,"children":658},{"style":359},[659],{"type":46,"value":611},{"type":41,"tag":330,"props":661,"children":662},{"style":359},[663],{"type":46,"value":664},",",{"type":41,"tag":330,"props":666,"children":667},{"style":359},[668],{"type":46,"value":633},{"type":41,"tag":330,"props":670,"children":671},{"style":636},[672],{"type":46,"value":673},"destination",{"type":41,"tag":330,"props":675,"children":676},{"style":359},[677],{"type":46,"value":611},{"type":41,"tag":330,"props":679,"children":680},{"style":359},[681],{"type":46,"value":317},{"type":41,"tag":330,"props":683,"children":684},{"style":359},[685],{"type":46,"value":633},{"type":41,"tag":330,"props":687,"children":688},{"style":370},[689],{"type":46,"value":539},{"type":41,"tag":330,"props":691,"children":692},{"style":359},[693],{"type":46,"value":611},{"type":41,"tag":330,"props":695,"children":696},{"style":359},[697],{"type":46,"value":698}," },\n",{"type":41,"tag":330,"props":700,"children":701},{"class":332,"line":469},[702,706,710,714,718,722,726,731,735,739,743,747,751,755,759,764,768],{"type":41,"tag":330,"props":703,"children":704},{"style":359},[705],{"type":46,"value":628},{"type":41,"tag":330,"props":707,"children":708},{"style":359},[709],{"type":46,"value":633},{"type":41,"tag":330,"props":711,"children":712},{"style":636},[713],{"type":46,"value":639},{"type":41,"tag":330,"props":715,"children":716},{"style":359},[717],{"type":46,"value":611},{"type":41,"tag":330,"props":719,"children":720},{"style":359},[721],{"type":46,"value":317},{"type":41,"tag":330,"props":723,"children":724},{"style":359},[725],{"type":46,"value":633},{"type":41,"tag":330,"props":727,"children":728},{"style":370},[729],{"type":46,"value":730},"\u002F(.*)",{"type":41,"tag":330,"props":732,"children":733},{"style":359},[734],{"type":46,"value":611},{"type":41,"tag":330,"props":736,"children":737},{"style":359},[738],{"type":46,"value":664},{"type":41,"tag":330,"props":740,"children":741},{"style":359},[742],{"type":46,"value":633},{"type":41,"tag":330,"props":744,"children":745},{"style":636},[746],{"type":46,"value":673},{"type":41,"tag":330,"props":748,"children":749},{"style":359},[750],{"type":46,"value":611},{"type":41,"tag":330,"props":752,"children":753},{"style":359},[754],{"type":46,"value":317},{"type":41,"tag":330,"props":756,"children":757},{"style":359},[758],{"type":46,"value":633},{"type":41,"tag":330,"props":760,"children":761},{"style":370},[762],{"type":46,"value":763},"\u002F$1",{"type":41,"tag":330,"props":765,"children":766},{"style":359},[767],{"type":46,"value":611},{"type":41,"tag":330,"props":769,"children":770},{"style":359},[771],{"type":46,"value":772}," }\n",{"type":41,"tag":330,"props":774,"children":776},{"class":332,"line":775},5,[777],{"type":41,"tag":330,"props":778,"children":779},{"style":359},[780],{"type":46,"value":781},"  ]\n",{"type":41,"tag":330,"props":783,"children":785},{"class":332,"line":784},6,[786],{"type":41,"tag":330,"props":787,"children":788},{"style":359},[789],{"type":46,"value":790},"}\n",{"type":41,"tag":158,"props":792,"children":794},{"id":793},"_4-add-guard-to-indexhtml",[795,797],{"type":46,"value":796},"4. Add Guard to ",{"type":41,"tag":55,"props":798,"children":800},{"className":799},[],[801],{"type":46,"value":105},{"type":41,"tag":49,"props":803,"children":804},{},[805,807,813,815,821,823,829,830,835],{"type":46,"value":806},"Add this inline script in ",{"type":41,"tag":55,"props":808,"children":810},{"className":809},[],[811],{"type":46,"value":812},"\u003Chead>",{"type":46,"value":814},", after ",{"type":41,"tag":55,"props":816,"children":818},{"className":817},[],[819],{"type":46,"value":820},"\u003Cmeta>",{"type":46,"value":822}," tags and before any ",{"type":41,"tag":55,"props":824,"children":826},{"className":825},[],[827],{"type":46,"value":828},"\u003Clink>",{"type":46,"value":143},{"type":41,"tag":55,"props":831,"children":833},{"className":832},[],[834],{"type":46,"value":218},{"type":46,"value":836}," tags:",{"type":41,"tag":319,"props":838,"children":842},{"className":839,"code":840,"language":841,"meta":324,"style":324},"language-html shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript>if(localStorage.getItem('\u003CSTORAGE_KEY>')!=='1')window.location.replace('lock.html');\u003C\u002Fscript>\n","html",[843],{"type":41,"tag":55,"props":844,"children":845},{"__ignoreMap":324},[846],{"type":41,"tag":330,"props":847,"children":848},{"class":332,"line":333},[849,854,860,865,871,876,880,886,891,895,900,904,908,913,917,922,926,931,935,940,944,949,953,957,961,965,969,974,978],{"type":41,"tag":330,"props":850,"children":851},{"style":359},[852],{"type":46,"value":853},"\u003C",{"type":41,"tag":330,"props":855,"children":857},{"style":856},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[858],{"type":46,"value":859},"script",{"type":41,"tag":330,"props":861,"children":862},{"style":359},[863],{"type":46,"value":864},">",{"type":41,"tag":330,"props":866,"children":868},{"style":867},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[869],{"type":46,"value":870},"if",{"type":41,"tag":330,"props":872,"children":873},{"style":353},[874],{"type":46,"value":875},"(localStorage",{"type":41,"tag":330,"props":877,"children":878},{"style":359},[879],{"type":46,"value":373},{"type":41,"tag":330,"props":881,"children":883},{"style":882},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[884],{"type":46,"value":885},"getItem",{"type":41,"tag":330,"props":887,"children":888},{"style":353},[889],{"type":46,"value":890},"(",{"type":41,"tag":330,"props":892,"children":893},{"style":359},[894],{"type":46,"value":378},{"type":41,"tag":330,"props":896,"children":897},{"style":370},[898],{"type":46,"value":899},"\u003CSTORAGE_KEY>",{"type":41,"tag":330,"props":901,"children":902},{"style":359},[903],{"type":46,"value":378},{"type":41,"tag":330,"props":905,"children":906},{"style":353},[907],{"type":46,"value":150},{"type":41,"tag":330,"props":909,"children":910},{"style":359},[911],{"type":46,"value":912},"!==",{"type":41,"tag":330,"props":914,"children":915},{"style":359},[916],{"type":46,"value":378},{"type":41,"tag":330,"props":918,"children":919},{"style":370},[920],{"type":46,"value":921},"1",{"type":41,"tag":330,"props":923,"children":924},{"style":359},[925],{"type":46,"value":378},{"type":41,"tag":330,"props":927,"children":928},{"style":353},[929],{"type":46,"value":930},")window",{"type":41,"tag":330,"props":932,"children":933},{"style":359},[934],{"type":46,"value":373},{"type":41,"tag":330,"props":936,"children":937},{"style":353},[938],{"type":46,"value":939},"location",{"type":41,"tag":330,"props":941,"children":942},{"style":359},[943],{"type":46,"value":373},{"type":41,"tag":330,"props":945,"children":946},{"style":882},[947],{"type":46,"value":948},"replace",{"type":41,"tag":330,"props":950,"children":951},{"style":353},[952],{"type":46,"value":890},{"type":41,"tag":330,"props":954,"children":955},{"style":359},[956],{"type":46,"value":378},{"type":41,"tag":330,"props":958,"children":959},{"style":370},[960],{"type":46,"value":194},{"type":41,"tag":330,"props":962,"children":963},{"style":359},[964],{"type":46,"value":378},{"type":41,"tag":330,"props":966,"children":967},{"style":353},[968],{"type":46,"value":150},{"type":41,"tag":330,"props":970,"children":971},{"style":359},[972],{"type":46,"value":973},";\u003C\u002F",{"type":41,"tag":330,"props":975,"children":976},{"style":856},[977],{"type":46,"value":859},{"type":41,"tag":330,"props":979,"children":980},{"style":359},[981],{"type":46,"value":982},">\n",{"type":41,"tag":49,"props":984,"children":985},{},[986,988,993,995,1000,1002,1008],{"type":46,"value":987},"Replace ",{"type":41,"tag":55,"props":989,"children":991},{"className":990},[],[992],{"type":46,"value":899},{"type":46,"value":994}," with the same key used in ",{"type":41,"tag":55,"props":996,"children":998},{"className":997},[],[999],{"type":46,"value":194},{"type":46,"value":1001}," (e.g. ",{"type":41,"tag":55,"props":1003,"children":1005},{"className":1004},[],[1006],{"type":46,"value":1007},"ipl_live_scores_unlocked",{"type":46,"value":1009},").",{"type":41,"tag":49,"props":1011,"children":1012},{},[1013,1015,1020],{"type":46,"value":1014},"This prevents bypassing the lock by navigating directly to ",{"type":41,"tag":55,"props":1016,"children":1018},{"className":1017},[],[1019],{"type":46,"value":105},{"type":46,"value":373},{"type":41,"tag":84,"props":1022,"children":1024},{"id":1023},"verify",[1025],{"type":46,"value":1026},"Verify",{"type":41,"tag":91,"props":1028,"children":1031},{"className":1029},[1030],"contains-task-list",[1032,1052,1073,1100,1128,1148,1157,1166],{"type":41,"tag":95,"props":1033,"children":1036},{"className":1034},[1035],"task-list-item",[1037,1043,1045,1050],{"type":41,"tag":1038,"props":1039,"children":1042},"input",{"disabled":1040,"type":1041},true,"checkbox",[],{"type":46,"value":1044}," ",{"type":41,"tag":55,"props":1046,"children":1048},{"className":1047},[],[1049],{"type":46,"value":194},{"type":46,"value":1051}," exists in the app directory",{"type":41,"tag":95,"props":1053,"children":1055},{"className":1054},[1035],[1056,1059,1061,1066,1068],{"type":41,"tag":1038,"props":1057,"children":1058},{"disabled":1040,"type":1041},[],{"type":46,"value":1060}," Passcode digits and ",{"type":41,"tag":55,"props":1062,"children":1064},{"className":1063},[],[1065],{"type":46,"value":266},{"type":46,"value":1067}," are set correctly in ",{"type":41,"tag":55,"props":1069,"children":1071},{"className":1070},[],[1072],{"type":46,"value":194},{"type":41,"tag":95,"props":1074,"children":1076},{"className":1075},[1035],[1077,1080,1081,1086,1088,1093,1095],{"type":41,"tag":1038,"props":1078,"children":1079},{"disabled":1040,"type":1041},[],{"type":46,"value":1044},{"type":41,"tag":55,"props":1082,"children":1084},{"className":1083},[],[1085],{"type":46,"value":126},{"type":46,"value":1087}," serves ",{"type":41,"tag":55,"props":1089,"children":1091},{"className":1090},[],[1092],{"type":46,"value":194},{"type":46,"value":1094}," on root path ",{"type":41,"tag":55,"props":1096,"children":1098},{"className":1097},[],[1099],{"type":46,"value":411},{"type":41,"tag":95,"props":1101,"children":1103},{"className":1102},[1035],[1104,1107,1108,1113,1115,1120,1121,1126],{"type":41,"tag":1038,"props":1105,"children":1106},{"disabled":1040,"type":1041},[],{"type":46,"value":1044},{"type":41,"tag":55,"props":1109,"children":1111},{"className":1110},[],[1112],{"type":46,"value":134},{"type":46,"value":1114}," has the ",{"type":41,"tag":55,"props":1116,"children":1118},{"className":1117},[],[1119],{"type":46,"value":411},{"type":46,"value":284},{"type":41,"tag":55,"props":1122,"children":1124},{"className":1123},[],[1125],{"type":46,"value":539},{"type":46,"value":1127}," rewrite before the catch-all",{"type":41,"tag":95,"props":1129,"children":1131},{"className":1130},[1035],[1132,1135,1136,1141,1143],{"type":41,"tag":1038,"props":1133,"children":1134},{"disabled":1040,"type":1041},[],{"type":46,"value":1044},{"type":41,"tag":55,"props":1137,"children":1139},{"className":1138},[],[1140],{"type":46,"value":105},{"type":46,"value":1142}," has the localStorage guard script in ",{"type":41,"tag":55,"props":1144,"children":1146},{"className":1145},[],[1147],{"type":46,"value":812},{"type":41,"tag":95,"props":1149,"children":1151},{"className":1150},[1035],[1152,1155],{"type":41,"tag":1038,"props":1153,"children":1154},{"disabled":1040,"type":1041},[],{"type":46,"value":1156}," Correct passcode shows green digits, \"Unlocked\" animation, and redirects",{"type":41,"tag":95,"props":1158,"children":1160},{"className":1159},[1035],[1161,1164],{"type":41,"tag":1038,"props":1162,"children":1163},{"disabled":1040,"type":1041},[],{"type":46,"value":1165}," After unlock, refreshes and new tabs skip the lock (localStorage persists)",{"type":41,"tag":95,"props":1167,"children":1169},{"className":1168},[1035],[1170,1173,1175,1180],{"type":41,"tag":1038,"props":1171,"children":1172},{"disabled":1040,"type":1041},[],{"type":46,"value":1174}," Direct navigation to ",{"type":41,"tag":55,"props":1176,"children":1178},{"className":1177},[],[1179],{"type":46,"value":429},{"type":46,"value":1181}," redirects back to lock if not unlocked",{"type":41,"tag":84,"props":1183,"children":1185},{"id":1184},"troubleshooting",[1186],{"type":46,"value":1187},"Troubleshooting",{"type":41,"tag":1189,"props":1190,"children":1191},"table",{},[1192,1211],{"type":41,"tag":1193,"props":1194,"children":1195},"thead",{},[1196],{"type":41,"tag":1197,"props":1198,"children":1199},"tr",{},[1200,1206],{"type":41,"tag":1201,"props":1202,"children":1203},"th",{},[1204],{"type":46,"value":1205},"Issue",{"type":41,"tag":1201,"props":1207,"children":1208},{},[1209],{"type":46,"value":1210},"Solution",{"type":41,"tag":1212,"props":1213,"children":1214},"tbody",{},[1215,1255,1284,1312],{"type":41,"tag":1197,"props":1216,"children":1217},{},[1218,1224],{"type":41,"tag":1219,"props":1220,"children":1221},"td",{},[1222],{"type":46,"value":1223},"Lock screen doesn't appear",{"type":41,"tag":1219,"props":1225,"children":1226},{},[1227,1229,1234,1235,1240,1242,1247,1248,1253],{"type":46,"value":1228},"Check ",{"type":41,"tag":55,"props":1230,"children":1232},{"className":1231},[],[1233],{"type":46,"value":126},{"type":46,"value":1087},{"type":41,"tag":55,"props":1236,"children":1238},{"className":1237},[],[1239],{"type":46,"value":194},{"type":46,"value":1241}," on ",{"type":41,"tag":55,"props":1243,"children":1245},{"className":1244},[],[1246],{"type":46,"value":411},{"type":46,"value":128},{"type":41,"tag":55,"props":1249,"children":1251},{"className":1250},[],[1252],{"type":46,"value":134},{"type":46,"value":1254}," has the rewrite",{"type":41,"tag":1197,"props":1256,"children":1257},{},[1258,1268],{"type":41,"tag":1219,"props":1259,"children":1260},{},[1261,1263],{"type":46,"value":1262},"Can bypass lock via ",{"type":41,"tag":55,"props":1264,"children":1266},{"className":1265},[],[1267],{"type":46,"value":429},{"type":41,"tag":1219,"props":1269,"children":1270},{},[1271,1273,1278,1279],{"type":46,"value":1272},"Ensure the localStorage guard script is in ",{"type":41,"tag":55,"props":1274,"children":1276},{"className":1275},[],[1277],{"type":46,"value":105},{"type":46,"value":1044},{"type":41,"tag":55,"props":1280,"children":1282},{"className":1281},[],[1283],{"type":46,"value":812},{"type":41,"tag":1197,"props":1285,"children":1286},{},[1287,1292],{"type":41,"tag":1219,"props":1288,"children":1289},{},[1290],{"type":46,"value":1291},"Wrong passcode unlocks",{"type":41,"tag":1219,"props":1293,"children":1294},{},[1295,1297,1303,1305,1310],{"type":46,"value":1296},"Verify ",{"type":41,"tag":55,"props":1298,"children":1300},{"className":1299},[],[1301],{"type":46,"value":1302},"PASSCODE",{"type":46,"value":1304}," array in ",{"type":41,"tag":55,"props":1306,"children":1308},{"className":1307},[],[1309],{"type":46,"value":194},{"type":46,"value":1311}," matches the user's chosen digits",{"type":41,"tag":1197,"props":1313,"children":1314},{},[1315,1320],{"type":41,"tag":1219,"props":1316,"children":1317},{},[1318],{"type":46,"value":1319},"Unlock doesn't redirect",{"type":41,"tag":1219,"props":1321,"children":1322},{},[1323,1325,1330,1332,1337,1338,1343],{"type":46,"value":1324},"Ensure ",{"type":41,"tag":55,"props":1326,"children":1328},{"className":1327},[],[1329],{"type":46,"value":266},{"type":46,"value":1331}," is consistent between ",{"type":41,"tag":55,"props":1333,"children":1335},{"className":1334},[],[1336],{"type":46,"value":194},{"type":46,"value":128},{"type":41,"tag":55,"props":1339,"children":1341},{"className":1340},[],[1342],{"type":46,"value":105},{"type":46,"value":1344}," guard",{"type":41,"tag":84,"props":1346,"children":1348},{"id":1347},"related-skills",[1349],{"type":46,"value":1350},"Related Skills",{"type":41,"tag":91,"props":1352,"children":1353},{},[1354,1364,1374],{"type":41,"tag":95,"props":1355,"children":1356},{},[1357,1362],{"type":41,"tag":55,"props":1358,"children":1360},{"className":1359},[],[1361],{"type":46,"value":60},{"type":46,"value":1363}," — Offers this skill as an opt-in (Step 0.5) before deploying",{"type":41,"tag":95,"props":1365,"children":1366},{},[1367,1372],{"type":41,"tag":55,"props":1368,"children":1370},{"className":1369},[],[1371],{"type":46,"value":113},{"type":46,"value":1373}," — Create a new webapp before adding passcode protection",{"type":41,"tag":95,"props":1375,"children":1376},{},[1377,1382],{"type":41,"tag":55,"props":1378,"children":1380},{"className":1379},[],[1381],{"type":46,"value":80},{"type":46,"value":1383}," — Will not add a passcode; if one already exists, offers to disable the routing for production while leaving the lock files on disk",{"type":41,"tag":1385,"props":1386,"children":1387},"style",{},[1388],{"type":46,"value":1389},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1391,"total":1495},[1392,1408,1422,1436,1450,1464,1478],{"slug":1393,"name":1393,"fn":1394,"description":1395,"org":1396,"tags":1397,"stars":23,"repoUrl":24,"updatedAt":1407},"add-device-sensors","integrate device sensor data","Add device sensor data to a Meta Display Glasses webapp — IMU (accelerometer, gyroscope, orientation) via DeviceMotionEvent\u002FDeviceOrientationEvent, and GPS location via navigator.geolocation. Use when the user wants motion tracking, compass, level tool, step counter, shake detection, head tracking, or location.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1398,1401,1404],{"name":1399,"slug":1400,"type":16},"Frontend","frontend",{"name":1402,"slug":1403,"type":16},"Hardware","hardware",{"name":1405,"slug":1406,"type":16},"IoT","iot","2026-09-01T08:30:33.453548",{"slug":1409,"name":1409,"fn":1410,"description":1411,"org":1412,"tags":1413,"stars":23,"repoUrl":24,"updatedAt":1421},"add-gestures","handle gesture interactions in webapps","Handle EMG pinch (tap-to-activate) and opt into continuous pinch-and-drag in a Meta Display Glasses webapp. Use when the user wants sliders, drawing, maps, drag interactions, or game-style continuous input.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1414,1417,1418],{"name":1415,"slug":1416,"type":16},"Design","design",{"name":1399,"slug":1400,"type":16},{"name":1419,"slug":1420,"type":16},"Interaction","interaction","2026-09-01T08:30:53.889244",{"slug":1423,"name":1423,"fn":1424,"description":1425,"org":1426,"tags":1427,"stars":23,"repoUrl":24,"updatedAt":1435},"add-local-storage","add client-side data persistence","Add client-side data persistence to a Meta Display Glasses webapp using the W3C Web Storage API (localStorage and sessionStorage). Use when the user wants to save settings, cache data, persist state, or store user preferences.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1428,1429,1432],{"name":1399,"slug":1400,"type":16},{"name":1430,"slug":1431,"type":16},"Persistence","persistence",{"name":1433,"slug":1434,"type":16},"Storage","storage","2026-09-01T08:30:31.384362",{"slug":1437,"name":1437,"fn":1438,"description":1439,"org":1440,"tags":1441,"stars":23,"repoUrl":24,"updatedAt":1449},"add-offline","enable offline support for webapps","Make a Meta Display Glasses webapp work offline with a Service Worker + Cache API (precache the app shell, cache-first fetch, online\u002Foffline UI). Use when the user wants offline support or resilience to flaky Wi-Fi.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1442,1443,1446],{"name":1399,"slug":1400,"type":16},{"name":1444,"slug":1445,"type":16},"Offline","offline",{"name":1447,"slug":1448,"type":16},"Performance","performance","2026-09-01T08:30:33.83287",{"slug":1451,"name":1451,"fn":1452,"description":1453,"org":1454,"tags":1455,"stars":23,"repoUrl":24,"updatedAt":1463},"add-text-input","add text input to webapps","Add text entry to a Meta Display Glasses webapp. Standard HTML inputs open the on-glasses composer (handwriting + voice) when focused and tapped. Use when the user wants a text field, search box, form input, or notes area.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1456,1459,1460],{"name":1457,"slug":1458,"type":16},"Forms","forms",{"name":1399,"slug":1400,"type":16},{"name":1461,"slug":1462,"type":16},"UI Components","ui-components","2026-09-01T08:30:30.563354",{"slug":1465,"name":1465,"fn":1466,"description":1467,"org":1468,"tags":1469,"stars":23,"repoUrl":24,"updatedAt":1477},"add-ui","add UI components to webapps","Add UI components to a Meta Display Glasses webapp — screens, buttons, lists, cards, forms, toggles, counters, or nav bars. Works with vanilla JS and React apps. Use when the user wants to add any interactive UI element or new screen.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1470,1471,1473,1476],{"name":1399,"slug":1400,"type":16},{"name":1472,"slug":323,"type":16},"JavaScript",{"name":1474,"slug":1475,"type":16},"React","react",{"name":1461,"slug":1462,"type":16},"2026-09-01T08:30:27.477785",{"slug":1479,"name":1479,"fn":1480,"description":1481,"org":1482,"tags":1483,"stars":23,"repoUrl":24,"updatedAt":1494},"connect-api","connect webapps to REST APIs and WebSockets","Connect a Meta Display Glasses webapp to REST APIs or WebSockets. Use when the user wants to fetch data from an API, add real-time updates, show loading\u002Ferror states, or cache API responses.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1484,1487,1488,1491],{"name":1485,"slug":1486,"type":16},"API Development","api-development",{"name":1399,"slug":1400,"type":16},{"name":1489,"slug":1490,"type":16},"REST API","rest-api",{"name":1492,"slug":1493,"type":16},"WebSockets","websockets","2026-09-01T08:30:30.968156",12,{"items":1497,"total":1673},[1498,1518,1530,1551,1570,1587,1598,1612,1625,1638,1651,1663],{"slug":1499,"name":1499,"fn":1500,"description":1501,"org":1502,"tags":1503,"stars":1515,"repoUrl":1516,"updatedAt":1517},"relay-best-practices","write idiomatic Relay code","Best practices for writing idiomatic Relay code. ALWAYS use this skill when writing or modifying React components that use Relay for data fetching. Covers fragments, queries, mutations, pagination, and common anti-patterns. Use when you see `useFragment`, `useLazyLoadQuery`, `usePreloadedQuery`, `useMutation`, `usePaginationFragment`, `graphql` template literals, `react-relay` imports, or `__generated__\u002F*.graphql` files. Also use when asked to explain Relay concepts, debug Relay issues, or review Relay code.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1504,1507,1508,1511,1512],{"name":1505,"slug":1506,"type":16},"Engineering","engineering",{"name":1399,"slug":1400,"type":16},{"name":1509,"slug":1510,"type":16},"GraphQL","graphql",{"name":1474,"slug":1475,"type":16},{"name":1513,"slug":1514,"type":16},"Relay","relay",18950,"https:\u002F\u002Fgithub.com\u002Ffacebook\u002Frelay","2026-04-22T04:58:15.370563",{"slug":1519,"name":1519,"fn":1520,"description":1521,"org":1522,"tags":1523,"stars":1515,"repoUrl":1516,"updatedAt":1529},"relay-performance","optimize Relay application performance","Performance best practices for Relay applications. Use when optimizing data fetching, reducing re-renders, configuring caching, or improving time to first meaningful paint. Covers query placement, @defer, pagination, fetch policies, garbage collection, fragment granularity, and server-side filtering. Companion to the relay-best-practices skill which covers correctness and architecture.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1524,1525,1526,1527,1528],{"name":1399,"slug":1400,"type":16},{"name":1509,"slug":1510,"type":16},{"name":1447,"slug":1448,"type":16},{"name":1474,"slug":1475,"type":16},{"name":1513,"slug":1514,"type":16},"2026-06-10T07:30:28.726513",{"slug":1531,"name":1531,"fn":1532,"description":1533,"org":1534,"tags":1535,"stars":1548,"repoUrl":1549,"updatedAt":1550},"add-shape-types-to-torch-model","annotate PyTorch models with tensor shapes","Port a PyTorch model to use pyrefly's tensor shape type system (Tensor[[B, C, H, W]], Int[T]). Use this skill whenever the user wants to add shape annotations to a PyTorch model, type a model with tensor dimensions, port a model to use shape tracking, or annotate model forward methods with tensor shapes. Also use when the user mentions tensor shape ports, Int types for PyTorch, or pyrefly shape checking on a model file. Invoke BEFORE starting any model port — the skill's gated workflow prevents common failure modes.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1536,1539,1542,1545],{"name":1537,"slug":1538,"type":16},"Data Modeling","data-modeling",{"name":1540,"slug":1541,"type":16},"Deep Learning","deep-learning",{"name":1543,"slug":1544,"type":16},"Python","python",{"name":1546,"slug":1547,"type":16},"PyTorch","pytorch",6833,"https:\u002F\u002Fgithub.com\u002Ffacebook\u002Fpyrefly","2026-07-18T05:12:08.515952",{"slug":1552,"name":1552,"fn":1553,"description":1554,"org":1555,"tags":1556,"stars":1567,"repoUrl":1568,"updatedAt":1569},"camera-streaming","configure camera streaming and photo capture","Stream, video frames, photo capture, resolution\u002Fframe rate configuration",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1557,1560,1561,1564],{"name":1558,"slug":1559,"type":16},"Camera","camera",{"name":1402,"slug":1403,"type":16},{"name":1562,"slug":1563,"type":16},"iOS","ios",{"name":1565,"slug":1566,"type":16},"Video","video",488,"https:\u002F\u002Fgithub.com\u002Ffacebook\u002Fmeta-wearables-dat-ios","2026-08-06T05:38:47.523424",{"slug":1571,"name":1571,"fn":1572,"description":1573,"org":1574,"tags":1575,"stars":1567,"repoUrl":1568,"updatedAt":1586},"dat-conventions","develop iOS applications with DAT SDK","Swift patterns, async\u002Fawait, naming conventions, key types for DAT SDK iOS development",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1576,1577,1580,1583],{"name":1562,"slug":1563,"type":16},{"name":1578,"slug":1579,"type":16},"Mobile","mobile",{"name":1581,"slug":1582,"type":16},"SDK","sdk",{"name":1584,"slug":1585,"type":16},"Swift","swift","2026-08-06T05:38:49.536777",{"slug":1588,"name":1588,"fn":1589,"description":1590,"org":1591,"tags":1592,"stars":1567,"repoUrl":1568,"updatedAt":1597},"debugging","debug wearable device software","Common issues, Developer Mode, version compatibility, state machine diagnosis",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1593,1595,1596],{"name":1594,"slug":1588,"type":16},"Debugging",{"name":1505,"slug":1506,"type":16},{"name":1562,"slug":1563,"type":16},"2026-08-06T05:38:50.51086",{"slug":1599,"name":1599,"fn":1600,"description":1601,"org":1602,"tags":1603,"stars":1567,"repoUrl":1568,"updatedAt":1611},"display-access","manage display capabilities on wearable devices","Display capability setup, display-capable device selection, UI DSL, icons, buttons, images, and video playback",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1604,1605,1608,1609,1610],{"name":1415,"slug":1416,"type":16},{"name":1606,"slug":1607,"type":16},"Images","images",{"name":1419,"slug":1420,"type":16},{"name":1461,"slug":1462,"type":16},{"name":1565,"slug":1566,"type":16},"2026-08-06T05:38:53.520488",{"slug":1613,"name":1613,"fn":1614,"description":1615,"org":1616,"tags":1617,"stars":1567,"repoUrl":1568,"updatedAt":1624},"getting-started","set up Meta wearable SDK integration","SDK setup, Swift Package Manager integration, Info.plist configuration, and first connection to Meta glasses",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1618,1621,1622,1623],{"name":1619,"slug":1620,"type":16},"Configuration","configuration",{"name":1562,"slug":1563,"type":16},{"name":1581,"slug":1582,"type":16},{"name":1584,"slug":1585,"type":16},"2026-08-06T05:38:48.514522",{"slug":1626,"name":1626,"fn":1627,"description":1628,"org":1629,"tags":1630,"stars":1567,"repoUrl":1568,"updatedAt":1637},"live-debugging-mcp","debug iOS wearable applications","Use this whenever debugging an iOS DAT app with local DAT Inspector MCP tools, live device events, Meta AI app\u002Fdevice boundary issues, permissions, registration, sessions, streaming, callbacks, or user reports that the app cannot communicate with glasses.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1631,1632,1633,1636],{"name":1594,"slug":1588,"type":16},{"name":1562,"slug":1563,"type":16},{"name":1634,"slug":1635,"type":16},"MCP","mcp",{"name":1578,"slug":1579,"type":16},"2026-08-06T06:09:15.013902",{"slug":1639,"name":1639,"fn":1640,"description":1641,"org":1642,"tags":1643,"stars":1567,"repoUrl":1568,"updatedAt":1650},"mockdevice-testing","test wearable apps with mock devices","MockDeviceKit for testing without physical glasses hardware",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1644,1645,1646,1649],{"name":1562,"slug":1563,"type":16},{"name":1578,"slug":1579,"type":16},{"name":1647,"slug":1648,"type":16},"QA","qa",{"name":21,"slug":22,"type":16},"2026-05-15T06:14:37.406692",{"slug":1652,"name":1652,"fn":1653,"description":1654,"org":1655,"tags":1656,"stars":1567,"repoUrl":1568,"updatedAt":1662},"permissions-registration","register apps with Meta AI","App registration with Meta AI, camera permission flows",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1657,1658,1659],{"name":1558,"slug":1559,"type":16},{"name":1562,"slug":1563,"type":16},{"name":1660,"slug":1661,"type":16},"Permissions","permissions","2026-05-15T06:14:46.030253",{"slug":1664,"name":1664,"fn":1665,"description":1666,"org":1667,"tags":1668,"stars":1567,"repoUrl":1568,"updatedAt":1672},"sample-app-guide","build wearable apps with camera streaming","Building a complete DAT app with camera streaming and photo capture",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1669,1670,1671],{"name":1558,"slug":1559,"type":16},{"name":1562,"slug":1563,"type":16},{"name":1578,"slug":1579,"type":16},"2026-08-06T05:38:51.509255",34]