Skip to content

feat(js/plugins/middleware): implemented skills middleware#5049

Open
pavelgj wants to merge 9 commits intopj/gm-middlware-package-retry-fallbackfrom
pj/gm-middleware-skills
Open

feat(js/plugins/middleware): implemented skills middleware#5049
pavelgj wants to merge 9 commits intopj/gm-middlware-package-retry-fallbackfrom
pj/gm-middleware-skills

Conversation

@pavelgj
Copy link
Copy Markdown
Member

@pavelgj pavelgj commented Apr 2, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new skills middleware for Genkit, which allows for scanning a directory of skill definitions (in Markdown format with frontmatter) and injecting them into the system prompt. It also provides a use_skill tool to retrieve the full content of a specific skill. While the implementation provides a solid foundation, several issues were identified regarding concurrency in the initialization logic, potential failures in frontmatter parsing due to line-ending differences, and the use of synchronous file I/O within the tool's execution which could block the event loop.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant