Skip to content

Add inat-to-wildbook-import served agent skill - #1694

Open
JasonWildMe wants to merge 1 commit into
mainfrom
agent-skill-inat-import
Open

Add inat-to-wildbook-import served agent skill#1694
JasonWildMe wants to merge 1 commit into
mainfrom
agent-skill-inat-import

Conversation

@JasonWildMe

Copy link
Copy Markdown
Collaborator

What

Adds a new served agent skill, inat-to-wildbook-import, to the /api/v3/agent-skill toolbox. It points a biologist's AI assistant at the public, MIT-licensed tool WildMeOrg/inat-download-recent-species-sightings (pinned to release v1.0.0) to download recent iNaturalist sightings, curate them, and prepare them for Wildbook bulk import.

Files

  • New: src/main/resources/agent-skills/inat-to-wildbook-import.md — the plain-language skill.
  • src/main/java/org/ecocean/api/AgentSkill.java — one new SKILL_RESOURCES entry registering the skill.
  • src/main/resources/agent-skills/index.md — root toolbox restructured into two groups (read-only catalog tools; import-prep tools) so the new skill is listed and described; the import-prep group needs no token.
  • src/test/java/org/ecocean/api/AgentSkillContentTest.java — a dedicated content test for the new skill (it is import-prep, not read-only, so it is deliberately not routed through the shared assertSkillStructure read-only template) plus an update to catalog_files_and_index_do_not_drift to account for the new category.

Notes

  • Unlike the existing read-only analytical skills, this one prepares files the scientist uploads via the Bulk Import UI — the read-only agent token cannot (and should not) push writes.
  • The companion tool writes the iNaturalist observation ID into Encounter.otherCatalogNumbers (iNaturalist:<id>), enabling future duplicate detection via POST /api/v3/search/encounter.
  • The Maven build was not run locally; CI will validate. A static cross-check confirmed every assertion in the new and modified tests holds against the committed markdown.

🤖 Generated with Claude Code

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.55%. Comparing base (88d0eb1) to head (5e18d38).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1694   +/-   ##
=======================================
  Coverage   51.55%   51.55%           
=======================================
  Files         312      312           
  Lines       12283    12283           
  Branches     3962     3940   -22     
=======================================
  Hits         6332     6332           
+ Misses       5669     5662    -7     
- Partials      282      289    +7     
Flag Coverage Δ
backend 51.55% <ø> (ø)
frontend 51.55% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

2 participants