شعار Downloads And Storage

Downloads And Storage

مؤسسة
VectorSpaceLab
downloads-and-storage

Routes Hugging Face Hub file and snapshot downloads, cache and offline recovery, Xet-backed storage, HfFileSystem and hf:// URIs, buckets, and safe copy or sync planning. Use for model, dataset, Space, or kernel downloads; allow/ignore patterns; cache corruption; fsspec browsing; volume mounts; and bucket file movement.

Add to TypingMind

نظرة عامة

الناشرVectorSpaceLab
المستودعAREX-Skill
اسم المهارةdownloads-and-storage
النجوم
341
التفريعات
26
الملفات المرفقة
5
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

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

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

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

  • الملفات المرفقة: 5

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/VectorSpaceLab/AREX-Skill/tree/main/examples/creator/repo-to-skills/artifacts/huggingface_hub/huggingface-hub/sub-skills/downloads-and-storage
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/VectorSpaceLab/AREX-Skill.git /tmp/AREX-Skill
mkdir -p .claude/skills
cp -r /tmp/AREX-Skill/examples/creator/repo-to-skills/artifacts/huggingface_hub/huggingface-hub/sub-skills/downloads-and-storage .claude/skills/downloads-and-storage
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Downloads and Storage

Use this sub-skill to select and operate the Hub's read/download and storage surfaces without confusing repository snapshots, local cache metadata, and bucket object storage.

Trigger Routes

Load this sub-skill when the request mentions any of the following:

  • download one Hub file, model, dataset, Space, or kernel repository;
  • snapshot a revision with allow/ignore patterns or estimate it with dry run;
  • inspect, verify, prune, relocate, or troubleshoot the local Hub cache;
  • run offline, recover from an interrupted or incomplete snapshot, or diagnose a cache miss;
  • enable, disable, or troubleshoot Xet-backed transfers and chunk storage;
  • browse or open Hub files through HfFileSystem, fsspec, or hf:// paths;
  • parse a Hub URI or a mount such as hf://datasets/org/data:/mnt:ro;
  • browse/download bucket objects or plan a local↔bucket sync;
  • reason about trailing-slash semantics for safe remote copy operations.

Read the Focused References

  • Read API reference for verified signatures, return values, parameter matrices, URI forms, filesystem methods, and bucket APIs.
  • Read workflows for copyable download, offline, cache, fsspec, bucket, copy, and plan/apply recipes.
  • Read configuration, cache, and Xet before changing cache paths, offline mode, symlink mode, timeouts, or Xet settings.
  • Read troubleshooting for revision/repo-type, access, disk, cache, symlink, Xet, URI, prefix, and traversal failures.
  • Run the bundled read-only download environment diagnostic when the effective cache roots, import-time settings, free space, token presence, Xet availability, or cache structure is uncertain.

Keep the Boundaries Clear

This sub-skill owns downloads, read-only filesystem access, local cache operations, bucket reads, and safe movement planning. It covers upload/copy only far enough to choose a safe file-movement surface. Although HfFileSystem exposes write/delete methods, do not execute those mutations from this route; send repository or bucket mutations to the appropriate operations workflow.

  • Route repository and bucket creation, commits, branches, uploads, deletes, moves, visibility changes, and other mutations to the hub-operations sibling sub-skill.
  • Route exhaustive CLI flag selection, output formats, authentication setup, and shell automation to the cli-and-automation sibling sub-skill.
  • Do not use HfFileSystem as the default high-throughput download API; prefer hf_hub_download, snapshot_download, or the corresponding HfApi methods.
  • Do not bundle or run credentialed upload helpers or networked installers from this skill.

Choose the Download Surface

  1. Use hf_hub_download(repo_id, filename, ...) for exactly one repository file. It returns a file path, normally a pointer inside the shared cache.
  2. Use snapshot_download(repo_id, ...) for a coherent repository tree, multiple files, pattern filtering, or parallel file downloads. It returns a snapshot directory.
  3. Use local_dir when the caller needs a normal materialized directory they may modify. Otherwise prefer cache_dir/the shared cache and treat returned cache paths as immutable.
  4. Set repo_type explicitly for datasets, Spaces, and kernels; model is the default. Pin revision to a full commit hash for reproducible or prepared offline execution.
  5. Use dry_run=True to inspect DryRunFileInfo; it may perform remote metadata calls but does not transfer file payloads. It is not an offline inventory mechanism.
  6. Use allow_patterns and ignore_patterns only with snapshots. Both apply; ignored files remain excluded after allow filtering. Tune max_workers for concurrent files, not Xet byte-range concurrency.

Before a large or forced transfer, inspect will_download and file_size, run the diagnostic helper, and confirm free space in both the Hub cache and Xet cache locations.

Preserve Cache and Offline Invariants

  • local_files_only=True forbids network access for that call and succeeds only from already materialized content. force_download=True asks for a fresh transfer and is not an offline/cache-repair switch; do not combine them.
  • HF_HUB_OFFLINE=1 is process-wide and is read when the package is imported. Set it before Python starts. It also makes ordinary HfApi calls fail rather than contact the Hub.
  • A cached refs/ entry or trees/*.json record is metadata, not downloaded content. Confirm the selected snapshot files exist.
  • If a cached tree listing proves requested files are missing, offline snapshot_download raises IncompleteSnapshotError instead of silently returning the partial tree. Pattern-excluded files do not count as missing.
  • Use scan_cache_dir or hf cache ls for inspection. Preview hf cache rm and hf cache prune with --dry-run; deletion is irreversible.
  • Never edit a returned shared-cache file. Materialize to local_dir or copy it elsewhere first.

Browse with HfFileSystem and URIs

Use HfFileSystem or the global hffs for fsspec integrations and convenient ls, glob, find, exists, and open. Text mode must be explicit because fsspec open defaults to "rb". Pass refresh=True when stale directory metadata is plausible.

Use canonical hf://[TYPE/]namespace/name[@REVISION][/PATH] URIs. Dataset, Space, kernel, and bucket prefixes are plural and required; a model prefix is optional. Buckets do not support revisions. Encode ordinary branch names that contain /; special refs such as refs/pr/3 are recognized directly. Parse mounts with huggingface_hub.utils.parse_hf_mount, not by splitting on :.

Treat URI parsing as identification, not path-safety authorization. Reject absolute paths, drive/UNC paths, and every .. segment before local materialization or plan application.

Handle Buckets and Movement Safely

Buckets are mutable Xet-backed object storage, not versioned repositories. Use list_bucket_tree/download_bucket_files for Python reads, or hf buckets list, hf cp, and hf sync for CLI workflows.

For one file, use hf cp; for local↔bucket directories, use sync_bucket or hf sync. Generate dry_run=True output or a JSONL plan, review every action and destination, then apply it. Treat delete=True as destructive.

For remote copies, copy_files supports repo→repo, repo→bucket, and bucket→bucket; bucket→repo is unsupported. Server-side copies require compatible storage regions. A trailing slash on the source means “copy contents”; without it, the source directory may be nested at the destination. Verify bucket prefix boundaries so logs does not accidentally match logs-old.

Validate the Outcome

For a no-network regression rehearsal that exercises mocked metadata, a temporary cache, filtered offline recovery, a wrong revision, and the local_files_only/force_download conflict, run the focused case in workflows. Keep the bucket prefix/traversal case there deferred until a reviewed mock plan and authorized bucket integration are available.

  • Assert the returned path exists and is the requested file/snapshot.
  • For dry runs, inspect filename, commit_hash, local_path, is_cached, will_download, and aggregate only entries where will_download is true.
  • For offline snapshots, assert all pattern-selected files exist; catch IncompleteSnapshotError and report its snapshot_path without claiming the snapshot is complete.
  • For cache repair, rescan and inspect warnings before deleting anything.
  • For sync/copy, inspect source/destination URI types, revisions, prefixes, trailing slashes, regions, and the plan's upload/download/delete actions.
  • Mark network-, credential-, private/gated-, and Xet-service integration as deferred unless the caller explicitly authorizes and provides them.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

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

ماذا تفعل مهارة الذكاء الاصطناعي Downloads And Storage؟

Routes Hugging Face Hub file and snapshot downloads, cache and offline recovery, Xet-backed storage, HfFileSystem and hf:// URIs, buckets, and safe copy or sync planning. Use for model, dataset, Space, or kernel downloads; allow/ignore patterns; cache corruption; fsspec browsing; volume mounts; and bucket file movement.

لماذا تستخدم Downloads And Storage على TypingMind؟

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

كيف أثبّت Downloads And Storage في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/VectorSpaceLab/AREX-Skill/tree/main/examples/creator/repo-to-skills/artifacts/huggingface_hub/huggingface-hub/sub-skills/downloads-and-storage. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Downloads And Storage؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Downloads And Storage؟

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

هل مهارة الذكاء الاصطناعي Downloads And Storage مجانية؟

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

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

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

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

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

عرض الكل

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

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