Open
Conversation
25ba05f to
fcdd6fd
Compare
fcdd6fd to
5129e6a
Compare
jodarove
commented
Mar 27, 2026
| @@ -0,0 +1,19 @@ | |||
| # SKILL SELECTION RULE | |||
Author
There was a problem hiding this comment.
attaching a trace.md,
gbockus-sf
reviewed
Mar 27, 2026
| - Prefer specialized skills over general skills when both are available. | ||
| - Re-evaluate the selected skill after each task completes. | ||
| - Switch skills when a different skill is better suited. | ||
| - Do not reuse the same skill across unrelated tasks unless it is still the best match. |
Contributor
There was a problem hiding this comment.
None of this should be required. I think we need to swing back to the specific case where a skill isn't getting called and so some analysis. Basically all of these should just be standard AFV behavior.
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.
References: Contributing guide · Skill authoring guide · Agent Skills spec
What changed
The added rule, makes the agent pick the best skill for each task step, instead of using one skill for everything. it improves plan quality, skill-task fit, and output accuracy by forcing per-task skill re-evaluation and skill switching when appropriate.
Why
It solves the common failure mode where execution quality drops because the agent:
When testing AFV, there's only one skill selected for the whole process. depending on the selected skill, the task at hand went well or bad. Example: if using salesforce data as skill, then the app creation went bad, if using app creation, then the data part was bad.
Notes
I added the new rule (the one im testing with); i also tried to add it for a4v-global-rule; i will test the flow with the a4v-global-rules modification.
@W-21685788@
Skills
Manual checklist
Description quality
Instructions
Context efficiency
templates/,examples/, ordocs/subdirectoriesAutomated checks
Enforced by CI (
npm run validate:skills) per the Agent Skills spec:SKILL.mdnamematches directory name;descriptionis present, ≥ 20 words, ≤ 1024 characters, and includes trigger language