License Picker
简介
License Picker
原始描述
Open source license reference — SPDX identifiers, permissive vs copyleft comparison, license compatibility matrix, patent clauses, and compliance scanning tools
通过你的 Agent 添加
安装目录:license-picker/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
version: "3.0.0"
name: License Picker
description: "Compare open-source licenses, generate LICENSE files, and check compatibility. Use when choosing licenses, generating LICENSE files, checking terms."
author: BytesAgain
homepage: https://bytesagain.com
source: https://github.com/bytesagain/ai-skills
License Picker
Multi-purpose utility tool for managing data entries from the command line. Add, list, search, remove, and export entries with a simple file-based backend. Includes configuration, initialization, and health-check commands.
Commands
Command
Description
license-picker run <args>
Execute main function — logs the run action
license-picker config <args>
Show or manage configuration (points to config.json in data dir)
license-picker status <args>
Show current status (reports "ready")
license-picker init <args>
Initialize the data directory
license-picker list <args>
List all entries from the data log
license-picker add <item>
Add a new timestamped entry to the data log
license-picker remove <item>
Remove an entry (logs the removal)
license-picker search <term>
Search the data log for a keyword (case-insensitive)
license-picker export <args>
Export/dump the full data log to stdout
license-picker info <args>
Show version and data directory path
license-picker help
Show help message with all commands
license-picker version
Show version (v2.0.0)
Command Details
| Command | Description |
|---|---|
license-picker run <args> |
Execute main function — logs the run action |
license-picker config <args> |
Show or manage configuration (points to config.json in data dir) |
license-picker status <args> |
Show current status (reports "ready") |
license-picker init <args> |
Initialize the data directory |
license-picker list <args> |
List all entries from the data log |
license-picker add <item> |
Add a new timestamped entry to the data log |
license-picker remove <item> |
Remove an entry (logs the removal) |
license-picker search <term> |
Search the data log for a keyword (case-insensitive) |
license-picker export <args> |
Export/dump the full data log to stdout |
license-picker info <args> |
Show version and data directory path |
license-picker help |
Show help message with all commands |
license-picker version |
Show version (v2.0.0) |
- run — executes and logs the action. Useful as a generic "do something" entry point.
- config — displays the path to the configuration file (
$DATA_DIR/config.json). Extend by editing config.json manually. - status — quick health check. Always reports "ready" and logs the check.
- init — ensures the data directory exists at
~/.local/share/license-picker/(created automatically on first use). - list — prints the full contents of
data.log. If empty, shows(empty). - add
<item>— appends a line with today's date plus your input todata.log. Example:2025-03-18 MIT license for project X. - remove
<item>— logs a removal event (note: does not physically delete fromdata.log— intended for audit trails). - search
<term>— runsgrep -iagainstdata.logand returns matching lines, or "Not found". - export — dumps
data.logcontents to stdout. Pipe to a file for backups:license-picker export > backup.txt. - info — prints the current version and data directory path.
Every command logs its invocation to history.log with a timestamp for audit purposes.
Data Storage
All data is stored in ~/.local/share/license-picker/ (override with LICENSE_PICKER_DIR or XDG_DATA_HOME):
data.log— main data file, one entry per line with date prefixhistory.log— audit log of all command invocations with timestampsconfig.json— configuration file (referenced byconfigcommand)
Requirements
- Bash (with
set -euo pipefail)
- Standard Unix utilities:
date, cat, grep, wc, echo
- No external dependencies or API keys required
When to Use
- Quick data entry from the terminal — use
license-picker add to log timestamped notes, decisions, or records without leaving the command line
- Searching through past entries — use
license-picker search to find specific items across your data log
- Exporting data for external tools — pipe
license-picker export to files or other commands for processing
- Checking tool health — run
license-picker status or license-picker info to verify the tool is set up correctly
- Initializing on a new machine — run
license-picker init to set up the data directory, then start adding entries immediately
Examples
# Initialize the data directory
license-picker init
# Add a new entry
license-picker add "MIT license selected for web-app project"
# Add another entry
license-picker add "Apache-2.0 for backend API — patent clause needed"
# List all entries
license-picker list
# Search for entries containing "MIT"
license-picker search MIT
# Check current status
license-picker status
# Show version and data path
license-picker info
# Export all data to a backup file
license-picker export > ~/license-decisions-backup.txt
Tips
- Run
license-picker help to see all available commands
- The data directory is auto-created on first use — no manual setup needed
- Set
LICENSE_PICKER_DIR environment variable to use a custom data location
- All commands are logged to
history.log for a full audit trail
- Pipe
license-picker export into grep, jq, or other tools for advanced filtering
set -euo pipefail)date, cat, grep, wc, echo- Quick data entry from the terminal — use
license-picker addto log timestamped notes, decisions, or records without leaving the command line - Searching through past entries — use
license-picker searchto find specific items across your data log - Exporting data for external tools — pipe
license-picker exportto files or other commands for processing - Checking tool health — run
license-picker statusorlicense-picker infoto verify the tool is set up correctly - Initializing on a new machine — run
license-picker initto set up the data directory, then start adding entries immediately
Examples
# Initialize the data directory
license-picker init
# Add a new entry
license-picker add "MIT license selected for web-app project"
# Add another entry
license-picker add "Apache-2.0 for backend API — patent clause needed"
# List all entries
license-picker list
# Search for entries containing "MIT"
license-picker search MIT
# Check current status
license-picker status
# Show version and data path
license-picker info
# Export all data to a backup file
license-picker export > ~/license-decisions-backup.txt
Tips
- Run
license-picker help to see all available commands
- The data directory is auto-created on first use — no manual setup needed
- Set
LICENSE_PICKER_DIR environment variable to use a custom data location
- All commands are logged to
history.log for a full audit trail
- Pipe
license-picker export into grep, jq, or other tools for advanced filtering
# Initialize the data directory
license-picker init
# Add a new entry
license-picker add "MIT license selected for web-app project"
# Add another entry
license-picker add "Apache-2.0 for backend API — patent clause needed"
# List all entries
license-picker list
# Search for entries containing "MIT"
license-picker search MIT
# Check current status
license-picker status
# Show version and data path
license-picker info
# Export all data to a backup file
license-picker export > ~/license-decisions-backup.txt
- Run
license-picker helpto see all available commands - The data directory is auto-created on first use — no manual setup needed
- Set
LICENSE_PICKER_DIRenvironment variable to use a custom data location - All commands are logged to
history.logfor a full audit trail - Pipe
license-picker exportintogrep,jq, or other tools for advanced filtering
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。