Repository navigation
chore: move contributing skill to .agents/skills and add AGENTS.md - #280
huangjeff5 wants to merge 1 commit into
Conversation
genkit-bot
left a comment
There was a problem hiding this comment.
LGTM
Details
Run e3471841-b257-4bd9-8f66-2ebc36aafd9c · Cloud Run logs · Dashboard
ssbushi
left a comment
There was a problem hiding this comment.
The move is clean: nothing references the old skills/ path, and the skill's relative links still resolve. Two suggestions on AGENTS.md below, so sandboxed agents with only uv can run the checks and reviewers pick up the skill too. The README's Local Development section could switch to uv run just ... as well.
| @@ -0,0 +1,14 @@ | |||
| # Genkit Python | |||
|
|
|||
| Read `.agents/skills/contributing-to-genkit-python/SKILL.md` before adding or changing anything a user imports, calls, passes in, or gets back, in core or a plugin. Its `references/` directory covers plugin layout, generated wire types, PR descriptions, and running the Dev UI on a shared machine. | |||
There was a problem hiding this comment.
This wording only covers authors changing the public surface, so a reviewing agent, or an author fixing internals, can skip the skill. Its PR-description, error-status and import rules apply to every change.
| Read `.agents/skills/contributing-to-genkit-python/SKILL.md` before adding or changing anything a user imports, calls, passes in, or gets back, in core or a plugin. Its `references/` directory covers plugin layout, generated wire types, PR descriptions, and running the Dev UI on a shared machine. | |
| Read `.agents/skills/contributing-to-genkit-python/SKILL.md` before writing or reviewing a change in core or a plugin, especially anything a user imports, calls, passes in, or gets back. Its `references/` directory covers plugin layout, generated wire types, PR descriptions, and running the Dev UI on a shared machine. |
| - `just lint`: format with `ruff` and run `ty`, `pyrefly`, and `pyright` | ||
| - `just test`: run `pytest` | ||
| - `just check`: verify workspace consistency (versions, naming, deps) | ||
| - `./bin/check_license`: check Apache-2.0 headers |
There was a problem hiding this comment.
uv sync doesn't install just, so agents in a sandbox with only uv (such as genkit-bot) get "command not found" here. Adding rust-just>=1.59,<2 to the root dev dependency group and running uv lock puts just in .venv, so these work anywhere uv does:
| - `just lint`: format with `ruff` and run `ty`, `pyrefly`, and `pyright` | |
| - `just test`: run `pytest` | |
| - `just check`: verify workspace consistency (versions, naming, deps) | |
| - `./bin/check_license`: check Apache-2.0 headers | |
| - `uv run just lint`: lint-fix and format with `ruff`, then run `ty`, `pyrefly`, and `pyright` | |
| - `uv run just test`: run `pytest` | |
| - `uv run just check`: verify workspace consistency (versions, naming, deps) | |
| - `./bin/check_license`: check Apache-2.0 headers and dependency licenses (needs Go; installs `addlicense` on first run) |
Moves the contributor skill out of
skills/and adds a rootAGENTS.mdso coding agents pick it up automatically.skills/contributing-to-genkit-python/to.agents/skills/contributing-to-genkit-python/, leaving top-levelskills/for user-installed skills.AGENTS.mdpointing to.agents/skills/contributing-to-genkit-python/SKILL.mdand listing the repo's lint, test, consistency, and license checks.