happyskills 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.4.0] - 2026-03-05
11
+
12
+ ### Added
13
+ - Add `-g` / `--global` flag to `setup` command to opt into installing `happyskillsai/happyskills-cli` globally (`~/.claude/skills/`)
14
+
15
+ ### Changed
16
+ - Change `setup` default install scope from global to project-level (`.claude/skills/`); pass `-g` to restore the previous global behaviour
17
+
10
18
  ## [0.3.1] - 2026-03-04
11
19
 
12
20
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "happyskills",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "Package manager for AI agent skills",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Nicolas Dao <nic@cloudlesslabs.com> (https://cloudlesslabs.com)",
@@ -7,18 +7,20 @@ const { EXIT_CODES } = require('../constants')
7
7
 
8
8
  const SKILL_NAME = 'happyskillsai/happyskills-cli'
9
9
 
10
- const HELP_TEXT = `Usage: happyskills setup
10
+ const HELP_TEXT = `Usage: happyskills setup [options]
11
11
 
12
- Install (or update) the official HappySkills CLI skill globally.
12
+ Install (or update) the official HappySkills CLI skill.
13
13
 
14
- Installs happyskillsai/happyskills-cli into ~/.claude/skills/ so AI agents
14
+ Installs happyskillsai/happyskills-cli into .claude/skills/ so AI agents
15
15
  (Claude Code, etc.) can interact with HappySkills using natural language.
16
16
 
17
17
  Options:
18
+ -g, --global Install globally (~/.claude/skills/) instead of project-level
18
19
  --json Output as JSON
19
20
 
20
21
  Examples:
21
- happyskills setup`
22
+ happyskills setup
23
+ happyskills setup -g`
22
24
 
23
25
  const run = (args) => catch_errors('Setup failed', async () => {
24
26
  if (args.flags._show_help) {
@@ -27,7 +29,7 @@ const run = (args) => catch_errors('Setup failed', async () => {
27
29
  }
28
30
 
29
31
  const options = {
30
- global: true,
32
+ global: args.flags.global || false,
31
33
  yes: true,
32
34
  version: 'latest',
33
35
  project_root: find_project_root()