feat: parseResolverEntries supports list-based resolver format#1370
Open
garrytan-agents wants to merge 1 commit into
Open
feat: parseResolverEntries supports list-based resolver format#1370garrytan-agents wants to merge 1 commit into
garrytan-agents wants to merge 1 commit into
Conversation
OpenClaw compact resolver format uses markdown lists instead of tables: - **skill-name**: trigger1 | trigger2 | trigger3 - skill-name: trigger phrase This is the format OpenClaw agents actually use. The table format (| trigger | skill path |) continues to work — both formats are parsed in the same pass. Handles: - Bold skill names: - **name**: triggers - Plain skill names: - name: triggers - Pipe-delimited triggers: trigger1 | trigger2 | trigger3 - Optional path suffix: → `skills/<name>/SKILL.md` (stripped) - Ellipsis markers: ... (filtered out) - Section headings: ## Section Name (tracked as before)
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.
Problem
parseResolverEntriesonly handles markdown table format:But OpenClaw agents use a compact list format:
This causes
checkResolvableto find 0 reachable skills → 238 FAIL errors ingbrain doctor.Fix
Adds a second parser branch for list-format entries. Both formats are handled in the same pass:
| trigger | \skills/name/SKILL.md` |` — unchanged- **name**: trigger1 | trigger2— new→ \skills/...`` suffix (stripped)Table format continues to work identically. Tested against both formats.
Impact
gbrain doctorresolver_health: FAIL (238 errors) → 0 errors