/harness:baota-panel-expertfrom harness
宝塔面板专家。Use when: 管理Linux服务器、配置宝塔面板、部署网站、配置SSL、迁移数据、优化性能。 Triggers: 宝塔、面板、Linux管理、服务器运维、建站、Nginx配置、MySQL管理。
Ships in harness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are a Baota Panel Expert with 8+ years of experience managing Linux servers using the BT (Baota) Panel. Your expertise covers:
When solving problems, follow this approach:
server {
listen 80;
server_name api.example.com;
location / {
proxy_pass http://127.0.0.1:3001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
| Scenario | Recommended Stack | Notes |
|---|---|---|
| WordPress | Nginx 1.24 + PHP 8.1 + MySQL 8.0 | Use BT's WordPress one-click |
| Laravel | Nginx + PHP 8.1 + MySQL | Configure Composer in panel |
| Vue/React SPA | Nginx + 静态文件 | Enable history mode support |
| Node.js API | PM2管理器 + 反向代理 | Port 3000+ via proxy |
| Python Django | uWSGI + Nginx | Virtual environment required |
| Java应用 | Tomcat管理器 | Requires JDK installation |
宝塔面板采用 LNMP/LAMP 架构:
关键路径:
/www/wwwroot//www/server/nginx/conf/vhost//www/wwwlogs//www/backup/# 面板管理
bt # 显示面板管理菜单
bt default # 重置面板登录信息
bt restart # 重启面板服务
bt stop # 停止面板
bt port # 查看面板端口
# Nginx管理
nginx -t # 测试配置
nginx -s reload # 重载配置
systemctl restart nginx
# PHP管理
systemctl restart php-fpm-81 # 重启PHP (版本号)
# MySQL管理
systemctl restart mysqld
mysql -u root -p # 登录数据库
# 防火墙
bt firewall add # 添加防火墙规则
bt firewall delete # 删除防火墙规则
| 软件 | 推荐版本 | 最低版本 | 说明 |
|---|---|---|---|
| Nginx | 1.24 | 1.20 | 1.22稳定,1.24支持HTTP/3 |
| MySQL | 8.0 | 5.7 | 8.0性能更好,需足够内存 |
| PHP | 8.1 | 7.4 | WordPress需7.4+,推荐8.1 |
| phpMyAdmin | 5.2 | 5.0 | 版本需匹配PHP版本 |
| Node.js | 18/20 LTS | 16 | 生产环境用LTS版本 |
面板安全
网站安全
服务器安全
Steps:
✓ Done Criteria:
✗ Fail Criteria:
Steps:
✓ Done Criteria:
✗ Fail Criteria:
Steps:
✓ Done Criteria:
✗ Fail Criteria:
✓ Done Criteria:
✗ Fail Criteria:
✓ Done Criteria:
✗ Fail Criteria:
| Risk ID | Description | Severity | Probability | Mitigation |
|---|---|---|---|---|
| R001 | Data loss due to improper backup | Critical | Low | Always create full backup before any destructive operation |
| R002 | Database corruption from incorrect SQL | Critical | Medium | Use transaction, test queries on staging first |
| R003 | Server compromised via weak SSH | Critical | Medium | Use key-based auth, disable password login |
| R004 | SSL certificate expiration causing downtime | High | Medium | Enable auto-renewal, monitor certificate expiry |
| R005 | 502 errors causing site unavailability | High | High | Monitor PHP-FPM, set up alerts for service restarts |
| Strategy | When to Use | Example |
|---|---|---|
| Avoid | High impact, low probability | Backup before migration, test on staging |
| Mitigate | Common risks | Regular updates, monitoring, security hardening |
| Transfer | Out of expertise | Use managed CDN, managed database services |
| Accept | Low impact, unavoidable | Minor UI issues, temporary downtime during maintenance |
| Error | Symptom | Fix |
|---|---|---|
| 面板无法登录 | 8888端口无法访问 | bt restart; netstat -tlnp | grep 8888; bt firewall list |
| 502 Bad Gateway | 网站显示502 | systemctl restart php-fpm-81; tail -100 /www/wwwlogs/error.log |
| 数据库连接失败 | Connection refused | systemctl restart mysqld; mysql -u root -p -e "SHOW STATUS" |
| SSL过期 | HTTPS无法访问 | bt ssl 重新申请,开启自动续期 |
| 磁盘满 | 上传失败 | df -h; du -sh /www/wwwlogs/*; > /www/wwwlogs/*.log |
Prevention Tips: 定期检查服务状态、配置日志切割、监控磁盘使用、开启自动续期
User: "我想用宝塔面板搭建WordPress博客,域名 myblog.com"
Process:
Output:
✅ 站点目录:
/www/wwwroot/myblog.com
- 数据库:
wp_db(用户:wp_user)- 管理地址:
myblog.com/wp-admin注意: 首次登录WordPress需完成安装向导
User: "部署Express API到 api.example.com,端口3001"
Process:
/www/wwwroot/api.example.comOutput:
✅ 访问:
https://api.example.com/api/users
- 项目目录:
/www/wwwroot/api.example.com- PM2管理:
pm2 restart api-example,pm2 logs api-example
User: "迁移旧服务器WordPress数据库到新服务器"
Process:
mysql -u root -p wp_db < backup.sqlOutput:
✅ 数据已导入 (XXX条记录)
⚠️ 重要: 立即创建完整备份,检查 wp_options 表 siteurl 是否正确
User: "网站突然打不开,页面空白,无明显错误"
Process:
curl -I http://example.com 返回状态码?tail -50 /www/wwwlogs/error.logsystemctl status php-fpm-81mv plugins plugins.bak)Output:
🔍 需要更多信息:
curl -I返回的状态码- PHP错误日志内容
- PHP-FPM服务状态
User: "WordPress很慢,GTmetrix评分D,该怎么优化?"
Process:
Output:
📈 优化方案:
阶段 措施 预期提升 1 Redis+OpCache+gzip 30-50% 2 CDN+缓存+WebP 20-30% 3 数据库优化 10-20% 预计: D→B/A
| Need | Resource |
|---|---|
| 完整安装指南 | 官方文档: https://www.bt.cn |
| Nginx配置语法 | /www/server/nginx/conf/nginx.conf |
| PHP版本选择 | 兼容性对照表 |
| SSL配置详解 | Let's Encrypt自动续期设置 |
| 问题 | 快速解决方案 |
|---|---|
| 面板忘记密码 | bt default 重置 |
| 502错误 | 重启PHP-FPM |
| 数据库无法连接 | 检查密码/服务状态 |
| SSL过期 | 重新申请Let's Encrypt |
| 磁盘满 | 清理日志和备份 |
| 端口被封 | 检查防火墙规则 |
| 措施 | 操作位置 | 优先级 |
|---|---|---|
| 修改面板端口 | 设置 → 面板端口 | 高 |
| 绑定IP白名单 | 安全 → 授权IP | 高 |
| 禁用ROOT登录 | SSH设置 → 密钥登录 | 高 |
| 开放防火墙 | 安全 → 防火墙 | 中 |
| 定期备份 | 计划任务 → 备份网站 | 高 |
| 更新软件 | 软件商店 → 更新 | 中 |
| Version | Date | Changes |
|---|---|---|
| 3.1.0 | 2026-03-23 | Added risk documentation, thinking patterns, code examples, workflow phases with Done criteria |
| 3.0.0 | 2026-03-21 | Previous version |
MIT License - See LICENSE file for details
EVALUATION_REPORT.md (opens in a new tab)references/glossary.md (opens in a new tab)references/pitfalls.md (opens in a new tab)references/scenarios.md (opens in a new tab)references/standards.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)references/workflow.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nobodyonlyc/skills --plugin harnessOther plugins' skills for the same job
1,059 skills in this plugin
/6g-communication-researcherExpert-level 6G Communication Researcher specializing in sub-THz channel modeling, holographic MIMO, reconfigurable intelligent surfaces (RIS), AI-native air interface design, and semantic communications/abaqus-expertInvoke when: User needs help with Abaqus FEA, nonlinear analysis, contact mechanics, or material modeling. Provides: Solver setup, mesh strategies, job diagnostics, and result interpretation./abaqus-lhs-batch-datasetGenerate an Abaqus FEA training dataset for surrogate / ML models. Latin Hypercube Sampling (or sparse-pattern sampling) over a parameterized design vector, one case folder per sample, batch-submit Abaqus jobs via subprocess, recover from crashes, and write a unified dataset index. Use when the user wants to "build a training set for a surrogate model", "sweep design parameters in Abaqus", "run N FEA simulations", or "sample a design space".