Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Bailian Maxperf

ASecurity

Optimize Alibaba Bailian provider for accurate token statistics and official model configurations. Fixes token usage mapping (prompt_tokens → input_tokens) and updates 8 models to 2026 specs.

2 stars
0 votes
0 copies
0 views
Added 9/29/2026
datapythonbash

Security Analysis

A92/100
mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 10 files and shows the line behind each finding

Scanned 9/29/2026

$npx -y skills add Arry8/openclaw-edge --skill bailian-maxperf --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bailian Maxperf?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Bailian Maxperf
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/arry8-bailian-maxperf/badge)](https://www.skillsdirectory.com/skills/arry8-bailian-maxperf)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: bailian-maxperf
description: "Optimize Alibaba Bailian provider for accurate token statistics and official model configurations. Fixes token usage mapping (prompt_tokens → input_tokens) and updates 8 models to 2026 specs."
metadata: { "openclaw": { "emoji": "🚀", "requires": { "bins": ["sed", "python3"] } } }
---

# Bailian MaxPerf - 百炼满血优化技能

## 技能目标

让阿里百炼 (Alibaba Bailian) 在 OpenClaw 中发挥**100% 性能**,包括:
- ✅ Token Usage 准确统计
- ✅ 模型窗口大小精确配置
- ✅ 配置自动验证

## 问题清单

### 1. Token Usage 统计失效 ❌
**现象**: `/status` 显示 `Context: 0/128k` 或 `?/1.0m`  
**原因**: 百炼返回 `prompt_tokens`/`completion_tokens`,OpenClaw 读取 `input_tokens`/`output_tokens`  
**解决**: 添加字段映射 + `supportsUsageInStreaming: true`

### 2. 模型窗口配置不准确 ⚠️
**现象**: Context 窗口与实际不符  
**原因**: 部分模型配置值过时  
**解决**: 根据阿里官方文档更新

## 执行方法

```bash
cd ~/.openclaw/workspace/skills/bailian-maxperf
./scripts/maxperf.sh
openclaw gateway restart
```

## 优化效果

### 修复前
```
❌ Token 统计:unknown
❌ Context 窗口:0/128k (?%)
```

### 修复后
```
✅ Token 统计:172k/262k (66%)
✅ Context 窗口:精确匹配官方
```

## 验证方法

```bash
# 1. 配置校验
openclaw status

# 2. 调用百炼模型
/chat 使用 qwen3.5-plus 测试

# 3. 查看 token 统计
openclaw status
```

## 注意事项

⚠️ **升级后需重新执行**: `npm install -g openclaw@...` 会覆盖运行时补丁

## 相关文件

- `SKILL.md` - 本文档
- `README.md` - 详细说明
- `scripts/maxperf.sh` - 自动化脚本
- `configs/bailian-models-official.json` - 官方模型配置参考

Attribution

Arry8Arry8
View sourceSee grades on GitHubMore from Arry8 →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Rank Tracker

This skill helps you track, analyze, and report on keyword ranking positions over time. It monitors both traditional SERP rankings and AI/GEO visibility to provide comprehensive search performance insights.

1821 votes

Youtube Competitor Analyzer

Find and analyze YouTube competitor channels using YouTube Data API v3. Discover competitors through keyword search, category matching, content similarity, and related channel discovery. Compare metrics, content strategies, and market positioning. Use when users want to (1) Find competitors for their YouTube channel, (2) Analyze competitor performance metrics, (3) Compare their channel against competitors, (4) Identify content gaps and opportunities, (5) Benchmark against similar creators, (6...

31 votes

Xlsx

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like \"the...

1798860 votes

Weather Fetcher

Instructions for fetching current weather temperature data for Karachi, Pakistan from wttr.in API

671710 votes

Weather

Get current weather and forecasts (no API key required).

486960 votes
View all in data →