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ファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    danmapsがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルScaffoldをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/danmaps/gis-agent-skills/tree/main/skills/scaffold
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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で使用

TypingMindのチャットでScaffoldを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にScaffoldを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Scaffoldは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じ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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Scaffold」では何ができますか?

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

TypingMindでScaffoldを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Scaffoldはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにScaffoldをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/danmaps/gis-agent-skills/tree/main/skills/scaffoldを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Scaffoldを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Scaffoldは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもScaffoldを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Scaffold」は無料ですか?

danmapsがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇