Memstack Business Licensing 标志

Memstack Business Licensing

社区
cwinvestments
memstack-business-licensing

Use this skill when the user says 'licensing', 'license audit', 'can I use this commercially', 'OSS license check', 'license compatibility', 'GPL', 'MIT', 'AGPL', 'copyleft'. Scans the repository for every dependency and asset license, then produces a per-package verdict table: ready for commercial use, citation/attribution required, more information needed, or commercial use not allowed. Do NOT use for vulnerability scanning (use dependency-audit) or contract drafting (use contract-template).

Add to TypingMind

概览

发布者cwinvestments
代码仓库memstack
技能名称memstack-business-licensing
星标数
425
复刻数
45
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 cwinvestments 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Memstack Business Licensing AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/cwinvestments/memstack/tree/master/skills/business/licensing
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cwinvestments/memstack.git /tmp/memstack
mkdir -p .claude/skills
cp -r /tmp/memstack/skills/business/licensing .claude/skills/memstack-business-licensing
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Memstack Business Licensing,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Memstack Business Licensing。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Memstack Business Licensing 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Licensing: Commercial-use license audit from the repo...

Scans a repository for every license that touches the product (deps, vendored code, fonts, assets), then produces a per-package verdict table marking each as Ready, Citation Required, Needs Info, or Not Allowed for commercial use.

Activation

When this skill activates, output:

Licensing, Commercial-use license audit from the repo...

Then execute the protocol below.

Context Guard

ContextStatus
User says "license audit", "licensing", "license check"ACTIVE
User asks "can I use this commercially?" or "is this safe to ship?"ACTIVE
User mentions GPL, AGPL, LGPL, MPL, MIT, BSD, Apache, copyleftACTIVE
User is preparing to ship, sell, or relicense a productACTIVE
User wants security vulnerability scanningDORMANT: use dependency-audit
User wants a service contract or NDADORMANT: use contract-template

Common Mistakes

MistakeWhy It's Wrong
"MIT and GPL are both open source so they're compatible"Combining MIT into GPL is fine; the reverse forces your code under GPL. Direction matters.
"We don't distribute, so AGPL doesn't apply"AGPL §13 triggers on network use. SaaS counts.
"It's on GitHub so it's free to use"Public ≠ licensed. No LICENSE file = all rights reserved.
"Transitive dependencies don't matter"Your bundle ships every dep in the tree. Copyleft transitives can taint the whole product.
"License from package.json metadata is authoritative"The actual LICENSE file in upstream source is authoritative. Metadata is often wrong, missing, or outdated.
"BSL / SSPL / Elastic / Commons Clause are open source"They are not OSI-approved and usually restrict commercial hosting or competition. Read the actual terms.

Disclaimer: Produces a license inventory and risk assessment, not legal advice. License interpretation (especially copyleft scope, "linking", and SaaS triggers) is contested. Engage IP counsel before shipping high-stakes products.

Protocol

Step 1: Confirm the distribution model

Just one question, the verdict logic depends on it:

How is the product distributed?

  • A. SaaS / hosted (users access over the network, no binary handed out)
  • B. Distributed binary (desktop, mobile, on-prem install, downloadable executable)
  • C. Open-source library you publish for others to consume
  • D. Internal only (no users outside your organisation)

Default to A if the repo contains web framework code (Next.js, FastAPI, Rails, etc.) and no installer/build target.

Step 2: Scan the repo for every license source

Walk every manifest, lockfile, vendored directory, and asset folder. Never trust a single source: cross-check.

StackManifestDiscovery command
Node.jspackage.json, package-lock.json, pnpm-lock.yaml, yarn.locknpm ls --all --json then npx license-checker --json --production
Pythonrequirements*.txt, pyproject.toml, Pipfile.lock, poetry.lockpip-licenses --format=json --with-license-file --with-urls
RustCargo.toml, Cargo.lockcargo license --json
Gogo.mod, go.sumgo-licenses report ./... --template '{{.Name}},{{.LicenseName}},{{.LicenseURL}}'
Javapom.xml, build.gradlemvn license:add-third-party or gradle-license-report
RubyGemfile, Gemfile.lockbundle exec license_finder report --format json
PHPcomposer.json, composer.lockcomposer licenses --format=json
.NET*.csproj, packages.lock.jsondotnet list package --include-transitive + nuget-license
Container base imagesDockerfilesyft <image> -o spdx-json then read package licenses
Vendored / submodulesvendor/, third_party/, .gitmoduleswalk directories: look for LICENSE, LICENSE.md, COPYING, NOTICE
Fonts / icons / mediaassets/, public/, static/check each asset's source license: commonly missed
Snippets and copy-pasted codecomments, headers`grep -rEin "Copyright

For everything found, capture:

markdown
| Package | Version | Declared license (manifest) | License file present | Direct/transitive | Source URL |
|---------|---------|----------------------------|---------------------|-------------------|------------|
| react | 18.3.1 | MIT | Yes | direct | github.com/facebook/react |
| ... | ... | ... | ... | ... | ... |

Step 3: Resolve the actual license (don't trust metadata)

For every entry that is HIGH-impact (copyleft candidate, missing license, or version where licenses are known to change), open the upstream LICENSE file and confirm the SPDX identifier.

Watch for license changes between versions:

ProjectVersion cutOld → New
Elasticsearch7.10 → 7.11Apache-2.0 → SSPL/Elastic
Redis7.2 → 7.4BSD → SSPL/RSAL
Terraform1.5 → 1.6MPL-2.0 → BSL
MongoDB4.0AGPL → SSPL
HashiCorp tools2023MPL-2.0 → BSL
Sentry8.xBSD → FSL

Pin to the last compliant version or migrate.

Also check for:

  • Dual licensing ("MIT OR Apache-2.0"), pick the option you'll comply with and record the choice
  • Commons Clause layered on top of an OSI license: restricts "selling"
  • Custom / vendor licenses: read the actual terms verbatim

Step 4: Classify each license

ClassExamplesCommercial use allowed?Reach
Public domainCC0, Unlicense, WTFPL, 0BSDYes: no obligationsNone
PermissiveMIT, BSD-2/3, ISC, Apache-2.0, ZlibYes: preserve noticeNone
Weak copyleftLGPL-2.1, LGPL-3.0, MPL-2.0, EPL-2.0Yes with obligationsFile-level (MPL) or dynamic-linking carve-out (LGPL)
Strong copyleftGPL-2.0, GPL-3.0Yes, but derivative works become GPL on distributionWhole derivative work
Network copyleftAGPL-3.0Yes, but SaaS triggers source disclosureWhole derivative work + network use
Source-available (non-OSI)BSL, SSPL, Elastic v2, Commons Clause, RSAL, FSLRestricted: usually no competing hosted servicePer terms
Creative CommonsCC-BY, CC-BY-SA, CC-BY-NC, CC-BY-NDNC = no commercial; SA = share-alike; ND = no derivativesPer variant
Proprietary / commercial EULAVendor SDKs, paid librariesPer contractPer contract
Unknown / no licenseNo LICENSE fileNo, all rights reserved by defaultN/A

Step 5: Apply the verdict per package

For every dependency, run it through the distribution model from Step 1 and assign exactly one verdict:

VerdictSymbolMeaning
Ready for commercial use✅No obligations beyond preserving the existing notice file. Safe to ship.
Citation / attribution required📝Commercial use is allowed but the license requires the copyright notice and license text to be reproduced (typically in THIRD_PARTY_LICENSES.md, an About page, or alongside the binary). MIT, BSD, Apache-2.0, ISC, Zlib all fall here when shipped to users.
More information needed❓License is unknown, ambiguous, dual-licensed, or version-changed. Cannot ship until resolved.
Not allowed for commercial use❌License blocks the chosen distribution model. Must replace, remove, relicense, or buy a commercial exception.

Verdict rules per distribution model:

License classA. SaaSB. BinaryC. OSS libraryD. Internal
Public domain✅✅✅✅
Permissive (MIT, BSD, Apache, ISC, Zlib)📝📝📝✅
LGPL📝📝 (must allow relinking)📝✅
MPL-2.0 / EPL-2.0📝📝 (file-level disclosure)📝✅
GPL-2.0 / GPL-3.0📝 (no distribution = no source disclosure)❌ (forces whole product GPL)❌ unless your lib is also GPL✅
AGPL-3.0❌ (network use triggers source disclosure)❌❌ unless your lib is AGPL✅
BSL❓ → usually ❌ for SaaS (read additional use grant)❓❌✅
SSPL❌ for SaaS❌❌✅
Elastic v2 / Commons Clause / RSAL / FSL❌❌❌✅
CC-BY📝📝📝✅
CC-BY-SA📝 (share-alike on derivatives)📝❌ unless your work is also SA✅
CC-BY-NC❌❌❌✅
CC-BY-ND❌ if modified❌ if modified❌ if modified✅
Proprietary EULAper contractper contractper contractper contract
Unknown / no license❓ → ❌ until resolved❓ → ❌❓ → ❌❓ → ❌

Step 6: Build the verdict table

This is the primary deliverable. One row per dependency, sorted by verdict severity (❌ → ❓ → 📝 → ✅).

markdown
| Package | Version | License | Direct/Trans | Verdict | Required action |
|---------|---------|---------|--------------|---------|----------------|
| ❌ mongodb | 6.0.5 | SSPL-1.0 | direct | ❌ Not allowed for SaaS | Replace with PostgreSQL or buy commercial license |
| ❌ some-lib | 2.1.0 | AGPL-3.0 | direct | ❌ Not allowed for SaaS | Replace with permissive alternative |
| ❓ obscure-pkg | 0.4.2 | (no LICENSE file) | transitive | ❓ Unknown | Open upstream issue; pin or remove until resolved |
| ❓ dual-pkg | 1.2.0 | "MIT OR GPL-3.0" | direct | ❓ Choose | Document MIT election in NOTICE |
| 📝 react | 18.3.1 | MIT | direct | 📝 Citation required | Add to THIRD_PARTY_LICENSES.md |
| 📝 fastify | 4.26.0 | MIT | direct | 📝 Citation required | Add to THIRD_PARTY_LICENSES.md |
| 📝 lodash | 4.17.21 | MIT | transitive | 📝 Citation required | Add to THIRD_PARTY_LICENSES.md |
| 📝 protobufjs | 7.2.5 | BSD-3-Clause | transitive | 📝 Citation required | Add to THIRD_PARTY_LICENSES.md |
| 📝 fonts/inter | none | OFL-1.1 | asset | 📝 Citation required | Include OFL.txt in assets/fonts/ |
| ✅ classnames | 2.5.1 | MIT | transitive | ✅ Ready | (already in attribution bundle) |
| ✅ public-domain-pkg | 1.0.0 | CC0-1.0 | direct | ✅ Ready | None |

Step 7: Generate the attribution bundle

For every 📝 row, the user needs a THIRD_PARTY_LICENSES.md (or NOTICES.txt) shipped alongside the product. Offer to generate it:

markdown
# Third-Party Licenses

This product includes the following third-party software:

## react v18.3.1
**License:** MIT
**Source:** https://github.com/facebook/react
**Copyright:** Copyright (c) Meta Platforms, Inc. and affiliates.

[Full MIT license text verbatim]

---

## next-package vA.B.C
...

For Apache-2.0 deps, also preserve any upstream NOTICE file content.

Step 8: Produce the report

markdown
## License Audit: [Project Name]

**Date:** [YYYY-MM-DD]
**Distribution model:** [A. SaaS / B. Binary / C. Library / D. Internal]
**Project's own license:** [SPDX or "proprietary"]
**Total dependencies analysed:** [N direct + M transitive + K assets]

### Verdict summary
| Verdict | Count |
|---------|-------|
| ❌ Not allowed for commercial use | [N] |
| ❓ More information needed | [N] |
| 📝 Citation / attribution required | [N] |
| ✅ Ready for commercial use | [N] |

### Commercial-use verdict
**[CLEAR TO SHIP / CLEAR WITH CITATION OBLIGATIONS / BLOCKED]**

[2 to 3 sentences explaining the verdict and naming the specific blockers if any.]

### Full verdict table
[Table from Step 6]

### Required attribution bundle
[Either inline THIRD_PARTY_LICENSES.md content, or a list of packages that must appear in it]

### Remediation plan (priority order)
1. **❌ [Blocker]**: [package], [replace with X / remove feature Y / buy license / quarantine]
2. **❓ [Unknown]**: [package]: [investigation step]
3. **📝 [Attribution gap]**: [add to THIRD_PARTY_LICENSES.md]

### Recommended next steps
1. Resolve every ❌ before shipping
2. Resolve every ❓ before shipping
3. Generate / update `THIRD_PARTY_LICENSES.md` and ship with the product
4. Add an automated license check to CI to catch new dependencies
5. Re-run this audit before each release
6. Have IP counsel review if any BSL/SSPL/AGPL/unknown findings remain

Output Format

Deliver the Step 8 report as markdown. Save under docs/compliance/license-audit.md if a project layout is available. Save the generated attribution bundle as THIRD_PARTY_LICENSES.md at the repo root. Include the exact discovery commands you ran in an appendix so the user can reproduce.

Completion

Licensing: Audit complete!

Distribution model: [A / B / C / D]
Dependencies analysed: [N direct + M transitive + K assets]
❌ Blocked: [N]
❓ Unknown: [N]
📝 Citation required: [N]
✅ Ready: [N]
Verdict: [CLEAR / CLEAR WITH OBLIGATIONS / BLOCKED]

Next steps:
1. Resolve every ❌ before shipping
2. Resolve every ❓ before shipping
3. Ship THIRD_PARTY_LICENSES.md alongside the product
4. Add license check to CI
5. Have IP counsel review high-risk findings

Level History

  • Lv.1: Base: distribution-model question, multi-language repo scan (Node/Python/Rust/Go/Java/Ruby/PHP/.NET/containers/vendored/assets), upstream LICENSE verification, version-change traps (Elastic/Mongo/Redis/Terraform/Sentry/HashiCorp), 9-class taxonomy, 4-verdict system (✅ Ready / 📝 Citation / ❓ Needs info / ❌ Not allowed), distribution-model verdict matrix, primary verdict table, attribution bundle generator, full report with summary counts and remediation plan. (Origin: MemStack Pro v3.6, Apr 2026)

常见问题

Memstack Business Licensing AI 技能有什么作用?

Use this skill when the user says 'licensing', 'license audit', 'can I use this commercially', 'OSS license check', 'license compatibility', 'GPL', 'MIT', 'AGPL', 'copyleft'. Scans the repository for every dependency and asset license, then produces a per-package verdict table: ready for commercial use, citation/attribution required, more information needed, or commercial use not allowed. Do NOT use for vulnerability scanning (use dependency-audit) or contract drafting (use contract-template).

为什么在 TypingMind 中使用 Memstack Business Licensing?

因为您只需安装一次,就能搭配任何模型使用。Memstack Business Licensing 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Memstack Business Licensing?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/cwinvestments/memstack/tree/master/skills/business/licensing。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Memstack Business Licensing?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Memstack Business Licensing 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Memstack Business Licensing 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Memstack Business Licensing AI 技能免费吗?

是的。cwinvestments 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇