Skip to content

Comments

fix: deduplicate skill references when sub-rule name matches package name#57

Merged
zachdaniel merged 1 commit intoash-project:mainfrom
tommeier:fix/deduplicate-skill-references
Feb 18, 2026
Merged

fix: deduplicate skill references when sub-rule name matches package name#57
zachdaniel merged 1 commit intoash-project:mainfrom
tommeier:fix/deduplicate-skill-references

Conversation

@tommeier
Copy link
Contributor

@tommeier tommeier commented Feb 18, 2026

Contributor checklist

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

When a package has a sub-rule file with the same name as the package itself (e.g., Phoenix ships usage-rules/phoenix.md), the generated SKILL.md contains a duplicate reference entry:

- [phoenix](references/phoenix.md)
- [phoenix](references/phoenix.md)

This happens because build_skill_body/3 concatenates sub-rule references and main package references without deduplication. Added Enum.uniq/1 after building the combined reference list.

@tommeier tommeier force-pushed the fix/deduplicate-skill-references branch 3 times, most recently from fb92a5d to 509629a Compare February 18, 2026 08:26
@tommeier tommeier force-pushed the fix/deduplicate-skill-references branch from 509629a to ce1a455 Compare February 18, 2026 08:46
@zachdaniel zachdaniel merged commit 6eccadb into ash-project:main Feb 18, 2026
@zachdaniel
Copy link
Contributor

🚀 Thank you for your contribution! 🚀

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