[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6G8CPRR4T221KC453XZFJJQ":3,"skill-same:01M6G8CPRR4T221KC453XZFJJQ":79},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M6G8CPRR4T221KC453XZFJJQ","tg-miniapp",null,"Build Telegram Mini Apps without the pain. Includes solutions for safe areas, fullscreen mode, BackButton handlers, sharing with inline mode, position:fixed issues, and React gotchas. Use when building or debugging Telegram Mini Apps, or when encountering issues with WebApp API, safe areas, or sharing.","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzenith2828\u002Ftg-miniapp\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],"tg","tg miniapp","safe","react","debugging","issues","sharing","api","use","webapp","telegram","build","apps","position","with","2026-11-10 10:12:30",false,"---\nname: tg-miniapp\ndescription: Build Telegram Mini Apps without the pain. Includes solutions for safe areas, fullscreen mode, BackButton handlers, sharing with inline mode, position:fixed issues, and React gotchas. Use when building or debugging Telegram Mini Apps, or when encountering issues with WebApp API, safe areas, or sharing.\n---\n\n# Telegram Mini App Development\n\nBattle-tested solutions for common Telegram Mini App issues.\n\n## Quick Reference\n\n### Safe Area (Fullscreen Mode)\n```typescript\n\u002F\u002F Use reactive hook - values are async and context-dependent\nconst safeArea = useSafeAreaInset(); \u002F\u002F from references\u002Fhooks.ts\n\u003Cdiv style={{ paddingTop: safeArea.top }}>Header\u003C\u002Fdiv>\n```\n\n### position:fixed Broken\nTelegram applies `transform` to container. Use `createPortal`:\n```tsx\nimport { createPortal } from 'react-dom';\ncreatePortal(\u003CModal \u002F>, document.body);\n```\n\n### BackButton Not Firing\nUse `@telegram-apps\u002Fsdk`, not raw WebApp:\n```typescript\nimport { onBackButtonClick, showBackButton } from '@telegram-apps\u002Fsdk';\nonBackButtonClick(handleBack);\n```\n\n### Sharing with Inline Mode\n1. Enable inline mode: @BotFather → `\u002Fsetinline` → select bot\n2. Backend calls `savePreparedInlineMessage` → returns `prepared_message_id`\n3. Frontend calls `WebApp.shareMessage(prepared_message_id)`\n\n**Note:** `prepared_message_id` is **single-use** — prepare fresh for each share tap.\nFor static content, consider caching images on R2\u002FCDN and preparing per-tap.\n\n### React \"0\" Rendering\n```tsx\n\u002F\u002F WRONG: renders literal \"0\"\n{count && \u003Cspan>{count}\u003C\u002Fspan>}\n\n\u002F\u002F CORRECT\n{count > 0 && \u003Cspan>{count}\u003C\u002Fspan>}\n```\n\n## Detailed Guides\n\n- **[references\u002FKNOWLEDGE.md](references\u002FKNOWLEDGE.md)** — Full knowledge base with all gotchas and solutions\n- **[references\u002Fhooks.ts](references\u002Fhooks.ts)** — Copy-paste React hooks (useSafeAreaInset, useFullscreen, etc.)\n- **[references\u002Fcomponents.tsx](references\u002Fcomponents.tsx)** — Ready-to-use components (SafeAreaHeader, DebugOverlay)\n\n## Testing Checklist\n\nBefore shipping, test:\n- [ ] Open from folder (chat list)\n- [ ] Open from direct bot chat\n- [ ] iOS device\n- [ ] Android device\n- [ ] Share flow (tap → dismiss → tap again)\n- [ ] Share to different chat types (user, group, channel)\n- [ ] Back button\n- [ ] Scroll with sticky header\n","# Telegram Mini App Development\n\nBattle-tested solutions for common Telegram Mini App issues.\n\n## Quick Reference\n\n### Safe Area (Fullscreen Mode)\n```typescript\n\u002F\u002F Use reactive hook - values are async and context-dependent\nconst safeArea = useSafeAreaInset(); \u002F\u002F from references\u002Fhooks.ts\n\u003Cdiv style={{ paddingTop: safeArea.top }}>Header\u003C\u002Fdiv>\n```\n\n### position:fixed Broken\nTelegram applies `transform` to container. Use `createPortal`:\n```tsx\nimport { createPortal } from 'react-dom';\ncreatePortal(\u003CModal \u002F>, document.body);\n```\n\n### BackButton Not Firing\nUse `@telegram-apps\u002Fsdk`, not raw WebApp:\n```typescript\nimport { onBackButtonClick, showBackButton } from '@telegram-apps\u002Fsdk';\nonBackButtonClick(handleBack);\n```\n\n### Sharing with Inline Mode\n1. Enable inline mode: @BotFather → `\u002Fsetinline` → select bot\n2. Backend calls `savePreparedInlineMessage` → returns `prepared_message_id`\n3. Frontend calls `WebApp.shareMessage(prepared_message_id)`\n\n**Note:** `prepared_message_id` is **single-use** — prepare fresh for each share tap.\nFor static content, consider caching images on R2\u002FCDN and preparing per-tap.\n\n### React \"0\" Rendering\n```tsx\n\u002F\u002F WRONG: renders literal \"0\"\n{count && \u003Cspan>{count}\u003C\u002Fspan>}\n\n\u002F\u002F CORRECT\n{count > 0 && \u003Cspan>{count}\u003C\u002Fspan>}\n```\n\n## Detailed Guides\n\n- **[references\u002FKNOWLEDGE.md](references\u002FKNOWLEDGE.md)** — Full knowledge base with all gotchas and solutions\n- **[references\u002Fhooks.ts](references\u002Fhooks.ts)** — Copy-paste React hooks (useSafeAreaInset, useFullscreen, etc.)\n- **[references\u002Fcomponents.tsx](references\u002Fcomponents.tsx)** — Ready-to-use components (SafeAreaHeader, DebugOverlay)\n\n## Testing Checklist\n\nBefore shipping, test:\n- [ ] Open from folder (chat list)\n- [ ] Open from direct bot chat\n- [ ] iOS device\n- [ ] Android device\n- [ ] Share flow (tap → dismiss → tap again)\n- [ ] Share to different chat types (user, group, channel)\n- [ ] Back button\n- [ ] Scroll with sticky header\n",{"name":5,"description":7},"main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fzenith2828\u002Ftg-miniapp",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add kbarbel640-del\u002Fskills --skill tg-miniapp",{"tool":51,"command":52},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill tg-miniapp",{"tool":54,"command":55},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill tg-miniapp","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzenith2828\u002Ftg-miniapp\u002FSKILL.md",true,[59,65,69,75],{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"_meta.json","REFERENCE","参考文档",287,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzenith2828\u002Ftg-miniapp\u002F_meta.json",{"path":66,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fcomponents.tsx",7444,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzenith2828\u002Ftg-miniapp\u002Freferences\u002Fcomponents.tsx",{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fhooks.ts","SCRIPT","脚本",6782,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzenith2828\u002Ftg-miniapp\u002Freferences\u002Fhooks.ts",{"path":76,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002FKNOWLEDGE.md",10985,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzenith2828\u002Ftg-miniapp\u002Freferences\u002FKNOWLEDGE.md",[80,104,127,145,150,170],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":33},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[87,88,25,32,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],"crowd prompting","prompting","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","https","content","ai agents",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":33},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[111,25,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,92,26],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":33},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[],[134,135,136,137,138,139,140,32,141,125,26,142,25,143,144],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":146,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":33},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[137,136,135,134,144,139,140,32,138,125,26,141,142,25,143],{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":33},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[157,158,159,160,161,162,163,164,165,166,167,168,169],"git","summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":33},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[],[177,178,179,180,32,181,182,38,183,142,184,185,186,187,188,101,189,190,191],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance","github"]