Preface¶
In pharmaceutical product strategy, patient subtypes and treatment regimens are often organized into matrices, but the cost of reading them remains high: determining which cells are worth investing resources in, which should be observed, and which should be avoided is hard to align with just text notes. Manually coloring tables is time-consuming and prone to inconsistent standards among different people.
Below is an introduction to the “Competition Heat Color Rendering” Skill on SkillHub. Designed for Agent workflows, it reads subtype × regimen matrix inputs, performs red/yellow/green coloring based on the competitive landscape, and outputs a “Heatmap Battlefield Map” to assist in judging resource allocation priorities.
What is this¶
Competition Heat Color Rendering (coordinate @baitongai/competition-heat-color-rendering) is released by Baitong AI Service Platform. It is classified as data-analysis in SkillHub, sourced as enterprise, and current version 1.0.0.
Official Description: Reads patient subtype and treatment regimen matrix data, automatically colors it red/yellow/green based on the competitive landscape (monopoly / chaotic battle / blank), generates an intuitive “Heatmap Battlefield Map”, and assists in formulating “Priority Entry, Observe, or Avoid” resource allocation strategies.
SkillHub Page: https://www.skillhub.cn/skills/baitongai/competition-heat-color-rendering
API Identifier: https://api.skillhub.cn/baitongai/competition-heat-color-rendering
Core Features¶
The following capabilities come from the official description and public reference documents within the skill package, which can be cross-referenced with the references/ directory after installation.
Three-color Competition Semantics¶
The official external description maps the three colors to:
- Red: Monopoly pattern, high cost of direct competition.
- Yellow: Chaotic battle pattern, requires differentiation or nurturing.
- Green: Blank or weak competition, suitable for priority positioning.
The methodology within the skill package (references/heat_map_methodology.md) further explains: coloring is determined by two dimensions: Opportunity Score and Competitor Positioning Strength (input usually comes from upstream “S5 Treatment Regimen Matrix” output), and gives a complete decision matrix. For example, when opportunity is high and competitors are only weak or blank, it tends towards green; when competitors are strong and opportunity is weak, it tends towards red.
Edge Adjustment Rules¶
The same document defines adjustment rules such as R1–R7, used for downgrading or recoloring in scenarios like off-label use, guideline barriers, or upcoming competitor launches, and requires recording the colors before and after, rule number, and reasoning.
Output Format¶
The reference example (references/example_competitive_heat_map.md) shows the transition process from the S5 matrix summary to step-by-step cell determination and the final battlefield map description; the package also provides assets/heat_map_template.html as a heatmap display template.
Enterprise Authentication (Mandatory Pre-read)¶
The SkillHub tag requires_api_key=false indicates that no platform API Token needs to be configured when installing the SkillHub CLI, but the skill package SKILL.md indicates this is a Protected Capability: Python 3.8+ is required before execution, and authorization must be completed via scripts/auth.py within the package; business details need to be fetched from the cloud protected commands via scripts/protected.py before proceeding. This process is related to WorkBuddy user JWT and Baitong Service Platform account binding; unauthorized attempts should not deduce full business results locally.
Installation and Activation¶
1. Install SkillHub CLI (if not yet installed)¶
First, check if CLI already exists:
command -v skillhub && skillhub --version
If not installed, follow the official SkillHub installation documentation (CLI only):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
Documentation source: https://www.skillhub.cn/install/skillhub.md.
2. Install this Skill¶
The official CLI search result shows the installation method:
skillhub install competition-heat-color-rendering --namespace baitongai --dir <current Agent's skills directory>
--dir must point to the current Agent’s actual skills directory, otherwise the skill will not be loaded. Common paths (also from the installation doc above) include:
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project.
After successful installation, the CLI will prompt: Installed: @baitongai/competition-heat-color-rendering. Restart or refresh the Agent to trigger this Skill in the conversation.
Typical Usage¶
The reproducible link provided by the public reference documentation is as follows (without relying on fabricated data).
Prepare Input¶
Upstream should provide or aggregate rows of the Patient Subtype × Treatment Regimen matrix, including fields like Competitor Positioning Strength and Opportunity Score; the example table also includes Scale, Guideline Recommendation, and Barrier markers to facilitate triggering R1–R7 adjustment rules. The official example uses the “Acute Decompensated Heart Failure” product line as the disease background to demonstrate the complete determination of 4 subtype cells.
Color by Matrix¶
- Extract row-by-row data from the matrix and perform integrity checks (are Positioning Strength, Opportunity Score, Barriers, etc., complete?).
- For each “Subtype × Regimen” cell, use the decision matrix to get the base Red/Yellow/Green.
- Check R1–R7 sequentially, downgrade or recolor if necessary, and record the reasoning.
- Summarize into a Heatmap Battlefield Map, and provide strategic summaries like “Priority Breakthrough,” “Differentiate & Observe,” “Avoid,” or “Find a Gap” for Green/Yellow/Red zones (you can reference the Step structure in the example document).
In an Agent, you can use natural language to describe the task, for example: “Based on the S5 Treatment Regimen Matrix in the attachment, output the Heatmap Battlefield Map according to the Competition Heat Color Rendering rules, and list priority action items for the green zone.” If the environment meets the SKILL.md requirements, the Agent will first complete the Python environment and auth.py --ensure, then fetch the protected workflow to execute the above steps.
Authorization Check (Automatic Step inside Agent)¶
The authorization entry specified by SKILL.md is:
$PYTHON_CMD scripts/auth.py --ensure
Continue after outputting AUTH_OK; for the first time, AUTH_REQUIRED needs to obtain a JWT via WorkBuddy connect_cloud_service and execute --bind-jwt, then re-run --ensure. After passing, execute:
$PYTHON_CMD scripts/protected.py
Only after obtaining the protected instructions should you proceed with coloring and mapping to avoid outputting business conclusions without authorization.
Applicable Scenarios and Notes¶
Who is it for
- Pharmaceutical industry Product Managers, Strategic Planning, or Medical Affairs teams who already have internal Subtype × Regimen matrices or S5-like structured outputs and need a unified coloring standard and a quick way to generate a battlefield view.
- Teams using Agents that support Skill directories (e.g., Cursor, Claude Code, Codex) and can complete authentication with a Baitong enterprise account.
Limitations and Notes
- Source is enterprise; the core decision-making process is part of the cloud-protected content, and only the public methodology and examples are available locally, so you cannot assume that all steps can be reproduced offline.
- The coloring logic depends on the quality of the input matrix; the definitions of Positioning Strength and Opportunity Score must be consistent with the upstream S5, otherwise the color conclusions will shift.
- Adjustment rules include compliance-related scenarios (e.g., off-label R1); actual decision-making still needs to be combined with legal and medical approval, and the color results should not be equated with final deployment instructions.
- SkillHub Statistics (as of data scraping): Score 100000, Downloads 661, Installations 0; Version 1.0.0. Indicators may change with platform updates; refer to the SkillHub detail page.
Conclusion¶
Competition Heat Color Rendering gathers scattered matrix rows into a Red/Yellow/Green “Heatmap Battlefield Map”, moving “Entry, Observe, Avoid” from verbal discussion to grid-level conclusions that can be compared. If your matrix data is ready and enterprise authentication can be completed within an Agent, you can install @baitongai/competition-heat-color-rendering on SkillHub and try running a round based on the public methodology and examples.
Official address: https://www.skillhub.cn/skills/baitongai/competition-heat-color-rendering