Your AI agent skills, finally organized. A macOS app to browse, edit, and manage skills across Claude Code, Cursor, Codex, Windsurf, and Amp.
feat: add Antigravity as a supported tool source (#44)
Josh Pigford53da72c97d3d
diff --git a/Chops/Models/ToolSource.swift b/Chops/Models/ToolSource.swiftindex d1f14c6..5e2d7f5 100644--- a/Chops/Models/ToolSource.swift+++ b/Chops/Models/ToolSource.swift@@ -12,6 +12,7 @@ enum ToolSource: String, Codable, CaseIterable, Identifiable {case openclawcase opencodecase pi+ case antigravitycase customvar id: String { rawValue }@@ -29,6 +30,7 @@ enum ToolSource: String, Codable, CaseIterable, Identifiable {case .opencode: "OpenCode"case .pi: "Pi"case .agents: "Global Agents"+ case .antigravity: "Antigravity"case .custom: "Custom"}}@@ -47,6 +49,7 @@ enum ToolSource: String, Codable, CaseIterable, Identifiable {case .opencode: "terminal"case .pi: "sparkles"case .agents: "globe"+ case .antigravity: "arrow.up.circle"case .custom: "folder"}}@@ -60,6 +63,7 @@ enum ToolSource: String, Codable, CaseIterable, Identifiable {case .windsurf: "tool-windsurf"case .copilot: "tool-copilot"case .amp: "tool-amp"+ case .antigravity: "tool-antigravity"case .opencode: "tool-opencode"default: nil}@@ -78,6 +82,7 @@ enum ToolSource: String, Codable, CaseIterable, Identifiable {case .opencode: .redcase .pi: .cyancase .agents: .mint+ case .antigravity: .redcase .custom: .gray}}@@ -102,6 +107,7 @@ enum ToolSource: String, Codable, CaseIterable, Identifiable {case .opencode: return ["\(configHome)/opencode/skills"]case .pi: return ["\(home)/.pi/agent/skills"]case .agents: return ["\(home)/.agents/skills"]+ case .antigravity: return ["\(home)/.gemini/antigravity/skills"]case .custom: return []}}@@ -141,6 +147,11 @@ enum ToolSource: String, Codable, CaseIterable, Identifiable {|| Self.cliBinaryExists("copilot")case .agents:return fm.fileExists(atPath: "\(home)/.agents/skills")+ case .antigravity:+ return Self.appBundleExists("Antigravity")+ || fm.fileExists(atPath: "\(home)/.gemini/antigravity/skills")+ || fm.fileExists(atPath: "\(home)/.antigravity")+ || Self.cliBinaryExists("antigravity")case .opencode:let configHome = ProcessInfo.processInfo.environment["XDG_CONFIG_HOME"].flatMap { $0.isEmpty ? nil : $0 } ?? "\(home)/.config"diff --git a/Chops/Resources/Assets.xcassets/tool-antigravity.imageset/Contents.json b/Chops/Resources/Assets.xcassets/tool-antigravity.imageset/Contents.jsonnew file mode 100644index 0000000..69c1978--- /dev/null+++ b/Chops/Resources/Assets.xcassets/tool-antigravity.imageset/Contents.json@@ -0,0 +1,16 @@+{+ "images" : [+ {+ "filename" : "logo.svg",+ "idiom" : "universal"+ }+ ],+ "info" : {+ "author" : "xcode",+ "version" : 1+ },+ "properties" : {+ "preserves-vector-representation" : true,+ "template-rendering-intent" : "template"+ }+}diff --git a/Chops/Resources/Assets.xcassets/tool-antigravity.imageset/logo.svg b/Chops/Resources/Assets.xcassets/tool-antigravity.imageset/logo.svgnew file mode 100644index 0000000..81088a0--- /dev/null+++ b/Chops/Resources/Assets.xcassets/tool-antigravity.imageset/logo.svg@@ -0,0 +1 @@+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Antigravity</title><path d="M21.751 22.607c1.34 1.005 3.35.335 1.508-1.508C17.73 15.74 18.904 1 12.037 1 5.17 1 6.342 15.74.815 21.1c-2.01 2.009.167 2.511 1.507 1.506 5.192-3.517 4.857-9.714 9.715-9.714 4.857 0 4.522 6.197 9.714 9.715z"></path></svg>diff --git a/Chops/Services/SkillParser.swift b/Chops/Services/SkillParser.swiftindex 05390b4..2bdaf75 100644--- a/Chops/Services/SkillParser.swift+++ b/Chops/Services/SkillParser.swift@@ -12,7 +12,7 @@ enum SkillParser {return MDCParser.parse(content)}return FrontmatterParser.parse(content)- case .codex, .amp, .windsurf, .copilot, .aider, .openclaw, .opencode, .pi, .agents, .custom:+ case .codex, .amp, .windsurf, .copilot, .aider, .openclaw, .opencode, .pi, .agents, .antigravity, .custom:// Try frontmatter first, fall back to headinglet parsed = FrontmatterParser.parse(content)if !parsed.name.isEmpty { return parsed }diff --git a/Chops/Views/Shared/NewSkillSheet.swift b/Chops/Views/Shared/NewSkillSheet.swiftindex bb8ac4c..edc6c1e 100644--- a/Chops/Views/Shared/NewSkillSheet.swift+++ b/Chops/Views/Shared/NewSkillSheet.swift@@ -9,7 +9,7 @@ struct NewSkillSheet: View {@State private var selectedTool: ToolSource = .claude@State private var errorMessage: String?- private let creatableTools: [ToolSource] = [.claude, .agents, .cursor, .codex, .amp, .opencode, .pi]+ private let creatableTools: [ToolSource] = [.claude, .agents, .cursor, .codex, .amp, .opencode, .pi, .antigravity]var body: some View {VStack(spacing: 20) {@@ -106,6 +106,10 @@ struct NewSkillSheet: View {basePath = "\(fm.homeDirectoryForCurrentUser.path)/.pi/agent/skills/\(sanitizedName)"fileName = "SKILL.md"isDirectory = true+ case .antigravity:+ basePath = "\(fm.homeDirectoryForCurrentUser.path)/.gemini/antigravity/skills/\(sanitizedName)"+ fileName = "SKILL.md"+ isDirectory = truedefault:let firstPath = selectedTool.globalPaths.first ?? "\(fm.homeDirectoryForCurrentUser.path)/.claude/skills/\(sanitizedName)"basePath = firstPath@@ -175,7 +179,7 @@ struct NewSkillSheet: View {Add your skill instructions here."""- case .codex, .amp, .opencode, .pi, .agents:+ case .codex, .amp, .opencode, .pi, .agents, .antigravity:return """---name: \(skillID)diff --git a/Chops/Views/Shared/ToolBadge.swift b/Chops/Views/Shared/ToolBadge.swiftindex b1db4ee..f251ecd 100644--- a/Chops/Views/Shared/ToolBadge.swift+++ b/Chops/Views/Shared/ToolBadge.swift@@ -47,6 +47,7 @@ extension ToolSource {case .opencode: "OP"case .pi: "PI"case .agents: "AG"+ case .antigravity: "AV"case .custom: "?"}}