doc-expiry-guard

Centralizes expiry management for IDs, passports, visas, driver’s licenses, business licenses, professional certificates and other documents; automatically calculates remaining days, marks status as "expired/near-expiry/normal" and provides a renewal checklist to prevent travel disruption or business interruption due to expired documents. Designed for zero-dependency, local offline use and privacy protection.

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 "doc-expiry-guard" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-f965ae5899d06e0a675fbba55191cc74446364ec5893736afe2b0043880f5e73. Verify the upstream source and version against https://skillhub.cn/skills/user_cb37ec27/doc-expiry-guard 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

Centralizes expiry management for IDs, passports, visas, driver’s licenses, business licenses, professional certificates and other documents; automatically calculates remaining days, marks status as "expired/near-expiry/normal" and provides a renewal checklist to prevent travel disruption or business interruption due to expired documents. Designed for zero-dependency, local offline use and privacy protection.

0 Downloads

Introduction source: third_party · user_cb37ec27 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: doc-expiry-guard
slug: doc-expiry-guard
displayName: 证件到期管家
description: 统一管理身份证、护照、签证、驾照、营业执照、职业资格证书等各类证照的到期时间,自动计算剩余天数,给出「过期/临期/正常」状态与续期清单,避免错过换证导致出行受阻或经营中断。零依赖、本地离线、隐私安全。
version: 1.0.0
category: 生活助手
platforms: [linux, macos, windows]
agent_created: true

证件到期管家(doc-expiry-guard)

这个 skill 解决什么痛点

身份证、护照、签证、驾照、港澳/台湾通行证、营业执照、各类职业资格证书……现代人手里十几种证照,有效期从 5 年到 10 年不等,平时想不起来,要用时才发现已经过期或临期。

  • 护照过期 → 订好的出国行程作废、签证重办;
  • 驾照过期 → 上路算无证驾驶、保险拒赔;
  • 营业执照年报漏报 → 被列入经营异常名录;
  • 职业资格证过期 → 接不了项目、续期还要补学时。

痛点不是"不知道怎么查",而是信息散落、没有统一台账、不会主动提醒。本 skill 提供一个确定性、可复现的本地台账,把"该什么时候换证"变成一条随时可查的命令。

目标用户

  • 经常出差/出境的职场人(护照、签证、通行证管理);
  • 个体户/小微企业主(营业执照年报、各类经营资质);
  • 持职业资格证的专业人士(教师、会计、建造师、医师等需定期续期);
  • 帮父母管理证件家庭的子女(老人证照易忘);
  • 任何"手里证照多、怕过期"的普通人。

核心能力

  • 统一台账:一条命令添加证件,记录名称、类型、发证日、到期日、提醒阈值、备注。
  • 类型智能推算:内置身份证/护照/驾照/通行证等默认有效期,只填发证日即可自动算到期(也可直接填精确到期日,优先使用)。
  • 状态一目了然:自动算「剩余天数」,标记 🔴过期 / 🟡临期 / 🟢正常,过期优先排序。
  • 临期预警:expiring 列出 N 天内到期或已逾期的证件,出行前一眼看清风险。
  • 续期清单:report 生成可打印 markdown / txt 总览,按状态分组,直接贴在冰箱或存云笔记。
  • 零依赖、本地离线:纯 Python 标准库,数据存 ~/.docguard/docs.json,不上传任何服务器,隐私安全。

边界声明:本 skill 仅做时间与提醒管理,不核验证件真伪、不代办理换证、不构成法律或行政建议。换证流程与材料以官方渠道(公安出入境、车管所、市场监管局等)为准。

使用方式

脚本路径:<skill_dir>/docguard.py。用受管理 Python 运行:

PY=~/.workbuddy/binaries/python/versions/3.13.12/bin/python3
SKILL=~/.workbuddy/skills/doc-expiry-guard

1. 查看内置类型与默认有效期

$PY $SKILL/docguard.py types

输出身份证(10年)、护照(10年)、港澳通行证(10年)、驾照(6年)等,并附注实际规则(如身份证按年龄 10/20/长期)。

2. 添加证件

只填发证日,按类型自动推算到期:

$PY $SKILL/docguard.py add --name 我的护照 --type 护照 --issue 2019-05-01
$PY $SKILL/docguard.py add --name 我的驾照 --type 驾照 --issue 2021-03-10

精确到期日优先(最稳妥,避免推算误差):

$PY $SKILL/docguard.py add --name 美国B1/B2签证 --type 签证 --expiry 2027-09-30 \
    --note "EVUS每两年更新一次"
$PY $SKILL/docguard.py add --name 公司营业执照 --type 营业执照 --expiry 2026-06-30 \
    --note "年报截止日,非证照到期"

自定义临期提醒阈值(如 30 天就提醒):

$PY $SKILL/docguard.py add --name 会计从业资格 --type 职业资格证 --expiry 2026-12-31 --remind 30

3. 列出全部证件(按到期日排序,过期在前)

$PY $SKILL/docguard.py list

4. 出行/年报前查临期风险

$PY $SKILL/docguard.py expiring --days 90     # 未来90天临期+全部逾期
$PY $SKILL/docguard.py expiring               # 所有非「正常」状态

5. 生成可打印总览

$PY $SKILL/docguard.py report --format md --output ~/Desktop/证件台账.md
$PY $SKILL/docguard.py report --format txt

6. 编辑与删除

$PY $SKILL/docguard.py edit   --id 2 --expiry 2035-01-01
$PY $SKILL/docguard.py remove --id 5

示例:出差前 5 分钟体检

$ ~/.workbuddy/binaries/python/versions/3.13.12/bin/python3 \
    ~/.workbuddy/skills/doc-expiry-guard/docguard.py expiring --days 180
⚠️ 需关注的证件(2 项):
  🟡 #1 我的护照 [护照]  到期 2026-12-01  剩余 136 天
  🔴 #3 美国B1/B2签证 [签证]  到期 2026-07-10  已逾期 8 天

一眼看出签证已逾期、护照还有 4 个多月——立刻安排换证,避免行程翻车。

数据存储

  • 默认:~/.docguard/docs.json(可用环境变量 DOCGUARD_HOME 或 --store 指定隔离路径,便于测试或多用户)。
  • 仅含你录入的字段,纯本地,不上云。

与其它技能的边界

  • 不同于 dw-anniversary-reminder(生日/纪念日,按年循环)和 dw-schedule-conflict(日程冲突),本 skill 专注于证照有效期的绝对到期日与法定续期,强调"过期后果严重"类事项。
  • 不替代密码管理(dw-password-check)或订阅管理(dw-subscription-manager)。

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 解决证照到期管理的真实痛点,覆盖身份证、护照、驾照、营业执照等高频场景
  • 目标用户明确,功能闭环完整(添加、查询、预警、报告),零依赖本地离线保障隐私
Trigger Precision60/100

Areas to improve

  • 缺少显式触发词定义 Reported severity: Minor

    description 虽清晰但未在 frontmatter 或 skill_body 开头定义触发关键词(如“证件到期”、“证照管理”),影响用户通过自然语言精准触发

    Recommendation: 在 frontmatter 或 skill_body 开头补充触发词列表,如 keywords: [证件, 到期, 护照, 驾照, 营业执照, 续期]

Structure and Standards75/100

Areas to improve

  • 缺少 When to Use 章节 Reported severity: Minor

    文档结构完整但缺少显式的 When to Use 章节标题,不利于快速理解适用场景

    Recommendation: 在核心能力后增加 When to Use 章节,明确列出典型使用场景(如出差前检查、年报前准备)

  • 未说明 help 支持 Reported severity: Minor

    未提及是否支持 --help 参数或如何获取命令帮助信息

    Recommendation: 在脚本路径说明后补充 help 支持说明,如 $PY $SKILL/docguard.py --help

Highlights

  • Phase/步骤清晰(types/add/list/expiring/report/edit/remove),有端到端示例
  • frontmatter 完整,单文件未超 500 行
Execution Reliability70/100

Areas to improve

  • 未显式说明错误处理机制 Reported severity: Minor

    未说明对无效日期、重复添加、文件读写失败等常见异常的处理方式

    Recommendation: 在数据存储或边界声明部分补充错误处理说明,如“无效日期将提示重新输入,文件读写失败将输出错误信息”

Highlights

  • 工具路径明确(docguard.py),参数设计合理(--issue/--expiry 互斥逻辑隐含)
  • 数据存储路径可配置(DOCGUARD_HOME 或 --store),覆盖主要异常场景
Evidence Verifiability (mean of the first four)73/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.

Not specified in the source documentation.

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