界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

license-gen

license-gen

【效率与协作】Pick and generate the right license for your project. Use when licensing open source.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: license-gen description: Pick and generate the right license for your project. Use when licensing open source.

License Generator

Picking a license shouldn't require a law degree. This tool explains each license in plain English and generates the LICENSE file for you.

One command. Zero config. Just works.

Quick Start

npx ai-license

What It Does

  • Interactive license selection with explanations
  • Generates complete LICENSE files
  • Explains what each license actually means
  • Covers MIT, Apache, GPL, BSD, and more

Usage Examples

# Interactive mode
npx ai-license

# Quick MIT license
npx ai-license --type mit --name "Jane Doe"

# Explain a license before choosing
npx ai-license --explain apache-2.0

Best Practices

  • MIT for simplicity - do whatever you want, just keep the copyright
  • Apache for patents - includes patent protection
  • GPL for copyleft - derivatives must also be open source
  • Check dependencies - some licenses are incompatible

When to Use This

  • Starting an open source project
  • Not sure which license fits your needs
  • Want to understand license implications
  • Need to generate LICENSE file quickly

Part of the LXGIC Dev Toolkit

This is one of 110+ free developer tools built by LXGIC Studios. No paywalls, no sign-ups, no API keys on free tiers. Just tools that work.

Find more:

Requirements

No install needed. Just run with npx. Node.js 18+ recommended. Needs OPENAI_API_KEY environment variable.

npx ai-license --help

How It Works

Walks you through questions about how you want your code to be used, then recommends appropriate licenses. Uses GPT-4o-mini to explain license terms in plain English and generate the full LICENSE file.

License

MIT. Free forever. Use it however you want.

我的收藏