π The fast, Pythonic way to build MCP servers and clients.
Share repository skills across agents and check triage history (#5013)
nate nowack0306354646ad
diff --git a/.agents/skills/code-review/SKILL.md b/.agents/skills/code-review/SKILL.mdnew file mode 100644index 000000000..2a2a7fb9d--- /dev/null+++ b/.agents/skills/code-review/SKILL.md@@ -0,0 +1,26 @@+---+name: code-review+description: Review a complete FastMCP change for correctness, supported behavior, compatibility, and maintainability. Use for self-review or reviewing a pull request.+---++# Review FastMCP code++Read AGENTS.md, CONTRIBUTING.md, the entire diff against the merge base, and prior review threads and replies. Trace the changed code in context, including callers and shared abstractions. Collect independent consequential findings in one pass.++Establish the intended contract from released docs, tests, history, and maintainer decisions. A reproducible behavior is not automatically a bug. Check whether the change fixes the cause where it occurs or adds compensation elsewhere.++## Compatibility++Assess behavior changes even for bug fixes. Compare omitted defaults, explicit overrides, errors, serialization, and supported configurations. Trace shared branches into adjacent behavior and all affected MCP component types; use the base component's canonical identity rather than inventing one.++State the compatibility conclusion plainly: what existing input changes behavior, whether that is necessary to fix the issue, and what migration preserves the old behavior. Separate intended corrections from accidental regressions. Passing tests or a clean bot review does not make that product decision.++For dependency changes, verify the declared minimum version supports every API now used. Test the old minimum when compatibility is claimed. Keep lockfile changes scoped to the dependency change.++## Findings++Report reachable defects with concrete triggers and consequences. Evaluate bot comments on their merits; do not repeat resolved or convincingly rebutted findings without new evidence. Avoid speculative cases, cosmetic blockers, and generic requests for more tests.++Review regression tests for the actual failure and affected neighboring contracts. Record which checks were run and at what revision. Keep uncertainty explicit: an inspected diff, a passing focused test, and a complete validated review are different evidence.++Use [review-pr](../review-pr/SKILL.md) to follow CI and automated feedback after publication. A merge still needs the user's authorization and the repository's current merge gates.diff --git a/.agents/skills/fix-issue/SKILL.md b/.agents/skills/fix-issue/SKILL.mdnew file mode 100644index 000000000..c0327a72b--- /dev/null+++ b/.agents/skills/fix-issue/SKILL.md@@ -0,0 +1,26 @@+---+name: fix-issue+description: Carry a selected FastMCP bug from reproduction through a scoped fix, compatibility review, validation, and a monitored pull request.+---++# Fix a selected issue++Read AGENTS.md and CONTRIBUTING.md. Read the issue's full discussion, relevant history, and associated PRs in all states. Evaluate existing contributions before writing a competing fix; use [review-issue](../review-issue/SKILL.md) when assignment is the next decision. Preserve contributor authorship when carrying existing work forward.++## Establish the contract++Trace the public request to the failing operation. Confirm supported behavior is broken, not merely surprising. State the scope and compatibility boundary before implementation: which inputs must change, which adjacent behavior must remain, and any migration needed. If the intended contract is unresolved, bring that precise question to the maintainer.++## Red, green, review++Use [python-tests](../python-tests/SKILL.md). Reproduce the failure on unchanged code, confirm it fails for the right reason, then make the smallest causal fix. Test explicit overrides and neighboring supported paths that share the changed branch. Avoid expanding the fix to unrelated standards gaps.++Self-review the full change with [code-review](../code-review/SKILL.md), including docs and dependency bounds. Separate necessary compatibility changes from accidental regressions and say whether a breaking change remains. Do not infer compatibility from passing tests.++Run the repository's required dependency sync, full tests, and static checks before committing. Honor branch and attribution conventions. If a required check fails, investigate and report evidence rather than hiding the failure.++## Publish and follow through++Within existing authorization, update the existing PR or open a focused one, using draft status when appropriate. Follow repository PR-body conventions and the user's `pr-body` skill when available. Describe the actual user-visible change and any migration, not the development diary.++Start [review-pr](../review-pr/SKILL.md) monitoring after publication. CI completion and review completion are distinct. Resolve real findings and report material compatibility decisions; a green check does not settle them. Do not merge or mark ready without authorization.diff --git a/.agents/skills/python-tests/SKILL.md b/.agents/skills/python-tests/SKILL.mdnew file mode 100644index 000000000..9afe096f2--- /dev/null+++ b/.agents/skills/python-tests/SKILL.md@@ -0,0 +1,20 @@+---+name: python-tests+description: Write regression tests for FastMCP changes using its pytest fixtures, in-memory clients, and protocol boundaries.+---++# FastMCP tests++Read nearby tests and the repository's validation requirements first. Extend the owning test module when it remains readable; use a focused module when the existing one is already too large.++For a bug fix, run the regression against unchanged code and confirm it fails for the reported reason, then run it with the fix. An import error or broken fixture is not a reproduced bug. Include supported adjacent behavior that the same branch could change, especially omitted defaults and explicit overrides.++- Async tests need no marker: `asyncio_mode = "auto"` is configured globally.+- Use `Client(server)` for real MCP dispatch without a network server. Use HTTP transport only when network behavior is the subject.+- Mock external boundaries, not the FastMCP functions under test. For OpenAPI requests, capture the outgoing request with `httpx2.MockTransport` and assert its bytes, headers, or decoded parameters.+- Keep imports at module scope. Prefer function-scoped fixtures and `tmp_path` for files.+- Parameterize variations of one contract; separate unrelated behavior. For JSON, equality alone does not distinguish `True` from `1`: check the resulting type when type preservation matters.+- Use existing `inline_snapshot` conventions for complex schema assertions. Inspect generated snapshots rather than accepting them blindly.+- The default timeout is five seconds. Use the repository's integration conventions for tests that legitimately need more time.++Run focused tests during development, then the full commands required by AGENTS.md before committing. If a failure appears unrelated, reproduce it on the unchanged base; do not call it pre-existing from the test name alone.diff --git a/.claude/skills/release/SKILL.md b/.agents/skills/release/SKILL.mdsimilarity index 99%rename from .claude/skills/release/SKILL.mdrename to .agents/skills/release/SKILL.mdindex 061b9d80e..7b86371b4 100644--- a/.claude/skills/release/SKILL.md+++ b/.agents/skills/release/SKILL.md@@ -45,7 +45,7 @@ one gets a follow-up patch, never a re-tag.both blocks (the last argument is the branch the notes are generated against):```bash- uv run .claude/skills/release/scripts/changelog_entry.py v<new> v<prev> "<pun>" /tmp/notes.md <branch>+ uv run .agents/skills/release/scripts/changelog_entry.py v<new> v<prev> "<pun>" /tmp/notes.md <branch>```Validate, and repeat until it reports no errors; a parse error names the filediff --git a/.claude/skills/release/scripts/changelog_entry.py b/.agents/skills/release/scripts/changelog_entry.pysimilarity index 97%rename from .claude/skills/release/scripts/changelog_entry.pyrename to .agents/skills/release/scripts/changelog_entry.pyindex efa9d7d1d..5484e48b3 100644--- a/.claude/skills/release/scripts/changelog_entry.py+++ b/.agents/skills/release/scripts/changelog_entry.py@@ -1,8 +1,8 @@"""Insert the release entry into docs/changelog.mdx and docs/updates.mdx.Usage:- uv run .claude/skills/release/scripts/changelog_entry.py v4.0.1 v4.0.0 "Come Back Any Time" notes.md- uv run .claude/skills/release/scripts/changelog_entry.py ... --print # render only+ uv run .agents/skills/release/scripts/changelog_entry.py v4.0.1 v4.0.0 "Come Back Any Time" notes.md+ uv run .agents/skills/release/scripts/changelog_entry.py ... --print # render onlyReads the maintainer-approved notes file for the intro paragraph and pulls thePR list from GitHub's generate-notes API, so the docs entry matches whatdiff --git a/.claude/skills/review-issue/SKILL.md b/.agents/skills/review-issue/SKILL.mdsimilarity index 98%rename from .claude/skills/review-issue/SKILL.mdrename to .agents/skills/review-issue/SKILL.mdindex 571eff495..a15e02662 100644--- a/.claude/skills/review-issue/SKILL.md+++ b/.agents/skills/review-issue/SKILL.md@@ -83,6 +83,8 @@ bring a material concern to the maintainer before assigning.- Is there a real, reproducible problem? For bugs, demand an MRE that shows FastMCP misbehavingβ not user config error, not a question, not an upstream-SDK issue.- Is it a duplicate or already fixed on `main`? Check the dedupe bot's comment and recent commits.+- Search earlier issues, PRs (including closed ones), and relevant git history before deciding.+ Read maintainer decisions and why prior approaches were accepted or rejected.- If the issue itself is weak, **stop here and decline** β don't evaluate the PR. A good PRattached to a bad issue is still declined.diff --git a/.agents/skills/review-pr/SKILL.md b/.agents/skills/review-pr/SKILL.mdnew file mode 100644index 000000000..8f722021a--- /dev/null+++ b/.agents/skills/review-pr/SKILL.md@@ -0,0 +1,33 @@+---+name: review-pr+description: Follow an existing FastMCP PR through CI and automated review, evaluate feedback, and verify the current head before reporting readiness.+---++# Follow a PR++Read AGENTS.md for publication, review-thread, and merge rules. Track the PR's current head SHA. A push invalidates evidence tied only to an earlier head.++## CI and review are separate++After opening or updating a PR, establish a monitor using the host's scheduling capability. Keep it quiet while pending without a meaningful change. Report failures, requested decisions, and completion; pause it after the terminal report. If persistent monitoring is unavailable, watch during the active task and state that limitation rather than promising a future notification.++Fetch checks and reviews together:++```bash+gh pr view <number> --repo PrefectHQ/fastmcp \+ --json headRefOid,statusCheckRollup,reviews,comments,isDraft,labels++gh api --paginate repos/PrefectHQ/fastmcp/pulls/<number>/comments+```++Read relevant CodeRabbit, Copilot, Codex, and maintainer feedback, including inline threads and replies. Codex may update a summary issue comment instead of creating a formal review. Match its reported commit and completion status; zero formal reviews does not prove it has not run. Drafts may not trigger reviews. Do not mark ready or request reviews solely to satisfy a polling loop without authorization.++Green CI means checks passed, not that review finished. A generic request for human review is not a concrete defect; explain any actual unresolved compatibility decision. Distinguish substantive findings from status messages and stylistic notes.++## Act on evidence++Use [code-review](../code-review/SKILL.md) to assess findings. Fix real defects together, verify adjacent paths, run required checks, and push. Resolve a thread when its fix is verified. When declining a finding, reply with the reason if posting is authorized. Do not loop indefinitely on speculative follow-ups.++For CI failures, inspect the failed job's logs. Distinguish assertions, worker crashes, dependency resolution, and infrastructure failures. A test name or unrelated diff alone does not establish the cause. Retry when evidence supports a transient failure; recurring failures need diagnosis.++The final report names the head checked, CI outcome, outstanding review findings or decisions, and any pending work. Preserve draft status unless the user authorizes changing it. Merging is separate: recheck title, body, labels, head, and checks immediately before an authorized merge; obey all DNM markers and branch protections.diff --git a/.claude/skills/review-security-report/SKILL.md b/.agents/skills/review-security-report/SKILL.mdsimilarity index 100%rename from .claude/skills/review-security-report/SKILL.mdrename to .agents/skills/review-security-report/SKILL.mddiff --git a/.agents/skills/triage/SKILL.md b/.agents/skills/triage/SKILL.mdnew file mode 100644index 000000000..df48fe07c--- /dev/null+++ b/.agents/skills/triage/SKILL.md@@ -0,0 +1,21 @@+---+name: triage+description: Find worthwhile FastMCP issues to work on in a backlog or release window, verify promising candidates, and present concrete picks with existing PR links.+---++# Find worthwhile work++Read AGENTS.md and CONTRIBUTING.md. Honor the requested scope. For "since the last patch," identify the release timestamp, then look for open issues created or substantively updated afterward. Use a bounded inventory internally; report truncation if it affects coverage.++Pick work with concrete user impact, a supported contract being violated, and a tractable causal fix. Do not rank solely by recency, comment count, or how small a proposed patch looks. Automated dashboard churn is not itself useful work.++For promising candidates:++- Read the report, comments, maintainer decisions, and prior bot investigation.+- Search related issues and PRs in all states, including gate-closed contributions. Closure alone says nothing about a fix's merit.+- Trace the relevant code and git history. Distinguish fixed on main, released on the affected line, and merely proposed.+- Verify the claimed contract and enough evidence to explain the cause. A proposed solution is a lead, not a diagnosis. Consider compatibility before calling a fix straightforward.++Lead with the strongest pick as soon as evidence supports it: link, what breaks, why it matters, where the cause is, and the next action. Include a few alternatives when useful. Do not turn selection into an exhaustive audit or a full review of every linked PR. Save continuation notes only when needed.++When the user chooses implementation, use [fix-issue](../fix-issue/SKILL.md). For an assignment decision on an external contribution, use [review-issue](../review-issue/SKILL.md). Triage alone does not authorize public mutations or implementation.diff --git a/.claude/skills/code-review b/.claude/skills/code-reviewnew file mode 120000index 000000000..2d88efdf9--- /dev/null+++ b/.claude/skills/code-review@@ -0,0 +1 @@+../../.agents/skills/code-review\ No newline at end of filediff --git a/.claude/skills/code-review/SKILL.md b/.claude/skills/code-review/SKILL.mddeleted file mode 100644index bcc2698dd..000000000--- a/.claude/skills/code-review/SKILL.md+++ /dev/null@@ -1,101 +0,0 @@-----name: reviewing-code-description: Review code for quality, maintainability, and correctness. Use when reviewing pull requests, evaluating code changes, or providing feedback on implementations. Focuses on API design, patterns, and actionable feedback.------# Code Review--## Philosophy--Code review maintains a healthy codebase while helping contributors succeed. The burden of proof is on the PR to demonstrate it adds value. Your job is to help it get there through actionable feedback.--**Critical**: A perfectly written PR that adds unwanted functionality must still be rejected. The code must advance the codebase in the intended direction. When rejecting, provide clear guidance on how to align with project goals.--Be friendly and welcoming while maintaining high standards. Call out what works well. When code needs improvement, be specific about why and how to fix it.--## What to Focus On--### Does this advance the codebase correctly?--Even perfect code for unwanted features should be rejected.--### Dependency version compatibility--When a PR adapts code to a new version of a dependency (e.g., removing a parameter that was dropped upstream, using a new API):-- **The version pin in `pyproject.toml` must match.** If the change breaks compatibility with the previously-pinned minimum version, the minimum version must be bumped. Otherwise users on the old version get a regression.-- **If backwards compatibility with the old version is desired**, the code must handle both versions (e.g., try/except, version check). Simply deleting the old API usage without bumping the pin is always wrong β it silently breaks users on the old version.-- **Lock file (`uv.lock`) changes should be scoped to the PR's purpose.** A PR fixing a ty compatibility issue should not also include unrelated dependency version bumps (anthropic, google-auth, etc.) from running `uv sync --upgrade`. These create noise and make the diff harder to review.--### API design and naming--Identify confusing patterns or non-idiomatic code:-- Parameter values that contradict defaults-- Mutable default arguments-- Unclear naming that will confuse future readers-- Inconsistent patterns with the rest of the codebase--### Specific improvements--Provide actionable feedback, not generic observations.--### User ergonomics--Think about the API from a user's perspective. Is it intuitive? What's the learning curve?--## For Agent Reviewers--1. **Read the full context**: Examine related files, tests, and documentation before reviewing-2. **Check against established patterns**: Look for consistency with codebase conventions-3. **Verify functionality claims**: Understand what the code actually does, not just what it claims-4. **Consider edge cases**: Think through error conditions and boundary scenarios--## What to Avoid--- Generic feedback without specifics-- Hypothetical problems unlikely to occur-- Nitpicking organizational choices without strong reason-- Summarizing what the PR already describes-- Star ratings or excessive emojis-- Bikeshedding style preferences when functionality is correct-- Requesting changes without suggesting solutions-- Focusing on personal coding style over project conventions--## Tone--- Acknowledge good decisions: "This API design is clean"-- Be direct but respectful-- Explain impact: "This will confuse users because..."-- Remember: Someone else maintains this code forever--## Decision Framework--Before approving, ask:--1. Does this PR achieve its stated purpose?-2. Is that purpose aligned with where the codebase should go?-3. Would I be comfortable maintaining this code?-4. Have I actually understood what it does, not just what it claims?-5. Does this change introduce technical debt?--If something needs work, your review should help it get there through specific, actionable feedback. If it's solving the wrong problem, say so clearly.--## Comment Examples--**Good comments:**--| Instead of | Write |-|------------|-------|-| "Add more tests" | "The `handle_timeout` method needs tests for the edge case where timeout=0" |-| "This API is confusing" | "The parameter name `data` is ambiguous - consider `message_content` to match the MCP specification" |-| "This could be better" | "This approach works but creates a circular dependency. Consider moving the validation to `utils/validators.py`" |--## Checklist--Before approving, verify:--- [ ] All required development workflow steps completed (uv sync, prek, pytest)-- [ ] Changes align with repository patterns and conventions-- [ ] API changes are documented and backwards-compatible where possible-- [ ] Error handling follows project patterns (specific exception types)-- [ ] Tests cover new functionality and edge cases-- [ ] The change advances the codebase in the intended directiondiff --git a/.claude/skills/fix-issue b/.claude/skills/fix-issuenew file mode 120000index 000000000..7ffb4344f--- /dev/null+++ b/.claude/skills/fix-issue@@ -0,0 +1 @@+../../.agents/skills/fix-issue\ No newline at end of filediff --git a/.claude/skills/python-tests b/.claude/skills/python-testsnew file mode 120000index 000000000..937109083--- /dev/null+++ b/.claude/skills/python-tests@@ -0,0 +1 @@+../../.agents/skills/python-tests\ No newline at end of filediff --git a/.claude/skills/python-tests/SKILL.md b/.claude/skills/python-tests/SKILL.mddeleted file mode 100644index 4193f6144..000000000--- a/.claude/skills/python-tests/SKILL.md+++ /dev/null@@ -1,220 +0,0 @@-----name: testing-python-description: Write and evaluate effective Python tests using pytest. Use when writing tests, reviewing test code, debugging test failures, or improving test coverage. Covers test design, fixtures, parameterization, mocking, and async testing.------# Writing Effective Python Tests--## Core Principles--Every test should be **atomic**, **self-contained**, and test **single functionality**. A test that tests multiple things is harder to debug and maintain.--## Test Structure--### Atomic unit tests--Each test should verify a single behavior. The test name should tell you what's broken when it fails. Multiple assertions are fine when they all verify the same behavior.--```python-# Good: Name tells you what's broken-def test_user_creation_sets_defaults():- user = User(name="Alice")- assert user.role == "member"- assert user.id is not None- assert user.created_at is not None--# Bad: If this fails, what behavior is broken?-def test_user():- user = User(name="Alice")- assert user.role == "member"- user.promote()- assert user.role == "admin"- assert user.can_delete_others()-```--### Use parameterization for variations of the same concept--```python-import pytest-[email protected]("input,expected", [- ("hello", "HELLO"),- ("World", "WORLD"),- ("", ""),- ("123", "123"),-])-def test_uppercase_conversion(input, expected):- assert input.upper() == expected-```--### Use separate tests for different functionality--Don't parameterize unrelated behaviors. If the test logic differs, write separate tests.--## Project-Specific Rules--### No async markers needed--This project uses `asyncio_mode = "auto"` globally. Write async tests without decorators:--```python-# Correct-async def test_async_operation():- result = await some_async_function()- assert result == expected--# Wrong - don't add this-async def test_async_operation():- ...-```--### Imports at module level--Put ALL imports at the top of the file:--```python-# Correct-import pytest-from fastmcp import FastMCP-from fastmcp.client import Client--async def test_something():- mcp = FastMCP("test")- ...--# Wrong - no local imports-async def test_something():- from fastmcp import FastMCP # Don't do this- ...-```--### Use in-memory transport for testing--Pass FastMCP servers directly to clients:--```python-from fastmcp import FastMCP-from fastmcp.client import Client--mcp = FastMCP("TestServer")--def greet(name: str) -> str:- return f"Hello, {name}!"--async def test_greet_tool():- async with Client(mcp) as client:- result = await client.call_tool("greet", {"name": "World"})- assert result[0].text == "Hello, World!"-```--Only use HTTP transport when explicitly testing network features.--### Inline snapshots for complex data--Use `inline-snapshot` for testing JSON schemas and complex structures:--```python-from inline_snapshot import snapshot--def test_schema_generation():- schema = generate_schema(MyModel)- assert schema == snapshot() # Will auto-populate on first run-```--Commands:-- `pytest --inline-snapshot=create` - populate empty snapshots-- `pytest --inline-snapshot=fix` - update after intentional changes--## Fixtures--### Prefer function-scoped fixtures--```python-def client():- return Client()--async def test_with_client(client):- result = await client.ping()- assert result is not None-```--### Use `tmp_path` for file operations--```python-def test_file_writing(tmp_path):- file = tmp_path / "test.txt"- file.write_text("content")- assert file.read_text() == "content"-```--## Mocking--### Mock at the boundary--```python-from unittest.mock import patch, AsyncMock--async def test_external_api_call():- with patch("mymodule.external_client.fetch", new_callable=AsyncMock) as mock:- mock.return_value = {"data": "test"}- result = await my_function()- assert result == {"data": "test"}-```--### Don't mock what you own--Test your code with real implementations when possible. Mock external services, not internal classes.--## Test Naming--Use descriptive names that explain the scenario:--```python-# Good-def test_login_fails_with_invalid_password():-def test_user_can_update_own_profile():-def test_admin_can_delete_any_user():--# Bad-def test_login():-def test_update():-def test_delete():-```--## Error Testing--```python-import pytest--def test_raises_on_invalid_input():- with pytest.raises(ValueError, match="must be positive"):- calculate(-1)--async def test_async_raises():- with pytest.raises(ConnectionError):- await connect_to_invalid_host()-```--## Running Tests--```bash-uv run pytest -n auto # Run all tests in parallel-uv run pytest -n auto -x # Stop on first failure-uv run pytest path/to/test.py # Run specific file-uv run pytest -k "test_name" # Run tests matching pattern-uv run pytest -m "not integration" # Exclude integration tests-```--## Checklist--Before submitting tests:-- [ ] Each test tests one thing-- [ ] No `@pytest.mark.asyncio` decorators-- [ ] Imports at module level-- [ ] Descriptive test names-- [ ] Using in-memory transport (not HTTP) unless testing networking-- [ ] Parameterization for variations of same behavior-- [ ] Separate tests for different behaviorsdiff --git a/.claude/skills/release b/.claude/skills/releasenew file mode 120000index 000000000..14f8a38a8--- /dev/null+++ b/.claude/skills/release@@ -0,0 +1 @@+../../.agents/skills/release\ No newline at end of filediff --git a/.claude/skills/review-issue b/.claude/skills/review-issuenew file mode 120000index 000000000..872df1547--- /dev/null+++ b/.claude/skills/review-issue@@ -0,0 +1 @@+../../.agents/skills/review-issue\ No newline at end of filediff --git a/.claude/skills/review-pr b/.claude/skills/review-prnew file mode 120000index 000000000..effc6b725--- /dev/null+++ b/.claude/skills/review-pr@@ -0,0 +1 @@+../../.agents/skills/review-pr\ No newline at end of filediff --git a/.claude/skills/review-pr/SKILL.md b/.claude/skills/review-pr/SKILL.mddeleted file mode 100644index ae37ee33a..000000000--- a/.claude/skills/review-pr/SKILL.md+++ /dev/null@@ -1,108 +0,0 @@-----name: review-pr-description: Monitor and respond to automated PR reviews (Codex bot). Use when pushing a PR, checking review status, or responding to bot feedback. Handles the full cycle of push -> wait for review -> evaluate comments -> fix -> re-push.------# PR Review Workflow--This repo has `chatgpt-codex-connector[bot]` configured as an automated reviewer. After every push to a PR branch, Codex reviews the diff and either:-- Reacts with a thumbs-up on its review body (no suggestions β PR is clean)-- Posts inline comments with suggestions (each tagged with a priority badge)--## Checking review status--After pushing, check whether Codex has reviewed the latest commit:--```bash-# Get the latest commit SHA on the branch-LATEST=$(git rev-parse HEAD)--# Check if Codex has reviewed that specific commit-gh api repos/PrefectHQ/fastmcp/pulls/{PR_NUMBER}/reviews \- | jq "[.[] | select(.user.login == \"chatgpt-codex-connector[bot]\" and .commit_id == \"$LATEST\")] | length"-```--If the count is 0, Codex hasn't reviewed the latest push yet. Wait and check again.--If the count is > 0, check for inline comments on the latest review:--```bash-# Get the review body to check for thumbs-up-gh api repos/PrefectHQ/fastmcp/pulls/{PR_NUMBER}/reviews \- | jq '[.[] | select(.user.login == "chatgpt-codex-connector[bot]") | {state, body: .body[:300], commit_id: .commit_id}] | last'-```--A clean review from Codex looks like a review body that contains a thumbs-up reaction or says "no suggestions." If the body contains "Here are some automated review suggestions," there are inline comments to evaluate.--## Evaluating Codex comments--Fetch all inline comments from Codex:--```bash-gh api repos/PrefectHQ/fastmcp/pulls/{PR_NUMBER}/comments \- | jq '[.[] | select(.user.login == "chatgpt-codex-connector[bot]") | {body, path, line, created_at}]'-```--Codex comments include priority badges:-- `P0` (red) β Critical issue, likely a real bug-- `P1` (orange) β Important, worth fixing-- `P2` (yellow) β Moderate, evaluate on merit--**How to evaluate Codex comments:**--1. **Treat Codex as a competent but sometimes overzealous reviewer.** It catches real bugs (cache eviction ordering, silent data loss, missing validation) but also suggests scope expansions and hypothetical improvements.--2. **Fix real bugs** β issues in code you actually changed where behavior is incorrect or data is silently lost.--3. **Dismiss scope expansion** β if a comment points out a pre-existing limitation unrelated to your diff, note it as a potential follow-up but don't block the PR.--4. **Dismiss speculative concerns** β if a comment describes a scenario that requires very specific conditions and the existing behavior is acceptable, dismiss it.--5. **When fixing, be proactive** β if Codex found one instance of a pattern bug (e.g., missing role validation in one handler), check all similar code paths before pushing. Codex will find the next instance on the next review cycle, so get ahead of it.--## Responding to every comment--**Every Codex comment must get a visible response** β either a fix or a reply explaining why it was dismissed. The maintainer can't see your reasoning otherwise.--- **If fixing**: The fix itself is the response. No reply needed unless the fix is non-obvious.-- **If dismissing**: Reply to the comment thread with a brief explanation of why. Keep it to 1-2 sentences. Examples:- - "This is pre-existing behavior unrelated to this diff β the scope lookup fallback existed before caching was added. Worth a follow-up issue but not blocking this PR."- - "The AsyncExitStack handles cleanup when the session exits, so the subprocess isn't leaked β just kept alive slightly longer than necessary in this edge case."- - "Gemini supports a much wider range of media types than OpenAI/Anthropic, so a restrictive allowlist would be inaccurate here."--Use `gh api` to reply (note: use `in_reply_to`, not a `/replies` sub-path):--```bash-# Reply to a specific review comment-gh api repos/PrefectHQ/fastmcp/pulls/{PR_NUMBER}/comments \- -f body="Your reply here" \- -F in_reply_to={COMMENT_ID}-```--## The fix-push-review cycle--After evaluating comments:--1. Fix all real issues in one batch-2. Reply to all dismissed comments with reasoning-3. Think about what patterns Codex might flag next β check similar code paths proactively-4. Commit and push-5. Check that Codex reviews the new commit-6. Repeat until Codex gives a clean review (thumbs-up) or only has dismissible comments--## Responding to stale comments--Codex sometimes re-posts old comments that reference code you've already fixed (they appear on the old commit's diff). These are stale β verify the fix is in the latest commit and reply noting the fix is already in place.--## Labels β never apply or invent them--**Do not apply labels to PRs or issues programmatically, and never create new ones.** Issues and PRs in this repo are auto-labeled by a bot based on title, body, and code changes β there's no fixed canonical list to match against, and GitHub's "add labels" API auto-creates any label name that doesn't already exist, so a typo or guessed name silently pollutes the repo's label list with a stray, uncolored duplicate. There is no MCP tool to delete a label, so a mistaken creation can only be cleaned up by hand in repo settings.--Don't call out a "suggested" or "appropriate" label in the PR body either β the bot doesn't read it, and it just adds noise.--## When a PR is ready--A PR is ready for human review when:-- All Codex comments are either fixed or replied to with dismissal reasoning-- CI checks pass-- The diff is clean and focused on the stated purposediff --git a/.claude/skills/review-security-report b/.claude/skills/review-security-reportnew file mode 120000index 000000000..f068c149a--- /dev/null+++ b/.claude/skills/review-security-report@@ -0,0 +1 @@+../../.agents/skills/review-security-report\ No newline at end of filediff --git a/.claude/skills/triage b/.claude/skills/triagenew file mode 120000index 000000000..9e4e13fd0--- /dev/null+++ b/.claude/skills/triage@@ -0,0 +1 @@+../../.agents/skills/triage\ No newline at end of filediff --git a/CLAUDE.md b/CLAUDE.mdindex d305de077..6a6224853 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -58,7 +58,7 @@ When modifying MCP functionality, changes typically need to be applied across al**Review closed contributor PRs.** When reviewing an issue, inspect every associated non-maintainer PR, including closed PRs. External PRs may be closed as part of the issue-link and assignment workflow, so closure alone is not a negative signal. Read `CONTRIBUTING.md` and the PR timeline and comments to understand its status before evaluating it.-**Check unfamiliar contributors before assignment.** Follow `.claude/skills/review-issue/SKILL.md` for a brief public-history check. Avoid obvious spam or unattended bot accounts, but lean toward goodwill: account age, sparse profiles, and AI assistance alone are not reasons to reject a sound contribution.+**Check unfamiliar contributors before assignment.** Follow `.agents/skills/review-issue/SKILL.md` for a brief public-history check. Avoid obvious spam or unattended bot accounts, but lean toward goodwill: account age, sparse profiles, and AI assistance alone are not reasons to reject a sound contribution.### Git & CI@@ -87,7 +87,7 @@ When modifying MCP functionality, changes typically need to be applied across al### Releases-The executable procedure lives in `.claude/skills/release/SKILL.md`; load that skill to cut one. The policy below is the contract it implements.+The executable procedure lives in `.agents/skills/release/SKILL.md`; load that skill to cut one. The policy below is the contract it implements.Only cut releases when the maintainer explicitly asks. Tags follow `v<version>` (e.g., `v3.2.0`). Always pass `--generate-notes` so the auto-generated changelog appears at the bottom.