Skip to content

Move local and remote project skills to use RepoMetadataModel#11559

Draft
moirahuang wants to merge 5 commits into
masterfrom
moira/skills-acquisition-repometadata
Draft

Move local and remote project skills to use RepoMetadataModel#11559
moirahuang wants to merge 5 commits into
masterfrom
moira/skills-acquisition-repometadata

Conversation

@moirahuang
Copy link
Copy Markdown
Contributor

@moirahuang moirahuang commented May 22, 2026

Description

Migrates local project skills away from using ProjectSkillSubscriber and instead setting up local and remote project skills to use the same RepoMetadataModel path

Testing

Locally tested to make sure that local project skills still work for both regular skills and git ignored skills

  • I have manually tested my changes locally with ./script/run

Screenshots / Videos

Regular skills
https://github.com/user-attachments/assets/ce2f6abf-ecf6-4f77-8848-313b41b0a3d7

Git ignored skills
https://github.com/user-attachments/assets/27d41709-1a73-4ec7-8a69-a180ed55fa9f

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

@cla-bot cla-bot Bot added the cla-signed label May 22, 2026
@moirahuang moirahuang requested a review from kevinyang372 May 22, 2026 18:45
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 22, 2026

@moirahuang

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

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

Overview

This PR moves project skill discovery from provider directories to concrete SKILL.md files returned by RepoMetadataModel, adding remote-path-aware discovery helpers while keeping local hydration in the watcher.

Concerns

  • Queued project directory handling now treats unrelated directory creations under a skill's owning repo/subtree as relevant to existing skills, which can re-emit already loaded skills whenever ordinary directories are created.

Verdict

Found: 0 critical, 1 important, 0 suggestions

Request changes

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Comment thread app/src/ai/skills/file_watchers/skill_watcher.rs Outdated
@moirahuang
Copy link
Copy Markdown
Contributor Author

/oz-review

@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 22, 2026

@moirahuang

I'm re-reviewing this pull request in response to a review request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

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

Overview

This PR moves project skill discovery from the local project watcher/subscriber path onto RepoMetadataModel, adds file-based skill discovery helpers, and teaches repo metadata to eagerly load ignored skill provider paths.

Concerns

  • Remote project skill paths are discovered as LocalOrRemotePath::Remote but then filtered through to_local_path() before parsing, so remote repository updates still emit no project skills.
  • Removing the separate local project watcher also removes the code path that handled symlinked project skill directories, while repo metadata continues to skip directory symlinks.

Verdict

Found: 0 critical, 2 important, 0 suggestions

Request changes

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Comment thread app/src/ai/skills/file_watchers/skill_watcher.rs
Comment thread app/src/ai/skills/file_watchers/skill_watcher.rs
@moirahuang moirahuang requested a review from peicodes May 22, 2026 22:44
@moirahuang moirahuang force-pushed the moira/skills-acquisition-repometadata branch from a484e3f to 077d252 Compare May 22, 2026 23:45
Copy link
Copy Markdown
Contributor Author

moirahuang commented May 22, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 23, 2026

@moirahuang

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

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

Overview

This PR moves project skill discovery onto RepoMetadataModel, adds ignored-path interests so gitignored skill provider paths can be represented in repo metadata, and updates skill watcher/utils tests for local, ignored, remote-path, and symlinked project skill cases.

Concerns

  • No blocking correctness or security concerns found in the annotated diff.
  • Spec context: no approved or repository spec context was available for this PR.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@moirahuang moirahuang marked this pull request as draft May 23, 2026 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant