Skip to content

docs(py): add contributing-to-genkit-python skill - #6824

Closed
huangjeff5 wants to merge 22 commits into
mainfrom
jh/py-contributing-skill
Closed

huangjeff5 wants to merge 22 commits into
mainfrom
jh/py-contributing-skill

Conversation

@huangjeff5

@huangjeff5 huangjeff5 commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Adds py/skills/contributing-to-genkit-python/, a skill for anyone (or any agent) changing the Genkit Python public API. It covers:

  • what makes an API feel like Genkit, starting with keeping the public surface small and tight
  • how the 1.0 surface fits together: ai as the entry point, actions, refs and typed config, raise-before-start and return-after, streams, context=
  • judgment calls a linter won't catch: naming, Literal for inputs vs enum for values you match on, where helpers live, overrides, errors
  • plugin packages: the root __init__.py is the only public module, every exported name needs a reason, and config is flat at the surface and built into the provider's nested shape inside the action
  • when to use a Pydantic model (BaseModel, GenkitConfig, GenkitModel), a frozen dataclass, or a plain class
  • imports at the top, no if TYPE_CHECKING: imports, and dependencies that run one way with no cycles
  • changing generated wire types through py/scripts/schema_to_typing.py
  • how to write a PR description: Changes, Breaking changes, Cross-SDK
  • running genkit start safely when other agents share the machine

Changes

  • New skill under py/skills/: SKILL.md holds the rules every surface change needs; references/plugins.md, references/wire-types.md, references/pr-descriptions.md and references/dev-ui-alongside-other-agents.md load only when that work applies. No SDK code changes.

Breaking changes

None.

@github-actions github-actions Bot added docs Improvements or additions to documentation python Python labels Oct 18, 2026

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

Copy link
Copy Markdown
Contributor

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 adds a comprehensive contribution guide (SKILL.md) for Genkit Python, detailing API design principles, architecture, coding conventions, and PR guidelines. The review feedback suggests two improvements: simplifying ToolContext[ChunkT] to ToolContext because tools do not stream chunks, and using the full repository path for the generated typing file to maintain consistency.

@huangjeff5

Copy link
Copy Markdown
Contributor Author

Closing in genkit-ai/genkit; contributing skill migrated directly to genkit-ai/genkit-python under skills/contributing-to-genkit-python.

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

Labels

docs Improvements or additions to documentation python Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant