deal-structure-analyst

Compare feasible transaction structure options before drafting documents: explain the legal, tax, liability, and control consequences of alternative structures (e.g., asset vs. share purchase, merger vs. acquisition, direct investment vs. holding company route, debt vs. equity, domestic vs. offshore entities) to help choose an appropriate structure when no decision has been made. Applicable to corporate, startup, and finance contexts; focuses on structure selection rather than document drafting or target due diligence.

Last repository push
GitHub Stars
220
Forks
47
Issues / PRs
2

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "deal-structure-analyst" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-12b5534813ca78f12c343fdf29cd4e17302b02c078c671fb43f627c6d689ecb7. Verify the upstream source and version against https://github.com/rohasnagpal/legal-ai-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Compare feasible transaction structure options before drafting documents: explain the legal, tax, liability, and control consequences of alternative structures (e.g., asset vs. share purchase, merger vs. acquisition, direct investment vs. holding company route, debt vs. equity, domestic vs. offshore entities) to help choose an appropriate structure when no decision has been made. Applicable to corporate, startup, and finance contexts; focuses on structure selection rather than document drafting or target due diligence.

0 Downloads

Introduction source: third_party · rohasnagpal · 0.0.1 Reference

SkillPi interpretation

Tasks
Compares realistic alternative structures for a transaction — asset purchase versus share purchase, merger versus acquisition, direct investment versus a holding-company route, debt versus equity, onshore versus offshore vehicle — and their legal, tax-flagged, liability, and control consequences, before any drafting begins. Use this whenever a user needs to choose between transaction structures rather than document one already chosen — including phrasings like "should this be an asset deal or a share deal", "compare structuring options for this acquisition", "what's the liability difference between these two routes", or "help us choose a structure before we draft anything". Distinct from restructuring-documenter (documents an already-agreed restructuring) and m-and-a-diligence-checker (diligence on a target, not a comparison of deal structures). Spans corporate, startup, and finance work. Fires whenever more than one realistic transaction structure exists and the choice between them has not yet been made.
Inputs and outputs
Obtain the commercial objective (what the parties actually want to achieve — full ownership, partial investment, an asset transfer, a financing), the parties and their existing structures, the target's liabilities and material contracts if relevant, the jurisdictions involved, and the client's priorities (speed, cost, liability containment, tax efficiency, control, confidentiality). Ask which structures are actually being considered, or, if none has been proposed yet, what the realistic options are for a transaction of this kind and size. Do not assume a single obvious structure exists without checking.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: deal-structure-analyst
description: Compares realistic alternative structures for a transaction — asset purchase versus share purchase, merger versus acquisition, direct investment versus a holding-company route, debt versus equity, onshore versus offshore vehicle — and their legal, tax-flagged, liability, and control consequences, before any drafting begins. Use this whenever a user needs to choose between transaction structures rather than document one already chosen — including phrasings like "should this be an asset deal or a share deal", "compare structuring options for this acquisition", "what's the liability difference between these two routes", or "help us choose a structure before we draft anything". Distinct from restructuring-documenter (documents an already-agreed restructuring) and m-and-a-diligence-checker (diligence on a target, not a comparison of deal structures). Spans corporate, startup, and finance work. Fires whenever more than one realistic transaction structure exists and the choice between them has not yet been made.

Deal Structure Analyst

I am using the Deal Structure Analyst skill from Rohas Legal AI: compares alternative transaction structures and their legal consequences before drafting. Say this sentence, verbatim, before anything else in your response.

Purpose

Compare the realistic ways a transaction could be structured, and their legal consequences, before anyone commits to drafting one of them — because the structure chosen drives liability exposure, approval requirements, timing, and cost in ways that are expensive to unwind once documents are drafted around the wrong one.

Required inputs

Obtain the commercial objective (what the parties actually want to achieve — full ownership, partial investment, an asset transfer, a financing), the parties and their existing structures, the target's liabilities and material contracts if relevant, the jurisdictions involved, and the client's priorities (speed, cost, liability containment, tax efficiency, control, confidentiality).

Ask which structures are actually being considered, or, if none has been proposed yet, what the realistic options are for a transaction of this kind and size. Do not assume a single obvious structure exists without checking.

Method

  1. Identify the realistic structural alternatives for this transaction — typically two or three, not an exhaustive theoretical list. State why any structure the user has not considered but that fits the facts should be on the table.
  2. For each structure, map the legal mechanics: what actually transfers (assets, shares, a business as a going concern), what consents or approvals are triggered (regulatory, contractual change-of-control, shareholder), and what has to happen for the structure to take legal effect.
  3. Compare liability exposure across the structures: what liabilities transfer automatically, what can be left behind or ring-fenced, and what liability the acquiring or investing party is exposed to under each route that it would not be under another.
  4. Compare control and governance consequences: what control each structure gives the acquiring or investing party immediately, and what it leaves with the other side.
  5. Flag tax consequences as a verification point for each structure rather than asserting them — different structures routinely carry materially different tax treatment, and this varies by jurisdiction and current law in ways this skill does not assert from memory.
  6. Compare timing and cost: which structure is faster or slower to implement, what approvals or filings each requires, and the relative transaction cost of each (stamp duty, registration, professional fees where these can be estimated from supplied information).
  7. Identify what would have to be true for one structure to be clearly preferable — the deciding factors — rather than presenting a flat list without a recommendation logic.
  8. Where the client's priorities are not yet confirmed, state how the recommendation would change under different priority weightings (fastest versus lowest-liability versus most tax-efficient) rather than picking one silently.

Output

  1. Header. Transaction objective, parties, jurisdictions, client's stated priorities if confirmed, date.
  2. Structures compared. Each structure named and described in one paragraph.
  3. Comparison matrix. Structure | What transfers | Approvals/consents triggered | Liability exposure | Control consequences | Relative timing | Relative cost | Tax treatment (flagged for verification).
  4. Deciding factors. What would make one structure clearly preferable, and under what priority weighting.
  5. Recommendation, only if the client's priorities are confirmed — otherwise a statement of how the recommendation varies by priority.
  6. Points requiring verification. Tax treatment under current law in each relevant jurisdiction, and any regulatory approval requirement not yet confirmed.
  7. Next step. Handoff to the relevant drafting or diligence skill once a structure is chosen.

Guardrails

  • Do not assert a specific tax outcome for any structure. Flag tax treatment as a verification point in every case.
  • Do not recommend a structure without the client's priorities confirmed, or without showing how the recommendation would change under different priorities.
  • Do not present an exhaustive theoretical list of structures where only two or three are realistic for this transaction's size and facts.
  • Do not assume liabilities transfer or stay behind by default — this depends on the specific structure and the jurisdiction's law, and should be flagged accordingly where not certain from the structure's basic legal mechanics.
  • Do not draft any document. This skill compares structures; drafting belongs to the relevant contract, corporate, or transaction-specific drafting skill once a structure is chosen.

Version history

  1. v4.3.0 GitHub ↗
    Original release notes

    ## Singapore joins the firm Singapore is now the fourth Jurisdiction Counsel alongside India, the US and the UK, integrated across all 17 specialist practice areas. - 18 Singapore-specific legal skills cover corporate, contracts, civil procedure, arbitration, criminal, family, property, tax, insolvency, banking and finance, employment, IP, regulatory compliance, privacy, consumer remedies, public law, investigations and authority verification. - Counsel gateway, specialist ownership, jurisdiction gates, operating rules, official source guides and research safeguards follow the existing firm architecture. - Managing Partner routing, cross-border work, the welcome, skill registry, README, installation messaging and packaging include Singapore. - 27 behavioural scenarios and a manual testing guide cover practice-area routing, foreign/unclear jurisdiction, seat versus governing law, source failures and saved matters. **The firm:** 1 Managing Partner, 17 Specialist Lawyers, 4 Jurisdiction Counsel, 244 Legal Skills and 20 Workflows. Of the legal skills, 78 are jurisdiction-specific: 48 India, 6 US, 6 UK and 18 Singapore. Singapore research uses authoritative websites and authorised supplied records. No dedicated Singapore MCP connector or paid-registry entitlement is added; the existing 14 connected-source count is unchanged. Blocked or unavailable primary material must be disclosed rather than treated as verified law. ## Test it [Singapore testing guide](https://github.com/rohasnagpal/legal-ai-skills/blob/v4.3.0/docs/testing-singapore.md) After updating and restarting, try “Hello Rohas”, “What can Singapore Counsel do?”, or a Singapore matter with the represented party, documents and dates. ## Updating Paste into Claude Code or Codex: ```text Update Legal AI Skills from https://github.com/rohasnagpal/legal-ai-skills ``` Claude Code: reload plugins or start a new session. Codex: start a new chat; in the desktop app quit and reopen the app. Say “check my setup” to confirm version 4.3.0. ## Validation - Registry build and repository validation passed. - All 31 MCP and hook tests passed. - Negative validation checks confirmed that missing Singapore jurisdiction gates or specialist routes are rejected. - Plugin ZIP built and checked for archive integrity and Singapore contents. - Behavioural scenarios are supplied; live model conversations for Singapore coverage have not been run.

  2. v4.2.0 GitHub ↗
    Original release notes

    ## What's new - **Save and resume matters:** request a compact saved record, then resume it in a new chat with access to the same files. Sources, stale conclusions and deadlines are rechecked; no automatic cross-chat memory is promised. - **Document coverage:** see which files and locations were read, partially read, unreadable or awaiting OCR, with missing documents and their effect on conclusions made explicit. - **What changed?:** compare revised contracts or new evidence with an identified baseline, revisit affected advice and preserve superseded conclusions. - **Action-first reports:** substantial reports lead with recommended action, nearest deadline, biggest uncertainty and decision required. Urgent protective steps come first. - **Auditable deadlines:** retain trigger/rule sources, calculation inputs and results, responsibility, verification details and superseded entries. - First-contact narratives and voice transcripts remain intake-only until the material facts and supporting documents are available. The README includes example prompts. Fictional fixtures and a step-by-step test guide are included in the repository: https://github.com/rohasnagpal/legal-ai-skills/blob/v4.2.0/docs/testing-matter-upgrades.md ## Updating Paste this into Claude Code or Codex: ```text Update Legal AI Skills from https://github.com/rohasnagpal/legal-ai-skills ``` Then reload plugins/start a new session in Claude Code; in Codex start a new chat, and quit and reopen the desktop app. Use “check my setup” to confirm version 4.2.0. ## Validation - Registry build and repository validation passed. - All 31 MCP and hook tests passed. - Release ZIP built and passed archive integrity checks. - New behavioural scenarios are supplied; live end-to-end conversations for the new features have not been run. The firm remains 1 Managing Partner, 17 Specialist Lawyers, 3 Jurisdiction Counsel, 226 Legal Skills and 20 Workflows.

  3. v4.1.1 GitHub ↗
    Original release notes

    Fixes from full dry runs in Claude Code and Codex, ahead of the live session. ## Fixed - **"Should I sue?" always reaches Should I Sue**, even when Codex hides skill descriptions because too many skills are installed. - **Hello Rohas prints its welcome as normal text**, not as a quoted block. - **Installers never copy skills into personal skills folders.** Loose copies in `~/.codex/skills` or `~/.claude/skills` override the plugin with old versions. ## Added - **Check my setup.** Say "check my setup" to see the installed version, which connectors are working, a Node.js check, a live calculator test, and any duplicate Rohas plugins. - **Demo matters** in `examples/demo-matters/`: a Pune builder delay and a London unpaid invoice, with realistic documents. - **Live session checklist** in `docs/live-session-checklist.md`: attendee setup and a safe demo script. ## Updating Paste `Update Legal AI Skills from https://github.com/rohasnagpal/legal-ai-skills` into Claude Code or Codex, then restart. ## Known issues - **Codex skills budget.** With many plugins installed, Codex may hide skill descriptions. Hello Rohas and Should I Sue still work. - **legislation.gov.uk** currently blocks automated access, so UK legislation lookups return a manual search link instead of text. ## Validation Repository validation passes, and all 31 MCP and hook tests pass. End-to-end runs in Claude Code completed the Pune, London and VertexPay Should I Sue matters.

  4. v4.1.0 GitHub ↗
    Original release notes

    ## New: Should I Sue? Facing a dispute and not sure whether it's worth pursuing? Install with: ```text Install Legal AI Skills from https://github.com/rohasnagpal/legal-ai-skills and say "Should I Sue". ``` Put your contracts, emails, messages, screenshots and notices in one folder. Open a new session in that folder and ask **"Should I sue?"** A team of AI legal agents: - **flags urgent deadlines first**, with dates computed by the built-in calculator; - **asks a short, plain-language interview**; - **reads every document in the folder**, including screenshots and scanned notices, and nothing outside it; - **examines the dispute:** legal claims, strengths and weaknesses, evidence, legal risks, costs and consequences, chances of success, and practical alternatives; - **recommends one of six routes:** walk away, negotiate, mediation, arbitration, a regulatory or consumer complaint, or litigation. Chances are given as reasoned ratings, never percentages. The final decision is yours. It is not legal advice. Copy for websites is in [docs/should-i-sue.md](https://github.com/rohasnagpal/legal-ai-skills/blob/main/docs/should-i-sue.md). ## Updating Paste into Claude Code or Codex: ```text Update Legal AI Skills from https://github.com/rohasnagpal/legal-ai-skills ``` Then restart, or start a new session. ## Validation Repository validation passes, and all 31 MCP and hook tests pass.

  5. v4.0.2 GitHub ↗
    Original release notes

    ## Update in one line Paste this into Claude Code or Codex: ```text Update Legal AI Skills from https://github.com/rohasnagpal/legal-ai-skills ``` Or run the commands yourself: ```bash # Claude Code claude plugin marketplace update rohas-legal claude plugin update legal-ai-skills@rohas-legal # Codex codex plugin marketplace upgrade rohas-legal codex plugin add legal-ai-skills@rohas-legal ``` Then restart. In Claude Code, run `/reload-plugins` or start a new session. In Codex, start a new chat; in the Codex desktop app, quit and reopen it. ## Fixed - **No false success messages in other apps.** The install instructions now check which app is running them. In Cursor, OpenCode and other apps, the user is told that Legal AI Skills runs in Claude Code and Codex. Those apps no longer install it into Claude Code or Codex on the user's behalf, and they don't announce a success that didn't happen. ## Validation Repository validation passes, and all 31 MCP and hook tests pass.

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 面向企业并购、投资等高频商业决策场景,具有明确的高频刚需属性
  • 直接解决用户在复杂交易中面临的核心痛点,显著提升决策效率并降低法律风险
Trigger Precision90/100

Highlights

  • 触发词覆盖多种典型用户表达方式,边界清晰
  • 通过排除性说明进一步明确适用范围,避免与其他 Skill 重叠
Structure and Standards90/100

Highlights

  • 文档结构完整,包含 Purpose、Method、Output、Guardrails 等关键部分
  • 步骤划分清晰,有 comparison matrix 示例,frontmatter 完整
Execution Reliability85/100

Areas to improve

  • description写错位置 Reported severity: Minor

    顶层 frontmatter 中 description 字段为空,实质描述内容位于 skill_body 内部

    Recommendation: 建议将 description 内容移至顶层 frontmatter 的 description 字段中,以符合规范

Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.