ArcGIS Pro ATBX Toolbox Encryption: Automating .atbx Script Encryption in the Release Pipeline

Introduction

In ArcGIS Pro, the Python source code of Script Tools can be embedded within .atbx toolboxes. When distributing externally, you typically need to open the Execution tab of each tool’s properties page, click Encrypt individually, and set a password. Once you have many tools, this manual process becomes slow and error-prone.

For .pyt toolboxes, ArcPy provides interfaces such as EncryptPYT / DecryptPYT, which are convenient for scripting. .atbx is not equivalent to that path: a common community need is to “handle only .atbx files and batch-encrypt embedded scripts” rather than falling back to .pyt or clicking through the GUI one by one. The Skill described below targets this kind of publishing and delivery workflow.

What Is This

ArcGIS Pro ATBX Toolbox Encryption is a community Skill on SkillHub (identifier: @user_0d6e251a/arcgis-pro-atbx-encryption-skill, current version 0.2.0, category: dev-programming, publisher: user_0d6e251a, source: community).

The official description positions it as: automated encryption, result verification, and troubleshooting for ArcGIS Pro .atbx Script Tool source code within a publishing workflow. It is applicable when you need atbx-specific automation—not a .pyt solution, and not manually encrypting each tool through the Pro interface.

Core Features

The following capabilities are consistent with the SkillHub page and the official API listing. Features not mentioned in the documentation are not extended upon here.

  1. Inspect ATBX structure: Examine the contents of an .atbx archive to confirm embedded Script Tools and the scope of encryption before publishing.
  2. Invoke AfCore.dll encryption: Use AfCore.dll from the ArcGIS Pro environment to encrypt embedded Script Tool code, with support for user-defined passwords.
  3. Folder batch processing: Batch-encrypt multiple .atbx files in a directory to reduce repetitive GUI operations.
  4. ArcPy verification: Verify that encrypted tools can still be imported/executed properly, reducing the risk of delivering “encrypted but non-functional” tools.
  5. Environment diagnostics: Troubleshoot issues related to the ArcGIS Pro bundled Python, AfCore, and other environment concerns, helping to pinpoint failure causes in CI or dedicated build environments.

The page states requires_api_key=false; installing this Skill does not depend on any additional API key.

Installation & Activation

The installation process follows the official SkillHub documentation: first prepare the skillhub CLI per SkillHub Installation & Priority Source Configuration, then install this Skill. The installation target provided on the SkillHub page is:

@user_0d6e251a/arcgis-pro-atbx-encryption-skill

Confirm the CLI is installed on your machine:

command -v skillhub && skillhub --version

If not installed, you can use the official installation script (full install includes default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

Install the Skill into the skills directory that your current Agent actually reads (you must use --dir; otherwise it defaults to ./skills/ and may not be recognized). Common paths are listed below—choose the one matching your client:

Agent / Environment Skills directory (from official installation docs)
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project
Windsurf ~/.codeium/windsurf/skills/ or .windsurf/skills/ under the project

Example (replace <skills directory> with the corresponding path from the table above):

skillhub install @user_0d6e251a/arcgis-pro-atbx-encryption-skill --dir <skills directory>

After installation, restart or refresh the skills directory per your Agent’s conventions to activate the Skill. As of the SkillHub data snapshot, this Skill has a rating of 100000 and 1010 downloads.

Typical Usage

This Skill follows the standard SKILL.md format: within a coding Agent that has the Skill enabled, describe your .atbx publishing task in natural language, and the Agent will follow the Skill’s guidance to execute inspection, encryption, verification, and diagnostic steps. The public page does not provide a standalone CLI sub-command list, so the descriptions below represent reproducible task descriptions rather than fabricated specific script names.

  1. Single-file encryption: Specify the path to the .atbx file, the ArcGIS Pro installation location (or the environment containing propy / AfCore.dll), and the encryption password policy; request that the Agent first inspect the archive, then encrypt the embedded scripts, and finally perform import / trial-run verification using ArcPy.
  2. Directory batch: Provide the folder path to process, whether to recurse, and the password rule (uniform password or per-file differentiation—as you explicitly specify in the conversation), and request a summary of success/failure reasons for each file.
  3. Pipeline or build-machine troubleshooting: When encryption or verification fails, direct the Skill to focus on diagnosing Pro bundled Python and AfCore path, bitness, or version mismatch issues, and to provide actionable checklist items.

Following the steps above, the publishing side can consolidate “encryption + verification” into a repeatable Agent session or automation specification, rather than manually opening each Script Tool in Pro.

Applicable Scenarios & Cautions

Who It’s For

  • GIS developers or implementation teams maintaining a large number of .atbx Script Tools that require batch encryption before release.
  • Scenarios where you want to conceal embedded Python source code in delivery packages while still automatically verifying tool executability during the build phase.
  • Teams whose build machines or script environments already have ArcGIS Pro installed and are willing to orchestrate AfCore-related encryption steps through an Agent.

Cautions

  • This Skill focuses on .atbx embedded scripts; it does not force the workflow onto the .pyt EncryptPYT path. Ensure the toolbox format matches your choice.
  • Encryption depends on a legitimate ArcGIS Pro installation on the local machine and an available AfCore.dll; without a Pro environment, this Skill cannot substitute for the official runtime components.
  • Passwords are defined and safeguarded by you; the documentation does not describe any official Esri password recovery mechanism. Losing the password may render decryption impossible—establish a backup strategy before publishing.
  • Public documentation does not list differentiated configuration options per Agent; beyond the installation path, Cursor, Codex CLI, Claude Code, etc. all primarily operate on the model of “install into the corresponding skills directory + trigger in conversation.” Refer to each client’s documentation for details.

Conclusion

The ArcGIS Pro ATBX Toolbox Encryption Skill unifies .atbx Script Tool inspection, AfCore encryption, batch directory processing, ArcPy verification, and environment diagnostics into a single publishing workflow. It is ideal for teams that want to avoid clicking Encrypt tool-by-tool and need atbx-specific automation.

  • SkillHub page: https://www.skillhub.cn/skills/user_0d6e251a/arcgis-pro-atbx-encryption-skill
  • Official API endpoint: https://api.skillhub.cn/user_0d6e251a/arcgis-pro-atbx-encryption-skill
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye