skiller 0.8.1 → 0.8.2

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.
@@ -809,6 +809,11 @@ async function syncClaudePluginsToSkillsDirs(args) {
809
809
  !taken.has(item.baseName)) {
810
810
  continue;
811
811
  }
812
+ if (reserved.has(item.baseName) &&
813
+ (prev === currentNamespacedBase ||
814
+ prev.startsWith(`${currentNamespacedBase}-`))) {
815
+ continue;
816
+ }
812
817
  if (taken.has(prev))
813
818
  continue;
814
819
  assignedDestByItemKey.set(item.itemKey, prev);
@@ -824,6 +829,9 @@ async function syncClaudePluginsToSkillsDirs(args) {
824
829
  taken.add(base);
825
830
  continue;
826
831
  }
832
+ if (reserved.has(base)) {
833
+ continue;
834
+ }
827
835
  const namespacedBase = `${pluginNamespacePrefixByPluginId.get(item.pluginId) ?? sanitizeId(item.pluginId)}-${base}`;
828
836
  let candidate = namespacedBase;
829
837
  let i = 2;
@@ -833,10 +841,12 @@ async function syncClaudePluginsToSkillsDirs(args) {
833
841
  assignedDestByItemKey.set(item.itemKey, candidate);
834
842
  taken.add(candidate);
835
843
  }
836
- const assignedItems = sortedItems.map((item) => ({
837
- ...item,
838
- destRelPath: assignedDestByItemKey.get(item.itemKey),
839
- }));
844
+ const assignedItems = sortedItems.flatMap((item) => {
845
+ const destRelPath = assignedDestByItemKey.get(item.itemKey);
846
+ if (!destRelPath)
847
+ return [];
848
+ return [{ ...item, destRelPath }];
849
+ });
840
850
  // Install/update expected items
841
851
  if (assignedItems.length > 0) {
842
852
  await ensureDir(targetSkillsDir, dryRun);
@@ -152,6 +152,7 @@ function cloneLoadedConfig(config) {
152
152
  cliAgents: config.cliAgents ? [...config.cliAgents] : undefined,
153
153
  mcp: config.mcp ? { ...config.mcp } : undefined,
154
154
  gitignore: config.gitignore ? { ...config.gitignore } : undefined,
155
+ skills: config.skills ? { ...config.skills } : undefined,
155
156
  nested: config.nested,
156
157
  nestedDefined: config.nestedDefined,
157
158
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skiller",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "Skiller — apply the same rules to all coding agents",
5
5
  "main": "dist/lib.js",
6
6
  "publishConfig": {