شعار Kml Author

Kml Author

المجتمع
danmaps
kml-author

Author clean, portable KML/KMZ with deliberate structure, shared styles, links, regions, and validation

نظرة عامة

الناشرdanmaps
المستودعgis-agent-skills
اسم المهارةkml-author
النجوم
30
التفريعات
2
الملفات المرفقة
1
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

KML Author

Author or refactor KML/KMZ for reliable geographic visualization. Prefer readable structure, shared styles, portable resources, and the simplest delivery pattern that fits the dataset.

Intent

Use KML as a visualization and delivery format, not as a substitute for a full GIS database. Produce KML that is understandable to a person, valid enough to test mechanically, and portable across the intended KML clients.

Inputs

  • task_description (string)
  • source_data (string, optional): layer, GeoJSON, feature class, existing KML/KMZ, or described features
  • layer_inventory (string, optional): layers to include, their geometry types, and any grouping or folder expectations
  • output_name (string, optional)
  • target_client (string, optional): Google Earth web, Google Earth Pro, ArcGIS, or general KML 2.x
  • delivery_mode (string, optional): kml, kmz, hosted_kml, network_link
  • scale_pattern (string, optional): small/static, large/static, frequently_updated, tiled_by_region
  • style_requirements (string, optional): desired visual outcome such as icons, colors, line weights, fills, folders, or highlight behavior
  • symbology_requirements (string, optional): compatibility constraints, acceptable simplifications, and renderer behaviors that must survive across target clients
  • popup_requirements (string, optional): fields, HTML, media, and what should or should not appear in descriptions
  • label_requirements (string, optional): whether labels are required, how they should behave, and any client-specific expectations
  • interaction_requirements (string, optional): popups, folders, time, tours, overlays, camera/view behavior
  • size_constraints (string, optional): feature count, expected file size, packaging limits, and performance concerns
  • constraints (string, optional)

If the target client is unknown, author conservative KML 2.x and flag client-specific extensions or behavior.

Required alignment pass

Before authoring, refactoring, or recommending structure, align with the user through a targeted QA pass. Keep it brief, but do not skip questions that affect portability, structure, or client behavior.

Confirm or ask about:

  1. which layers are included, what geometry type each layer uses, and whether they should stay separate or be grouped
  2. which KML clients must work and whether Google Earth, ArcGIS, or browser viewers all need acceptable behavior
  3. what the desired styling is, which symbology must survive export, what can be simplified, and whether a separate symbology compatibility check is needed before authoring
  4. what popup content should appear, which fields should be hidden, and whether HTML, media, or links are required
  5. whether labels are required, what text should label features, and how important client-specific label behavior is
  6. whether file size, feature count, responsiveness, offline use, or attachment bundling creates KML vs KMZ vs NetworkLink constraints
  7. whether refresh behavior, hosting, sharing, or update cadence matters
  8. any additional acceptance criteria that would change document hierarchy, styles, packaging, or validation

If those answers are missing or ambiguous, stop and ask instead of inventing requirements.

Authoring rules

1. Start with the document hierarchy

Use one root <kml> element and normally one <Document> beneath it. Inside the document:

  • group meaningful themes with <Folder>
  • give user-facing features clear <name> values
  • keep IDs stable when styles, updates, or external references depend on them
  • do not create folder nesting merely to mirror a source geodatabase

Prefer a hierarchy that helps a human browse the Places panel.

2. Reuse styles

For repeated symbology:

  • define shared <Style id="..."> or <StyleMap id="..."> elements once in the document
  • reference them with <styleUrl>#style-id</styleUrl>
  • use inline styles only for genuinely unique features
  • keep normal/highlight pairs in a StyleMap when rollover or selection behavior matters

Do not duplicate identical icon, line, polygon, or label styles on every Placemark.

3. Author geometry deliberately

KML coordinates are longitude, latitude, and optional altitude. Preserve that ordering.

Choose geometry intentionally:

  • <Point> for locations
  • <LineString> for routes and linear features
  • <Polygon> with explicit outer and inner rings for areas
  • <MultiGeometry> only when one logical feature truly contains multiple geometries
  • <GroundOverlay> for georeferenced raster imagery when appropriate

Specify altitude behavior only when it matters. Do not invent Z values. Be cautious with extrusion, tessellation, and client-specific altitude modes because display behavior varies by client.

4. Treat descriptions as UI

For <description> content:

  • keep the popup concise and readable
  • escape XML correctly or use CDATA when embedding HTML
  • avoid dumping every source field into a balloon
  • omit null, internal, or meaningless attributes
  • prefer human labels over raw database field names

If rich HTML depends on a particular client, call that out.

5. Choose KML versus KMZ intentionally

Use plain .kml when the document is small and has no bundled local resources.

Use .kmz when icons, images, overlays, models, or other local resources should travel with the document. For KMZ:

  • keep the primary KML at the archive root, conventionally doc.kml
  • use relative paths for bundled resources
  • avoid machine-specific absolute file paths
  • include only resources actually referenced by the KML
  • verify filename case and paths after packaging

6. Use NetworkLinks for separately managed or refreshed content

Use <NetworkLink> when content should be loaded from another KML/KMZ resource, maintained independently, refreshed, or subdivided for delivery.

When proposing a NetworkLink:

  • state the linked resource URL or relative path
  • define refresh/view-refresh behavior only when needed
  • avoid aggressive refresh intervals without a real operational requirement
  • keep authentication and hosting constraints explicit

Do not use NetworkLinks just to make a small static file more complicated.

7. Use Region + LOD for large hierarchical content

For large datasets, imagery, or regionated KML, consider <Region> with <LatLonAltBox> and <Lod> so content activates according to view extent and screen size.

When regionating:

  • define non-overlapping or intentionally overlapping geographic partitions
  • choose minLodPixels and maxLodPixels based on desired visibility, not arbitrary numbers
  • use parent/child NetworkLinks when progressive loading is needed
  • ensure the parent hierarchy still gives the user useful context while child content is unloaded

Do not recommend regionation for a few hundred lightweight static features unless testing shows a real performance problem.

8. Keep extensions isolated

Prefer portable OGC KML constructs. Use Google gx: extensions only when the requested behavior requires them and the target client supports them.

When an extension is used, identify:

  • why it is needed
  • the namespace declaration
  • the expected client dependency
  • a portable fallback when practical

Decision guide

Choose the simplest pattern that fits:

  • Small static dataset: one KML document with folders and shared styles
  • Static document with icons/images/models: KMZ with relative resources
  • Large geographic dataset: regionated KML/KMZ with Region + LOD, often loaded through NetworkLinks
  • Frequently updated hosted content: small entry KML containing one or more NetworkLinks
  • Client-specific experience: conservative core KML plus explicitly isolated extensions

Validation

Before returning a finished artifact or authoring plan, check:

  1. XML is well formed.
  2. The KML namespace is declared correctly.
  3. Coordinates use longitude,latitude[,altitude] and are within plausible bounds.
  4. Polygon rings are structurally valid and holes are represented as inner boundaries.
  5. Every local styleUrl resolves to an existing style or style map.
  6. Shared styles use unique IDs.
  7. NetworkLink targets are resolvable in the intended deployment context.
  8. Region bounds are sane and LOD values do not accidentally hide all content.
  9. KMZ resources use valid relative paths and are actually present in the archive.
  10. No credentials, tokens, private filesystem paths, or unintended internal attributes are embedded.
  11. The result is tested in the stated target client when client behavior matters.

When tooling is available, validate against an OGC KML schema or conformance checker in addition to opening the file in a viewer.

Output

Return the artifacts needed for the task, which may include:

  • complete KML XML ready to save
  • a KMZ packaging manifest and folder layout
  • a refactor plan for an existing KML/KMZ
  • shared style definitions
  • a NetworkLink + Region/LOD hierarchy
  • a concise validation report
  • client-compatibility notes and any assumptions

For generated KML, prefer a complete document over disconnected XML fragments unless the user explicitly asks for a fragment.

Example

User: “Build a KMZ for 20,000 inspection points. Use three status icons and keep Google Earth responsive.”

Output: Recommend shared status styles, geographic partitioning, child KML resources with Regions/LOD, a small root doc.kml containing NetworkLinks, a KMZ resource layout, and validation checks for coordinates, links, styles, and archive paths.

Related skills

  • Use /symbology-compat when converting ArcGIS symbology for Google Earth/KMZ delivery.
  • Use /agol-publish-checklist when the real destination is ArcGIS Online rather than KML delivery.
  • Use /analysis-readiness-check before authoring when geometry, CRS, nulls, or schema quality are uncertain.

Safety

Do not invent coordinates, source attributes, URLs, credentials, refresh requirements, or client capabilities. Preserve source geometry and semantics unless the user explicitly requests transformation. Flag behavior that depends on a specific KML client.

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

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

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

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

Author clean, portable KML/KMZ with deliberate structure, shared styles, links, regions, and validation

لماذا تستخدم Kml Author على TypingMind؟

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

كيف أثبّت Kml Author في TypingMind؟

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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