pa1nrui1/enterprise-legal-ops / skills/enterprise-legal-ops
enterprise-legal-ops
Verified中小企业本地法务运营管理 Skill。用于企业内部管理合同、员工/劳动合同/年假/制度、公章证照、章程权限、股东出资、提醒和本地自然语言问库。用户要初始化企业法务工作区、上传历史合同/员工花名册/劳动制度/证照/章程/授权/用印记录、生成本地台账、查询到期提醒、做企业内部合同审查 Word 修订稿、合同起草、HR 风险预判、制度冲突检查、旧制度合法性审查、公章用印权限校验、股东出资提醒、飞书日历提醒配置时触发。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 5.2 KB |
| agents/openai.yaml | config | 330 B |
| references/contracts.md | markdown | 4.4 KB |
| references/hr.md | markdown | 5.5 KB |
| references/local-query.md | markdown | 2.5 KB |
| references/reminders.md | markdown | 2.8 KB |
| references/seals-licenses-governance.md | markdown | 5.3 KB |
| references/strict-review.md | markdown | 2.3 KB |
| references/workspace-data-standard.md | markdown | 2.7 KB |
| scripts/archive_record.py | script | 19.7 KB |
| scripts/contract_redline_review.py | script | 4.1 KB |
| scripts/import_document.pyexecutable | script | 11.3 KB |
| scripts/import_roster.py | script | 11.9 KB |
| scripts/init_workspace.pyexecutable | script | 11.4 KB |
| scripts/ledger.pyexecutable | script | 7.4 KB |
| scripts/query_workspace.pyexecutable | script | 5.8 KB |
| scripts/reminders.pyexecutable | script | 20.9 KB |
| scripts/strict_review_record.py | script | 5.3 KB |
| tests/test_enterprise_legal_ops.pyexecutable | script | 19.3 KB |
references/hr.md
View on GitHub# HR Module
Use for employee roster, labor contracts, annual leave, policies, policy conflicts, policy legality, salary/attendance questions, and internal HR risk prediction.
## Scope
Include:
- roster import and `employees.csv`
- labor contract import/matching and `employment-contracts.csv`
- employee `employee-record.md`
- probation/contract expiry/renewal reminders
- annual leave management and `annual-leave.csv`
- policy file management
- new-old policy conflict checks
- old policy legality review
- policy procedure reminders
- attendance/salary questions
- transfer, salary reduction, discipline, termination, resignation risk prediction
Exclude:
- labor arbitration representation
- litigation case management
- formal legal opinions
- external legal documents
- lawyer/law-firm signature blocks
## Roster Import
Support `.xlsx`, `.xls`, `.csv`; try OCR/read for PDF/Word/images with accuracy boundary.
Extract employee id, name, department, position, entry date, contract dates, probation end, work location, employment status, working-hours system, salary structure, social insurance status, annual leave fields if present.
Create/update:
- `employees.csv`
- employee records
- probation/contract/renewal reminders
- annual leave records if data exists
Use `scripts/import_roster.py` for `.csv`, `.xlsx`, and `.xls` rosters. It creates employee ids when missing, updates `employees.csv`, writes employee records, creates probation/contract reminders, and writes `annual-leave.csv` when leave fields exist.
## Labor Contract Matching
Read labor contracts fully, extract name/ID and match roster:
- name + ID match: auto-match
- name only with duplicates: ask user
- not in roster: ask whether to create employee
- conflicting contract dates: mark `待复核`
- OCR dates, amounts, ID numbers: mark review status
## Annual Leave
Maintain:
```text
<company_workspace>/02-人力资源/annual-leave.csv
```
Fields:
```text
leave_record_id,employee_id,employee_name,year,entry_date,continuous_work_years,statutory_annual_leave_days,company_annual_leave_days,used_annual_leave_days,remaining_annual_leave_days,carryover_rule,expiry_date,compensation_required,compensation_amount,calculation_basis,source_file_path,record_md_path,risk_flags,created_at,updated_at
```
Never assert used/unused leave without attendance/leave records. For compensation, verify law/local rules and show formula/source.
## Policy Management
Policy files include employee handbook, labor contract templates, salary, attendance, performance, discipline/reward, overtime approval, leave, annual leave, resignation handover, transfer, and HR-related approval policies.
On import:
- read fully
- identify name, version date, effective date, scope
- extract salary, hours, attendance, performance, discipline, termination, annual leave clauses
- update policy index
- mark publicity, democratic procedure, employee receipt materials
- trigger old-policy legality review
- if similar policy exists, trigger conflict check
Use `scripts/archive_record.py --kind policy` to archive policy files, update `policies.csv`, append `制度索引.md`, and create legality/conflict review placeholder records. Complete substantive legality or conflict conclusions only through strict review.
## Policy Conflict Check
Trigger when uploading/drafting/modifying policies or when user asks about conflict.
Compare at least current handbook, labor contract template, salary, attendance, performance, discipline, overtime approval, leave, annual leave, resignation handover, transfer.
Detect conflicts in effective date, scope, salary, payday, overtime approval/calculation, leave/annual leave, performance, discipline, termination, transfer/salary reduction, delivery/receipt, and labor contract terms.
Output must identify exact clauses and concrete impact.
## Policy Procedure Reminder
If a policy touches wages, working hours, rest/leave, social insurance/welfare, labor safety, discipline, assessment/reward, or termination, remind HR about:
- employee/representative discussion
- union or employee representative consultation
- final text
- publication/training
- employee receipt
- preserving meeting notice, attendance, discussion records, feedback, consultation records, screenshots, signed receipts, training records
Do not equate text legality with procedural validity.
## Old Policy Legality Review
Review at least wage deductions, overtime approval/pay, lateness/absence penalties, fines/deductions, performance elimination, transfer/salary reduction, probation/hiring conditions, non-compete/confidentiality, annual/sick/marriage/maternity leave, termination grounds, unilateral final interpretation, democratic procedure/publication/receipt.
Point to exact clauses, source text, risk, suggested fix, replacement text when possible, and verification status.
## HR Risk Prediction
For termination, transfer, salary reduction, discipline, resignation disputes, read employee contract, roster, handbook, salary/attendance/performance/discipline/annual leave policies, facts, notices, interviews, defenses, delivery, union/employee representative materials if any.
Confirm protected status, work injury/medical period/disability, near-retirement status, recent complaints/reporting/labor inspection/arbitration threats, intended action, evidence, procedure, outstanding annual leave/wages/bonus/commission/reimbursement.
Do not draft external termination/discipline/arbitration documents.
## Completion Note
Include employee ledger, employee record, annual leave ledger, policy files, conflict/legality records, reminders, risks/gaps, next steps.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |