fizzy-cli 0.2.2 → 0.3.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +20 -0
- data/lib/fizzy/cli/skill.rb +82 -0
- data/lib/fizzy/cli.rb +4 -0
- data/lib/fizzy/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3c7249d6d732c7829bdb9e165d6b5972995952c92771d59ca80f7335a95b2af8
|
|
4
|
+
data.tar.gz: 0436f2a6c63316375ffa19488f2d1b4ecef6fc1066fd1422ccad3124069b1585
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bec62220f8d21d6edceab3a0d1dc7835ca5cb5c1f0f404d5923cf3eed3eef0c4330798e8dab644c3bafe88d70e3e8c2c747398d5742baa90311684aaa323afe9
|
|
7
|
+
data.tar.gz: 0d106800ad06848b59ec24fe0bcb0a6802f71f131a0890698ef133ce6c2276d927e7922473d759958c4554905725fa975abc72cfcb58e43f8583952e08800297
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
7
7
|
|
|
8
|
+
## [0.3.0] - 2026-02-22
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- `fizzy skill install` command to install AI skill files for Claude Code and Codex
|
|
12
|
+
- `fizzy skill uninstall` command to remove installed skill files
|
|
13
|
+
- `--target` option (claude, codex, all) and `--scope` option (user, project)
|
|
14
|
+
|
|
8
15
|
## [0.2.2] - 2026-02-21
|
|
9
16
|
|
|
10
17
|
### Fixed
|
data/README.md
CHANGED
|
@@ -190,6 +190,26 @@ bundle exec rake test # tests only
|
|
|
190
190
|
bundle exec rubocop # lint only
|
|
191
191
|
```
|
|
192
192
|
|
|
193
|
+
## AI Agent Integration
|
|
194
|
+
|
|
195
|
+
Fizzy CLI ships with a [skill file](skills/fizzy-cli/SKILL.md) that teaches AI coding assistants how to use the CLI. Install it so agents can manage your Fizzy boards and cards autonomously.
|
|
196
|
+
|
|
197
|
+
The `fizzy` gem must be installed and authenticated first:
|
|
198
|
+
|
|
199
|
+
```sh
|
|
200
|
+
gem install fizzy-cli
|
|
201
|
+
fizzy auth login --token YOUR_TOKEN
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
```sh
|
|
205
|
+
fizzy skill install # Claude Code, user-level (default)
|
|
206
|
+
fizzy skill install --target codex # OpenAI Codex / OpenCode
|
|
207
|
+
fizzy skill install --target all # All supported agents
|
|
208
|
+
fizzy skill install --scope project # Project-level instead of user-level
|
|
209
|
+
fizzy skill uninstall # Remove skill file
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
|
|
193
213
|
## Contributing
|
|
194
214
|
|
|
195
215
|
Bug reports and pull requests are welcome on GitHub at https://github.com/dpaluy/fizzy-cli.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "net/http"
|
|
4
|
+
require "fileutils"
|
|
5
|
+
|
|
6
|
+
module Fizzy
|
|
7
|
+
class CLI < Thor
|
|
8
|
+
class Skill < Thor
|
|
9
|
+
namespace "skill"
|
|
10
|
+
|
|
11
|
+
SKILL_URL = "https://raw.githubusercontent.com/dpaluy/fizzy-cli/master/skills/fizzy-cli/SKILL.md"
|
|
12
|
+
|
|
13
|
+
TARGET_PATHS = {
|
|
14
|
+
"claude" => {
|
|
15
|
+
"user" => File.join(Dir.home, ".claude", "skills", "fizzy-cli"),
|
|
16
|
+
"project" => File.join(".claude", "skills", "fizzy-cli")
|
|
17
|
+
},
|
|
18
|
+
"codex" => {
|
|
19
|
+
"user" => File.join(Dir.home, ".agents", "skills", "fizzy-cli"),
|
|
20
|
+
"project" => File.join(".agents", "skills", "fizzy-cli")
|
|
21
|
+
}
|
|
22
|
+
}.freeze
|
|
23
|
+
|
|
24
|
+
desc "install", "Install AI skill file for fizzy-cli"
|
|
25
|
+
option :target, type: :string, default: "claude", enum: %w[claude codex all], desc: "Target agent"
|
|
26
|
+
option :scope, type: :string, default: "user", enum: %w[user project], desc: "Install scope"
|
|
27
|
+
def install
|
|
28
|
+
content = fetch_skill
|
|
29
|
+
|
|
30
|
+
targets_for(options[:target]).each do |target|
|
|
31
|
+
dir = TARGET_PATHS.dig(target, options[:scope])
|
|
32
|
+
path = File.join(dir, "SKILL.md")
|
|
33
|
+
|
|
34
|
+
if File.exist?(path) && File.read(path) == content
|
|
35
|
+
say "Already up to date: #{path}"
|
|
36
|
+
else
|
|
37
|
+
verb = File.exist?(path) ? "Updated" : "Installed"
|
|
38
|
+
FileUtils.mkdir_p(dir)
|
|
39
|
+
File.write(path, content)
|
|
40
|
+
say "#{verb}: #{path}"
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
desc "uninstall", "Remove AI skill file for fizzy-cli"
|
|
46
|
+
option :target, type: :string, default: "claude", enum: %w[claude codex all], desc: "Target agent"
|
|
47
|
+
option :scope, type: :string, default: "user", enum: %w[user project], desc: "Install scope"
|
|
48
|
+
def uninstall
|
|
49
|
+
targets_for(options[:target]).each do |target|
|
|
50
|
+
dir = TARGET_PATHS.dig(target, options[:scope])
|
|
51
|
+
|
|
52
|
+
unless File.directory?(dir)
|
|
53
|
+
say "Not installed: #{dir}"
|
|
54
|
+
next
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
FileUtils.rm_rf(dir)
|
|
58
|
+
say "Removed: #{dir}"
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def self.exit_on_failure? = true
|
|
63
|
+
|
|
64
|
+
private
|
|
65
|
+
|
|
66
|
+
def targets_for(target)
|
|
67
|
+
target == "all" ? %w[claude codex] : [target]
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
def fetch_skill
|
|
71
|
+
uri = URI(SKILL_URL)
|
|
72
|
+
response = Net::HTTP.get_response(uri)
|
|
73
|
+
|
|
74
|
+
raise Thor::Error, "Failed to fetch skill file (HTTP #{response.code})" unless response.is_a?(Net::HTTPSuccess)
|
|
75
|
+
|
|
76
|
+
response.body.force_encoding("UTF-8")
|
|
77
|
+
rescue SocketError, Errno::ECONNREFUSED, Net::OpenTimeout, Net::ReadTimeout => e
|
|
78
|
+
raise Thor::Error, "Could not fetch skill file: #{e.message}"
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
data/lib/fizzy/cli.rb
CHANGED
|
@@ -13,6 +13,7 @@ require_relative "cli/users"
|
|
|
13
13
|
require_relative "cli/notifications"
|
|
14
14
|
require_relative "cli/pins"
|
|
15
15
|
require_relative "cli/auth"
|
|
16
|
+
require_relative "cli/skill"
|
|
16
17
|
|
|
17
18
|
module Fizzy
|
|
18
19
|
class CLI < Thor
|
|
@@ -57,6 +58,9 @@ module Fizzy
|
|
|
57
58
|
desc "auth SUBCOMMAND ...ARGS", "Authentication commands"
|
|
58
59
|
subcommand "auth", CLI::AuthCommands
|
|
59
60
|
|
|
61
|
+
desc "skill SUBCOMMAND ...ARGS", "Manage AI skill files"
|
|
62
|
+
subcommand "skill", CLI::Skill
|
|
63
|
+
|
|
60
64
|
def self.exit_on_failure? = true
|
|
61
65
|
end
|
|
62
66
|
end
|
data/lib/fizzy/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fizzy-cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Paluy
|
|
@@ -51,6 +51,7 @@ files:
|
|
|
51
51
|
- lib/fizzy/cli/notifications.rb
|
|
52
52
|
- lib/fizzy/cli/pins.rb
|
|
53
53
|
- lib/fizzy/cli/reactions.rb
|
|
54
|
+
- lib/fizzy/cli/skill.rb
|
|
54
55
|
- lib/fizzy/cli/steps.rb
|
|
55
56
|
- lib/fizzy/cli/tags.rb
|
|
56
57
|
- lib/fizzy/cli/users.rb
|