[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77186AFK26XVPGZYX7KXEEJ":3,"skill-same:01M77186AFK26XVPGZYX7KXEEJ":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":35,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M77186AFK26XVPGZYX7KXEEJ","check-chinese-holiday",null,"基于 chinesecalendar 包的中国节假日检测，判断是否为节假日\u002F调休日工作日","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fc\u002Fcheck-chinese-holiday\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: check-chinese-holiday\ndescription: 基于 chinesecalendar 包的中国节假日检测，判断是否为节假日\u002F调休日工作日\nmetadata: {\"clawdbot\":{\"emoji\":\"📅\",\"requires\":{\"packages\":[\"chinesecalendar\"]}}}\n---\n\n# check-chinese-holiday\n\n基于 `chinesecalendar` Python 包的中国节假日检测技能。支持查询指定日期是否为节假日\u002F调休日，并自动检测包是否需要更新。\n\n## 功能\n\n1. **节假日查询** — 判断指定日期是中国法定节假日、调休日还是普通工作日\n2. **包过期检测** — 自动检测 `chinesecalendar` 包是否支持当前年份，提示更新\n3. **工作日判断** — 判断是否为需要上班的工作日（考虑调休）\n\n---\n\n## 依赖\n\n- Python 3.8+\n- `chinesecalendar` 包\n\n安装：\n```bash\npip install chinesecalendar\n```\n\n---\n\n## 过期检测逻辑\n\n### 检测原理\n\n`chinesecalendar` 包的节假日数据需要每年更新。每次发布新版本时会添加下一年的节假日数据。\n\n**过期判断规则**：\n1. 获取当前年份（如 2026）\n2. 检查已安装的 `chinesecalendar` 版本是否支持当前年份\n3. 如果不支持，提示用户更新包\n\n### 检测方法\n\n```python\nimport datetime\nimport subprocess\nimport json\n\ndef check_package_freshness():\n    \"\"\"检测 chinesecalendar 包是否过期\"\"\"\n    current_year = datetime.datetime.now().year\n\n    # 获取已安装版本\n    result = subprocess.run(\n        ['pip', 'show', 'chinesecalendar'],\n        capture_output=True, text=True\n    )\n\n    installed_version = None\n    for line in result.stdout.split('\\n'):\n        if line.startswith('Version:'):\n            installed_version = line.split(':')[1].strip()\n            break\n\n    if not installed_version:\n        return {\n            'status': 'not_installed',\n            'message': 'chinesecalendar 包未安装',\n            'action': '请运行: pip install chinesecalendar'\n        }\n\n    # 检查版本是否支持当前年份\n    # 方法1: 尝试导入并查询当前年份\n    try:\n        import chinese_calendar\n        # 尝试获取当前年份的任何一天，判断是否有节假日数据\n        test_date = datetime.date(current_year, 1, 1)\n        is_holiday = chinese_calendar.is_holiday(test_date)\n        # 如果不报错，说明支持当前年份\n        return {\n            'status': 'ok',\n            'version': installed_version,\n            'year': current_year,\n            'message': f'chinesecalendar {installed_version} 支持 {current_year} 年'\n        }\n    except Exception as e:\n        # 方法2: 检查版本号\n        # 根据包发布历史，1.9+ 版本支持 2025+，1.11+ 支持 2026+\n        version_num = tuple(map(int, installed_version.split('.')[:2]))\n\n        # 简单判断：1.11.0+ 支持 2026 年\n        if version_num >= (1, 11):\n            return {\n                'status': 'ok',\n                'version': installed_version,\n                'year': current_year,\n                'message': f'根据版本号判断，{installed_version} 可能支持 {current_year} 年'\n            }\n        else:\n            return {\n                'status': 'outdated',\n                'version': installed_version,\n                'current_year': current_year,\n                'message': f'chinesecalendar {installed_version} 可能不支持 {current_year} 年',\n                'action': f'请运行: pip install --upgrade chinesecalendar'\n            }\n```\n\n---\n\n## 核心功能实现\n\n### 1. 判断指定日期类型\n\n```python\nimport chinese_calendar\nfrom datetime import date, datetime\n\ndef check_day(date_str=None):\n    \"\"\"\n    检查指定日期的节假日情况\n\n    Args:\n        date_str: 日期字符串，格式 YYYY-MM-DD，默认为今天\n\n    Returns:\n        dict: 包含日期类型的详细信息\n    \"\"\"\n    if date_str:\n        target_date = datetime.strptime(date_str, '%Y-%m-%d').date()\n    else:\n        target_date = date.today()\n\n    # 判断逻辑\n    is_holiday = chinese_calendar.is_holiday(target_date)\n    is_workday = chinese_calendar.is_workday(target_date)\n    get_holiday_name = chinese_calendar.get_holiday_name(target_date)\n\n    # 获取详细信息\n    if is_holiday:\n        # 是节假日，获取节假日名称\n        holiday_info = chinese_calendar.get_holiday_details(target_date)\n        result = {\n            'date': str(target_date),\n            'type': 'holiday',\n            'name': get_holiday_name,\n            'is_workday': False,\n            'message': f'{target_date} 是法定节假日: {get_holiday_name}'\n        }\n    elif is_workday:\n        # 是工作日（可能是调休）\n        result = {\n            'date': str(target_date),\n            'type': 'workday',\n            'name': None,\n            'is_workday': True,\n            'message': f'{target_date} 是工作日（调休上班）'\n        }\n    else:\n        # 普通休息日（非法定）\n        result = {\n            'date': str(target_date),\n            'type': 'weekend',\n            'name': None,\n            'is_workday': False,\n            'message': f'{target_date} 是普通周末'\n        }\n\n    return result\n```\n\n### 2. 完整示例\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"中国节假日检查工具\"\"\"\n\nimport chinese_calendar\nimport subprocess\nimport json\nimport sys\nfrom datetime import date, datetime\n\ndef get_installed_version():\n    \"\"\"获取已安装的版本\"\"\"\n    result = subprocess.run(\n        [sys.executable, '-m', 'pip', 'show', 'chinesecalendar'],\n        capture_output=True, text=True\n    )\n    for line in result.stdout.split('\\n'):\n        if line.startswith('Version:'):\n            return line.split(':')[1].strip()\n    return None\n\ndef check_package_freshness():\n    \"\"\"检查包是否过期\"\"\"\n    current_year = date.today().year\n    version = get_installed_version()\n\n    if not version:\n        return {\n            'status': 'not_installed',\n            'message': 'chinesecalendar 包未安装',\n            'action': 'pip install chinesecalendar'\n        }\n\n    # 尝试使用包\n    try:\n        test_date = date(current_year, 1, 1)\n        chinese_calendar.is_holiday(test_date)\n        return {\n            'status': 'ok',\n            'version': version,\n            'year': current_year,\n            'message': f'✓ chinesecalendar {version} 支持 {current_year} 年'\n        }\n    except Exception:\n        # 包不支持当前年份\n        return {\n            'status': 'outdated',\n            'version': version,\n            'year': current_year,\n            'message': f'✗ chinesecalendar {version} 不支持 {current_year} 年',\n            'action': f'pip install --upgrade chinesecalendar'\n        }\n\ndef check_day(date_str=None):\n    \"\"\"检查指定日期\"\"\"\n    if date_str:\n        try:\n            target_date = datetime.strptime(date_str, '%Y-%m-%d').date()\n        except ValueError:\n            return {'error': '日期格式错误，请使用 YYYY-MM-DD'}\n    else:\n        target_date = date.today()\n\n    is_holiday = chinese_calendar.is_holiday(target_date)\n    is_workday = chinese_calendar.is_workday(target_date)\n    holiday_name = chinese_calendar.get_holiday_name(target_date)\n\n    if is_holiday:\n        return {\n            'date': str(target_date),\n            'type': 'holiday',\n            'name': holiday_name,\n            'is_workday': False,\n            'message': f'🎉 {target_date} 是法定节假日: {holiday_name}'\n        }\n    elif is_workday:\n        return {\n            'date': str(target_date),\n            'type': 'workday',\n            'name': None,\n            'is_workday': True,\n            'message': f'💼 {target_date} 是工作日（调休上班）'\n        }\n    else:\n        return {\n            'date': str(target_date),\n            'type': 'weekend',\n            'name': None,\n            'is_workday': False,\n            'message': f'🆗 {target_date} 是普通周末'\n        }\n\nif __name__ == '__main__':\n    # 检查包状态\n    freshness = check_package_freshness()\n    print(json.dumps(freshness, ensure_ascii=False, indent=2))\n\n    # 检查今天\n    print('\\n--- 今日日期检查 ---')\n    today = check_day()\n    print(json.dumps(today, ensure_ascii=False, indent=2))\n```\n\n---\n\n## 输出示例\n\n### 包状态检查\n\n```json\n{\n  \"status\": \"ok\",\n  \"version\": \"1.11.0\",\n  \"year\": 2026,\n  \"message\": \"✓ chinesecalendar 1.11.0 支持 2026 年\"\n}\n```\n\n或过期时：\n\n```json\n{\n  \"status\": \"outdated\",\n  \"version\": \"1.9.0\",\n  \"year\": 2026,\n  \"message\": \"✗ chinesecalendar 1.9.0 不支持 2026 年\",\n  \"action\": \"pip install --upgrade chinesecalendar\"\n}\n```\n\n### 日期检查\n\n```json\n{\n  \"date\": \"2026-02-17\",\n  \"type\": \"holiday\",\n  \"name\": \"春节\",\n  \"is_workday\": false,\n  \"message\": \"2026-02-17 是法定节假日: 春节\"\n}\n```\n\n```json\n{\n  \"date\": \"2026-02-15\",\n  \"type\": \"workday\",\n  \"name\": null,\n  \"is_workday\": true,\n  \"message\": \"2026-02-15 是工作日（调休上班）\"\n}\n```\n\n```json\n{\n  \"date\": \"2026-03-07\",\n  \"type\": \"weekend\",\n  \"name\": null,\n  \"is_workday\": false,\n  \"message\": \"2026-03-07 是普通周末\"\n}\n```\n\n---\n\n## 注意事项\n\n1. **数据来源** — 节假日数据来自国务院公告，通常每年 11-12 月发布下一年的安排\n2. **更新频率** — `chinese-calendar` 库每年更新一次支持下一年的数据\n3. **准确性** — 建议每年初检查一次包是否需要更新\n4. **调休判断** — `is_workday()` 会正确识别调休上班日\n\n---\n\n## ⚠️ 调用者 SOP（重要）\n\n### 年份边界处理规则\n\n本技能仅支持 **合理范围内的年份**（通常为当前年份 ±3 年）。当用户查询超出此范围的年份时，请按以下规则处理：\n\n#### 规则 1：超出支持范围时不要反复更新包\n\n- ❌ **禁止**：看到 `outdated` 就反复执行 `pip install --upgrade`\n- ✅ **正确做法**：\n  - 识别到年份超出当前包支持范围时，直接返回「不支持查询该年份」\n  - 不要尝试更新包，因为即使更新也可能不支持极远的未来\u002F过去年份\n  - 向用户说明原因并建议在合理范围内查询\n\n#### 规则 2：识别不合理年份\n\n以下情况视为「不合理年份」：\n\n| 例子 | 说明 |\n|------|------|\n| 252 年 | 公元纪年早期，无现代节假日概念 |\n| 2077 年 | 超出当前包支持范围（通常仅支持未来 1-2 年） |\n| 1900 年以前 | 超出包的数据范围 |\n| 3000 年 | 超出包的数据范围 |\n\n#### 规则 3：正确响应示例\n\n```\n用户：查询 252 年的节假日\n→ 抱歉，chinesecalendar 包不支持查询 252 年。该包仅支持近现代年份（通常为当前年份 ±3 年）。\n\n用户：查询 2077 年的节假日\n→ 抱歉，chinesecalendar 包目前不支持 2077 年。该包的节假日数据通常每年更新，支持范围有限。建议查询当前年份附近的日期。\n\n用户：查询 2026 年的节假日\n→ [正常执行检查逻辑]\n```\n\n#### 规则 4：当前包的支持范围\n\n- **当前版本**（1.11.0）：支持 2026 年\n- **建议范围**：2023 年 ~ 2027 年（当前年份 ±1 年）\n- **最大范围**：不超过当前年份 ±3 年\n\n---\n\n### 死循环防护\n\n**问题场景**：Agent 看到 `outdated` 状态后反复尝试更新包，但因年份太远永远无法成功，导致死循环。\n\n**防护措施**：\n1. 检查查询年份是否在「合理范围」内（当前年份 ±3 年）\n2. 如果不在合理范围内：\n   - 直接返回「不支持」，**不尝试更新包**\n   - 向用户说明原因\n3. 如果在合理范围内且包过期：\n   - 仅提示一次更新，**不重复尝试**\n   - 更新失败后不再重试\n","# check-chinese-holiday\n\n基于 `chinesecalendar` Python 包的中国节假日检测技能。支持查询指定日期是否为节假日\u002F调休日，并自动检测包是否需要更新。\n\n## 功能\n\n1. **节假日查询** — 判断指定日期是中国法定节假日、调休日还是普通工作日\n2. **包过期检测** — 自动检测 `chinesecalendar` 包是否支持当前年份，提示更新\n3. **工作日判断** — 判断是否为需要上班的工作日（考虑调休）\n\n---\n\n## 依赖\n\n- Python 3.8+\n- `chinesecalendar` 包\n\n安装：\n```bash\npip install chinesecalendar\n```\n\n---\n\n## 过期检测逻辑\n\n### 检测原理\n\n`chinesecalendar` 包的节假日数据需要每年更新。每次发布新版本时会添加下一年的节假日数据。\n\n**过期判断规则**：\n1. 获取当前年份（如 2026）\n2. 检查已安装的 `chinesecalendar` 版本是否支持当前年份\n3. 如果不支持，提示用户更新包\n\n### 检测方法\n\n```python\nimport datetime\nimport subprocess\nimport json\n\ndef check_package_freshness():\n    \"\"\"检测 chinesecalendar 包是否过期\"\"\"\n    current_year = datetime.datetime.now().year\n\n    # 获取已安装版本\n    result = subprocess.run(\n        ['pip', 'show', 'chinesecalendar'],\n        capture_output=True, text=True\n    )\n\n    installed_version = None\n    for line in result.stdout.split('\\n'):\n        if line.startswith('Version:'):\n            installed_version = line.split(':')[1].strip()\n            break\n\n    if not installed_version:\n        return {\n            'status': 'not_installed',\n            'message': 'chinesecalendar 包未安装',\n            'action': '请运行: pip install chinesecalendar'\n        }\n\n    # 检查版本是否支持当前年份\n    # 方法1: 尝试导入并查询当前年份\n    try:\n        import chinese_calendar\n        # 尝试获取当前年份的任何一天，判断是否有节假日数据\n        test_date = datetime.date(current_year, 1, 1)\n        is_holiday = chinese_calendar.is_holiday(test_date)\n        # 如果不报错，说明支持当前年份\n        return {\n            'status': 'ok',\n            'version': installed_version,\n            'year': current_year,\n            'message': f'chinesecalendar {installed_version} 支持 {current_year} 年'\n        }\n    except Exception as e:\n        # 方法2: 检查版本号\n        # 根据包发布历史，1.9+ 版本支持 2025+，1.11+ 支持 2026+\n        version_num = tuple(map(int, installed_version.split('.')[:2]))\n\n        # 简单判断：1.11.0+ 支持 2026 年\n        if version_num >= (1, 11):\n            return {\n                'status': 'ok',\n                'version': installed_version,\n                'year': current_year,\n                'message': f'根据版本号判断，{installed_version} 可能支持 {current_year} 年'\n            }\n        else:\n            return {\n                'status': 'outdated',\n                'version': installed_version,\n                'current_year': current_year,\n                'message': f'chinesecalendar {installed_version} 可能不支持 {current_year} 年',\n                'action': f'请运行: pip install --upgrade chinesecalendar'\n            }\n```\n\n---\n\n## 核心功能实现\n\n### 1. 判断指定日期类型\n\n```python\nimport chinese_calendar\nfrom datetime import date, datetime\n\ndef check_day(date_str=None):\n    \"\"\"\n    检查指定日期的节假日情况\n\n    Args:\n        date_str: 日期字符串，格式 YYYY-MM-DD，默认为今天\n\n    Returns:\n        dict: 包含日期类型的详细信息\n    \"\"\"\n    if date_str:\n        target_date = datetime.strptime(date_str, '%Y-%m-%d').date()\n    else:\n        target_date = date.today()\n\n    # 判断逻辑\n    is_holiday = chinese_calendar.is_holiday(target_date)\n    is_workday = chinese_calendar.is_workday(target_date)\n    get_holiday_name = chinese_calendar.get_holiday_name(target_date)\n\n    # 获取详细信息\n    if is_holiday:\n        # 是节假日，获取节假日名称\n        holiday_info = chinese_calendar.get_holiday_details(target_date)\n        result = {\n            'date': str(target_date),\n            'type': 'holiday',\n            'name': get_holiday_name,\n            'is_workday': False,\n            'message': f'{target_date} 是法定节假日: {get_holiday_name}'\n        }\n    elif is_workday:\n        # 是工作日（可能是调休）\n        result = {\n            'date': str(target_date),\n            'type': 'workday',\n            'name': None,\n            'is_workday': True,\n            'message': f'{target_date} 是工作日（调休上班）'\n        }\n    else:\n        # 普通休息日（非法定）\n        result = {\n            'date': str(target_date),\n            'type': 'weekend',\n            'name': None,\n            'is_workday': False,\n            'message': f'{target_date} 是普通周末'\n        }\n\n    return result\n```\n\n### 2. 完整示例\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"中国节假日检查工具\"\"\"\n\nimport chinese_calendar\nimport subprocess\nimport json\nimport sys\nfrom datetime import date, datetime\n\ndef get_installed_version():\n    \"\"\"获取已安装的版本\"\"\"\n    result = subprocess.run(\n        [sys.executable, '-m', 'pip', 'show', 'chinesecalendar'],\n        capture_output=True, text=True\n    )\n    for line in result.stdout.split('\\n'):\n        if line.startswith('Version:'):\n            return line.split(':')[1].strip()\n    return None\n\ndef check_package_freshness():\n    \"\"\"检查包是否过期\"\"\"\n    current_year = date.today().year\n    version = get_installed_version()\n\n    if not version:\n        return {\n            'status': 'not_installed',\n            'message': 'chinesecalendar 包未安装',\n            'action': 'pip install chinesecalendar'\n        }\n\n    # 尝试使用包\n    try:\n        test_date = date(current_year, 1, 1)\n        chinese_calendar.is_holiday(test_date)\n        return {\n            'status': 'ok',\n            'version': version,\n            'year': current_year,\n            'message': f'✓ chinesecalendar {version} 支持 {current_year} 年'\n        }\n    except Exception:\n        # 包不支持当前年份\n        return {\n            'status': 'outdated',\n            'version': version,\n            'year': current_year,\n            'message': f'✗ chinesecalendar {version} 不支持 {current_year} 年',\n            'action': f'pip install --upgrade chinesecalendar'\n        }\n\ndef check_day(date_str=None):\n    \"\"\"检查指定日期\"\"\"\n    if date_str:\n        try:\n            target_date = datetime.strptime(date_str, '%Y-%m-%d').date()\n        except ValueError:\n            return {'error': '日期格式错误，请使用 YYYY-MM-DD'}\n    else:\n        target_date = date.today()\n\n    is_holiday = chinese_calendar.is_holiday(target_date)\n    is_workday = chinese_calendar.is_workday(target_date)\n    holiday_name = chinese_calendar.get_holiday_name(target_date)\n\n    if is_holiday:\n        return {\n            'date': str(target_date),\n            'type': 'holiday',\n            'name': holiday_name,\n            'is_workday': False,\n            'message': f'🎉 {target_date} 是法定节假日: {holiday_name}'\n        }\n    elif is_workday:\n        return {\n            'date': str(target_date),\n            'type': 'workday',\n            'name': None,\n            'is_workday': True,\n            'message': f'💼 {target_date} 是工作日（调休上班）'\n        }\n    else:\n        return {\n            'date': str(target_date),\n            'type': 'weekend',\n            'name': None,\n            'is_workday': False,\n            'message': f'🆗 {target_date} 是普通周末'\n        }\n\nif __name__ == '__main__':\n    # 检查包状态\n    freshness = check_package_freshness()\n    print(json.dumps(freshness, ensure_ascii=False, indent=2))\n\n    # 检查今天\n    print('\\n--- 今日日期检查 ---')\n    today = check_day()\n    print(json.dumps(today, ensure_ascii=False, indent=2))\n```\n\n---\n\n## 输出示例\n\n### 包状态检查\n\n```json\n{\n  \"status\": \"ok\",\n  \"version\": \"1.11.0\",\n  \"year\": 2026,\n  \"message\": \"✓ chinesecalendar 1.11.0 支持 2026 年\"\n}\n```\n\n或过期时：\n\n```json\n{\n  \"status\": \"outdated\",\n  \"version\": \"1.9.0\",\n  \"year\": 2026,\n  \"message\": \"✗ chinesecalendar 1.9.0 不支持 2026 年\",\n  \"action\": \"pip install --upgrade chinesecalendar\"\n}\n```\n\n### 日期检查\n\n```json\n{\n  \"date\": \"2026-02-17\",\n  \"type\": \"holiday\",\n  \"name\": \"春节\",\n  \"is_workday\": false,\n  \"message\": \"2026-02-17 是法定节假日: 春节\"\n}\n```\n\n```json\n{\n  \"date\": \"2026-02-15\",\n  \"type\": \"workday\",\n  \"name\": null,\n  \"is_workday\": true,\n  \"message\": \"2026-02-15 是工作日（调休上班）\"\n}\n```\n\n```json\n{\n  \"date\": \"2026-03-07\",\n  \"type\": \"weekend\",\n  \"name\": null,\n  \"is_workday\": false,\n  \"message\": \"2026-03-07 是普通周末\"\n}\n```\n\n---\n\n## 注意事项\n\n1. **数据来源** — 节假日数据来自国务院公告，通常每年 11-12 月发布下一年的安排\n2. **更新频率** — `chinese-calendar` 库每年更新一次支持下一年的数据\n3. **准确性** — 建议每年初检查一次包是否需要更新\n4. **调休判断** — `is_workday()` 会正确识别调休上班日\n\n---\n\n## ⚠️ 调用者 SOP（重要）\n\n### 年份边界处理规则\n\n本技能仅支持 **合理范围内的年份**（通常为当前年份 ±3 年）。当用户查询超出此范围的年份时，请按以下规则处理：\n\n#### 规则 1：超出支持范围时不要反复更新包\n\n- ❌ **禁止**：看到 `outdated` 就反复执行 `pip install --upgrade`\n- ✅ **正确做法**：\n  - 识别到年份超出当前包支持范围时，直接返回「不支持查询该年份」\n  - 不要尝试更新包，因为即使更新也可能不支持极远的未来\u002F过去年份\n  - 向用户说明原因并建议在合理范围内查询\n\n#### 规则 2：识别不合理年份\n\n以下情况视为「不合理年份」：\n\n| 例子 | 说明 |\n|------|------|\n| 252 年 | 公元纪年早期，无现代节假日概念 |\n| 2077 年 | 超出当前包支持范围（通常仅支持未来 1-2 年） |\n| 1900 年以前 | 超出包的数据范围 |\n| 3000 年 | 超出包的数据范围 |\n\n#### 规则 3：正确响应示例\n\n```\n用户：查询 252 年的节假日\n→ 抱歉，chinesecalendar 包不支持查询 252 年。该包仅支持近现代年份（通常为当前年份 ±3 年）。\n\n用户：查询 2077 年的节假日\n→ 抱歉，chinesecalendar 包目前不支持 2077 年。该包的节假日数据通常每年更新，支持范围有限。建议查询当前年份附近的日期。\n\n用户：查询 2026 年的节假日\n→ [正常执行检查逻辑]\n```\n\n#### 规则 4：当前包的支持范围\n\n- **当前版本**（1.11.0）：支持 2026 年\n- **建议范围**：2023 年 ~ 2027 年（当前年份 ±1 年）\n- **最大范围**：不超过当前年份 ±3 年\n\n---\n\n### 死循环防护\n\n**问题场景**：Agent 看到 `outdated` 状态后反复尝试更新包，但因年份太远永远无法成功，导致死循环。\n\n**防护措施**：\n1. 检查查询年份是否在「合理范围」内（当前年份 ±3 年）\n2. 如果不在合理范围内：\n   - 直接返回「不支持」，**不尝试更新包**\n   - 向用户说明原因\n3. 如果在合理范围内且包过期：\n   - 仅提示一次更新，**不重复尝试**\n   - 更新失败后不再重试\n",{"name":5,"metadata":24,"description":7},{"clawdbot":25},{"emoji":26,"requires":27},"📅",{"packages":28},[29],"chinesecalendar","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fc\u002Fcheck-chinese-holiday",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill check-chinese-holiday",{"tool":45,"command":46},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill check-chinese-holiday",{"tool":48,"command":49},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill check-chinese-holiday","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fc\u002Fcheck-chinese-holiday\u002FSKILL.md",true,[],[54,62,69,76,83,90],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":61},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":61},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":61},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":61},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":61},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":61},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]