Skip to content

refactor(skills): align Claude Code paths field order with schema and add tests - #1792

Merged
dyoshikawa merged 2 commits into
mainfrom
resolve-scrap-issue-1618-claudecode-skill-paths
Jun 9, 2026
Merged

refactor(skills): align Claude Code paths field order with schema and add tests#1792
dyoshikawa merged 2 commits into
mainfrom
resolve-scrap-issue-1618-claudecode-skill-paths

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Addresses the review findings tracked in #1618 for the paths field support in Claude Code skills (PR #1604).

Changes

  • [mid] Finding Add support for Openhands CLI #4 — field order mismatch. ClaudecodeSkill.toRulesyncSkill emitted paths before scheduled-task, while the canonical RulesyncSkill claudecode schema (rulesync-skill.ts) and the documented examples order them disable-model-invocationscheduled-taskpaths. The generator now emits scheduled-task before paths, so the produced frontmatter matches the schema and docs.
  • [low] Finding fix: Update pnpm version to 10.12.2 in CI and release workflows #1fromDir test gap. Added fromDir tests that parse paths from a SKILL.md file in both the YAML list and the comma-separated string forms.
  • [low] Finding fix: add claudecode to valid targets in parser validation #2 — edge-case tests. Added round-trip tests covering empty-string ("") and empty-array ([]) paths values.
  • [low] Finding Add support for sst/opencode #3 — docs example. Documented the comma-separated string form of paths in docs/reference/file-formats.md (synced to skills/rulesync/file-formats.md).

Findings #5 (glob syntax validation) and #6 (per-field length limit) were intentionally left out: both are low-priority, behavior-affecting "consider" items not specific to this change, and paths values are not used in any filesystem or command-execution path within rulesync.

Verification

  • pnpm cicheck passes (format, lint, typecheck, tests, content + skill-docs sync).

Closes #1618

🤖 Generated with Claude Code

cm-dyoshikawa and others added 2 commits June 8, 2026 23:31
… add tests

Address review findings from PR #1604 for Claude Code skill paths support.

- [mid] In ClaudecodeSkill.toRulesyncSkill, emit scheduled-task before paths so the generated claudecode frontmatter matches the canonical RulesyncSkill schema order (disable-model-invocation, scheduled-task, paths) and the documented examples.

- [low] Add fromDir tests that parse paths from SKILL.md frontmatter in both YAML list and comma-separated string forms.

- [low] Add round-trip tests covering empty-string and empty-array paths values.

- [low] Document the comma-separated string form of paths in file-formats.md (synced to skills/rulesync/).

Closes #1618

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dyoshikawa
dyoshikawa merged commit b588070 into main Jun 9, 2026
8 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-scrap-issue-1618-claudecode-skill-paths branch June 9, 2026 08:08
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.

scrap: Review findings for PR #1604 — paths support in Claude Code skills

2 participants