[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CS99DT6TRM21T92GVQA572":3,"skill-same:01M7CS99DT6TRM21T92GVQA572":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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7CS99DT6TRM21T92GVQA572","platform-permissions",null,"Use when a feature needs camera, location, photos, notifications, contacts, microphone, Bluetooth, or local network - the per-platform request flow, every denial state, and how to actually test the denied path when the shared test device auto-grants permissions.","makifbaysal\u002Ftasktrooper","makifbaysal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F25031940?v=4","01M7CRG3ZCSYZSSEVDMW3DEYC8","Mehmet Akif Baysal","01M7CRG401FJ8YAXH5ER730XYV",122,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fmobile-developer\u002Fskills\u002Fplatform-permissions\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: platform-permissions\ncategory: mobile\ndescription: Use when a feature needs camera, location, photos, notifications, contacts, microphone, Bluetooth, or local network - the per-platform request flow, every denial state, and how to actually test the denied path when the shared test device auto-grants permissions.\n---\n# Platform Permissions\n\n## Overview\n\nA permission request handled only for the happy path (granted) crashes or dead-ends for a meaningful share of real users. Every state needs a designed response, and the denied path is the one app reviewers and store checks hit first.\n\n## iOS\n\n- Every permission needs an `NS*UsageDescription` string in `Info.plist` *before* the request is made — a missing one terminates the app immediately when the request fires, not a graceful denial.\n- The system prompt shows **once**. After a denial, there is no re-prompt API: deep-link to Settings with `UIApplication.openSettingsURLString` and explain why, rather than repeatedly calling the request API hoping for a different answer.\n\n## Android\n\n- Check `shouldShowRequestPermissionRationale` to decide whether to show an explanation before requesting, or whether the user already chose \"don't ask again\" (in which case rationale won't show and you go straight to a Settings deep-link).\n- `POST_NOTIFICATIONS` is a runtime permission since API 33 — request it like any other dangerous permission, not assumed granted.\n- Prefer the **Photo Picker** over `READ_MEDIA_IMAGES`\u002F`READ_MEDIA_VIDEO` when the feature only needs the user to pick specific media — it needs no permission at all.\n- Request coarse location before fine location when both are relevant, and only request what the feature actually uses.\n- A local-network permission applies on recent Android versions for apps that discover devices on the LAN — verify the exact permission name against the current platform docs when you're about to use it; don't guess.\n\n## Flutter\n\n- `permission_handler`: check `.isPermanentlyDenied` to distinguish \"ask again\" from \"must deep-link to settings\" (`openAppSettings()`).\n\n## Every state needs a response\n\n`granted` · `denied` (show rationale, allow retry) · `restricted` (parental controls\u002FMDM — no retry is possible, say so) · `permanently denied` (deep-link to Settings) — the feature degrades gracefully without the permission in every case; a denial never crashes or silently dead-ends the flow.\n\n## Testing reality in TaskTrooper\n\nThe shared Android test device auto-grants permissions (`appium:autoGrantPermissions: true`), so the denied\u002Frestricted\u002Fpermanently-denied paths **cannot** be exercised by requesting on that device — a manual test there will always show \"granted\" regardless of what you're verifying. Test those paths with a fake permission service injected in a widget\u002Funit test instead (stub it to return denied\u002Frestricted\u002Fpermanently-denied and assert the UI responds correctly), and say explicitly in the closing message that the denied path was verified via a fake, not on-device.\n\n## Common Mistakes\n\n- Requesting a permission with no prior rationale, as a wall of prompts at first launch.\n- Missing `NS*UsageDescription` for a permission the code requests.\n- Treating \"permanently denied\" the same as \"denied\" and calling the request API again (it won't re-prompt).\n- Assuming the shared device's auto-grant means the denied path was tested.\n- `READ_MEDIA_IMAGES` for a simple \"pick one photo\" feature instead of the Photo Picker.\n\n## Red Flags\n\n- A permission-gated feature with no denied\u002Frestricted\u002Fpermanently-denied UI at all.\n- A closing message claiming \"tested denied path\" with a device known to auto-grant and no fake-service test in the diff.\n- A Settings deep-link with no explanation of why the user is being sent there.\n","# Platform Permissions\n\n## Overview\n\nA permission request handled only for the happy path (granted) crashes or dead-ends for a meaningful share of real users. Every state needs a designed response, and the denied path is the one app reviewers and store checks hit first.\n\n## iOS\n\n- Every permission needs an `NS*UsageDescription` string in `Info.plist` *before* the request is made — a missing one terminates the app immediately when the request fires, not a graceful denial.\n- The system prompt shows **once**. After a denial, there is no re-prompt API: deep-link to Settings with `UIApplication.openSettingsURLString` and explain why, rather than repeatedly calling the request API hoping for a different answer.\n\n## Android\n\n- Check `shouldShowRequestPermissionRationale` to decide whether to show an explanation before requesting, or whether the user already chose \"don't ask again\" (in which case rationale won't show and you go straight to a Settings deep-link).\n- `POST_NOTIFICATIONS` is a runtime permission since API 33 — request it like any other dangerous permission, not assumed granted.\n- Prefer the **Photo Picker** over `READ_MEDIA_IMAGES`\u002F`READ_MEDIA_VIDEO` when the feature only needs the user to pick specific media — it needs no permission at all.\n- Request coarse location before fine location when both are relevant, and only request what the feature actually uses.\n- A local-network permission applies on recent Android versions for apps that discover devices on the LAN — verify the exact permission name against the current platform docs when you're about to use it; don't guess.\n\n## Flutter\n\n- `permission_handler`: check `.isPermanentlyDenied` to distinguish \"ask again\" from \"must deep-link to settings\" (`openAppSettings()`).\n\n## Every state needs a response\n\n`granted` · `denied` (show rationale, allow retry) · `restricted` (parental controls\u002FMDM — no retry is possible, say so) · `permanently denied` (deep-link to Settings) — the feature degrades gracefully without the permission in every case; a denial never crashes or silently dead-ends the flow.\n\n## Testing reality in TaskTrooper\n\nThe shared Android test device auto-grants permissions (`appium:autoGrantPermissions: true`), so the denied\u002Frestricted\u002Fpermanently-denied paths **cannot** be exercised by requesting on that device — a manual test there will always show \"granted\" regardless of what you're verifying. Test those paths with a fake permission service injected in a widget\u002Funit test instead (stub it to return denied\u002Frestricted\u002Fpermanently-denied and assert the UI responds correctly), and say explicitly in the closing message that the denied path was verified via a fake, not on-device.\n\n## Common Mistakes\n\n- Requesting a permission with no prior rationale, as a wall of prompts at first launch.\n- Missing `NS*UsageDescription` for a permission the code requests.\n- Treating \"permanently denied\" the same as \"denied\" and calling the request API again (it won't re-prompt).\n- Assuming the shared device's auto-grant means the denied path was tested.\n- `READ_MEDIA_IMAGES` for a simple \"pick one photo\" feature instead of the Photo Picker.\n\n## Red Flags\n\n- A permission-gated feature with no denied\u002Frestricted\u002Fpermanently-denied UI at all.\n- A closing message claiming \"tested denied path\" with a device known to auto-grant and no fake-service test in the diff.\n- A Settings deep-link with no explanation of why the user is being sent there.\n",{"name":5,"category":24,"description":7},"mobile","main","910394a0b6db9fc8c9a8f36328ec421d3ebd8b38","catalog\u002Fagents\u002Fmobile-developer\u002Fskills\u002Fplatform-permissions",18,"https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper","https:\u002F\u002Ftasktrooper.ai","https:\u002F\u002Fgithub.com\u002Fmakifbaysal","Senior Software Developer","2026-11-15 04:50:29",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add makifbaysal\u002Ftasktrooper --skill platform-permissions",{"tool":40,"command":41},"bunx","bunx skills add makifbaysal\u002Ftasktrooper --skill platform-permissions",{"tool":43,"command":44},"pnpm","pnpm dlx skills add makifbaysal\u002Ftasktrooper --skill platform-permissions","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fmobile-developer\u002Fskills\u002Fplatform-permissions\u002FSKILL.md",true,[],[49,55,62,69,76,83],{"skillNo":50,"name":51,"nameZh":6,"description":6,"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},"01M7CSVEPQW6J6TD6CS2T5FPNZ","visual-craft","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fvisual-craft\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},"01M7CSVAQG91ETHQ0HBNZDG5FR","ux-copy","Use when you write any words a user reads in a mockup or a hand-off - content language and voice, buttons, labels, errors, empty states, confirmations, numbers and dates, and the longest-string check","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fux-copy\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},"01M7CSV6H0J38659NDXHJQ8396","screen-mockup-html","Use when you draw screens as the design task's HTML mockup - ONE canvas document holding every screen and every variant side by side, the sanitizer-safe recipe, phone and wide frames, the states grid, static control states, and the loopback self-check with screenshots at 375, 768 and 1440 attached to the task","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fscreen-mockup-html\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},"01M7CSV3JFRF3BM3XK52M7YEYR","performance-awareness","How the performance score moves for your role. Use when the score context shows a declining trend, or before handing off work you have not self-checked against every criterion.","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fperformance-awareness\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},"01M7CSTZDH00YRF5SCT7BRT9QD","design-variants","Use when a screen design needs variants - how many, variants as side-by-side rows on the one canvas, what makes two variants genuinely different, recommending one, how the human's choice is read, and narrowing to the chosen one in revision","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fdesign-variants\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},"01M7CSTV6P3SM3PAE28DB0RF77","design-system-authoring","Use when you derive, change or extend a design system - where tokens live per stack, the DTCG token tree, role-based names for both themes, base vs layer vs drift, the DESIGN.md section order, the inventory format, the contrast check and the lint every proposal returns","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fdesign-system-authoring\u002FSKILL.md",[],[]]