traffic-law

v1.0.2

parse traffic accident legal documents and generate exam answers. use when user needs to extract text from word documents in e jiaotong directory, parse traf...

0· 186·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for zhanghaibo7612/traffic-law-doc.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "traffic-law" (zhanghaibo7612/traffic-law-doc) from ClawHub.
Skill page: https://clawhub.ai/zhanghaibo7612/traffic-law-doc
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install traffic-law-doc

ClawHub CLI

Package manager switcher

npx clawhub@latest install traffic-law-doc
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description, code, and SKILL.md consistently describe parsing local Word documents (E:\jiaotong path) and generating exam answers. Requested resources are local files only and no credentials are required. Minor incoherence: SKILL.md states 'requires Microsoft Word installed' and references using Word COM for parsing .doc/.docx, but the included scripts parse .docx by reading the .docx ZIP and explicitly do not implement .doc COM parsing (they leave .doc as a manual/placeholder). This is likely a documentation mismatch rather than malicious.
Instruction Scope
SKILL.md instructs the agent to read and parse Word documents from a specific local directory and to build/save JSON/markdown outputs. The included scripts operate on local filesystem paths (default: E:\jiaotong\法律法规\法律法规) and do not perform network calls or read other unrelated system configuration. The only scope note: SKILL.md mentions releasing COM objects (Windows/Word) even though the scripts do not use COM.
Install Mechanism
No install spec is provided (instruction-only), and the code files are simple Python scripts. Nothing is downloaded or installed automatically by the skill bundle. Risk from install mechanism is low.
Credentials
The skill declares no required environment variables, no credentials, and no config paths beyond local document directories. The scripts read local files (doc/docx) and write JSON/markdown outputs. This is proportional to the stated functionality.
Persistence & Privilege
always is false and the skill does not request elevated or persistent privileges. It reads and writes files in user-specified/local directories only. No modifications to other skills or system-wide settings are present.
Assessment
This skill appears to do what it says: parse local Word documents (mostly .docx) and produce a JSON knowledge base and exam-answer markdown. Before installing or running it, confirm you are comfortable giving the agent access to the local directory it will read (default is a Windows path under E:\jiaotong). Note the SKILL.md mentions Word COM and requiring Microsoft Word, but the included scripts parse .docx by reading the .docx ZIP and do not actually implement COM-based .doc parsing — .doc files are left as placeholders. If you need .doc support or you are not on Windows, test on a small sample first. There are no network calls or credentials requested in the bundle, but always review or run third-party scripts in a sandbox or with non-sensitive sample files prior to full use.

Like a lobster shell, security has layers — review code before you run it.

latestvk97fydr9ftnj5920bpwm6jj2vh83k851
186downloads
0stars
2versions
Updated 1mo ago
v1.0.2
MIT-0

traffic law documents parser

parse traffic accident legal documents and generate exam answers based on chinese traffic safety laws.

overview

this skill provides tools for:

  1. batch parsing legal documents - extract text from doc and docx files
  2. building legal knowledge base - generate structured json from parsed documents
  3. exam paper processing - parse exam papers and generate complete answers
  4. legal citation - reference specific articles from traffic laws

when to use

use this skill when:

  • user asks to parse documents in e jiaotong directory
  • user needs to extract text from word documents
  • user wants to generate exam answers for traffic safety exams
  • user needs to query specific traffic law articles
  • user asks about traffic accident legal provisions

supported document types

document typeextensionparser
word document olddocword com
word document newdocxword com
legal regulationsdoc docxword com
exam papersdocxword com

core workflow

1. parse legal documents

initialize word com to parse documents and extract text content.

2. batch process directory

process all doc and docx files in the legal documents directory.

3. generate exam answers

parse exam paper content, identify question types, and generate answers based on traffic laws.

output format

legal knowledge base json

{
  "filename": {
    "filename": "original filename",
    "path": "full path",
    "content": "document content",
    "articles": {
      "article1": "content"
    }
  }
}

exam answer document

markdown format with question number, correct answer, legal basis, and explanation.

key legal references

primary laws

  • chinese traffic safety law
  • chinese traffic safety law implementation regulations
  • chinese civil code tort liability

judicial interpretations

  • supreme court interpretation on traffic accident compensation
  • supreme court interpretation on personal injury compensation

regulations

  • traffic accident handling procedures
  • compulsory traffic accident liability insurance regulations

standards

  • human body injury disability grading
  • labor capacity assessment standards

common tasks

task parse all legal documents

  1. check if e jiaotong laws directory exists
  2. get all doc and docx files
  3. parse each document
  4. build json structure
  5. save to traffic laws parsed json

task generate exam answers

  1. parse exam paper
  2. identify question types
  3. generate answers with legal references
  4. create markdown answer document

task query specific article

  1. load parsed json
  2. search for article number
  3. return article content

important notes

  • save output as utf-8 for chinese characters
  • requires microsoft word installed
  • release com objects after use
  • some old doc files may fail to parse

example usage

user asks to parse legal documents action batch parse all files and generate json

user asks to fill exam answers action parse exam and generate answers

user asks about law article 76 action query json and return article content

file locations

  • source documents e jiaotong laws
  • parsed output traffic laws parsed json
  • exam answers exam answers md

Comments

Loading comments...