Migrate Cursor-managed skills into Codex (#36361)

## What changed

- Discover and import home-level Cursor skills from both `skills` and
  `skills-cursor`.
- Keep repository-level Cursor migration scoped to `skills`.
- Deduplicate skill names when reporting migration candidates from multiple
  source directories.

## Testing

- Add coverage for detecting and importing user and Cursor-managed skills.
- Verify repository detection continues to use the `skills` directory.

GitOrigin-RevId: 7b5e96a0d9c5ca14c61230e336728f2e4930a3b0
This commit is contained in:
charlesgong-openai authored and copyberry committed 2026-07-31 16:40:53 +00:00
1 parent 385fe95ce1
commit da2c7ca8d1
5 files changed
+174 -22

No files matched your search

@@ -71,6 +71,14 @@ impl ExternalAgentSource {
}
}
pub(super) fn skills_dir_names(self, scope: &MigrationScope) -> &'static [&'static str] {
match (self, scope) {
// skills-cursor is Cursor-managed and only exists under the home config.
(Self::Cur, MigrationScope::Home) => &["skills", "skills-cursor"],
_ => &["skills"],
}
}
pub(super) fn supports_memory(self) -> bool {
match self {
Self::Cla => true,