Skip to content

feat(cli): bootstrap global SKILLS guide and bump to 0.7.8#180

Merged
charlesrhoward merged 1 commit intomainfrom
codex/cli-0.7.8-global-skills
Feb 19, 2026
Merged

feat(cli): bootstrap global SKILLS guide and bump to 0.7.8#180
charlesrhoward merged 1 commit intomainfrom
codex/cli-0.7.8-global-skills

Conversation

@charlesrhoward
Copy link
Contributor

@charlesrhoward charlesrhoward commented Feb 19, 2026

Summary\n- add global SKILLS.md bootstrap guidance for detected tool config homes\n- wire SKILLS installer into memories setup\n- add safe global-install postinstall hook\n- bump @memories.sh/cli to 0.7.8\n\n## Validation\n- pnpm -C packages/cli typecheck\n- pnpm -C packages/cli test -- src/lib/setup.test.ts


Note

Medium Risk
Introduces filesystem writes to user home directories during setup and global postinstall, which can surprise users or vary across environments despite safeguards to avoid overwriting non-generated files.

Overview
Adds automatic global SKILLS.md bootstrapping: when tools are detected in a user’s home config dirs (or via command detection), the CLI now creates/updates a generated SKILLS.md with usage guardrails, while skipping user-authored files unless they contain the memories.sh generation marker.

Wires this installer into memories setup (reporting created/updated/skipped/errors) and adds a safe npm postinstall hook that runs only for global installs (or when forced) and never blocks installation. Bumps @memories.sh/cli to 0.7.8, ships postinstall.mjs, and adds tests covering create/skip/command-detected cases; READMEs are updated to mention the new global bootstrap behavior.

Written by Cursor Bugbot for commit fbd3aee. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Feb 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
memories Ready Ready Preview, Comment, Open in v0 Feb 19, 2026 3:18pm

Request Review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fbd3aee45c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

}

const packageRoot = dirname(fileURLToPath(import.meta.url));
const setupModulePath = join(packageRoot, "dist", "lib", "setup.js");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Import installer from an emitted build artifact

The postinstall hook points to dist/lib/setup.js, but this package is built from a single src/index.ts entry (packages/cli/tsup.config.ts:4), so that module path is not emitted in the published bundle; the existsSync guard then exits early and global installs silently skip SKILLS.md bootstrap entirely. Point the hook at a file that is guaranteed to exist after build (or add an explicit emitted entry for the installer) so the new feature actually runs.

Useful? React with 👍 / 👎.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is ON. A Cloud Agent has been kicked off to fix the reported issue.

}

const targets = globalSkillTargetsForTool(tool);
return targets.some((path) => existsSync(join(home, dirname(path))));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Directory creation contaminates later tool detection fallback

Medium Severity

The fallback check in hasGlobalToolSignal detects a tool if the parent directory of its SKILLS target exists. But installGlobalSkillsGuides processes tools sequentially, and mkdir for an earlier tool can create a shared parent directory that falsely triggers detection for a later tool. Specifically, "Antigravity" creating ~/.gemini/antigravity/SKILLS.md causes ~/.gemini to exist, which then falsely detects "Gemini" and writes an unwanted ~/.gemini/SKILLS.md.

Additional Locations (1)

Fix in Cursor Fix in Web

@charlesrhoward charlesrhoward merged commit 78ca9ae into main Feb 19, 2026
14 checks passed
@cursor
Copy link

cursor bot commented Feb 19, 2026

Bugbot Autofix prepared fixes for 1 of the 1 bugs found in the latest run.

  • ✅ Fixed: Directory creation contaminates later tool detection fallback
    • I fixed the fallback to use a pre-install snapshot of target parent directories so directories created earlier in the same run no longer trigger false tool detection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant