gz-construction-law-wiki

Query construction laws and regulations by article, keyword, or business topic from a markdown wiki.

Updated Sep 2, 2026
One-click install
npx skills add https://github.com/pinedu/xmc-work-wiki --skill gz-construction-law-wiki-pinedu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gz-construction-law-wiki
Source: https://github.com/pinedu/xmc-work-wiki/tree/main/skills/gz-construction-law-wiki
Command: npx skills add https://github.com/pinedu/xmc-work-wiki --skill gz-construction-law-wiki-pinedu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx, and includes scripts (resource) and references (resource) components.

What problem does it solve? Construction project teams in Guizhou need fast, citation-grade answers to legal questions (wage payment, bidding, fire safety, planning, safety production) without manually searching dozens of regulation documents. This Skill turns a wiki of 32 archived national and Guizhou provincial regulations into a queryable legal reference with exact article-level citations. ## Core Features & Use Cases - Article-level lookup: Run lookup_article.py to retrieve the exact text of a specific article (e.g., Article 24 of the Wage Payment Regulation) plus a project compliance checklist. - Keyword and topic search: Use search_keyword.py and lookup_topic.py to find every regulation mentioning a term like "special account" or a business theme like "migrant worker wages" across the whole wiki. - National vs provincial standard comparison: A built-in reference table contrasts national rules with stricter Guizhou provincial rules (labor contracts, notice boards, data retention) so compliance decisions follow the stricter standard. - Docx archiving pipeline: drop_laws_template.py converts newly received regulation .docx files into structured markdown wiki notes with frontmatter, article counts, and index files. - Use Case: When a subcontractor owes 220,000 RMB in wages, query the Wage Payment Regulation articles 24 and 55, check the Guizhou implementation rules, then coordinate with related complaint-handling skills to build a legally cited response. ## Quick Start Ask the agent to look up a specific regulation article, for example: find what Article 26 of the Regulation on Guaranteeing Wage Payment to Migrant Workers requires for special wage accounts.

Frequently Asked Questions about gz-construction-law-wiki

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I look up a specific article of a Chinese construction regulation?

Run lookup_article.py with the --law and --article arguments, for example --law "保障农民工工资支付条例" --article "第二十四条". The script locates the matching markdown note in the wiki and prints the article text with its source path.

How to search construction laws by keyword across multiple regulations?

Use search_keyword.py with --keyword to scan every markdown file in the wiki, returning matching lines with configurable context lines. Use lookup_topic.py instead when you want results grouped by business themes like wages, bidding, or fire safety.

What is the difference between national and Guizhou provincial real-name registration rules?

Guizhou provincial rules are stricter in several areas: they still require signed labor contracts for site entry, mandate a larger rights-notice board, and require 3 years of data retention versus 2 years nationally. The wage-law-supplement reference contains the full comparison table.

Can I archive a new regulation docx file into the wiki?

Yes. Copy scripts/drop_laws_template.py, replace the SRC, DST_DIR, and LAWS variables with your docx path and regulation metadata, then run it. The script writes one markdown file per regulation with frontmatter and generates an _index.md, using the python-docx library.

What are the limitations of this legal wiki?

Coverage is limited to the 32 archived regulations; laws not yet archived must be marked as pending rather than quoted from memory. The lookup scripts depend on the wiki directory existing at ~/wiki/ with the expected folder structure.