شعار Flutter Map

Flutter Map

المجتمع
tayormi
flutter-map

Generate a visual navigation map of a Flutter app. Statically parses GoRouter / go_router_builder / AutoRoute / Navigator 1.0 / Navigator 2.0 into expo-map-compatible graph.json, prepares deep-link explore flows, then deep-links through every screen on iOS Simulator or Android emulator capturing screenshots and runtime states, and packs a portable .appmap bundle. Use when the user asks to map a Flutter app's navigation, screens, or routes, or wants a visual sitemap of their Flutter app.

نظرة عامة

الناشرtayormi
المستودعflutter-map
اسم المهارةflutter-map
النجوم
90
التفريعات
7
الملفات المرفقة
تعليمات فقط
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها tayormi على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Flutter Map في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/tayormi/flutter-map/tree/main/skills/flutter-map
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/tayormi/flutter-map.git /tmp/flutter-map
mkdir -p .claude/skills
cp -r /tmp/flutter-map/skills/flutter-map .claude/skills/flutter-map
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Flutter Map في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Flutter Map تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Flutter Map بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

flutter-map

Produce a visual map of a Flutter app's navigation: every route as a card with a screenshot, runtime state variants (bottom sheets, dialogs, modals), and navigation edges — packed into an expo-map-compatible .appmap bundle.

Arguments: optional path to the Flutter project (default: cwd). --static = parse + pack only (no simulator). --prepare = parse + write deep-link flow stubs / explore plan, stop before live capture.

Working directory: all outputs go to <project>/.flutter-map/ — graph.json, explore-plan.json, capture-status.json, screens/*.png, flows/*.yaml + flows/*.meta.json, *.appmap. Suggest adding .flutter-map/ to .gitignore.

Parser / pack CLIs live in this repo at packages/flutter_map_parser:

bash
PARSER=<flutter-map-repo>/packages/flutter_map_parser
dart run $PARSER/bin/parse_routes.dart <project>
dart run $PARSER/bin/prepare_explore.dart <project>
dart run $PARSER/bin/pack_map.dart <project>
# or: dart run $PARSER/bin/flutter_map.dart <project>

Flow recording (Phases 4–5)

Record interactions as argent flows: <name>.yaml + <name>.meta.json under .flutter-map/flows/. Replay: npx @swmansion/argent flow run .flutter-map/flows/<name>.yaml. Schema: docs/appmap-format.md.

Rules:

  • Prefer argent MCP recording when connected; otherwise write YAML with normalized 0–1 coordinates.
  • Sidecar steps keyed by 0-based YAML index. Navigating taps need "screen": "<route id>". Screenshots are sidecar capture fields — never YAML steps.
  • Record each successful action when it happens; do not reconstruct flows afterward. Prefer durable accessibility/text selectors over coordinates whenever Argent exposes them.
  • Attach capture to the YAML step after which the screenshot was taken. Every coordinate tap/swipe also needs a human-readable target or note.
  • Mechanical deep-link flows are generated by prepare_explore — keep and update them after live captures.
  • Never record credentials; use {{secret:NAME}} if input is unavoidable.
  • Never tap destructive controls (delete, purchase, sign out, submit).

Phase 1 — static parse

bash
dart run $PARSER/bin/parse_routes.dart <project>

Report graph.json summary: mode (go_router / go_router_builder / auto_route / navigator / navigator_2), route count, edges (flag unresolved), state hints, params, scheme. If mode is unknown, stop.

Edges resolve literal paths, path helpers/consts (AppPaths.foo, Routes.settings.root, getters like Routes.newPersonPath), and interpolated literals ('${Routes.tutorials}/$id'). AutoRoute also covers context.router.push, context.pushRoute, AutoRouter.of(context).push/replaceAll, router fields like _appRouter?.push, and Navigator.push of known *Screen/*Page widgets. Navigator mode also covers pushNamed / Navigator.pushNamed. Navigator 2 mode derives routes from RouterDelegate pages: stacks (plus ValueKey / RouteInformationParser path hints) and emits root→page stack edges. Shared widgets may still attribute from imperfectly.

If --static, jump to Phase 6 (pack with missing captures).

Phase 2 — prepare explore plan

bash
dart run $PARSER/bin/prepare_explore.dart <project>

This writes:

  • .flutter-map/explore-plan.json — per-route deep links, sample params, simctl/adb commands, screenshot paths
  • .flutter-map/flows/deeplink-<slug>.yaml + .meta.json — deterministic open-url flows
  • .flutter-map/capture-status.json — all routes start as missing
  • .flutter-map/screens/ directory

Review sample params: prefer values from resolved edge targets (e.g. /details/42), then fixture/seed data, else 1. Edit explore-plan.json if needed before sweeping. Auth-gated routes and redirects are expected findings: plan how to distinguish a real auth wall from a broken deep link before capture begins.

If --prepare, stop here and report the plan.

Phase 3 — boot the Flutter app

  1. Prefer an already-running app on a booted simulator/emulator.
  2. iOS: xcrun simctl list devices booted. Android: adb devices.
  3. Run the app (flutter run -d <device> or attach to an existing debug session). Note the bundle id / application id.
  4. Verify deep linking using the scheme from graph.json / explore-plan.json:
    • iOS: xcrun simctl openurl booted "<scheme>://"
    • Android: adb shell am start -a android.intent.action.VIEW -d "<scheme>://"
  5. Confirm the app rendered (screenshot). If deep links fail, fix Android intent-filters / iOS URL types, or continue with in-app navigation only and mark needsNavigation later.

Phase 4 — route sweep

For each route in explore-plan.json:

  1. Open deepLink (or the platform command in the plan).
  2. Wait ~1.5s (3–4s for network-heavy screens).
  3. Capture using the exact slug:
    • iOS: xcrun simctl io booted screenshot <project>/.flutter-map/screens/<slug>.png
    • Android: adb exec-out screencap -p > <project>/.flutter-map/screens/<slug>.png
  4. Update the matching flows/deeplink-<slug>.meta.json device field once known.
  5. Sanity-check periodically. Keep bad captures but note them for Phase 4b.

Phase 4b — review and recover

Render and open a draft contact map before classifying captures:

bash
dart run $PARSER/bin/render_map.dart <project>

Inspect every card. Loading skeletons get a longer retry; fake IDs should be replaced with real fixture/API values; redirects are classified by what actually rendered. After any red error screen or sticky error boundary, restart the app and re-capture the remaining tail so one failure does not silently poison later screenshots.

Write verdicts to .flutter-map/capture-status.json:

json
{ "<routeId>": { "status": "ok", "needsNavigation": false, "note": null } }

Statuses: ok · empty-state · not-found · error-boundary · loading · auth-wall · missing.

Flutter-specific notes:

  • Red error screens / yellow-black stripes → error-boundary; relaunch the app before continuing (flutter hot restart, or terminate + relaunch) — error UI can poison later captures.
  • GoRouter redirects (auth) → capture what rendered; set auth-wall or note the redirect target.
  • Routes that only work via typed context.router.push / shell tabs may need needsNavigation: true if bare deep links land on the wrong stack.

Phase 5 — runtime states

For each route with non-empty stateHints:

  • bottom-sheet — find the trigger in file, tap it, capture screens/<slug>--sheet.png (or --sheet-<snap> if snap points exist).
  • dialog — trigger, capture screens/<slug>--dialog.png, dismiss.
  • modal / router-modal — capture variant or treat as own route if already in the graph.

Coverage line required: state hints: N · captured M · skipped K (why). Treat the hint list as a required work queue. Re-open the base route between states, capture every parsed sheet snap point, and explicitly record why any hint could not be triggered safely.

Phase 5b — navigation flows

For every reachable route, record flows/nav-<slug>.yaml + sidecar from app root. Walk the app depth-first and reuse verified prefixes, while keeping each flow self-contained. Every navigating tap/swipe must include the destination screen after visually confirming the landing.

When an action opens a drawer, menu, sheet, or dialog without changing routes, capture it once as <source-slug>--<state>.png and attach it to that action in every flow using it. Screens with no safe discoverable path should be marked needsNavigation with a concrete reason instead of inventing a flow.

Phase 6 — pack and deliver

bash
# optional downscale on macOS
for f in <project>/.flutter-map/screens/*.png; do sips -Z 800 "$f" >/dev/null; done

dart run $PARSER/bin/pack_map.dart <project>
dart run $PARSER/bin/render_map.dart <project> # self-contained .flutter-map/map.html

Deliver the .appmap zip. Open it in apps/flutter_map_visualiser (flutter run -d chrome) or the expo-map visualiser (drag-drop). Report: routes captured / total, state variants, skips, unresolved edges. Suggest gitignoring .flutter-map/.

Replay

bash
npx @swmansion/argent flow run <project>/.flutter-map/flows/<flow-name>.yaml

Fallback: execute YAML steps via simctl/adb + simulator MCP using sidecar target labels.

Legacy JSON flows can be migrated once with:

bash
dart run $PARSER/bin/convert_flows.dart <project> --delete-v1

Web fallback

When no simulator/emulator is available, run the app in Chrome, enumerate the same parsed paths, and capture each route at a fixed phone-sized viewport. Browser capture cannot validate native navigation stacks or system gestures, so report those limitations and do not claim navigation-flow coverage unless the interactions were actually replayed and verified.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Flutter Map؟

Generate a visual navigation map of a Flutter app. Statically parses GoRouter / go_router_builder / AutoRoute / Navigator 1.0 / Navigator 2.0 into expo-map-compatible graph.json, prepares deep-link explore flows, then deep-links through every screen on iOS Simulator or Android emulator capturing screenshots and runtime states, and packs a portable .appmap bundle. Use when the user asks to map a Flutter app's navigation, screens, or routes, or wants a visual sitemap of their Flutter app.

لماذا تستخدم Flutter Map على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Flutter Map عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Flutter Map في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/tayormi/flutter-map/tree/main/skills/flutter-map. يقرأ TypingMind ملف SKILL.md الخاص بها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Flutter Map؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Flutter Map؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Flutter Map معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Flutter Map مجانية؟

نشرها tayormi على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇