labor-law

by BytesAgain

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

3.7k行业场景未扫描2026年3月23日

安装

claude skill add --url github.com/openclaw/skills/tree/main/skills/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

bash
# 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:

bash
export LABOR_LAW_DIR=/custom/path

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


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

相关 Skills

面试体系设计

by alirezarezvani

Universal
热门

按岗位、级别和团队设计面试流程,生成能力矩阵、题库与评分标准,分析面试官偏差并校准招聘门槛,适合搭建或优化企业招聘体系。

团队招人没章法时,用它快速搭建岗位化面试流程、题库与评分标准,还能兼顾校准面试偏差,招聘更稳更准。

行业场景
未扫描9.0k

抽认卡

by BytesAgain

热门

Spaced repetition study tool with deck management. Use when you need flashcard.

行业场景
未扫描3.7k

教程文档

by anderskev

热门

Tutorial patterns for documentation - learning-oriented guides that teach through guided doing

行业场景
未扫描3.7k

相关 MCP 服务

by boosted-chat

热门

Flight search & booking for AI agents. 400+ airlines, $20-50 cheaper than OTAs.

行业场景
137

Search company disclosures and financial statements from the Korean market. Retrieve stock profiles, market classifications, and historical trading data across major exchanges. Accelerate equity research with accurate, date-specific insights for Korean securities.

做韩国股研时,用它能一站查公司披露、财报和历史行情,按日期精确追溯关键信息,比手动翻交易所高效太多。

行业场景
103

检索韩国市场公司的披露文件与财务报表,并获取股票概况等关键信息。

想研究韩股公司时,它能一站式拉取披露、财报和股票概况,省去跨站查资料的麻烦,对跨境投研尤其省时。

行业场景
103

评论