Skip to content

armgit / chops

Public Imported from GitHub
0

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 Global Agents as dedicated tool source for ~/.agents/skills (#42)

Josh Pigford2979e96fa2b5
diff --git a/Chops/Models/ToolSource.swift b/Chops/Models/ToolSource.swift
index adf776a..3ffabc4 100644
--- a/Chops/Models/ToolSource.swift
+++ b/Chops/Models/ToolSource.swift
@@ -1,6 +1,7 @@
import SwiftUI
enum ToolSource: String, Codable, CaseIterable, Identifiable {
+ case agents
case claude
case cursor
case windsurf
@@ -25,6 +26,7 @@ enum ToolSource: String, Codable, CaseIterable, Identifiable {
case .amp: "Amp"
case .openclaw: "OpenClaw"
case .pi: "Pi"
+ case .agents: "Global Agents"
case .custom: "Custom"
}
}
@@ -41,6 +43,7 @@ enum ToolSource: String, Codable, CaseIterable, Identifiable {
case .amp: "bolt.fill"
case .openclaw: "server.rack"
case .pi: "sparkles"
+ case .agents: "globe"
case .custom: "folder"
}
}
@@ -52,6 +55,7 @@ enum ToolSource: String, Codable, CaseIterable, Identifiable {
case .cursor: "tool-cursor"
case .codex: "tool-codex"
case .windsurf: "tool-windsurf"
+ case .copilot: "tool-copilot"
case .amp: "tool-amp"
default: nil
}
@@ -68,6 +72,7 @@ enum ToolSource: String, Codable, CaseIterable, Identifiable {
case .amp: .pink
case .openclaw: .indigo
case .pi: .cyan
+ case .agents: .mint
case .custom: .gray
}
}
@@ -81,7 +86,7 @@ enum ToolSource: String, Codable, CaseIterable, Identifiable {
return "\(home)/.config"
}()
switch self {
- case .claude: return ["\(home)/.claude/skills", "\(home)/.agents/skills"]
+ case .claude: return ["\(home)/.claude/skills"]
case .cursor: return ["\(home)/.cursor/skills", "\(home)/.cursor/rules"]
case .windsurf: return ["\(home)/.codeium/windsurf/memories", "\(home)/.windsurf/rules"]
case .codex: return ["\(home)/.codex/skills"]
@@ -90,6 +95,7 @@ enum ToolSource: String, Codable, CaseIterable, Identifiable {
case .amp: return ["\(configHome)/amp/skills"]
case .openclaw: return []
case .pi: return ["\(home)/.pi/agent/skills"]
+ case .agents: return ["\(home)/.agents/skills"]
case .custom: return []
}
}
@@ -105,7 +111,6 @@ enum ToolSource: String, Codable, CaseIterable, Identifiable {
case .claude:
return fm.fileExists(atPath: "\(home)/.claude/settings.json")
|| fm.fileExists(atPath: "\(home)/.claude/CLAUDE.md")
- || fm.fileExists(atPath: "\(home)/.agents/skills")
|| Self.cliBinaryExists("claude")
case .cursor:
return fm.fileExists(atPath: "/Applications/Cursor.app")
@@ -128,6 +133,8 @@ enum ToolSource: String, Codable, CaseIterable, Identifiable {
case .copilot:
return fm.fileExists(atPath: "\(home)/.copilot")
|| Self.cliBinaryExists("copilot")
+ case .agents:
+ return fm.fileExists(atPath: "\(home)/.agents/skills")
case .aider, .openclaw, .custom:
return true
}
diff --git a/Chops/Resources/Assets.xcassets/tool-copilot.imageset/Contents.json b/Chops/Resources/Assets.xcassets/tool-copilot.imageset/Contents.json
new file mode 100644
index 0000000..69c1978
--- /dev/null
+++ b/Chops/Resources/Assets.xcassets/tool-copilot.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-copilot.imageset/logo.svg b/Chops/Resources/Assets.xcassets/tool-copilot.imageset/logo.svg
new file mode 100644
index 0000000..3cbf22a
--- /dev/null
+++ b/Chops/Resources/Assets.xcassets/tool-copilot.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>GithubCopilot</title><path d="M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z"></path></svg>
\ No newline at end of file
diff --git a/Chops/Services/SkillParser.swift b/Chops/Services/SkillParser.swift
index e1b5172..647c4b2 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, .pi, .custom:
+ case .codex, .amp, .windsurf, .copilot, .aider, .openclaw, .pi, .agents, .custom:
// Try frontmatter first, fall back to heading
let parsed = FrontmatterParser.parse(content)
if !parsed.name.isEmpty { return parsed }
diff --git a/Chops/Services/SkillScanner.swift b/Chops/Services/SkillScanner.swift
index 1282ab7..2fcd7f5 100644
--- a/Chops/Services/SkillScanner.swift
+++ b/Chops/Services/SkillScanner.swift
@@ -86,7 +86,7 @@ final class SkillScanner {
for tool in ToolSource.allCases where tool != .custom {
guard !Task.isCancelled else { return results }
- guard tool.isInstalled || tool.globalPaths.contains(where: { FileManager.default.fileExists(atPath: $0) }) else {
+ guard tool.isInstalled else {
continue
}
for path in tool.globalPaths {
diff --git a/Chops/Views/Shared/NewSkillSheet.swift b/Chops/Views/Shared/NewSkillSheet.swift
index 279c9b7..84455b7 100644
--- a/Chops/Views/Shared/NewSkillSheet.swift
+++ b/Chops/Views/Shared/NewSkillSheet.swift
@@ -9,6 +9,8 @@ struct NewSkillSheet: View {
@State private var selectedTool: ToolSource = .claude
@State private var errorMessage: String?
+ private let creatableTools: [ToolSource] = [.claude, .agents, .cursor, .codex, .amp, .pi]
+
var body: some View {
VStack(spacing: 20) {
Text("New Skill")
@@ -20,7 +22,7 @@ struct NewSkillSheet: View {
.textFieldStyle(.roundedBorder)
Picker("Tool", selection: $selectedTool) {
- ForEach(ToolSource.allCases.filter { $0 != .custom }) { tool in
+ ForEach(creatableTools) { tool in
Label(tool.displayName, systemImage: tool.iconName)
.tag(tool)
}
@@ -80,6 +82,10 @@ struct NewSkillSheet: View {
basePath = "\(fm.homeDirectoryForCurrentUser.path)/.claude/skills/\(sanitizedName)"
fileName = "SKILL.md"
isDirectory = true
+ case .agents:
+ basePath = "\(fm.homeDirectoryForCurrentUser.path)/.agents/skills/\(sanitizedName)"
+ fileName = "SKILL.md"
+ isDirectory = true
case .cursor:
basePath = "\(fm.homeDirectoryForCurrentUser.path)/.cursor/skills/\(sanitizedName)"
fileName = "SKILL.md"
@@ -165,7 +171,7 @@ struct NewSkillSheet: View {
Add your skill instructions here.
"""
- case .codex, .amp, .pi:
+ case .codex, .amp, .pi, .agents:
return """
---
name: \(name.lowercased().replacingOccurrences(of: " ", with: "-"))
diff --git a/Chops/Views/Shared/ToolBadge.swift b/Chops/Views/Shared/ToolBadge.swift
index 68cef88..dbc38af 100644
--- a/Chops/Views/Shared/ToolBadge.swift
+++ b/Chops/Views/Shared/ToolBadge.swift
@@ -45,6 +45,7 @@ extension ToolSource {
case .amp: "AM"
case .openclaw: "OC"
case .pi: "PI"
+ case .agents: "AG"
case .custom: "?"
}
}
diff --git a/README.md b/README.md
index ea251c2..6791994 100644
--- a/README.md
+++ b/README.md
@@ -126,11 +126,12 @@ Chops scans these directories for skills:
| Tool | Global Paths |
|------|-------------|
-| Claude Code | `~/.claude/skills/`, `~/.agents/skills` |
+| Claude Code | `~/.claude/skills/` |
| Cursor | `~/.cursor/skills/`, `~/.cursor/rules` |
| Windsurf | `~/.codeium/windsurf/memories/`, `~/.windsurf/rules` |
| Codex | `~/.codex` |
| Amp | `~/.config/amp` |
+| Global Agents | `~/.agents/skills/` |
Copilot and Aider are also supported but only detect project-level skills (no global paths). Custom paths can be added for any tool.