@phren/cli 0.3.22 → 0.3.24

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.
@@ -77,6 +77,7 @@ function agentSkillDirs() {
77
77
  path.join(home, ".cursor", "skills"),
78
78
  path.join(home, ".copilot", "skills"),
79
79
  path.join(home, ".codex", "skills"),
80
+ path.join(home, ".agents", "skills"),
80
81
  ];
81
82
  }
82
83
  // Remove skill symlinks that resolve inside phrenPath. Only touches symlinks, never regular files.
@@ -269,6 +269,17 @@ function ensureGeneratedSkillArtifacts(phrenPath, preferredHome) {
269
269
  catch (err) {
270
270
  debugLog(`ensureGeneratedSkillArtifacts: global skill mirror sync failed: ${errorMessage(err)}`);
271
271
  }
272
+ // The standard user skill directory is how Codex discovers folder skills.
273
+ const nativeSkillsDir = path.join(preferredHome, ".agents", "skills");
274
+ const hadNativeSkillsDir = fs.existsSync(nativeSkillsDir);
275
+ try {
276
+ syncScopeSkillsToDir(phrenPath, "global", nativeSkillsDir);
277
+ if (!hadNativeSkillsDir)
278
+ created.push("~/.agents/skills/");
279
+ }
280
+ catch (err) {
281
+ debugLog(`ensureGeneratedSkillArtifacts: native skill mirror sync failed: ${errorMessage(err)}`);
282
+ }
272
283
  const copilotSkillsDir = path.join(preferredHome, ".copilot", "skills");
273
284
  const hadCopilotSkillsDir = fs.existsSync(copilotSkillsDir);
274
285
  if (isCopilotInstalled()) {
@@ -22,6 +22,7 @@ function agentSkillDirs() {
22
22
  path.join(home, ".cursor", "skills"),
23
23
  path.join(home, ".copilot", "skills"),
24
24
  path.join(home, ".codex", "skills"),
25
+ path.join(home, ".agents", "skills"),
25
26
  ];
26
27
  }
27
28
  export function generatedRootMemoryPath() {
package/dist/link/link.js CHANGED
@@ -248,6 +248,8 @@ function linkGlobal(phrenPath, tools, caps) {
248
248
  log(" global skills -> ~/.claude/skills/");
249
249
  const skillsDir = homePath(".claude", "skills");
250
250
  syncScopeSkillsToDir(phrenPath, "global", skillsDir);
251
+ log(" global skills -> ~/.agents/skills/");
252
+ syncScopeSkillsToDir(phrenPath, "global", homePath(".agents", "skills"));
251
253
  if (tools.has("copilot")) {
252
254
  const copilotSkillsDir = homePath(".copilot", "skills");
253
255
  log(" global skills -> ~/.copilot/skills/");
@@ -10,7 +10,7 @@ import { syncScopeSkillsToDir } from "../skill/files.js";
10
10
  export function refreshLinkedContext(phrenPath, profile) {
11
11
  const caps = resolveManagementCapabilities(phrenPath);
12
12
  if (caps.installSkillLinks) {
13
- for (const tool of [".claude", ".copilot"]) {
13
+ for (const tool of [".claude", ".agents", ".copilot"]) {
14
14
  const dir = homePath(tool, "skills");
15
15
  if (fs.existsSync(path.join(path.dirname(dir), "skill-manifest.json")))
16
16
  syncScopeSkillsToDir(phrenPath, "global", dir);