Skip to content

docs: Clarify skill naming and trigger behavior for custom skills#348

Merged
xingyaoww merged 5 commits intomainfrom
docs/skill-trigger-behavior
Feb 18, 2026
Merged

docs: Clarify skill naming and trigger behavior for custom skills#348
xingyaoww merged 5 commits intomainfrom
docs/skill-trigger-behavior

Conversation

@xingyaoww
Copy link
Contributor

Summary

This PR clarifies the documentation around skill naming and trigger behavior, specifically addressing confusion about how custom code review skills interact with the default public skills.

Problem

The current documentation suggests creating a skill with name: code-review and trigger /codereview, which unintentionally replaces the default public skill entirely. Users who want to add project-specific guidelines alongside (not instead of) the default skill weren't aware of the alternative approach.

Solution

Updated documentation to clearly explain two options:

1. Replace the default skill (Option 1)

Use name: code-review to completely replace the public skill with your own.

2. Add supplementary guidelines - Recommended (Option 2)

Use a different name like my-project-review with the same /codereview trigger. Both skills will be activated together, giving you the default review guidelines PLUS your project-specific additions.

Key Technical Insight

Skill deduplication is by NAME, not by trigger. Multiple skills with different names but the same trigger can coexist and will ALL be triggered when the keyword matches.

Changes

  • sdk/guides/github-workflows/pr-review.mdx:

    • Added two clear options for customization
    • Added example of "Option 2: Add Supplementary Guidelines"
    • Fixed path inconsistency (was mixing .agents/ and .openhands/)
    • Added tip explaining the composable nature of skills
  • sdk/guides/skill.mdx:

    • Added new "Skill Naming and Triggers" section
    • Documented skill precedence by name
    • Added code example showing multiple skills with same trigger
    • Added tip for supplementing public skills

@xingyaoww can click here to continue refining the PR

- Add two options for customizing code review: replace or supplement
- Document that multiple skills with same trigger but different names coexist
- Explain skill precedence is by name, not by trigger
- Add recommended approach (Option 2) for adding supplementary guidelines
- Fix path inconsistency (.agents/ vs .openhands/)
- Add code example and tips for using multiple skills with same trigger

This addresses confusion where users thought they had to replace the default
skill when they actually wanted to add project-specific guidelines alongside it.

Co-authored-by: openhands <openhands@all-hands.dev>
- Use custom-codereview-guide.md as the recommended filename
- Note that using code-review.md will override the default skill
- Remove separate sections for replace/supplement options

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Copy link
Contributor

@all-hands-bot all-hands-bot left a comment

Choose a reason for hiding this comment

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

Taste Rating: 🟡 Acceptable - Solves a real problem (skill name vs trigger confusion) but needs clarity improvements.

Core Insight is Solid: Skill deduplication by NAME not TRIGGER is the right mental model to document.


Critical Issues to Address

🟠 Path Inconsistency (pr-review.mdx, line 13)

The new example uses .agents/skills/custom-codereview-guide.md but the old version mentioned .openhands/skills/code-review.md. Which is canonical?

Required: Explicitly document which path(s) are supported, precedence if both exist, and whether this is a migration.

🟠 Vague Merge Behavior (pr-review.mdx, lines 84-87)

"The agent receives guidelines from both skills" - HOW exactly? Be technically precise:

  • Do they concatenate in the system prompt?
  • What order (default first, then custom)?
  • If guidelines conflict, which wins?
  • Raw concatenation or smart merging?

🟠 Verify Reference Exists (pr-review.mdx, line 99)

Does software-agent-sdk/.agents/skills/custom-codereview-guide.md actually exist? Broken references hurt credibility. Create the file first or use a different example.


Suggestions

🟡 Add Migration Guidance (pr-review.mdx, line 18)

Users who followed old docs may have .openhands/skills/code-review.md. Add:

Migrating: If you created code-review.md to override, rename to custom-codereview-guide.md to supplement instead.

🟡 Improve Example Clarity (pr-review.mdx, lines 54-57)

The example doesn't clearly show SUPPLEMENTARY nature. Add:

**Note**: These rules supplement the default code-review skill.

🟡 Document Merge Behavior (skill.mdx, lines 611-614)

After precedence explanation, add:

Skill Activation: When multiple skills share a trigger, all are loaded. Content concatenates (public first, then explicit).


What's Good

🟢 The code example in skill.mdx (lines 616-628) is clear with helpful comments.


Verdict: ✅ Worth merging after addressing the 3 critical clarifications (path convention, merge behavior, reference validity).

Key Insight: You've identified the right conceptual model (name-based deduplication, trigger-based activation), but the documentation needs technical precision to match that clarity.

@xingyaoww xingyaoww disabled auto-merge February 18, 2026 19:04
@xingyaoww
Copy link
Contributor Author

@OpenHands pls fix #348 (review)

@openhands-ai
Copy link

openhands-ai bot commented Feb 18, 2026

I'm on it! xingyaoww can track my progress at all-hands.dev

- Add note about supported skill paths (.agents/skills/ recommended,
  .openhands/skills/ supported) with link to precedence docs
- Document merge behavior with technical precision: content concatenates
  (public first, then custom), no smart merging
- Add migration guidance for users who created code-review.md to override
- Add note clarifying the example rules supplement the default skill
- Add Tip component in skill.mdx explaining skill activation behavior

Co-authored-by: openhands <openhands@all-hands.dev>
@openhands-ai
Copy link

openhands-ai bot commented Feb 18, 2026

Summary

I addressed all feedback from PR review #3821694947 on PR #348. The changes have been pushed in commit 1362386.

Checklist of Review Feedback Addressed:

Critical Issues:

  • Path inconsistency - Added Note documenting that .agents/skills/ is recommended and .openhands/skills/ is supported, with link to precedence docs
  • Vague merge behavior - Added Tip with technical precision: content concatenates (public first, then custom), no smart merging, agent sees both if conflicts exist
  • Reference validity - Verified custom-codereview-guide.md exists in software-agent-sdk repo

Suggestions:

  • Migration guidance - Added Note for users who created code-review.md to override, explaining they can rename to supplement instead
  • Example clarity - Added Note stating "These rules supplement the default skill, not replace it"
  • Merge behavior in skill.mdx - Added matching Tip explaining skill activation behavior

Files Changed:

  • sdk/guides/github-workflows/pr-review.mdx - Added 3 callout components (2 Notes, 1 Tip)
  • sdk/guides/skill.mdx - Added 1 Tip component

The changes are concise and focused solely on addressing the review feedback—no extraneous modifications were made.

Co-authored-by: Engel Nyst <engel.nyst@gmail.com>
@xingyaoww xingyaoww merged commit d7f6277 into main Feb 18, 2026
6 checks passed
@xingyaoww xingyaoww deleted the docs/skill-trigger-behavior branch February 18, 2026 19:40
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.

4 participants

Comments