anbeime/skill / skills/legal-assistant-skills-main/contract-review
contract-review
Verified律师助理与法律助手、项目管理专家在审核合同、排查条款风险时必备。自动执行基础、商业、法律三层审查,仅添加批注不改原文,一键生成带批注合同、审查摘要、综合意见及业务流程图,让合同风控与业务梳理更高效专业。
| File | Kind | Size |
|---|---|---|
| LICENSE.txt | markdown | 11.1 KB |
| SKILL.md | skill md | 5.4 KB |
| references/checklist.md | markdown | 5.3 KB |
| references/examples.md | markdown | 5.5 KB |
| references/flowchart.md | markdown | 1.8 KB |
| references/language.md | markdown | 2.0 KB |
| references/opinion.md | markdown | 1.3 KB |
| references/summary.md | markdown | 2.8 KB |
| references/technical.md | markdown | 2.7 KB |
| scripts/__init__.py | script | 50 B |
| scripts/contract_analyzer.py | script | 9.2 KB |
| scripts/document.py | script | 11.3 KB |
| scripts/error_handling.py | script | 16.3 KB |
| scripts/mermaid_renderer.py | script | 6.9 KB |
| scripts/ooxml/__init__.py | script | 189 B |
| scripts/ooxml/pack.py | script | 3.5 KB |
| scripts/ooxml/unpack.py | script | 1.1 KB |
| scripts/ooxml/validate.py | script | 1.7 KB |
| scripts/ooxml/validation/__init__.py | script | 433 B |
| scripts/ooxml/validation/base.py | script | 1.5 KB |
| scripts/ooxml/validation/docx.py | script | 311 B |
| scripts/ooxml/validation/pptx.py | script | 274 B |
| scripts/ooxml/validation/redlining.py | script | 217 B |
| scripts/opinion_renderer.py | script | 4.2 KB |
| scripts/summary_renderer.py | script | 9.1 KB |
| scripts/utilities.py | script | 3.1 KB |
| scripts/workflow.py | script | 59.2 KB |
references/technical.md
View on GitHub# OOXML Notes for Comment-Only Reviews
This reference documents the minimal OOXML pieces needed by this skill. It is intentionally lightweight and focused on **comment insertion** only.
## Scope
- **Supported**: Adding Word comments to an existing .docx without changing document text.
- **Not supported**: Tracked changes, rich styling, or full schema validation.
- **Validation**: Only file presence + XML well-formedness.
## Required Files
The comment workflow touches only these parts inside a .docx package:
- `word/document.xml` (the main body)
- `word/comments.xml` (comment bodies)
- `word/_rels/document.xml.rels` (relationship to `comments.xml`)
- `[Content_Types].xml` (content type override for `comments.xml`)
## Namespaces
Use the WordprocessingML namespace for comment elements:
- `w` = `http://schemas.openxmlformats.org/wordprocessingml/2006/main`
## Comment Injection Model
To add a comment:
1. Insert a `w:commentRangeStart` element before the target paragraph content.
2. Insert a `w:commentRangeEnd` element at the end of the paragraph.
3. Insert a `w:commentReference` run right after the range end.
4. Append a `w:comment` entry in `word/comments.xml`.
5. Ensure `document.xml.rels` and `[Content_Types].xml` include the comments part.
### Range Markup Example
```xml
<w:commentRangeStart w:id="12"/>
<!-- paragraph content -->
<w:commentRangeEnd w:id="12"/>
<w:r><w:commentReference w:id="12"/></w:r>
```
### Comment Body Example
```xml
<w:comment w:id="12" w:author="Reviewer" w:initials="RV" w:date="2025-01-10T12:00:00Z">
<w:p><w:r><w:t>Comment text line 1</w:t></w:r></w:p>
<w:p><w:r><w:t>Comment text line 2</w:t></w:r></w:p>
</w:comment>
```
If a `w:t` node begins or ends with whitespace, add `xml:space="preserve"` so Word preserves spacing.
## Relationships
`word/_rels/document.xml.rels` must reference the comments part:
```xml
<Relationship Id="rIdX"
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments"
Target="comments.xml"/>
```
## Content Types
`[Content_Types].xml` must include:
```xml
<Override PartName="/word/comments.xml"
ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml"/>
```
## Common Failure Modes
- **Comments do not show up**: missing relationship or content type override.
- **Comments show but are empty**: `comments.xml` malformed or `w:t` missing text node.
- **Spaces missing**: add `xml:space="preserve"` on the `w:t` nodes.
## When to Extend
If you need tracked changes, comment replies, or advanced metadata (e.g., commentsExtended), add separate modules and document them here. Keep this file short and only include what this skill actually uses.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |