Deallens Extract logo

Deallens Extract

Community
jessieccc07777-stack
deallens-extract

Extract structured clause data from PRC investment agreements (SPA / SHA / TS, in .docx or .pdf) into a JSON descriptor importable by the DealLens visualization app, with party-name anonymization. Use when the user wants to import an agreement into DealLens, visualize agreement clauses, generate a cap-table / trigger-scenario model, or mentions DealLens / 协议可视化 / 增资协议 / 股东协议 / SPA / SHA / 对赌 / 回购条款 / 提取协议 JSON. Produces a neutral descriptive JSON (no risk grading); risk review is handled by the companion DealReview skill. Content in Simplified Chinese (PRC venture transactions).

Overview

Publisherjessieccc07777-stack
Repositorydeallens-skill
Skill namedeallens-extract
Stars
32
Forks
2
Bundled files
9
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 9 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by jessieccc07777-stack on GitHub. Read the source before you install it.

Installation

Install the Deallens Extract AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/jessieccc07777-stack/deallens-skill/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jessieccc07777-stack/deallens-skill.git \
  .claude/skills/deallens-extract
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Deallens Extract in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Deallens Extract on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Deallens Extract is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

DealLens 协议提取

把投资协议(Word/PDF)转换为 DealLens 单文件应用可导入的 JSON 描述文件。

工作流

  1. 收取文件:将协议复制进当前工作区再处理,不直接改动原文件。
  2. 提取文本:运行 scripts/extract_text.py <协议文件>,生成同名 .txt(含表格内容,股权结构表通常在表格里)。
  3. 通读全文:按 references/extraction-guide.md 的清单定位关键条款与数据。协议可能很长,优先精读:交易安排/增资条款、股权结构表、投资人特别权利(回购/对赌/反稀释/清算优先/优先购买/领售随售/知情权)、公司治理、违约责任。
  4. 脱敏(默认政策:仅匿名化权利主体名称):
    • 公司 → 标的公司 / TargetCo Ltd.;自然人 → 创始人A / 现有股东B;机构/合伙 → 合伙人 / 投资人1 / 投资人2 / 领投方 等角色化名称
    • 注册号、地址、身份证号、银行账号一律不进入 JSON
    • 保留真实金额与股权比例——DealLens 的内部工作用途(管理层演示、谈判推演)依赖真实数字,这是用户明确的政策
    • 例外:用户明确要求对外展示级别脱敏时,才对金额做归一化(最终投前=100 单位)或改用虚构数据;在 _meta.desensitization 中如实记录所用口径
  5. 构建 JSON:严格按 references/schema.md 的字段规范。条款节点含中英双语解读;解读要写出"谁是权利人、谁是义务人、触发后发生什么",并指出专业要点(谈判留白、罕见保护结构等)。
  6. 校验:运行 scripts/validate_json.py <生成的json>,必须全部通过(比例合计=100%、边与关联引用完整、必需字段齐全)。
  7. 交付:报告 JSON 路径,并附提取发现摘要——这笔交易的独特结构、留白/缺失条款、值得用户注意的风险点。提醒用户在 DealLens 中「导入协议 JSON」验收。

关键规则

  • 阶梯/多次交割:holders 使用显式 post(协议载明的最终持股比例);round 用末批定价口径(投前/该批增资额);各批估值与对价写入 _meta.dealFacts。
  • 单次标准交割:老股东用 pre(投前比例)、新投资人用 money(出资额,单位:人民币百万元),由应用自动计算稀释。
  • 协议中没有的条款:在 scenarios 中显式关闭(ratchet:false / antiDilution:false),不要虚构; redemption 几乎所有 SHA 都有,默认 true。
  • 留白条款(如利率 【 】%):在 _meta.notes 标注,在该 clause 的 plain 中以"活谈判点"提示,redemption.rate 按 0.08 假设并注明。
  • 条款图谱布局:4 列 × 3 行网格,x ∈ {40, 310, 580, 840},y ∈ {50, 210, 390};captable 锚点节点 "anchor": true,置于右侧列;edges 只画协议中真实存在的触发/引用关系,每条配中英双语标签。
  • 输出文件名:<标的公司或项目代号>_DealLens.json,保存到工作区。
  • 与 dealreview 的联动:本技能只产出中性描述 JSON,不做风险分级。若输入 JSON 或同目录已有文件含 review / reviewMeta 字段(dealreview 审核写回的风险覆盖层),重新提取或更新时原样保留。用户需要"审核 + 可视化"联动时,提示其先运行本技能生成 JSON,再用 dealreview 审核写回。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Deallens Extract AI skill do?

Extract structured clause data from PRC investment agreements (SPA / SHA / TS, in .docx or .pdf) into a JSON descriptor importable by the DealLens visualization app, with party-name anonymization. Use when the user wants to import an agreement into DealLens, visualize agreement clauses, generate a cap-table / trigger-scenario model, or mentions DealLens / 协议可视化 / 增资协议 / 股东协议 / SPA / SHA / 对赌 / 回购条款 / 提取协议 JSON. Produces a neutral descriptive JSON (no risk grading); risk review is handled by the companion DealReview skill. Content in Simplified Chinese (PRC venture transactions).

Why use Deallens Extract on TypingMind?

Because you install it once and use it with any model. Deallens Extract is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Deallens Extract in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jessieccc07777-stack/deallens-skill/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Deallens Extract?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Deallens Extract?

As many as you like. As long as a model supports skills, you can use Deallens Extract with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Deallens Extract AI skill free?

Yes. It is published on GitHub by jessieccc07777-stack under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇