شعار Cloudflare Skill

Cloudflare Skill

المجتمع
zeenie-ai
cloudflare-skill

Work with Cloudflare via the official cf CLI — check auth identity, list zones, list/create/delete DNS records, query the GraphQL Analytics API (zone traffic, Web Analytics/RUM), and run any other cf command. Output is parsed JSON.

نظرة عامة

الناشرzeenie-ai
المستودعOpenCompany
اسم المهارةcloudflare-skill
النجوم
912
التفريعات
137
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Cloudflare Skill

Wrapper over the official Cloudflare CLI (cf, a Technical Preview — "the next version of Wrangler"). Typed operations for the core flows plus a custom passthrough that covers the entire cf surface. cf prints JSON to stdout by default, so results come back parsed in result.

Tool: cloudflare

Operations

OperationPurposeKey fields
whoamiAuth status + identity (email, scopes)—
zones_listList/filter zones (parsed JSON)name_filter, account_id (both optional)
dns_records_listDNS records for a zone (parsed JSON)zone (zone ID or domain)
dns_record_createCreate a DNS recordzone, record_body (raw JSON record)
dns_record_deleteDelete a DNS record by idzone, record_id
graphql_queryGraphQL Analytics API (traffic, RUM, DNS analytics)graphql_query, graphql_variables (JSON)
customAny other cf commandcommand — exactly what you would type after cf

Response

json
{
  "operation": "zones_list",
  "success": true,
  "result": [{ "id": "023e105f4ecef8ad9ca31a8372d0c353", "name": "example.com", "status": "active" }],
  "stdout": null,
  "stderr_tail": null
}

Parsed JSON lands in result; plain text (rare) lands in stdout. On failure the tool raises an error carrying cf's own message — surface it verbatim; cf's errors are precise (including "Not logged in", which tells the user exactly how to authenticate).

DNS records

record_body is the raw JSON request body (the API's DNS record shape — stable across cf versions, unlike per-field flags):

json
{ "operation": "dns_record_create", "zone": "example.com", "record_body": "{\"type\":\"A\",\"name\":\"www\",\"content\":\"192.0.2.1\",\"ttl\":1,\"proxied\":false}" }

Common record fields: type (A/AAAA/CNAME/TXT/MX/NS/SRV), name (record name; @ for the zone apex), content, ttl (1 = auto), proxied (orange-cloud), priority (MX/SRV). Get record ids from dns_records_list before deleting:

json
{ "operation": "dns_records_list", "zone": "example.com" }
{ "operation": "dns_record_delete", "zone": "example.com", "record_id": "023e105f4ecef8ad9ca31a8372d0c353" }

To update a record, use custom with --body:

json
{ "operation": "custom", "command": "dns records update <record-id> --zone example.com --body '{\"content\":\"192.0.2.2\"}'" }

Analytics — the GraphQL Analytics API

Cloudflare's legacy Zone Analytics REST API was deprecated (2021) and the DNS analytics REST API is scheduled for removal (2026-12-01); the official replacement for both is the GraphQL Analytics API. The cf CLI does not expose it (its commands are generated from the REST schema), so use the graphql_query operation — it POSTs to the official endpoint api.cloudflare.com/client/v4/graphql.

Requires the API token from Credentials -> Cloudflare (the OAuth login has no analytics scopes): permission Account > Account Analytics > Read, plus Zone > Analytics > Read for zone-scoped queries.

Zone HTTP traffic (official migration-guide query, current dataset):

json
{
  "operation": "graphql_query",
  "graphql_query": "query Sample($zoneTag: string, $start: Time, $end: Time) { viewer { zones(filter: {zoneTag: $zoneTag}) { series: httpRequestsAdaptiveGroups(limit: 5, orderBy: [count_DESC], filter: {datetime_geq: $start, datetime_lt: $end, requestSource: \"eyeball\"}) { count avg { sampleInterval } sum { visits edgeResponseBytes } dimensions { coloCode } } } } }",
  "graphql_variables": "{\"zoneTag\": \"<zone id>\", \"start\": \"2026-07-01T00:00:00Z\", \"end\": \"2026-07-15T00:00:00Z\"}"
}

Web Analytics / RUM (account-scoped datasets: rumPageloadEventsAdaptiveGroups, rumPerformanceEventsAdaptiveGroups, rumWebVitalsEventsAdaptiveGroups):

json
{
  "operation": "graphql_query",
  "graphql_query": "query Rum($accountTag: string, $start: Time, $end: Time) { viewer { accounts(filter: {accountTag: $accountTag}) { rumPageloadEventsAdaptiveGroups(limit: 100, orderBy: [count_DESC], filter: {datetime_geq: $start, datetime_lt: $end}) { count sum { visits } dimensions { requestPath } } } } }",
  "graphql_variables": "{\"accountTag\": \"<account id>\", \"start\": \"2026-07-01T00:00:00Z\", \"end\": \"2026-07-15T00:00:00Z\"}"
}

DNS analytics: dnsAnalyticsAdaptive / dnsAnalyticsAdaptiveGroups (zone- and account-scoped). Notes: a query spans at most 10 zones or 1 account; the user quota is 300 queries per 5 minutes; wide time ranges are sampled (multiply by sampleInterval for estimates). Web Analytics site CONFIG (create/list sites) lives on REST under accounts/{account_id}/rum/site_info — the cf CLI has no rum commands yet, and those endpoints also need the API token.

The full cf surface via custom

json
{ "operation": "custom", "command": "accounts list" }
{ "operation": "custom", "command": "dns records get <record-id> --zone example.com" }
{ "operation": "custom", "command": "registrar domains list" }
{ "operation": "custom", "command": "zones get --zone example.com" }
{ "operation": "custom", "command": "dns analytics report --zone example.com" }

Discovery helpers when unsure of a command's shape:

  • { "operation": "custom", "command": "agent-context dns" } — cf's built-in per-product agent context (also agent-context --list for the product catalogue).
  • { "operation": "custom", "command": "schema zones list" } — the API schema behind a command.
  • Append --dry-run to any write command to validate without executing.

Quoting and escaping

command is parsed with shlex.split — wrap JSON bodies in single quotes: custom: "dns records create --zone example.com --body '{\"type\":\"A\",...}'".

Authentication

Two independent paths; the token wins when both exist (cf's documented resolution order):

  1. OAuth login — Credentials Modal → Cloudflare → Login (cf opens the browser itself; localhost callback, so the browser must be on the server's machine), or cf auth login in a terminal. The OAuth grant is a FIXED scope set: zones, DNS (incl. dns_analytics:read), accounts, registrar, Workers — but NO Web Analytics/RUM or zone analytics scopes, and no way to request more.
  2. API token or Global API Key — pasted in the credentials panel (or CLOUDFLARE_API_TOKEN / CLOUDFLARE_API_KEY+CLOUDFLARE_EMAIL in the server env; panel values take precedence). Required for graphql_query and anything else outside the OAuth scopes. Scoped token: dash.cloudflare.com/profile/api-tokens with the permission groups the task needs. Global API Key (cfk_ prefix): full access, needs the Account Email field filled alongside it.

If a command fails with an authentication or 403 error, tell the user which permission group the token needs; don't ask them to paste a token in chat.

Best practices

  1. Run whoami first when auth state is unknown — it returns the authenticated email and scopes without side effects.
  2. Pass zone as the domain name (cf resolves it to the zone ID).
  3. Preview writes with --dry-run via custom when the user's intent is ambiguous.
  4. Destructive operations (zone deletes, record deletes) — confirm with the user before running unless they explicitly asked.
  5. Surface cf error messages verbatim — don't paraphrase.

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

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

Work with Cloudflare via the official cf CLI — check auth identity, list zones, list/create/delete DNS records, query the GraphQL Analytics API (zone traffic, Web Analytics/RUM), and run any other cf command. Output is parsed JSON.

لماذا تستخدم Cloudflare Skill على TypingMind؟

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

كيف أثبّت Cloudflare Skill في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/zeenie-ai/OpenCompany/tree/main/server/skills/cloudflare/cloudflare-skill. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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