Skip to content

feat(agent-development): add comparative trigger phrases to skill description#20

Merged
sjnims merged 2 commits intomainfrom
feat/17-strengthen-agent-trigger-phrases
Dec 8, 2025
Merged

feat(agent-development): add comparative trigger phrases to skill description#20
sjnims merged 2 commits intomainfrom
feat/17-strengthen-agent-trigger-phrases

Conversation

@sjnims
Copy link
Owner

@sjnims sjnims commented Dec 8, 2025

Summary

  • Add 4 new trigger phrases to the agent-development skill description
  • Improves discoverability for comparative and conceptual questions

Problem

Fixes #17

Users asking questions like "what's the difference between an agent and a skill?" wouldn't discover the agent-development skill, despite it having an excellent comparison table.

Solution

Added these specific trigger phrases to the description:

  • "difference between agent and skill"
  • "agent vs command"
  • "when should I use an agent"
  • "agent schema"

Alternatives Considered

  • Adding a separate FAQ skill - rejected as agent-development already has comprehensive comparison content
  • Modifying skill body - unnecessary since triggering is the issue, not content

Changes

  • plugins/plugin-dev/skills/agent-development/SKILL.md: Added 4 trigger phrases to description

Testing

  • Description under 1024 character limit (580 chars)
  • Markdownlint passes
  • Skill triggers on test queries (e.g., "what's the difference between an agent and a skill?")

🤖 Generated with Claude Code

…cription

Add 4 new trigger phrases for improved discoverability:
- "difference between agent and skill"
- "agent vs command"
- "when should I use an agent"
- "agent schema"

These help users discover the skill's comparison table when asking
conceptual questions about plugin components.

Fixes #17

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@claude
Copy link

claude bot commented Dec 8, 2025

Claude finished @sjnims's task —— View job


Review Complete ✓

Summary: This PR looks great! The changes are focused, well-justified, and properly implemented.


What's Good

Clean, targeted change: The PR adds exactly 4 trigger phrases as described, with no scope creep or unnecessary modifications.

Excellent trigger phrase selection: The new phrases are spot-on for the content:

  • "difference between agent and skill" - directly maps to the comparison table in lines 19-25
  • "agent vs command" - same comparison content
  • "when should I use an agent" - covered in "When to Use Agents vs Commands vs Skills" (lines 27-46)
  • "agent schema" - maps to frontmatter fields section (lines 88-188)

Markdown quality: markdownlint passes with no issues.

Description length: Actual length is 593 characters (including the newline from echo), well under the 1024 character limit. PR description claimed 580 chars, which is close enough (the slight difference is likely from how the character count was measured).

Good commit message: Follows conventional commits format, explains the "why", includes proper attribution.

Addresses a real problem: Issue #17 correctly identified that users asking comparative questions wouldn't discover this skill. The skill has excellent comparison content (the table at lines 19-25), so improving discoverability makes perfect sense.


Suggestions

No issues found. This is a well-executed PR that:

  • Solves the stated problem cleanly
  • Follows all repository conventions
  • Maintains quality standards
  • Adds value without over-engineering

Checklist Verification

  • ✅ Description under 1024 character limit (593 chars)
  • ✅ Markdownlint passes (no errors)
  • ✅ Trigger phrases align with skill content
  • ✅ YAML frontmatter structure correct
  • ✅ No breaking changes or scope creep

Recommendation: Approve and merge. This PR is ready to go.

@claude claude bot added enhancement New feature or request component:skill Skills layer effort:small < 1 hour labels Dec 8, 2025
Skills no longer have version fields (removed in 8521d81), so the
workflow was checking for something that doesn't exist.

- Remove version from required skill frontmatter fields
- Remove version matching check against plugin.json
- Remove instruction to read plugin.json (no longer needed)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@claude
Copy link

claude bot commented Dec 8, 2025

Claude finished @sjnims's task —— View job


Review Complete ✓

Summary: This PR is excellent! Both changes are clean, well-justified, and properly implemented.


What's Good

Perfectly targeted skill trigger phrases (commit 5185a0e):

  • Added 4 new trigger phrases that map directly to existing skill content:
    • "difference between agent and skill" → comparison table at SKILL.md:21-25
    • "agent vs command" → same comparison table
    • "when should I use an agent" → "When to Use Agents vs Commands vs Skills" section at SKILL.md:27-46
    • "agent schema" → frontmatter fields documentation at SKILL.md:88-189
  • Description length: 593 characters (well under 1024 limit)
  • Solves real discoverability problem from issue feat(agent-development): strengthen trigger phrases in skill description #17

Smart workflow fix (commit 47bcbf8):

  • Removed obsolete version field validation from skill checks
  • Aligns with changes in commit 8521d81 that removed version from skill frontmatter
  • Correctly removes both the version check and the now-unnecessary plugin.json read step
  • Workflow logic is sound: skills no longer have versions, so don't validate them

Quality standards met:

  • Markdownlint passes with no errors
  • YAML frontmatter structure correct
  • Trigger phrases follow third-person pattern ("This skill should be used when...")
  • No scope creep or unnecessary changes
  • Conventional commit messages with clear rationale

Markdown Linting

✅ All markdown files pass markdownlint --config .markdownlint.json


Workflow Validation Analysis

The workflow change correctly addresses the version field removal:

Before: Validated 3 required fields: name, description, version
After: Validates 2 required fields: name, description

This matches the current skill structure (confirmed by reading the skill file - no version field present).


Trigger Phrase Analysis

All 4 new trigger phrases align perfectly with existing content:

Trigger Phrase Content Location Assessment
"difference between agent and skill" Comparison table (lines 19-25) ✓ Excellent match
"agent vs command" Same comparison table ✓ Excellent match
"when should I use an agent" "Choose Agents When" (lines 27-32) ✓ Excellent match
"agent schema" Frontmatter fields (lines 88-189) ✓ Excellent match

The skill already contains comprehensive comparison content - these phrases will help users discover it when asking conceptual questions.


Checklist Verification

  • ✅ Description under 1024 character limit (593 chars)
  • ✅ Markdownlint passes
  • ✅ Trigger phrases map to actual skill content
  • ✅ YAML frontmatter structure correct
  • ✅ Workflow validation logic sound
  • ✅ No breaking changes or scope creep
  • ✅ Both commits follow conventional commits format

Recommendation: Approve and merge. Both changes are well-executed and ready to ship.


@claude claude bot added the github-actions Pull requests that update GitHub Actions code label Dec 8, 2025
@sjnims sjnims merged commit 41f7c8b into main Dec 8, 2025
7 of 8 checks passed
@sjnims sjnims deleted the feat/17-strengthen-agent-trigger-phrases branch December 8, 2025 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:skill Skills layer effort:small < 1 hour enhancement New feature or request github-actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(agent-development): strengthen trigger phrases in skill description

1 participant