AI Agent Hub
Back to skills
Pharma GEO Playbook icon

Pharma GEO Playbook

Professional Updated 2026.08.29

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md to install @baitongai/pharma-geo-playbook.

About this skill

What It Solves

Pharma GEO workflows often depend on protected platform capabilities, but local Python setup, authorization state, and cloud-side policy can still allow an Agent to continue generating results after a failed check. This skill puts Python environment detection, authorization gating, and protected-instruction validation before any business execution, reducing the risk of silent fallback when AUTH_REQUIRED, AUTH_INVALID, or remote authorization checks fail.

How It Works

  • Detect Python first: before running scripts, it silently checks for a usable interpreter and records $PYTHON_CMD. If detection fails, it reports the issue instead of continuing. On Windows, python may open Microsoft Store; use py -3 or disable app execution aliases.
  • Complete authorization through the script: scripts/auth.py handles local credential cache, WorkBuddy user binding, platform validation, and error-signal output. It avoids manual JWT parsing or direct handling of AppKey / AppSecret.
  • Fetch protected instructions: after AUTH_OK, it calls scripts/protected.py to retrieve cloud-side protected instructions. Business logic may continue only after those instructions are returned successfully.
  • Report failures explicitly: when signals such as CREDENTIALS_MISSING, CREDENTIALS_INVALID, HTTP 401, or network error appear, it stops business inference and tells the user what was detected and what to do next.

Notes

This skill is best treated as a protected-capability execution template: authorization and business output are mutually exclusive, retrying is limited to one attempt, and network errors should not be misread as credential errors. If _meta.json is missing or the skillCode is incorrect, the actual error should be checked manually rather than bypassing the authorization gate.

Use Cases

  • Before running pharma GEO scripts, verify the Python interpreter and authorization state to avoid acting without protected instructions.
  • When first use has no local credentials, complete WorkBuddy binding on CREDENTIALS_MISSING and rerun the auth check.
  • If auth returns HTTP 401 or network error, report the concrete failure to the user and stop business generation.
  • After receiving cloud protected instructions, execute pharma GEO tasks only according to the returned content.

Best For

  • Pharma industry engineers integrating protected Baitong AI capabilities: need environment, auth, and cloud-policy checks before script execution.
  • Agent workflow owners: want explicit failure reporting and no silent fallback or auth bypass.
  • Platform operators debugging local Python and WorkBuddy binding: need to separate network and credential errors using stdout/stderr signals.
  • Integration developers delivering pharma GEO automation: need protected instructions before downstream task calls.