Pathological Section Analysis: Utilizing Agent Skill to Complete Slice Upload and AI Diagnosis Result Polling

Preface

Pathology slide analysis typically involves interfacing with multiple HTTP endpoints for login/authentication, object storage upload, analysis task creation, and result querying. If these steps are hardcoded into business scripts, it is difficult for an Agent to automatically orchestrate them based on context during a conversation; conversely, simply giving the model a verbal explanation often leads to missed steps or incorrect ordering. The following introduces the “Pathology Slide Analysis” community Skill on SkillHub. It encodes the official six-step API workflow into SKILL.md, allowing clients supporting Skills—such as Cursor, Claude Code, and Codex—to execute the process on demand.

What is this

“Pathology Slide Analysis” is a professional Skill located at the SkillHub coordinate @user_ef14ddb2/analysis-pathology-slice. The current version is 1.0.0, the source is community, and it is maintained by the publisher user_ef14ddb2.

One-sentence positioning: Submit pathology slides, initiate analysis requests, and retrieve AI diagnosis results through a six-step API workflow. The official description specifies applicable scenarios including login/authentication, obtaining COS credentials, file upload, creating records, and result polling. The Skill tag is requires_api_key=true, meaning a valid API Key must be prepared before use (refer to the documentation within the Skill package for specific field names).

SkillHub page statistics (subject to page display): Rating 100000, Downloads 787, Installs 6.

Core Features

The verified capabilities below are derived from the SkillHub introduction; unpublished interface details are not expanded upon:

  1. Login & Authentication: The first step of the workflow, establishing a valid session or token for subsequent calls.
  2. Obtain COS Credentials: Preparing Object Storage (COS) access credentials for the slide file upload.
  3. File Upload: Submitting the pathology slide to a storage location recognizable by the backend.
  4. Create Analysis Record: Registering the analysis task on the business side.
  5. Initiate Analysis Request: Triggering the AI pathology analysis.
  6. Result Polling: Polling for status according to the workflow until the AI diagnosis result is obtained if the analysis is not yet complete.

When a user requests “pathology slide analysis” or “upload a slide and view diagnosis results” in a conversation, the Agent should load this Skill and organize the calls in the sequence above, rather than guessing the interfaces sporadically.

Installation & Activation

Follow the unified SkillHub instructions for installation skillhub.cn/install/skillhub.md. First, confirm if the skillhub CLI is available on your machine:

command -v skillhub && skillhub --version

If it is not installed, you can use the officially recommended one-click script (full installation includes CLI and default Skills):

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

To install only the CLI:

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

When installing this Skill, you must use --dir to point to the current Agent’s skills directory; otherwise, it will default to ./skills/, which the client may not recognize. Example:

skillhub install user_ef14ddb2/analysis-pathology-slice --dir <skills directory>

Common skills directories for various clients (excerpted from official installation docs):

  • Claude Code: ~/.claude/skills/
  • Cursor: ~/.cursor/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

The SkillHub page also provides natural language installation prompts that can be sent directly to the Agent:

Please install `@user_ef14ddb2/analysis-pathology-slice` according to https://skillhub.cn/install/skillhub.md.

After installation, restart or refresh the Skills list as required by your client. Since requires_api_key=true, please configure the API Key in the environment or the location agreed upon by the Skill; otherwise, authentication-related steps cannot be completed.

Typical Usage

The official documentation does not provide copy-paste HTTP examples on public pages; the reproducible usage is “Install Skill + Describe business goal in conversation,” allowing the Agent to read the six-step process within SKILL.md.

  1. Install @user_ef14ddb2/analysis-pathology-slice to the current Agent’s skills directory as described in the previous section.
  2. Configure the API Key (refer to the Skill package instructions for specific variable names).
  3. Describe the local slide path or file to be analyzed in the conversation, and explicitly request the full pathology slide analysis workflow until the AI diagnosis result is returned.

Example Prompt (Illustrative, not official fixed text):

I have a pathology slide that needs analysis. Please use the installed Pathology Slide Analysis Skill to complete authentication, COS upload, record creation, analysis initiation, and result polling according to the six-step API workflow, and finally summarize the AI diagnosis conclusion for me.

Following the steps above, the Agent should process login/authentication, COS credentials, upload, record creation, analysis, and polling sequentially, rather than skipping intermediate links to guess conclusions directly.

Applicable Scenarios & Notes

Who is it for

  • Developers or integrators who have activated the pathology analysis API on SkillHub or partner platforms and possess an API Key.
  • Users who want to drive a complete slide analysis pipeline via natural language in environments like Cursor / Claude Code / Codex, rather than writing scripts manually every time.

Limitations & Cautions

  • This Skill originates from the community. Behavior and backend SLAs are subject to the actual service provider; this article does not describe unpublished domains, paths, or response formats.
  • Diagnosis results come from AI and upstream services and cannot replace the final interpretation of a clinical pathologist. Products launched or facing patients must handle compliance and liability independently.
  • The six-step workflow includes object storage and polling. Duration may increase during large file uploads or queue congestion. Reasonable timeout and retry strategies must be set on the business side (refer to the Skill’s internal guidance for specifics).
  • If skillhub is unavailable in a sandbox or restricted network, the installation commands must be executed in an environment allowing external network access.

Conclusion

“Pathology Slide Analysis” consolidates slide submission, analysis triggering, and AI diagnosis retrieval into a six-step API workflow executable by an Agent. It is suitable for integration into conversational development environments provided an API Key is available. For details and installation entry points, please refer to the SkillHub page and API coordinate page:

  • https://www.skillhub.cn/skills/user_ef14ddb2/analysis-pathology-slice
  • https://api.skillhub.cn/user_ef14ddb2/analysis-pathology-slice
羽毛球分组比赛记分
小程序二维码

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

Xiaoye