AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

open-sourcing

This skill should be used when the user asks to "open source this project", "prepare this repository for public release", "make this repo public", "check open-source readiness", "choose a license for this project", or "set up release automation" ahead of a public launch. Provides a release-readiness workflow covering secrets hygiene, licensing, documentation, CI, and language-specific packaging.

Original source
trailofbits
License
CC-BY-SA-4.0
Pinned revision
2be6433b39e009cd2b6fd3be1895f6b1faa5af9a

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

This skill also requires local files or dependencies. Remote reading alone may not be enough.

Ask your assistant

Use Agentic Memory skills to read trailofbits--open-sourcing at revision 2be6433b39e009cd2b6fd3be1895f6b1faa5af9a, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 9

references/licensing.md

Choosing and Applying an Open-Source License

A repository is not open source until it has a license. Without one, default copyright applies and nobody can legally use, modify, or redistribute the code regardless of it being publicly visible.

Decision criteria

Choose a license based on the answers to these questions, in order:

  1. Does the organization have a license policy? Apply it. If an organization profile was loaded in Step 1 of the workflow, its policy takes precedence over the generic guidance below.
  2. Is this software at all? Datasets, detection rulesets, documentation, and publications are often better served by Creative Commons licenses than software licenses.
  3. Would competitors gain a significant advantage by modifying this work without contributing changes back? If yes, a network-copyleft license (AGPLv3) protects against service providers privatizing improvements.
  4. Do the project's dependencies constrain the choice? A project that statically links GPL code cannot be released under a permissive license. Check dependency licenses before deciding.
  5. What does the ecosystem expect? Libraries intended for broad adoption (especially ones businesses must get legal approval to use) see far more uptake under permissive licenses.

Common choices

| License | Type | Choose when | |---------|------|-------------| | Apache 2.0 | Permissive | Default for libraries and tools; includes an explicit patent grant, which MIT lacks | | MIT | Permissive | Maximum simplicity; ecosystem convention (e.g., much of npm) | | AGPLv3 | Network copyleft | The project offers competitors a significant advantage if modified privately, including as a hosted service | | GPLv3 | Copyleft | Copyleft desired but the network-use clause is not needed | | CC BY-SA 4.0 | Share-alike (non-software) | Publications and documentation; allows commercial use with attribution | | CC BY-NC-SA 4.0 | Non-commercial (non-software) | Rulesets or datasets where commercial use should require a separate agreement |

Avoid novel, custom, or "source-available" licenses (BSL, custom non-competes) unless legal counsel is driving that decision; they create adoption friction and are not open source under the OSD.

Applying the license

Choosing is half the job. Then:

  • Add a LICENSE file at the repository root containing the full license text. For Apache 2.0, fill in the copyright notice; for CC licenses, link the legal code and state the license clearly in the README.
  • Set the license in package metadata using SPDX identifiers so package indexes display it correctly:
    • Python: license = "Apache-2.0" (SPDX expression, PEP 639) in pyproject.toml
    • Rust: license = "Apache-2.0" in Cargo.toml
    • Ruby: spec.license = "Apache-2.0" in the gemspec
    • Node: "license": "Apache-2.0" in package.json
  • State the license in the README, typically a short section at the end.
  • Keep all of these consistent. A LICENSE file that says AGPLv3 with pyproject.toml metadata that says MIT is a real (and common) bug.

Copyright lines

A copyright line uses the current year only; open-ended ranges ("2020-present") add nothing legally:

Copyright (c) 2026 Example Org <[email protected]>

Forks and adopted projects

When taking over maintenance of an existing open-source project:

  • Keep the existing license and add a copyright line for the new maintainer below the original:

    Copyright (c) 2019 John Q. Public <[email protected]>
    Copyright (c) 2026 Example Org <[email protected]>
    
  • Do not relicense unless every copyright holder agrees or the original license explicitly permits it. Permissively licensed projects may be re-released under a stronger license for new contributions, but the original code remains under its original terms and the original notices must be preserved.

When in doubt about any licensing question, consult whoever handles legal or open-source policy for the organization before publishing.