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/contracts.md
View on GitHub# Contract Module
Use for contract upload, ledgering, review, tracked-change review draft, drafting, templates, versions, expiry, and contract queries.
## Scope
Include:
- upload/archive contracts
- generate `contracts.csv`
- create `contract-record.md`
- review contracts
- create internal Word tracked-change review draft
- draft contracts
- manage company template library
- manage versions/final confirmation
- create local reminders
- answer local contract questions
- link to governance authority checks for guarantee, borrowing, financing, major commitment, and sealing
Exclude:
- Feishu contract review documents
- business flowcharts
- mind maps
- negotiation-bottom-line documents
- lawyer-advisor versions
- formal legal opinions
- lawyer/law-firm signature blocks
## Upload Workflow
```text
save source file
→ read fully
→ extract basic fields
→ check duplicate/similar records
→ confirm project/ownership if unclear
→ generate contract_id
→ archive original
→ update contracts.csv
→ create contract-record.md
→ extract expiry/renewal/notice dates
→ create reminders
→ output completion note
```
## Key Fields
Extract where possible:
- contract name/type
- our party and role
- counterparty
- amount
- signing/effective/start/end dates
- renewal and notice terms
- payment, delivery/service, acceptance
- breach, termination, dispute resolution
- attachments/orders/supplements
- sealing, authorization, guarantee, borrowing, financing, major commitment flags
Mark missing fields as `待确认`; mark OCR doubts as `OCR待复核`.
## Review Gate
Before review, confirm:
- review position
- company role
- focus areas
- whether Word tracked-change review draft is needed
- whether guarantee/borrowing/financing/major commitment/sealing is involved
- whether articles/authorization check is needed
- signing deadline
No substantive review before confirmed review position.
## Review Method
Use the existing legal contract review method as reference:
1. transaction structure
2. contract type
3. clause completeness
4. special risk card
At minimum check:
- subject qualification
- signing authority
- subject matter
- price/payment
- term
- delivery/acceptance
- breach
- termination
- dispute resolution
- notices
- attachments/supplements
- sealing/authorization
- expiry/renewal/notice
Risk levels:
```text
低
中
高
签署阻断
```
## Review Issue Format
```markdown
### 问题 001|问题标题
- 条款位置:
- 原文摘录:
- 问题类型:
- 风险说明:
- 处理建议:必须修改 / 建议修改 / 需企业确认 / 可优化
- 建议修改文本:
- 是否进入 Word 修订稿:
- 来源:
```
Do not include negotiation bottom line or lawyer strategy.
## Only Review Deliverable
The only contract review deliverable is:
```text
Word 修订格式合同审核稿
```
Requirements:
- original contract is read-only
- do not overwrite original
- save new review draft
- use real Word tracked changes
- use comments for major risks, fact gaps, and company decisions
- do not model-fill amounts, dates, contacts, accounts, or business choices
- run structure/QA checks before calling complete
Use `scripts/contract_redline_review.py` after a valid `redline-plan.json` has been produced. The wrapper reuses the existing legal contract review redline engine and QA checker, preserving the original contract and producing a separate internal tracked-change DOCX.
## Drafting
Drafting modes:
```text
company template
→ generic template
→ independent drafting
```
Before drafting confirm contract type, parties, role, background, subject/service, price/payment, term, delivery/acceptance, breach preference, dispute resolution, sealing, guarantee/borrowing/authorization/major commitment, and whether to use company template.
Drafts are internal company drafts only.
## Template Library
Company templates live at:
```text
<company_workspace>/01-合同管理/模板库/
```
Index:
```text
template_id,template_name,contract_type,preferred_role,applicable_scene,source_file_path,record_md_path,last_used_at,status,created_at,updated_at
```
Use `scripts/archive_record.py --kind template` to archive company templates and update `template-index.csv`.
## Version And Final
Never guess final version. Mark final only when user explicitly says:
```text
最终版
定稿
签署版
已签署
归档
```
## Completion Note
Include original contract path, ledger path, detail record path, review/draft output path, 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 |