Repository navigation
Conversation
The reference reads the same in R and Python once its one R code block is replaced by a sentence, so it moves to agent-skill/ at the repository root and scripts/sync-shared.sh copies it into both packages' skills. The Python copy has no SKILL.md yet; the next commit adds it.
The wheel now has the skill at commons/skills/commons/: SKILL.md and the same five references the R package shipped at 0.1.0. The references name the Python API, deploy with rsconnect-python, and evaluate with Inspect through a custom solver, since a commons agent has no to_solver(). The test reads the skill through importlib.resources, as a user copying it does, and checks that every linked reference exists and no R API name remains.
Get-started gains the section the R vignette has, copying the skill out of the installed package with importlib.resources. The parity page keeps a row only for the two references the R skill gained after 0.1.0.
The suite runs against an editable install, so CI's wheel check now lists the skill's files too. The onboarding reference names the tracing extra that log=True needs, the provenance guidance keeps a retrieval date out of a measure's link, and the evaluation solver keeps the trajectory for the scorer, because the agent does not repeat a table or plot a measure already displayed.
With dirs_exist_ok, copying over an earlier or R copy of the skill left files from both behind. Without it, copytree stops, and the page says to delete the old copy to update.
great-docs builds every listed version from the one source tree, so the 0.1.0b2 site at py/ would otherwise tell readers to copy a skill that release does not ship. Version fences keep the section and the new parity row to the dev build, and keep the old row for 0.1.0b2.
Inspect loads a task file with evals/ as the working directory and on sys.path, so the example puts the project root on sys.path before importing agent.py, and the reference says to anchor paths on the file. The onboarding requirements list now names the model provider's SDK, which chatlas does not install.
A dev-only fence would hide the install section from the release that ships the skill. The fences now select versions >=0.1.0, which includes the dev build and the coming release and excludes 0.1.0b2.
It has each tool's value, so a formatted table appears as raw values and a plot not at all as an image. The reference says to grade those from their values and send plot-dependent questions to human review.
A table in the export may have fewer rows than the display, and a plot is not an image. The reference now grades from exported values only when they settle the answer, and sends the rest to a reviewer who asks the question in the running app.
The exported trajectory has each tool's value as the model received it, which can differ from what the user saw. The example solver now also records each tool result's display HTML, the scorer gets displayed tables from it, and a reviewer reads plots from the same sample's saved HTML rather than from a new run.
Reconstructing what the chat displayed (errors, Markdown, dependencies, viewable files) is an eval harness rather than an example. The reference now says what the trajectory can and cannot show, and leaves a sample the trajectory cannot settle ungraded for human review.
A measure's display can differ from the value the model sees, so the reference no longer calls trajectory values what the user saw, and marks a sample it cannot settle as unresolved instead of sending it to a review the saved log cannot support.
The chat links an entry that starts with a URL as a whole, so the skill now puts the repository URL in one entry and the revision and path in the next.
Contributor
|
Preview deployed to Connect ( Deployed from commit ac5c331. |
Contributor
|
Preview deployed to Connect ( Deployed from commit ac5c331. |
Contributor
|
Preview root: https://posit-dev.github.io/commons/pr-553/ Python site preview: https://posit-dev.github.io/commons/pr-553/py/ Built from the latest commit on this branch. The R links in it point at the published R site, which no pull request rebuilds. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the coding-agent skill to the Python package, with the same five references the R package shipped at 0.1.0. Users copy it out of the installed package into their coding agent's skills directory, as the get-started page shows.
Review notes
data-dictionaries.mdreads the same in both languages, so it has one source inagent-skill/, andscripts/sync-shared.shcopies it into both skills. The other references are written for Python.to_solver().Testing
test_agent_skill.pyreads the skill throughimportlib.resources, as a user does. It checks that every linked reference exists, that no R API name is left, and that the shared reference matches its source. The pytest suite uses an editable install, so CI's wheel check now also lists the skill's files. I ran the install snippet and the Inspect example's solver against a real agent. ruff, pyrefly, the Python suite, and the R skills tests pass.Agent-written details
R changes
Only the R skill's data dictionary reference changed. Its one R code block, which showed how to name a dictionary after its source, is now a sentence that states the same rule. The R skill's
SKILL.mdlayout already shows the rule. With that change, the file reads the same in both packages, so it now has one source at the repository root, andscripts/sync-shared.shwrites the R copy.data-dictionaries.md