Skip to content

chore: move contributing skill to .agents/skills and add AGENTS.md - #280

Open
huangjeff5 wants to merge 1 commit into
mainfrom
chore/agents-skills-layout
Open

huangjeff5 wants to merge 1 commit into
mainfrom
chore/agents-skills-layout

Conversation

@huangjeff5

Copy link
Copy Markdown
Collaborator

Moves the contributor skill out of skills/ and adds a root AGENTS.md so coding agents pick it up automatically.

  • Move skills/contributing-to-genkit-python/ to .agents/skills/contributing-to-genkit-python/, leaving top-level skills/ for user-installed skills.
  • Add root AGENTS.md pointing to .agents/skills/contributing-to-genkit-python/SKILL.md and listing the repo's lint, test, consistency, and license checks.

@huangjeff5
huangjeff5 enabled auto-merge (squash) December 4, 2026 16:35
@huangjeff5
huangjeff5 requested a review from ssbushi December 4, 2026 16:35

@genkit-bot genkit-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

Details

Run e3471841-b257-4bd9-8f66-2ebc36aafd9c · Cloud Run logs · Dashboard

@ssbushi ssbushi 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.

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.

Comment thread AGENTS.md
@@ -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.

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.

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.

Suggested 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.

Comment thread AGENTS.md
Comment on lines +9 to +12
- `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

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.

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:

Suggested change
- `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)

This branch has not been deployed

No deployments
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.

3 participants