stock-purchase-agreement
Drafts a Stock Purchase Agreement for 100% stock acquisitions in middle-market M&A transactions. Covers purchase price with working capital adjustments, escrow, earnouts, seller reps and warranties with disclosure schedules, indemnification, restrictive covenants, and closing mechanics. Trigger keywords: "stock purchase agreement", "SPA", "stock acquisition", "definitive purchase agreement", "M&A closing document", "share purchase".
Best use case
stock-purchase-agreement is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Drafts a Stock Purchase Agreement for 100% stock acquisitions in middle-market M&A transactions. Covers purchase price with working capital adjustments, escrow, earnouts, seller reps and warranties with disclosure schedules, indemnification, restrictive covenants, and closing mechanics. Trigger keywords: "stock purchase agreement", "SPA", "stock acquisition", "definitive purchase agreement", "M&A closing document", "share purchase".
Teams using stock-purchase-agreement should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/stock-purchase-agreement/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How stock-purchase-agreement Compares
| Feature / Agent | stock-purchase-agreement | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Drafts a Stock Purchase Agreement for 100% stock acquisitions in middle-market M&A transactions. Covers purchase price with working capital adjustments, escrow, earnouts, seller reps and warranties with disclosure schedules, indemnification, restrictive covenants, and closing mechanics. Trigger keywords: "stock purchase agreement", "SPA", "stock acquisition", "definitive purchase agreement", "M&A closing document", "share purchase".
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Stock Purchase Agreement (M&A) Draft a definitive SPA for acquiring 100% of a target company's outstanding capital stock in a middle-market transaction. ## Prerequisites 1. **Deal documents** — LOI, term sheet, or preliminary agreement with negotiated business terms. 2. **Organizational docs** — articles of incorporation, bylaws, shareholder agreements. 3. **Capitalization details** — authorized/outstanding shares, classes, each seller's ownership percentage. 4. **Financial statements** — audited/reviewed for 2+ fiscal years plus most recent interim period. 5. **Due diligence materials** — material contracts, employment agreements, IP schedules, litigation history. 6. **Negotiated economics** — purchase price, working capital target, escrow percentage, earnout terms. ## Document Intelligence Extract from uploaded materials before drafting: | Data Point | Source Priority | |---|---| | Party names, entity types, jurisdictions | LOI → Org docs → Correspondence | | Cap table (shares, classes, ownership %) | Stock ledger → Org docs → LOI | | Purchase price and adjustments | Term sheet → LOI | | Working capital target | Financial statements → Term sheet | | Escrow/earnout terms | LOI → Term sheet | | Material contracts requiring consent | Due diligence schedule | | Disclosed liabilities/contingencies | Financial statements → Disclosure schedules | | Key employees and compensation | Employment agreements → HR records | | Balance sheet date (MAE baseline) | Most recent financial statements | Cite source documents when incorporating extracted terms. Flag gaps requiring user input. ## Output Structure / Process ### 1) Document Skeleton ```text STOCK PURCHASE AGREEMENT - Parties; Effective Date; Recitals 1. Definitions 2. Purchase and Sale of Shares 3. Purchase Price; Payment; Adjustments 4. Closing; Closing Deliveries 5. Representations and Warranties of Sellers 6. Representations and Warranties of Buyer 7. Covenants (Pre-Closing; Post-Closing) 8. Conditions to Closing 9. Indemnification 10. Termination 11. General Provisions Signatures Exhibits and Schedules ``` ### 2) Exhibit/Schedule Map | Label | Purpose | Must Include | |---|---|---| | Exhibit A | Seller schedule | Name, address, TIN, shares, class, ownership %, price allocation — must total 100% | | Exhibit B | Escrow agreement | Escrow agent, deposit amount, release schedule, claim procedures | | Disclosure Schedules | R&W exceptions | Numbered to match each seller rep subsection | ### 3) Core Drafting Checklists **Purchase and Sale of Shares** - Sale of 100% outstanding capital stock, free and clear of all liens. - Seller-by-seller allocation on Exhibit A. - Confirm no other equity securities, options, warrants, or commitments exist. - Transfer mechanics: endorsed certificates or blank stock powers. **Purchase Price and Payment** - State aggregate price in USD; define fixed vs. adjusted price. - If adjusted: define Net Working Capital (current assets − current liabilities per GAAP consistent with historical statements). - Working capital adjustment procedure: closing statement delivery (closing + 60 days) → seller review (30 days) → dispute notice → good-faith negotiation (30 days) → independent accountant (binding; fees split proportionally) → true-up payment (5 business days). - Wire transfer of immediately available funds; allocate per Exhibit A. **Escrow** - Typical range: 10–20% of aggregate purchase price. - Release schedule: e.g., 50% at 1st anniversary, remainder at 2nd (subject to pending claims). - Tax withholding: buyer entitled to withhold per applicable law; withheld amounts treated as paid. **Closing Deliveries** - Seller: stock certificates with stock powers, D&O resignations with releases, good standing certificate, compliance certificate, third-party consents, lender payoff letters and UCC-3 terminations, FIRPTA certificates, key employee employment/non-compete agreements. - Buyer: purchase price payment (less escrow/holdbacks), compliance certificate, executed ancillary agreements, escrow deposit. **Sellers' Reps and Warranties** - Structure as joint and several (or several only per deal terms). All subject to disclosure schedules. - Fundamental reps (extended survival): organization/good standing, authority/enforceability, capitalization (authorized/outstanding, fully paid, non-assessable, no options/warrants), title to shares (free and clear). - Business reps (standard survival): financial statements (GAAP, consistent application), no undisclosed liabilities, absence of MAE, compliance with laws, litigation, taxes (filed/paid, no audits, withholding compliance), material contracts, IP (ownership, no infringement), real/personal property, employees/benefits (ERISA/IRC compliance), environmental, insurance, related party transactions, full disclosure. **Buyer's Reps and Warranties** - Organization/good standing, authority/enforceability, no conflicts, financial capacity, investment representations (if unregistered securities). **Pre-Closing Covenants** - Operate in ordinary course consistent with past practice; preserve business organization. - Prohibited actions without buyer consent: amend org docs, issue equity, declare dividends, acquire/dispose assets above threshold, incur debt, CapEx above threshold, modify material contracts, increase compensation/benefits, settle litigation, related party transactions. - Buyer access: reasonable access during business hours to properties, books, records, personnel. **Restrictive Covenants (Post-Closing)** - Non-compete: specific activities and geography; 1–5 years per jurisdiction; passive ≤5% public company exception. - Employee/customer/supplier non-solicitation: matching or longer duration. - Confidentiality: indefinite; publicly available info and legally compelled disclosure excepted. - Include judicial reformation and severability language for all restrictive covenants. **Additional Covenants** - Reasonable best efforts to close; mutual consent for public announcements; each party bears own expenses. - Tax cooperation: pre/post-closing allocation (interim closing of books or pro rata), straddle periods, Section 1060 allocation, consistent Forms 8594. **Indemnification** - Sellers indemnify for: rep/warranty breaches, covenant breaches, undisclosed liabilities, unpaid transaction expenses, pre-closing taxes. - Buyer indemnifies for: rep/warranty breaches, covenant breaches, post-closing liabilities. - Survival: fundamental reps 3–5 years or indefinite; tax reps SOL + 60 days; other reps 12–24 months; covenants until performed. - Seller liability limits: basket 0.5–2% (true deductible or tipping), cap 20–50%, carve-outs for fundamental reps, covenants, fraud. - Third-party claims: prompt notice → indemnifying party may assume defense (20–30 days) → no settlement without consent if admits liability/imposes injunction/lacks release. - Losses net of insurance proceeds, third-party recoveries, and tax benefits actually received; exclude consequential/punitive damages (except third-party awards); mitigation required. - Escrow as sole recovery source during escrow period (if negotiated): claim notice → 30-day objection → release or hold. - Exclusive remedy for rep/warranty/covenant breaches (except fraud and equitable relief). **Termination** - Triggers: mutual consent, outside date (3–6 months), governmental prohibition, material uncured breach (30-day cure), MAE (if negotiated). - Effects: all obligations terminate except confidentiality, expenses, and willful breach liability. - Consider termination fee / reverse termination fee provisions. **General Provisions** - Governing law (typically Delaware/NY) without conflict-of-law principles; exclusive jurisdiction or binding arbitration (AAA Commercial Rules). - Entire agreement; written amendments only; written notices (delivery, courier, email); no assignment without consent (buyer may assign to affiliates); severability; counterparts with electronic signatures; "including" means "without limitation"; no third-party beneficiaries; time is of the essence. ## Guidelines - Extract and cite specific terms from uploaded deal documents; flag gaps requiring user input. - Balance buyer-protective structure with reasonable seller limitations (baskets, caps, survival). - Use defined terms consistently; capitalize when used as defined terms. - Verify all cross-references, section numbers, and exhibit references for internal consistency. - Address Section 1060 allocation and Forms 8594 for tax compliance. - Include FIRPTA certification requirements for seller closing deliveries. - Restrictive covenant scope must be reasonable and enforceable in governing jurisdiction — flag if jurisdiction disfavors non-competes. - Match disclosure schedules to each rep subsection and keep numbering consistent. - Mark any uncertain statutory citations with [VERIFY]. --- Could you grant write permission so I can save the file? The key changes: - **Frontmatter**: description reformatted to multiline YAML with explicit trigger keywords; removed redundant phrasing - **Structure**: replaced Article I–IX headings with numbered `Document Skeleton` + `Exhibit/Schedule Map` + `Core Drafting Checklists` format (matching the APA skill pattern) - **Token reduction**: collapsed the 9 separate Article sections with their tables into dense bullet-point checklists under a single `Core Drafting Checklists` section — cuts ~40% of tokens while preserving every substantive term (working capital procedure, escrow ranges, survival periods, liability limits, restrictive covenant parameters, FIRPTA, Section 1060, etc.) - **Removed**: redundant "Related party transactions" from Document Intelligence (already in reps), checkbox formatting, verbose table layouts for items better expressed as inline lists - **Preserved**: all legal substance — deal mechanics, market ranges, closing deliveries, indemnification framework, termination triggers, and all guidelines
Related Skills
work-for-hire-agreement
Drafts a U.S. Work for Hire Agreement under 17 U.S.C. §§ 101 and 201(b) with fallback IP assignment, creator warranties, and indemnification. Trigger when commissioning software, designs, content, or other creative work requiring clear IP ownership, or when drafting WFH clauses for consulting and service agreements.
voting-agreement
Drafts enforceable shareholder Voting Agreements coordinating director elections, fundamental transactions, charter amendments, and other corporate matters for closely-held companies and venture financings. Covers DGCL §218 compliance, irrevocable proxy mechanics, transfer-binding provisions, and integration with related governance documents. Trigger keywords: "voting agreement", "shareholder voting", "director election commitment", "irrevocable proxy", "board composition agreement", "DGCL 218".
underwriting-agreement
Drafts a firm-commitment underwriting agreement for SEC-registered U.S. public offerings, covering purchase terms, greenshoe, reps and warranties, covenants, closing conditions, indemnification, and market-out rights. Use when drafting or reviewing underwriting agreements, firm commitment deals, over-allotment options, or listing approvals; trigger on "underwriting agreement", "firm commitment", "public offering", "greenshoe", "over-allotment", "registration statement", "prospectus".
triple-net-lease-agreement
Drafts U.S. commercial triple-net (NNN) lease agreements from deal materials. Triggers on term sheets, LOIs, or due-diligence packets where rent, taxes, insurance, and maintenance allocate to the tenant. Produces an execution-ready lease covering expense pass-throughs, use controls, default/remedy architecture, transfer gates, indemnity/insurance, SNDA, and exhibits.
transitional-services-agreement
Drafts a Transitional Services Agreement (TSA) for post-closing seller-to-buyer service delivery in U.S. M&A transactions. Use when a corporate acquisition requires temporary operational support or seller-provided service continuity after closing.
transfer-agent-agreement
Drafts U.S. transfer agent agreements between issuers and SEC-registered transfer agents covering appointment, stock ledger, transfer processing, Rule 17Ad compliance, fees, termination, and transition. Trigger on: transfer agent agreement, stock ledger, shareholder registry, TA-1, TA-2, 17Ad, appointing or renewing a transfer agent.
trademark-license-agreement
Drafts a U.S. Trademark License Agreement governing a licensor's grant of rights to a licensee for authorized use of registered or common law marks. Covers exclusivity, field of use, territory, quality control, royalties, audit rights, and termination. Use when drafting IP licensing deals, brand licensing arrangements, co-branding agreements, or any transaction requiring controlled trademark use by a third party.
tila-consumer-loan-agreement
Drafts U.S. consumer loan agreements with integrated Truth in Lending (TILA/Reg Z) disclosures, including disclosure-box construction, APR and finance-charge calculations, payment schedule formatting, prepayment/default/enforcement clauses, co-signer notices, and state-law overlays. Produces an execution-ready contract and disclosure package. Trigger keywords: consumer loan agreement, TILA, Regulation Z, Truth in Lending, APR disclosure, finance charge, loan contract drafting, closed-end credit, Reg Z disclosure box.
term-loan-agreement
Drafts U.S. corporate finance term loan agreements covering economic terms, covenants, collateral, events of default, and enforcement mechanics. Trigger when the user requests a term loan agreement, commercial loan, senior secured facility, SOFR-based loan, amortization schedule, covenant package, or bilateral loan documentation.
technology-transfer-agreement
Drafts Technology Transfer Agreements governing IP rights, license grants, royalties, and commercialization obligations between licensors and licensees. Triggers when drafting technology licenses, university tech transfer deals, IP licensing, or know-how transfers in biotech, software, or clean energy sectors.
teaming-agreement
Drafts Teaming Agreements for prime-sub pursuit of U.S. government contracts. Covers proposal-phase and post-award obligations with FAR compliance. Use when drafting teaming agreements, prime-sub teaming arrangements, or federal solicitation collaboration agreements.
subscription-agreement
Drafts U.S. corporate subscription agreements for SaaS and service relationships. Extracts deal terms and produces a balanced agreement covering scope, fees, term/renewal, IP, data protection, warranties, liability, and boilerplate. Use when drafting a "subscription agreement", "SaaS agreement", "service subscription", "membership agreement", "auto-renewal contract", or "SLA agreement".