Skip to content

W-21685788: skill selection rule#121

Open
jodarove wants to merge 1 commit intoforcedotcom:mainfrom
jodarove:jodarove/use-other-skills
Open

W-21685788: skill selection rule#121
jodarove wants to merge 1 commit intoforcedotcom:mainfrom
jodarove:jodarove/use-other-skills

Conversation

@jodarove
Copy link
Copy Markdown

@jodarove jodarove commented Mar 27, 2026

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:

  • stays locked into an initial skill,
  • applies a generic skill to specialized work,
  • or reuses the same skill across unrelated tasks.

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

  • Describes what the skill does and the expected output
  • Includes relevant Salesforce domain keywords (Apex, LWC, SOQL, metadata types, etc.)
  • Trigger phrases are specific enough for Vibes to select this skill reliably

Instructions

  • Clear goal statement
  • Step-by-step workflow
  • Validation rules for generated output
  • Defined output / artifact

Context efficiency

  • Core instructions are concise — supporting material lives in templates/, examples/, or docs/ subdirectories
  • No unnecessary background explanation in the body

Automated checks

Enforced by CI (npm run validate:skills) per the Agent Skills spec:

  • Directory is one level deep, named in kebab-case (max 64 chars), contains SKILL.md
  • Frontmatter name matches directory name; description is present, ≥ 20 words, ≤ 1024 characters, and includes trigger language
  • Body is non-empty and under 500 lines
  • Name uses gerund form ⚠ (warning — does not block merge)

@jodarove jodarove force-pushed the jodarove/use-other-skills branch from 25ba05f to fcdd6fd Compare March 27, 2026 14:25
@jodarove jodarove changed the title feat: skill selection rule feat: skill selection rule @W-21685788 Mar 27, 2026
@jodarove jodarove changed the title feat: skill selection rule @W-21685788 W-21685788: skill selection rule Mar 27, 2026
@jodarove jodarove force-pushed the jodarove/use-other-skills branch from fcdd6fd to 5129e6a Compare March 27, 2026 14:34
@@ -0,0 +1,19 @@
# SKILL SELECTION RULE
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

attaching a trace.md,

trace.md.zip

- 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.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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