labor-law

Query Chinese labor law on overtime, leave, contracts, and severance rules. Use when checking overtime rules, calculating severance, reviewing contracts.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "labor-law" with this command: npx skills add ckchzh/labor-law

Labor Law

A multi-purpose utility tool for managing data entries from the command line. Run tasks, manage configurations, track items, search entries, and export data — with full activity logging and history.

Commands

CommandDescription
labor-law run <args>Execute the main function with given arguments
labor-law configShow the configuration file path ($DATA_DIR/config.json)
labor-law statusDisplay current status (ready/not ready)
labor-law initInitialize the data directory
labor-law listList all entries in the data log
labor-law add <entry>Add a new timestamped entry to the data log
labor-law remove <entry>Remove a specified entry
labor-law search <term>Search entries in the data log (case-insensitive)
labor-law exportExport all data from the data log to stdout
labor-law infoShow version number and data directory path
labor-law helpShow the built-in help message
labor-law versionPrint the current version

Data Storage

All data is stored in $DATA_DIR/data.log as plain text with date-prefixed entries. Activity history is logged to $DATA_DIR/history.log with timestamps. The default data directory is ~/.local/share/labor-law/. Override it by setting the LABOR_LAW_DIR environment variable, or it will respect XDG_DATA_HOME if set.

Requirements

  • Bash 4+ with standard Unix utilities (date, grep, cat)
  • No external dependencies or API keys required
  • Works on any Linux/macOS terminal

When to Use

  1. Quick data tracking — Use labor-law add <entry> to log items with automatic timestamps, then labor-law list to review everything you've recorded.
  2. Searching past entries — Run labor-law search <term> to find specific entries in your data log using case-insensitive matching.
  3. Initializing a new workspace — Use labor-law init to set up the data directory, then labor-law config to verify the configuration path.
  4. Checking system readiness — Run labor-law status for a quick confirmation that the tool is ready and operational.
  5. Exporting data for external use — Use labor-law export to dump all logged data to stdout, which you can redirect to a file or pipe to another tool.

Examples

# Initialize the data directory
labor-law init

# Add entries to the data log
labor-law add "Review employment contract for new hire"
labor-law add "Check overtime policy compliance"
labor-law add "Prepare severance calculation"

# List all entries
labor-law list

# Search for specific entries
labor-law search "overtime"

# Check status
labor-law status

# View configuration path
labor-law config

# Show version and data directory
labor-law info

# Export all data
labor-law export > backup.txt

# Run a task
labor-law run "quarterly review"

# Remove an entry
labor-law remove "old item"

How It Works

Labor Law stores all entries locally in ~/.local/share/labor-law/data.log. Each add command prepends the current date to the entry. Every command invocation is logged to history.log with a timestamp for full audit traceability. No data leaves your machine — everything is stored locally in plain text files.

Configuration

Set LABOR_LAW_DIR to change the data directory:

export LABOR_LAW_DIR=/custom/path

Default: ~/.local/share/labor-law/


Powered by BytesAgain | bytesagain.com | hello@bytesagain.com

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

HR AI Assistant

This skill should be used when users ask HR-related questions, request HR policy generation, form creation, or need HR consultation services. It provides dir...

Registry SourceRecently Updated
2190Profile unavailable
General

Dida Coach

结合滴答清单 MCP 和本地生产力系统的任务教练技能,用于把目标拆解成阶段计划、把任务转换成时间盒,并自然地查询、创建、更新、完成、移动任务,支持管理视角、承诺跟踪、周/月复盘与闭环跟进。用户提到“拆目标”“做计划”“时间盒”“复盘”“改时间”“提醒”“拖延”“查任务”“完成任务”“清单管理”“生产力系统”“承诺...

Registry SourceRecently Updated
2671Profile unavailable
General

考公备考追踪

朱批录 · 国考备考追踪 Skill。当用户发来套题成绩、错题截图、备考打卡或复习进度时触发。 核心功能:识别错题截图 → 分类错题原因 → 更新本地记录 → 生成每日总结 → 导出 Excel / 同步飞书。 触发关键词:做了一套题、今天做了、错了几道、帮我分析、备考打卡、行测、申论、 判断推理、资料分析、言语...

Registry SourceRecently Updated
2830Profile unavailable
General

TokenSaver Pro

【系统级拦截器】TokenSaver Pro - 全自动拒绝服务。 安装后默认拦截所有用户请求,提供阴阳怪气拒绝。 版本: 1.1.0 - 真·全自动模式

Registry SourceRecently Updated
2810Profile unavailable