Logo Flow Permissions

Flow Permissions

Cộng đồng
jpoindexter
flow-permissions

Dùng khi thiết kế hoặc đánh giá yêu cầu cấp quyền của hệ điều hành (thông báo, vị trí, camera, danh bạ, ảnh, theo dõi) hoặc chiến lược thông báo — màn hình giới thiệu trước khi hỏi quyền, thời điểm yêu cầu, cách xử lý khi bị từ chối, kiểm soát tần suất, bản tin tổng hợp hoặc thông báo thúc đẩy người dùng quay lại. Cũng dùng khi số liệu phân tích cho thấy tỷ lệ từ chối cấp quyền cao, người dùng phản ánh bị spam thông báo hoặc tắt thông báo, hay ứng dụng yêu cầu cấp quyền ngay lần đầu mở.

Add to TypingMind

Tổng quan

Nhà phát hànhjpoindexter
Kho mãux-flow-skills
Tên kỹ năngflow-permissions
Sao
5
Bản fork
0
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được jpoindexter công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Flow Permissions trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/jpoindexter/ux-flow-skills/tree/main/skills/flow-permissions
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jpoindexter/ux-flow-skills.git /tmp/ux-flow-skills
mkdir -p .claude/skills
cp -r /tmp/ux-flow-skills/skills/flow-permissions .claude/skills/flow-permissions
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Flow Permissions trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Flow Permissions ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Flow Permissions với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Notification & Permission Priming

Overview

The OS permission dialog is a one-shot, high-stakes ask — on iOS a notification denial is permanent until the user digs through Settings — so never spend it before the user understands the value. Prime first with your own UI, ask at the moment of obvious benefit, and treat every notification sent as spending trust you must earn back.

When to Use

  • Adding any OS-level permission request: push, location, camera, mic, contacts, photos, Bluetooth, ATT/tracking
  • Designing notification types, frequency rules, digests, or a preference center
  • Reviewing denial rates, opt-out rates, uninstalls after pushes, or "too many notifications" feedback
  • Building re-engagement / win-back messaging
  • NOT for: in-app authorization/roles (access control), or transactional email deliverability
  • NOT for: capabilities with no OS dialog on the target platform — when a dialog exists anywhere in scope, this skill applies

The Proven Flow

Pre-permission priming (the core pattern)

  1. Trigger: a user action that needs the permission. User enables order updates, follows a topic, sets a reminder, taps "find stores near me", starts a video call (camera/mic). Never app launch, never a timer, never "day 3 of usage".
  2. Priming screen (your UI, not the OS dialog). One screen or modal containing:
    • Icon or small visual tied to the benefit.
    • Benefit headline framed as the user's outcome: "Know the moment your order ships" — not "Enable push notifications".
    • 1–2 lines of specifics: what you'll send and roughly how often ("Order updates only — usually 2–3 per order").
    • Primary button: "Turn on notifications" / "Enable".
    • Secondary: "Not now" — never "No" or "Don't allow"; keep refusal soft and honestly re-askable.
    • Proven: Duolingo primes off the streak ("Don't lose your 7-day streak — remind me"); Airbnb primes location with "find homes near you"; Headspace ties the ask to the user's own chosen reminder time; Hopper primes with price-drop watch value.
  3. Branch on the soft answer:
    • "Not now" → dismiss; the OS dialog is never shown, so your one-shot is preserved. Re-prime later at the next high-intent moment. Cap: 2–3 primes total per permission, spaced days apart, each tied to a different concrete benefit. After the cap, stop — the answer is no.
    • "Enable" → fire the OS dialog immediately, same interaction. Acceptance here runs far above cold asks because the user already said yes once, and a rare OS-level denial no longer surprises you.
  4. OS dialog result:
    • Granted → deliver value instantly if possible (send the confirmation they enabled, show the nearby results) and continue the flow where they left off.
    • Denied despite priming → respect it, record it client- and server-side, don't loop. Route future feature touchpoints to the denial-recovery path.
  5. Provisional path (iOS, content notifications). Provisional authorization delivers quietly to Notification Center with no dialog at all; the user upgrades to full alerts or kills them from the notification itself. Use it to prove value before ever spending the formal ask.

Priming copy patterns

Instead ofWrite
"Enable push notifications""Know the moment your order ships"
"Allow location access to enhance your experience""Find pharmacies open near you right now"
"Acme would like to send you notifications" (raw dialog)Prime first: "Get a heads-up when prices drop on flights you're watching"
"Turn on notifications?" primary + "No" secondary"Remind me daily" primary + "Not now" secondary
"We need camera access""Scan the barcode to log this food" (ask on the scan tap)

Platform specifics

  • iOS: one shot at the notification dialog per install; denial is fixable only in Settings. Priming is mandatory practice. Location offers "While Using" vs "Always" — request "While Using" first; "Always" only later, in context, when a feature truly needs background location (the OS will re-confirm anyway).
  • Android 13+: notifications are runtime-requested (POST_NOTIFICATIONS); the system tolerates limited re-asks but two "deny" responses ≈ permanent ("don't ask again" behavior). Same priming pattern. Register notification channels per category from day one so users can kill one category without killing all.
  • Web: browsers punish premature Notification.requestPermission() — Chrome and Firefox quiet or auto-block sites that ask on load, and a dismissed prompt can trigger a temporary or permanent block. Soft-prompt first, always; request only inside a user-gesture handler.
  • ATT (iOS tracking): priming screens are allowed; incentivizing the grant or gating the app on it is forbidden by App Review. Expect majority denial; design the product to work without it.
  • Camera/mic/photos: lowest-friction permissions when asked in-context (user tapped the camera button — intent is self-evident); a full priming screen is often unnecessary, but never ask before the triggering tap. Photos on iOS: design for "Selected Photos" limited access as the normal case.

Timing decision guide

PermissionAsk atNever at
NotificationsUser enables a specific alert/reminder/watchLaunch, signup, day-N timer
LocationUser taps a "near me" / map featureLaunch, background upsell
Camera/micThe capture/call tap itselfFeature discovery, launch
ContactsUser taps "invite friends" / "find friends"Signup, onboarding wizard
PhotosUser taps upload/attachProfile-setup step 1
ATT/trackingAfter first value, with honest primingFirst launch cold

Denial recovery

  1. Check permission state before promising permission-dependent features anywhere in the UI.
  2. When a denied permission blocks something the user just tried to do ("Notify me about this auction"), show an inline explainer: what's off, why it matters right now, and a button deep-linking to the app's OS settings page (iOS app-settings: URL; Android app-notification-settings intent; web: instructions for the lock-icon site settings). Add a one-line pointer to the exact toggle they'll see.
  3. Never nag on a schedule. Recover only at moments of demonstrated intent.
  4. Always offer fallback channels: in-app inbox/activity feed (notifications' value without the permission), email or SMS opt-in, calendar export, badge-only updates.

Notification strategy: frequency, digests, re-engagement

  • Categorize every notification type before building:
    • Transactional (order shipped, security alert, direct payment) — always send; not user-disable-able except by law.
    • Social (mention, reply, follow) — send by default; per-category user control.
    • Promotional/engagement (digest, streak, tips, win-back) — strictly opt-in behavior, hard-capped. Never smuggle promo content through the transactional channel; it burns the channel and violates platform policy.
  • Digest pattern: batch low-urgency items into one daily or weekly summary at a user-chosen or engagement-inferred send time (LinkedIn, Substack, GitHub notifications). Default new non-urgent categories to digest, not instant — let users upgrade, don't make them defend their attention.
  • Frequency caps: promotional ≤1/day hard cap, fewer by default; respect quiet hours (default ~22:00–08:00 device-local, overridable); collapse bursts server-side ("3 new replies on your post" via collapse keys/thread IDs, not 3 pushes).
  • The three-question send test — every notification must pass all: Is it about the user's own activity or explicit interest? Can they act on it? Would they miss it if it never arrived? Any "no" → digest or drop.
  • Re-engagement without spam:
    • Trigger from user-created stakes: Duolingo's streak works because "your 12-day streak" is the user's own artifact, not the brand's neediness.
    • Reference specific abandoned state: "Your draft from Tuesday is still here", "3 people applied to your posting" — never content-free "We miss you 😢".
    • Cap win-backs at 1–2 attempts per lapse, then go silent; an uninstall or OS-level notification kill costs more than a lapsed user.
    • Auto-downgrade rule: a category with zero opens across N sends (5–10) drops itself to digest or off, with one in-app note saying so and how to resume.
  • Preference center (in-app, mandatory): per-category toggles with a one-line description + example under each, digest-frequency choice, "Pause all for 1 week", honored server-side immediately. Mirror the reachable-from-notification affordance (long-press → settings on mobile; unsubscribe-parity for email digests).

Re-engagement copy — user-stakes vs. brand-neediness:

Spam (brand's need)Earns the open (user's stake)
"We miss you! Come back 😢""Your 12-day streak ends at midnight" (Duolingo)
"Check out what's new in Acme""3 people applied to the job you posted"
"Don't forget about us!""Your draft 'Q3 plan' has been waiting since Tuesday"
"Big sale! Open now!""The flight you're watching dropped $84" (Hopper)

Layout & Structure

  • Priming screen: one benefit only; headline ≤8 words; body ≤2 lines; optional visual ≤~40% of screen height; primary CTA full-width at bottom (≥44pt iOS / 48dp Android); "Not now" as a text button directly below — equal tap-target size, lower visual weight, never an X-only escape.
  • One permission per moment. Never stack primes. Camera+mic may pair only when one feature needs both simultaneously (video call); notifications pair with nothing.
  • Copy rule: name the concrete trigger ("when your order ships", "when someone replies"), never the mechanism ("to send you push notifications") and never vague value ("to enhance your experience").
  • Denial-recovery banner: one line + "Open Settings" button, dismissible, reappears only on the next blocked intent — not on every screen view.
  • Preference center: grouped by category; each row = toggle + name + one-line example ("Weekly digest — top posts from people you follow"); show OS-level state when it overrides ("Notifications are off for this app in Settings — Open Settings"); place it ≤2 taps from any received notification and inside app settings.
  • Priming placement in flows: insert as an interstitial inside the triggering flow, then return the user exactly where they were — never eject to a home screen after the dialog.
  • Badging: app-icon badges count only actionable items; a badge that never clears trains users to ignore it — clear on view, not on tap-through of one item, unless items are discrete tasks.
  • Notification anatomy: title = the event in the user's terms ("Sara replied"), body = the specific content preview, deep link = the exact item (never the app home screen); rich attachments (image/actions) only when they let the user finish without opening the app (reply inline, mark done, snooze).
  • Actionable notifications: 1–2 quick actions max (Reply, Mark done, Snooze); every action must be idempotent and safe from a lock screen.
  • Accessibility: priming screens are fully keyboard/screen-reader operable; "Not now" is a real button in the accessibility tree, not a dismiss gesture only; notification copy makes sense read aloud without the visual context.

Quick Reference

SituationPattern
App first launchAsk for NOTHING; defer every permission
Feature needs permission after a user tapJust-in-time: prime → soft yes → OS dialog → continue flow
User tapped the camera/mic feature itselfIn-context ask, no priming screen needed; never earlier
User said "Not now"One-shot preserved; re-prime at next high-intent moment, ≤3 total
OS-level denialInline recovery at moment of need + Settings deep link + fallback channel
iOS location"While Using" first; "Always" only later, in context
iOS content app unsure users want pushesProvisional (quiet) delivery, upgrade from the notification
AndroidChannels per category; treat second deny as permanent
WebSoft prompt inside a user gesture; never on load
Low-urgency updatesDefault to digest; user upgrades to instant
Event burstOne collapsed summary notification
Lapsed userReference their own stakes/state; 1–2 attempts, then silence
Category repeatedly ignoredAuto-downgrade to digest/off; say so in-app
ATT/trackingPrime honestly, no incentives, product works on denial

Anti-Patterns

Anti-patternFix
OS permission dialog on first launchJust-in-time asks tied to user actions
Firing the OS dialog with no priming (push, location)Soft-ask screen first; escalate only on "yes"
Soft-prompt refusal labeled "No" / "Don't allow""Not now" — soft, honest, re-askable
Re-priming every session after "Not now"Cap 2–3, spaced days apart, new benefit each time
"Enable notifications to continue" wallNever gate core features on non-essential permissions
Promo pushes through the transactional channelStrict category separation; promo is opt-in
"We miss you 😢" content-free win-backsReference the user's own state (streak, draft, activity) or send nothing
One master notification togglePer-category preference center + digest options
Ignoring quiet hours / timezonesLocal quiet hours on by default for non-urgent sends
Denial → silently broken featureInline explainer + Settings deep link + fallback channel
Asking for contacts/location "for later use"Ask when the invite/map screen is actually open
Requesting "Always" location upfront"While Using" first; upgrade contextually
Badge that never clearsBadge counts actionable items only; clears on view
Measuring dialog-grant rate as successOptimize retained opt-in (still enabled at day 30)
Same push to all timezones at HQ timeSend-time per user's local time / inferred active hours
Stacking two OS dialogs back-to-backOne permission per moment; the second waits for its own trigger
Notification deep-links to the app home screenDeep-link to the exact item the notification names
Preference changes applied client-side onlyHonor server-side immediately; a re-sent muted category is spam

Success metrics: opt-in still enabled at day 30, notification-driven opens, and uninstall rate within 24h of a push — not day-0 grant rate.

Câu hỏi thường gặp

Kỹ năng AI Flow Permissions làm được gì?

Dùng khi thiết kế hoặc đánh giá yêu cầu cấp quyền của hệ điều hành (thông báo, vị trí, camera, danh bạ, ảnh, theo dõi) hoặc chiến lược thông báo — màn hình giới thiệu trước khi hỏi quyền, thời điểm yêu cầu, cách xử lý khi bị từ chối, kiểm soát tần suất, bản tin tổng hợp hoặc thông báo thúc đẩy người dùng quay lại. Cũng dùng khi số liệu phân tích cho thấy tỷ lệ từ chối cấp quyền cao, người dùng phản ánh bị spam thông báo hoặc tắt thông báo, hay ứng dụng yêu cầu cấp quyền ngay lần đầu mở.

Vì sao nên dùng Flow Permissions trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Flow Permissions là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Flow Permissions trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/jpoindexter/ux-flow-skills/tree/main/skills/flow-permissions. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Flow Permissions?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Flow Permissions với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Flow Permissions với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Flow Permissions có miễn phí không?

Có. Kỹ năng này được jpoindexter phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇