active/dev.add-license/SKILL.md
Add an Apache 2.0 license and update package metadata.
npx skillsauth add kevinslin/skills dev.add-licenseInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Add an open source license file to a repository with automatically populated copyright information. Also updates the license field in package.json if present.
When the user requests to add a license to their repository, follow this workflow:
Identify the project root directory. If the user is in a subdirectory of a git repository, check if they want the LICENSE file in the current directory or the repository root.
Extract copyright owner information from git configuration:
git config user.name
If git config is not available or the user prefers, ask for the copyright owner name explicitly.
For the copyright year, use the current year.
Copy the Apache 2.0 license template from assets/LICENSE-APACHE-2.0 to LICENSE in the target directory.
Then append the copyright notice to the end of the LICENSE file:
Copyright [YEAR] [COPYRIGHT OWNER NAME]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Replace [YEAR] with the current year and [COPYRIGHT OWNER NAME] with the name extracted from git config.
Check if a package.json file exists in the target directory:
ls package.json
If package.json exists:
"license" field to "Apache-2.0"If the license field already exists, replace it. If it doesn't exist, add it to the JSON object.
Inform the user that the LICENSE file has been created and confirm the copyright information used. If package.json was updated, mention that as well.
User request: "Add an Apache license to this project"
Actions:
git config user.name to get copyright ownerassets/LICENSE-APACHE-2.0LICENSE file with full license textpackage.json exists"license" field to "Apache-2.0", and write it backFull text of the Apache License 2.0, used as the template for generating LICENSE files.
development
Generate incremental Slack digests for channels, topics, and categories.
testing
Audit an OpenClaw maturity-scorecard surface into an evidence-backed component score report. Use when given a surface from an OpenClaw maturity-scorecard.md and asked to score coverage, quality, readiness, or generate a detailed surface report plus per-component subreports.
tools
Turn an existing concrete spec into a reusable generic spec template. Use when asked to create a generic spec, template spec, reusable implementation template, or generalized version of a spec from a specific implementation such as one plugin, channel, integration, feature, or PR.
data-ai
Trace how something works with an investigator subagent and a skeptical reviewer subagent.