شعار Scaffold

Scaffold

المجتمع
danmaps
scaffold

Turn an ArcPy script into a maintainable project structure without adding unnecessary architecture

نظرة عامة

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

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/danmaps/gis-agent-skills/tree/main/skills/scaffold
  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/scaffold .claude/skills/scaffold
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Scaffold

Help the user decide whether an ArcPy script should stay simple or grow into a small project, then scaffold only the structure the workflow actually needs.

Intent

Keep one-off ArcPy work lightweight, but introduce structure once the script has multiple steps, shared configuration, repeated runs, or script tool / Python toolbox reuse.

Inputs

  • task_description (string)
  • current_script_path (string, optional)
  • project_root (string, optional)
  • workflow_type (string, optional: single_script, batch, script_tool, python_toolbox)
  • constraints (string, optional)
  • target_environment (string, optional: ArcGIS Pro on Windows, scheduled task, toolbox)

Decision rule

Keep the script simple if it is truly one-off, has one entrypoint, and has little reusable logic.

Recommend scaffolding when any of these are true:

  • multiple ArcPy operations or repeated runs
  • configuration varies by environment, map, workspace, or date
  • logging/debugging is already painful
  • the script will become a script tool, .pyt, or scheduled job
  • pure Python logic can be separated and tested independently from ArcPy

Structure guidance

Prefer incremental structure like:

text
project/
├── src/<package_name>/
│   ├── cli.py                # script or tool entrypoint
│   ├── workflow.py           # reusable orchestration
│   ├── arcpy_ops.py          # ArcPy-only I/O and geoprocessing
│   ├── config.py             # config loading and validation
│   └── logging_utils.py      # shared logging setup
├── config/
│   └── settings.yaml         # paths, names, flags when appropriate
├── tests/
│   ├── test_workflow.py      # pure Python behavior
│   └── test_config.py
└── scripts/
    └── run_<task>.py         # optional thin launcher

Guidance:

  • Keep ArcPy-dependent code at the edges; keep transforms, naming, and decisions in pure Python.
  • Separate configuration from code. Prefer YAML for environment-specific paths, layer names, thresholds, and flags.
  • Centralize logging once, then reuse it from entrypoints and workflow code.
  • Keep CLI / script tool entrypoints thin; call reusable workflow functions.
  • For ArcGIS Pro + Windows, account for cloned conda environments, UNC paths, drive-letter paths, toolbox execution, and arcpy.AddMessage / file logging needs.

Migration pattern

Do not force a rewrite. Move an existing script in small steps:

  1. Keep the current script as the entrypoint.
  2. Extract config loading and logging.
  3. Move reusable workflow logic into workflow.py.
  4. Isolate ArcPy reads/writes in arcpy_ops.py.
  5. Add tests only for pure Python pieces first.

Testing boundaries

  • Test pure Python parsing, naming, batching, validation, and decision logic with normal unit tests.
  • Treat ArcPy calls as integration boundaries; mock only when it preserves behavior.
  • For toolboxes or script tools, test parameter mapping separately from geoprocessing logic.

Examples

Single script

A 40-line buffer/export script can stay small, but if it needs reusable paths and logging, move the buffer/export steps into workflow.py and keep scripts/run_buffer.py as a thin launcher.

Batch workflow

A nightly parcel refresh should use config/settings.yaml for source and target workspaces, workflow.py for iteration, and arcpy_ops.py for copy/append/update operations.

Script tool or Python toolbox

A .pyt or script tool should keep ArcGIS parameter definitions in the toolbox or entry script, then call shared code in src/<package_name>/workflow.py so the same logic can run outside ArcGIS Pro when needed.

Output

Return:

  • whether scaffolding is warranted now
  • a recommended folder tree
  • the first incremental refactor steps
  • testing boundaries between pure Python and ArcPy code
  • any ArcGIS Pro / Windows constraints that should shape the structure

Source material

Related skills

  • Use /arcpy-plan first to define the workflow.
  • Use /arcpy-script after scaffolding to generate or refactor implementation code.
  • Use /safety before enabling write operations against shared or production data.

Safety

Do not invent project context, data sources, or deployment assumptions. Recommend the smallest structure that supports the real workflow.

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

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

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

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

Turn an ArcPy script into a maintainable project structure without adding unnecessary architecture

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

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

كيف أثبّت Scaffold في TypingMind؟

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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