lifestyle-planner-zx

Lifestyle Planner (ZX) — a toolkit containing 10 lifestyle algorithms: TSP with 2-opt route optimization, Markov-chain habit prediction, Deurenberg body fat estimation, Mifflin BMR calculation, greedy meal planning, linear-programming budgeting, and others.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "lifestyle-planner-zx" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-e86a15281c62dad6b3e3fd3d1efa19c332c88ff7286aff6f7ae9e40b4052a746. Verify the upstream source and version against https://skillhub.cn/skills/user_053d27d0/lifestyle-planner-zx before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Lifestyle Planner (ZX) — a toolkit containing 10 lifestyle algorithms: TSP with 2-opt route optimization, Markov-chain habit prediction, Deurenberg body fat estimation, Mifflin BMR calculation, greedy meal planning, linear-programming budgeting, and others.

0 Downloads

Introduction source: third_party · user_053d27d0 · 2.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "lifestyle-planner-zx"
description: "10个生活算法:TSP+2-opt旅行路线/马尔可夫链习惯预测/Deurenberg体脂/Mifflin BMR/贪心餐饮规划/线性规划预算"

生活服务工具 (lifestyle-planner-zx)

描述

提供10个包含真实算法实现的生活服务工具,覆盖营养计算、BMI健康评估、健身计划生成、预算优化、餐饮计划、习惯追踪分析、睡眠质量分析、旅行路线优化(TSP)、购物清单优化、订阅费用分析等日常生活场景。每个工具均包含完整数学公式实现,非简单函数调用。

功能

  1. 营养计算器 - 食物数据库+加权评分+缺口分析(18种食物营养表)
  2. BMI健康评估器 - Deurenberg体脂公式+Mifflin-St Jeor BMR+TDEE计算
  3. 健身计划生成器 - 渐进过载原则+4周周期化(Mesocycle)+肌群分配
  4. 预算优化器 - 50/30/20规则+线性规划优化最大化储蓄+支出分析
  5. 餐饮计划器 - 贪心算法+营养密度排序+约束满足(卡路里/宏量营养素)
  6. 习惯追踪分析器 - 连续天数统计+马尔可夫链2状态转移矩阵预测
  7. 睡眠质量分析器 - 4维加权评分(时长/效率/规律性/深度比例)+改善建议
  8. 旅行路线优化器 - TSP最近邻贪心+2-opt局部搜索+Haversine球面距离
  9. 购物清单优化器 - 多店铺比价+贪心算法(最大化购买数量或满意度)
  10. 订阅费用分析器 - ROI计算+使用率分析+取消建议+替代方案推荐

使用

from main import nutrition_calculator, bmi_health_assessor, travel_itinerary_optimizer

# 营养计算
result = nutrition_calculator(
    [{"name": "米饭", "amount": 200}, {"name": "鸡蛋", "amount": 60}],
    {"calories": 2000, "protein": 60, "fat": 60, "carbs": 300, "fiber": 25}
)

# BMI健康评估
health = bmi_health_assessor(weight=70, height=175, age=25, gender=1, activity_level="moderate")

# 旅行路线优化(TSP + 2-opt)
route = travel_itinerary_optimizer(
    destinations=[
        {"name": "故宫", "lat": 39.9163, "lon": 116.3972, "attraction_score": 9, "visit_time": 4},
        {"name": "天坛", "lat": 39.8822, "lon": 116.4066, "attraction_score": 8, "visit_time": 2},
    ],
    days=1, preferences={"culture": 0.6, "nature": 0.4}, constraints={}
)

依赖

无外部依赖,仅使用Python标准库(math, random, datetime, collections, json)。

Current listing version

2.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 提供10个真实算法实现的生活服务工具,覆盖营养计算、健康评估、健身计划、预算优化、餐饮计划、习惯追踪、睡眠分析、旅行路线优化、购物优化、订阅分析等多个高频刚需场景
  • 每个工具均包含完整数学公式实现,非简单函数调用,具有显著的实际使用价值
Trigger Precision95/100

Highlights

  • description 中明确列出了10个具体的生活算法工具,触发词精准完整,覆盖多种变体,边界清晰
Structure and Standards95/100

Highlights

  • Skill 结构清晰,包含描述、功能列表、使用示例、依赖说明等完整章节,frontmatter 完整,单文件未超过500行
Execution Reliability95/100

Highlights

  • Skill 声明无外部依赖,仅使用Python标准库,工具来源明确,参数正确,覆盖主要异常,不可逆操作有确认机制
Evidence Verifiability (mean of the first four)95/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.