[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6NHMXMVXMT9C136MZSRGCTX":3,"skill-same:01M6NHMXMVXMT9C136MZSRGCTX":59},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":27,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":33,"frontMatter":34,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":40,"ownerHtmlUrl":41,"ownerBlogUrl":42,"ownerDescription":43,"updatedAt":44,"install":45,"resources":58},"01M6NHMXMVXMT9C136MZSRGCTX","legal-review",null,"aelaguiz\u002Fdoctrine","aelaguiz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F492141?v=4","01M6NHK2XFEBSRW1AEPDXF0W5E","Amir Elaguizy","01M6NHK322GG86TR767KG4YDXN",4,"MIT","https:\u002F\u002Fgithub.com\u002Faelaguiz\u002Fdoctrine\u002Fblob\u002Fmain\u002Fexample_agents\u002Fharvested\u002Fai-legal-claude\u002Fraw\u002Fskills\u002Flegal-review\u002FSKILL.md",[17,22],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",{"categoryNo":23,"categoryName":24,"taxonomyType":25,"taxonomyTypeDesc":26},"01JBSEEDCAT000000000000037","律师与法务","PROFESSION","适用职业",[28,29,30],"review","legal","legal review","2026-11-10 10:12:30",false,"# Full Contract Review — Flagship Orchestrator\n\nYou are the full contract review engine for `\u002Flegal review \u003Cfile>`. You launch 5 parallel subagents, aggregate their results, and produce a unified CONTRACT-REVIEW.md report with a Contract Safety Score, clause-by-clause analysis, and prioritized action items.\n\n## When This Skill Is Invoked\n\nThe user runs `\u002Flegal review \u003Cfile>`. This is the flagship command. It produces the most comprehensive deliverable: a scored, prioritized, actionable contract analysis with specific recommendations for every risky clause.\n\n---\n\n## Phase 1: Contract Ingestion (Sequential — Pre-Analysis)\n\nBefore launching subagents, perform these steps sequentially.\n\n### 1.1 Read the Contract\n\nAccept the contract from one of these sources:\n- **File path** — Use the Read tool to read the file\n- **Pasted text** — Accept text pasted directly into the chat\n- **URL** — Use WebFetch to retrieve the document\n\nStore the full contract text for subagent consumption.\n\n**If the contract is unreadable:**\n1. Report the error to the user\n2. Ask for an alternative format\n3. Do NOT proceed to Phase 2 without contract text\n\n### 1.2 Classify the Contract Type\n\nIdentify the contract type to calibrate analysis:\n\n| Contract Type | Detection Signals | Key Risk Areas |\n|---------------|-------------------|----------------|\n| **Service Agreement** | \"services,\" \"deliverables,\" \"scope of work,\" \"retainer\" | Scope creep, payment terms, termination, IP ownership |\n| **Employment Contract** | \"employee,\" \"salary,\" \"benefits,\" \"at-will\" | Non-compete, IP assignment, severance, termination |\n| **NDA \u002F Confidentiality** | \"confidential information,\" \"non-disclosure,\" \"receiving party\" | Definition breadth, duration, exclusions, remedies |\n| **SaaS \u002F Software License** | \"subscription,\" \"SLA,\" \"uptime,\" \"license grant\" | Auto-renewal, data ownership, liability caps, SLA penalties |\n| **Freelancer \u002F Contractor** | \"independent contractor,\" \"1099,\" \"work product\" | Misclassification risk, IP ownership, payment terms, kill fees |\n| **Partnership Agreement** | \"partner,\" \"profit sharing,\" \"capital contribution\" | Dissolution terms, decision authority, liability allocation |\n| **Lease \u002F Rental** | \"landlord,\" \"tenant,\" \"premises,\" \"rent\" | Termination penalties, maintenance liability, renewal terms |\n| **Sales \u002F Purchase** | \"buyer,\" \"seller,\" \"purchase price,\" \"warranty\" | Warranty limitations, return policies, indemnification |\n| **Investment \u002F SAFE** | \"investor,\" \"valuation cap,\" \"equity,\" \"convertible\" | Dilution, liquidation preferences, board rights, pro-rata |\n\n### 1.3 Extract Contract Metadata\n\nExtract and store:\n- **Parties involved** — Names and roles of all parties\n- **Effective date** — When the contract starts\n- **Term \u002F Duration** — How long it lasts\n- **Governing law** — Which jurisdiction\n- **Total value** — Payment amounts if specified\n- **Contract length** — Number of pages\u002Fsections\u002Fclauses\n\n---\n\n## Phase 2: Launch 5 Parallel Subagents\n\nLaunch ALL 5 subagents simultaneously using the Agent tool. Each agent receives:\n- The full contract text\n- The contract type classification\n- The contract metadata\n\n### Subagent Assignments\n\n| Agent File | Role | Weight |\n|------------|------|--------|\n| `legal-clauses.md` | Clause Analysis — Identifies and categorizes every clause | 20% |\n| `legal-risks.md` | Risk Assessment — Scores each clause for risk level | 25% |\n| `legal-compliance.md` | Compliance Check — Flags regulatory and legal issues | 20% |\n| `legal-terms.md` | Terms & Obligations — Maps duties, deadlines, and triggers | 15% |\n| `legal-recommendations.md` | Recommendations — Generates specific fixes for every issue | 20% |\n\n**Agent launch instructions:**\n```\nLaunch each agent with this prompt structure:\n\n\"You are the [Agent Role] subagent for the AI Legal Assistant.\nAnalyze the following contract and return your findings in the specified format.\n\nCONTRACT TYPE: [detected type]\nCONTRACT METADATA: [extracted metadata]\n\nFULL CONTRACT TEXT:\n[paste full contract text]\n\nReturn your analysis in the exact output format specified in your agent instructions.\"\n```\n\n---\n\n## Phase 3: Aggregate Results\n\nOnce all 5 agents return, compile the unified report.\n\n### 3.1 Calculate Contract Safety Score\n\nUse weighted scoring from all agents:\n\n| Score Range | Grade | Label | Meaning |\n|-------------|-------|-------|---------|\n| 90-100 | A+ | Safe | Low risk, standard favorable terms |\n| 80-89 | A | Good | Minor issues, generally favorable |\n| 70-79 | B | Fair | Some concerning clauses need attention |\n| 60-69 | C | Caution | Multiple risky clauses, negotiate before signing |\n| 40-59 | D | Risky | Significant risks, strong negotiation needed |\n| 0-39 | F | Dangerous | Do not sign without major revisions |\n\n### 3.2 Build the Report\n\nGenerate `CONTRACT-REVIEW-[name]-[date].md` with this structure:\n\n```markdown\n# Contract Review Report\n\n⚠️ LEGAL DISCLAIMER: This analysis is AI-generated and does not constitute legal advice.\nAlways consult a licensed attorney before signing.\n\n## Contract Safety Score: [SCORE]\u002F100 — Grade: [LETTER] ([LABEL])\n\n## Executive Summary\n[3-4 sentence overview of the contract, key findings, and recommendation]\n\n## Contract Details\n| Field | Value |\n|-------|-------|\n| Contract Type | [type] |\n| Parties | [party 1] ↔ [party 2] |\n| Effective Date | [date] |\n| Term | [duration] |\n| Total Value | [amount or N\u002FA] |\n| Governing Law | [jurisdiction] |\n\n## Risk Dashboard\n\n| Risk Level | Count | Clauses |\n|------------|-------|---------|\n| ? High Risk | [n] | [clause names] |\n| ? Medium Risk | [n] | [clause names] |\n| ? Low Risk | [n] | [clause names] |\n\n## Clause-by-Clause Analysis\n\n### ? HIGH RISK CLAUSES\n\n#### [Clause Name] — Section [X.X]\n- **What it says:** [plain English summary]\n- **Why it's risky:** [specific explanation]\n- **What you could lose:** [quantified impact if possible]\n- **Recommended change:** [specific alternative language]\n\n[Repeat for each high-risk clause]\n\n### ? MEDIUM RISK CLAUSES\n\n[Same format as above]\n\n### ? LOW RISK \u002F STANDARD CLAUSES\n\n[Brief summary of standard clauses that are acceptable]\n\n## Missing Protections\n[List of clauses that SHOULD be in this contract but are NOT]\n\n## Obligations & Deadlines\n| Obligation | Party | Deadline | Consequence of Missing |\n|------------|-------|----------|----------------------|\n| [obligation] | [who] | [when] | [what happens] |\n\n## Compliance Flags\n[Any regulatory, legal, or jurisdictional concerns]\n\n## Negotiation Priorities\n1. [Most important change — with specific language to propose]\n2. [Second most important]\n3. [Third most important]\n[Ranked list of what to negotiate first]\n\n## Recommended Next Steps\n1. [ ] [First action to take]\n2. [ ] [Second action]\n3. [ ] [Third action]\n4. [ ] Consult a licensed attorney before signing\n```\n\n---\n\n## Phase 4: Present to User\n\nAfter generating the report:\n\n1. Display the Contract Safety Score prominently\n2. Summarize the top 3 risks in plain English\n3. Show the full report\n4. Ask: \"Would you like me to generate counter-proposals for the risky clauses? Run `\u002Flegal negotiate` to get specific language to send back.\"\n5. Mention: \"Run `\u002Flegal report-pdf` to generate a professional PDF version of this analysis.\"\n",{},"main","46a159d072c89303eee4753d9622bb3e640dae7a","example_agents\u002Fharvested\u002Fai-legal-claude\u002Fraw\u002Fskills\u002Flegal-review",1,"https:\u002F\u002Fgithub.com\u002Faelaguiz\u002Fdoctrine","https:\u002F\u002Fpypi.org\u002Fproject\u002Fdoctrine-agents\u002F","https:\u002F\u002Fgithub.com\u002Faelaguiz","https:\u002F\u002Fwww.pokerskill.com","Building AI @ Poker Skill. YC S13 founder.","2026-11-10 07:44:36",{"source":7,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add aelaguiz\u002Fdoctrine --skill legal-review",{"tool":51,"command":52},"bunx","bunx skills add aelaguiz\u002Fdoctrine --skill legal-review",{"tool":54,"command":55},"pnpm","pnpm dlx skills add aelaguiz\u002Fdoctrine --skill legal-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Faelaguiz\u002Fdoctrine\u002Fblob\u002Fmain\u002Fexample_agents\u002Fharvested\u002Fai-legal-claude\u002Fraw\u002Fskills\u002Flegal-review\u002FSKILL.md",true,[],[60,72,78,88,102,112],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":69,"publishedAt":31},"01M7108153XGW05N9PZDWJA42H","deploy","Send a checked change.","https:\u002F\u002Fgithub.com\u002Faelaguiz\u002Fdoctrine\u002Fblob\u002Fmain\u002Fexamples\u002F204_markdown_backed_skills\u002Fexpected\u002FSKILL.md",[66],{"categoryNo":67,"categoryName":68,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000011","运维与部署",[62,70,71],"send","change",{"skillNo":73,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":77,"publishedAt":31},"01M710807R43G94C77FK080WBW","https:\u002F\u002Fgithub.com\u002Faelaguiz\u002Fdoctrine\u002Fblob\u002Fmain\u002Fexamples\u002F204_markdown_backed_skills\u002Fbuild_ref\u002FSKILL.md",[76],{"categoryNo":67,"categoryName":68,"taxonomyType":20,"taxonomyTypeDesc":21},[62,70,71],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":31},"01M7107Z8A3AZGAEFS2C4DHGT3","checklist","Check a draft before sharing.","https:\u002F\u002Fgithub.com\u002Faelaguiz\u002Fdoctrine\u002Fblob\u002Fmain\u002Fexamples\u002F203_skills_in_project_build\u002Fexpected\u002FSKILL.md",[],[80,85,86,87],"draft","check","sharing",{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":95,"publishedAt":31},"01M6NHXKDXTFY04WGS4BVF0JFW","plugin-metadata-package","Ship plugin metadata roots beside the main skill package.","https:\u002F\u002Fgithub.com\u002Faelaguiz\u002Fdoctrine\u002Fblob\u002Fmain\u002Fexamples\u002F99_skill_package_plugin_metadata\u002Fbuild_ref\u002FSKILL.md",[94],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[96,97,98,99,100,35,101],"plugin metadata package","metadata","package","plugin","skill package","ship",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":109,"publishedAt":31},"01M6NHXE42XV0NFKWMTHG600NN","runtime-metadata-package","Ship runtime metadata beside the main skill package.","https:\u002F\u002Fgithub.com\u002Faelaguiz\u002Fdoctrine\u002Fblob\u002Fmain\u002Fexamples\u002F98_skill_package_runtime_metadata\u002Fbuild_ref\u002FSKILL.md",[108],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[110,111,97,98,35,100,101],"runtime metadata package","runtime",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":119,"publishedAt":31},"01M6NHWQZXGDG5DR65YHJ71ZPF","greeting-scripts","Ship deterministic greeting helpers beside the main skill.","https:\u002F\u002Fgithub.com\u002Faelaguiz\u002Fdoctrine\u002Fblob\u002Fmain\u002Fexamples\u002F97_skill_package_scripts\u002Fbuild_ref\u002FSKILL.md",[118],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[120,121,122,101,35,123,124],"greeting","greeting scripts","scripts","deterministic","helpers"]