[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A01NB17GP7XB2EV0C3TK1V":3,"skill-same:01M7A01NB17GP7XB2EV0C3TK1V":48},{"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":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7A01NB17GP7XB2EV0C3TK1V","react-artifact",null,"Author app-like designs in React\u002FJSX and bundle them in-sandbox into the same single self-contained HTML artifact Design Studio delivers. Use when the design needs real state, complex interactivity, or component reuse beyond what vanilla JS comfortably handles.","juspay\u002Fxyne-spaces","juspay","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F11497632?v=4","01M79ZZZBS47MDBJST0J4R2NA0","Juspay Technologies","01M79ZZZCGHA6P27FZG2PJ2P49",827,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjuspay\u002Fxyne-spaces\u002Fblob\u002Fmain\u002Fapps\u002Fxyne-claw\u002Fdesign-skills\u002Freact-artifact\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: react-artifact\ndescription: Author app-like designs in React\u002FJSX and bundle them in-sandbox into the same single self-contained HTML artifact Design Studio delivers. Use when the design needs real state, complex interactivity, or component reuse beyond what vanilla JS comfortably handles.\n---\n\n# React artifacts — author in JSX, deliver HTML + source project\n\nThe primary artifact remains ONE self-contained `.html` file. React designs\nalso deliver a small source archive so the user can continue in an editor.\n\n## When to choose React over plain HTML+JS\n\n- Real client state: multi-step forms, filters over data, undo, optimistic UI\n- Many repeated components with varying props (cards, rows, chart panels)\n- The user names React explicitly\n\nFor static or lightly-interactive pages, plain HTML with a small inline script\nis smaller, faster to iterate, and easier to revise — prefer it.\n\n## Recipe (bun is preinstalled; npm registry works in-sandbox via the\nin-cluster mirror — the sandbox `.npmrc` already points at it)\n\n```bash\nmkdir -p \u002Fworkspace\u002Fdesign && cd \u002Fworkspace\u002Fdesign\nbun init -y\nbun add react@18 react-dom@18\n```\n\nAuthor the app as a normal small project. Keep source under `src\u002F`, with the\nentry at `src\u002Fapp.jsx`:\n\n```jsx\n\u002F\u002F src\u002Fapp.jsx\nimport { createRoot } from \"react-dom\u002Fclient\";\nimport { useState } from \"react\";\n\nfunction App() { \u002F* ... *\u002F }\n\ncreateRoot(document.getElementById(\"root\")).render(\u003CApp \u002F>);\n```\n\nBundle to a single minified script, then inline it into the HTML shell:\n\n```bash\nbun build src\u002Fapp.jsx --minify --outfile dist\u002Fbundle.js\n```\n\n```html\n\u003C!doctype html>\n\u003Chtml>\n\u003Chead>\n  \u003Cmeta charset=\"utf-8\" \u002F>\n  \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\" \u002F>\n  \u003Ctitle>…\u003C\u002Ftitle>\n  \u003Cstyle>\u002F* all CSS inline here *\u002F\u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n  \u003Cdiv id=\"root\">\u003C\u002Fdiv>\n  \u003Cscript>\u002F* paste bundle.js contents here verbatim *\u002F\u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\nWrite the final file by concatenating — do NOT reference `bundle.js` by path;\nthe artifact must open from a single file with no siblings:\n\n```bash\nnode -e '\nconst fs = require(\"fs\");\nconst bundle = fs.readFileSync(\"dist\u002Fbundle.js\", \"utf8\");\nconst shell = fs.readFileSync(\"shell.html\", \"utf8\");\nfs.writeFileSync(\"index.html\", shell.replace(\"\u002F*__BUNDLE__*\u002F\", () => bundle));\n'\n```\n\n(Use a placeholder comment in the shell and `replace` with a function arg so\n`$` sequences in the bundle are not mangled.)\n\nAdd a short README with `bun install` and run\u002Fbuild instructions, then archive\nsource without dependencies or generated output:\n\n```bash\ntar -czf \"design-react-project.tar.gz\" src package.json bun.lock README.md shell.html\n```\n\n## Rules\n\n- **Self-contained or it does not ship**: no CDN `\u003Cscript src>`, no external\n  CSS, no fetches to the internet at runtime. Charts: prefer hand-rolled SVG\n  or inline a small library through the same bundle.\n- **Check the bundle went inline**: `grep -c \"createRoot\\|react\" index.html`\n  must be ≥1 and the file size should reflect the bundle (React ~140KB min).\n  A 2KB index.html means you shipped the shell without the bundle.\n- **QA exactly like any other artifact**: open `index.html` in the sandbox\n  browser, exercise the interactions you built (click through state changes),\n  check desktop + mobile widths and the console.\n- Deliver BOTH `index.html` and `design-react-project.tar.gz` in one\n  `sandbox-deliver-files` call. The attachment is canonical; do not repeat a\n  large inlined React bundle in the final chat response.\n- Keep dependencies minimal: react + react-dom only unless the design truly\n  needs more. Every dependency inflates the artifact the user downloads.\n","# React artifacts — author in JSX, deliver HTML + source project\n\nThe primary artifact remains ONE self-contained `.html` file. React designs\nalso deliver a small source archive so the user can continue in an editor.\n\n## When to choose React over plain HTML+JS\n\n- Real client state: multi-step forms, filters over data, undo, optimistic UI\n- Many repeated components with varying props (cards, rows, chart panels)\n- The user names React explicitly\n\nFor static or lightly-interactive pages, plain HTML with a small inline script\nis smaller, faster to iterate, and easier to revise — prefer it.\n\n## Recipe (bun is preinstalled; npm registry works in-sandbox via the\nin-cluster mirror — the sandbox `.npmrc` already points at it)\n\n```bash\nmkdir -p \u002Fworkspace\u002Fdesign && cd \u002Fworkspace\u002Fdesign\nbun init -y\nbun add react@18 react-dom@18\n```\n\nAuthor the app as a normal small project. Keep source under `src\u002F`, with the\nentry at `src\u002Fapp.jsx`:\n\n```jsx\n\u002F\u002F src\u002Fapp.jsx\nimport { createRoot } from \"react-dom\u002Fclient\";\nimport { useState } from \"react\";\n\nfunction App() { \u002F* ... *\u002F }\n\ncreateRoot(document.getElementById(\"root\")).render(\u003CApp \u002F>);\n```\n\nBundle to a single minified script, then inline it into the HTML shell:\n\n```bash\nbun build src\u002Fapp.jsx --minify --outfile dist\u002Fbundle.js\n```\n\n```html\n\u003C!doctype html>\n\u003Chtml>\n\u003Chead>\n  \u003Cmeta charset=\"utf-8\" \u002F>\n  \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\" \u002F>\n  \u003Ctitle>…\u003C\u002Ftitle>\n  \u003Cstyle>\u002F* all CSS inline here *\u002F\u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n  \u003Cdiv id=\"root\">\u003C\u002Fdiv>\n  \u003Cscript>\u002F* paste bundle.js contents here verbatim *\u002F\u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\nWrite the final file by concatenating — do NOT reference `bundle.js` by path;\nthe artifact must open from a single file with no siblings:\n\n```bash\nnode -e '\nconst fs = require(\"fs\");\nconst bundle = fs.readFileSync(\"dist\u002Fbundle.js\", \"utf8\");\nconst shell = fs.readFileSync(\"shell.html\", \"utf8\");\nfs.writeFileSync(\"index.html\", shell.replace(\"\u002F*__BUNDLE__*\u002F\", () => bundle));\n'\n```\n\n(Use a placeholder comment in the shell and `replace` with a function arg so\n`$` sequences in the bundle are not mangled.)\n\nAdd a short README with `bun install` and run\u002Fbuild instructions, then archive\nsource without dependencies or generated output:\n\n```bash\ntar -czf \"design-react-project.tar.gz\" src package.json bun.lock README.md shell.html\n```\n\n## Rules\n\n- **Self-contained or it does not ship**: no CDN `\u003Cscript src>`, no external\n  CSS, no fetches to the internet at runtime. Charts: prefer hand-rolled SVG\n  or inline a small library through the same bundle.\n- **Check the bundle went inline**: `grep -c \"createRoot\\|react\" index.html`\n  must be ≥1 and the file size should reflect the bundle (React ~140KB min).\n  A 2KB index.html means you shipped the shell without the bundle.\n- **QA exactly like any other artifact**: open `index.html` in the sandbox\n  browser, exercise the interactions you built (click through state changes),\n  check desktop + mobile widths and the console.\n- Deliver BOTH `index.html` and `design-react-project.tar.gz` in one\n  `sandbox-deliver-files` call. The attachment is canonical; do not repeat a\n  large inlined React bundle in the final chat response.\n- Keep dependencies minimal: react + react-dom only unless the design truly\n  needs more. Every dependency inflates the artifact the user downloads.\n",{"name":5,"description":7},"main","fbefa477cb2b164d49af3ffe1b51c219b3cae6d1","apps\u002Fxyne-claw\u002Fdesign-skills\u002Freact-artifact",573,"https:\u002F\u002Fgithub.com\u002Fjuspay\u002Fxyne-spaces","https:\u002F\u002Fxyne.ai","https:\u002F\u002Fgithub.com\u002Fjuspay","https:\u002F\u002Fwww.juspay.in"," Design to simplify. Revolutionizing digital payments.","2026-11-15 05:06:40",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add juspay\u002Fxyne-spaces --skill react-artifact",{"tool":40,"command":41},"bunx","bunx skills add juspay\u002Fxyne-spaces --skill react-artifact",{"tool":43,"command":44},"pnpm","pnpm dlx skills add juspay\u002Fxyne-spaces --skill react-artifact","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjuspay\u002Fxyne-spaces\u002Fblob\u002Fmain\u002Fapps\u002Fxyne-claw\u002Fdesign-skills\u002Freact-artifact\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7A02Z2C9ECN1C13PE67A3DW","whoami","Show current Xyne Claw auth identity.","https:\u002F\u002Fgithub.com\u002Fjuspay\u002Fxyne-spaces\u002Fblob\u002Fmain\u002Fpackages\u002Fxyne-claw-mcp\u002Fskills\u002Fwhoami\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7A02XW56HSFGZ9PNFY3AWDT","sessions","List Xyne Claw sessions.","https:\u002F\u002Fgithub.com\u002Fjuspay\u002Fxyne-spaces\u002Fblob\u002Fmain\u002Fpackages\u002Fxyne-claw-mcp\u002Fskills\u002Fsessions\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7A02WQ3EFMNYBS0QF61JFJ6","run","Run a Xyne Claw agent.","https:\u002F\u002Fgithub.com\u002Fjuspay\u002Fxyne-spaces\u002Fblob\u002Fmain\u002Fpackages\u002Fxyne-claw-mcp\u002Fskills\u002Frun\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7A02VC1F69GS89JJBC9HCT5","login","Log the user into Xyne Claw.","https:\u002F\u002Fgithub.com\u002Fjuspay\u002Fxyne-spaces\u002Fblob\u002Fmain\u002Fpackages\u002Fxyne-claw-mcp\u002Fskills\u002Flogin\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7A02SHD94QXZ4D37P9EMW9V","agents","List available Xyne Claw agents.","https:\u002F\u002Fgithub.com\u002Fjuspay\u002Fxyne-spaces\u002Fblob\u002Fmain\u002Fpackages\u002Fxyne-claw-mcp\u002Fskills\u002Fagents\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7A02KCZS8QEARG526JJAQBZ","explanation-document","Structure a codebase\u002Fschema explanation as a self-contained HTML document ordered for a READER — mental model and flows first, deep per-component reference last — not in the order you explored it.","https:\u002F\u002Fgithub.com\u002Fjuspay\u002Fxyne-spaces\u002Fblob\u002Fmain\u002Fapps\u002Fxyne-claw\u002Funderstanding-skills\u002Fexplanation-document\u002FSKILL.md",[],[]]