Hoc license

From openreachtech/hora-skills-ort-core · View interactive version

Hoc license is an AI agent skill from the GitHub repository openreachtech/hora-skills-ort-core. The `./LICENSE` file a project carries, settled by the `license` field of `package.json`. Use whenever a LICENSE file is created, updated or deleted, or when `license` is changed or found missing. What the README's license section says belongs to the README convention.

How to use this skill

Skill file

License

When creating, updating or deleting the LICENSE file, follow the rules below.

Behavior is determined by the license field in package.json (if the user explicitly specifies a different license, prioritize that, and update package.json accordingly if needed).

Workflow

  1. Read license in package.json.
  2. Adjust the ./LICENSE file according to its value (see below).
  3. Align the license sections of README.md (default language) and each README.xx.md per language.

What that section says, for every value of license, is governed by the "License" convention in

the README convention.

No `license` field

An absent field is not a value. Every section below acts on what license says, so where the

field is missing, nothing decides what ./LICENSE should be. Ask the user which license the

project takes, write the answer into license, and then follow the section for that value.

the file each suggest an answer, and none of them is the project's decision — the field is where

a project states its license, and a guess written into ./LICENSE leaves the two disagreeing.

cover, and what is settled is the file. Here there is no value at all, and what is settled first

is the field.

`UNLICENSED`

Denotes private/restricted distribution.

`Apache-2.0`

Copy the full text of Apache-2.0 into ./LICENSE, replacing the placeholders in the trailing APPENDIX.

`MIT`

Copy the full text of MIT into ./LICENSE, replacing the placeholders.

Others

When the license is none of UNLICENSED, Apache-2.0, or MIT, prompt the user to confirm what to do with the ./LICENSE file.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.