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 collections submenu to skill right-click context menu (#50)
Josh Pigford8741078f1b75
diff --git a/Chops/Views/Sidebar/SkillListView.swift b/Chops/Views/Sidebar/SkillListView.swiftindex 7b49781..4ccfa17 100644--- a/Chops/Views/Sidebar/SkillListView.swift+++ b/Chops/Views/Sidebar/SkillListView.swift@@ -19,6 +19,7 @@ struct SkillListView: View {@Environment(\.modelContext) private var modelContext@Environment(AppState.self) private var appState@Query(sort: \Skill.name) private var allSkills: [Skill]+ @Query(sort: \SkillCollection.name) private var allCollections: [SkillCollection]@State private var activeAlert: ActiveAlert?private var filteredSkills: [Skill] {@@ -87,6 +88,25 @@ struct SkillListView: View {skill.isFavorite.toggle()try? modelContext.save()}+ if !allCollections.isEmpty {+ Menu("Collections") {+ ForEach(allCollections) { collection in+ let isAssigned = skill.collections.contains(where: { $0.name == collection.name })+ Button {+ if isAssigned {+ skill.collections.removeAll { $0.name == collection.name }+ } else {+ skill.collections.append(collection)+ }+ try? modelContext.save()+ } label: {+ Toggle(isOn: .constant(isAssigned)) {+ Label(collection.name, systemImage: collection.icon)+ }+ }+ }+ }+ }if !skill.isRemote {Divider()Button("Show in Finder") {