agentleFS
guillevcguillevc/skills/skills/xcode-skills/siri-evaluations/SKILL.md

siri-evaluations

Skill0 starsChanged 5 months agoMITView on GitHub

Write, run, and analyze SiriEvaluations tests that measure how Siri chooses and fills in an app's App Intents; explain failing scenarios.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Public API only: Write evaluations with the public SiriEvaluations API the references show.

    line 14
  2. Distinctive:

    Never emit underscore-prefixed symbols.

    line 15
  3. Distinctive:

    Ground every name: Every intent, entity, parameter, and App Skill name in a scenario comes from the app's source.

    line 16
  4. Very specific:

    Identifiers are a contract: When a fix belongs in the app, don't make it by renaming an intent or entity type, changing an AppEntity id …

    line 18
  5. Distinctive:

    One stage at a time: Do only the stage the developer asked for, then stop and offer the next one.

    line 22
  6. Very specific:

    Use the stage the developer named (/siri-evaluations analyze, "just run them").

    line 33
  7. Distinctive:

    Read only the references for the chosen stage.

    line 38
  8. Distinctive:

    Before starting a stage, check that what it needs exists:

    line 42
  9. Distinctive:

    When something is missing, say what, and offer to produce it before continuing.

    line 51
  10. Distinctive:

    Wait for the developer to accept before doing the offered stages, and then do them in order, with each stage's own guardrails.

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

SiriEvaluations tests how Siri uses an app's App Intents. A test describes what a user says to Siri, turn by turn, and what Siri should do in response: which intents it calls and with which parameters, which entities it finds, which App Skills it loads, and what it replies. Running the test drives Siri and produces a report that grades each expectation. This skill writes those tests, runs them, and explains the report.

Guardrails

  • Public API only. Write evaluations with the public SiriEvaluations API the references show. Never emit underscore-prefixed symbols.
  • Ground every name. Every intent, entity, parameter, and App Skill name in a scenario comes from the app's source. Don't invent one to make a scenario compile.
  • Identifiers are a contract. When a fix belongs in the app, don't make it by renaming an intent or entity type, changing an AppEntity id scheme, renumbering an AppEnum, or adding, removing, or renaming a parameter. That breaks existing integrations and every scenario that names them. Flag such a change instead of making it.
  • One stage at a time. Do only the stage the developer asked for, then stop and offer the next one. Running drives Siri on a device, and analyzing can lead to changes in the app's code.

Choosing the stage

StageThe developer wants to…Read
writecreate or change Siri scenarios and expectations from the app's App Intentsreferences/writing.md, then references/api.md as needed
runrun the evaluation on a device or Mac, find its report, or fix an error that stopped it before gradingreferences/running.md
analyzeunderstand why scenarios failed and what to change in the app or the testreferences/analyzing.md

Use the stage the developer named (/siri-evaluations analyze, "just run them"). "Diagnose" and "explain" mean analyze. Otherwise, infer it from the request; if it could be more than one, ask. A request for the whole loop ("get my app passing a Siri evaluation") starts at the first stage whose prerequisites aren't met.

Read only the references for the chosen stage.

Prerequisites

Before starting a stage, check that what it needs exists:

  • Tests, needed by run: a UI test target with a SiriEvaluations suite (search the test sources for SiriService.run(scenario:, SiriScenarioLoader, and .evaluates().
  • A report, needed by analyze, in order of preference: one the developer points to, the result bundle of a run earlier in this conversation, or the newest .xcresult in the project's DerivedData Logs/Test/ that contains a Siri evaluation. A report older than the last change to the tests or to the app's App Intents code is stale.

When something is missing, say what, and offer to produce it before continuing. Wait for the developer to accept before doing the offered stages, and then do them in order, with each stage's own guardrails.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.