Skip to content

fix(middleware): align skills discovery and catalog ownership - #166

Merged
huangjeff5 merged 1 commit into
genkit-ai:mainfrom
jabrailkhalil:fix/skills-discovery-catalog
Dec 1, 2026
Merged

huangjeff5 merged 1 commit into
genkit-ai:mainfrom
jabrailkhalil:fix/skills-discovery-catalog

Conversation

@jabrailkhalil

Copy link
Copy Markdown
Contributor

I moved this over from genkit-ai/genkit#6546 and kept the direct-child discovery and file checks from #52.

Skills() now checks .agents/skills before skills. An explicit skill_paths replaces the defaults, and [] disables discovery. The catalog names use_skill and refreshes only its own or legacy entries, leaving catalogs tagged with another activation tool intact.

All 203 middleware tests passed on Linux. On Windows, the same seven tests failed on both this branch and upstream main. Reverting _skills.py with the new tests in place produced 13 additional failures. Package lint, formatting for the changed files and their type checks passed.

@huangjeff5 huangjeff5 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

@huangjeff5
huangjeff5 merged commit 553eb49 into genkit-ai:main Dec 1, 2026
20 checks passed
@huangjeff5 huangjeff5 mentioned this pull request Dec 3, 2026
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.

2 participants