Files
Kazuki YamadaandClaude Opus 5.5 e392a8c5cd fix(skill): Label each root in the multi-root skill directory tree
With several root directories, the skill's project-structure.md merged all
files into one flat tree, while the regular output's directory structure
splits them into [rootLabel]/ sections. packSkill now receives the same
filePathsByRoot the regular output uses and renders it through the
previously unused generateTreeStringWithRootsAndLineCounts. Single-root
output keeps the old code path and stays byte-identical.

Also drop the unused isGitHubRepository entry from the remoteAction deps.

intent(skill-tree): multi-root skill output should show per-root sections like the regular output
decision(skill-tree): filter filePathsByRoot down to processed files so files dropped by the security check stay out of the tree, as in the single-root skill tree
decision(line-counts): multi-root line count keys are root-prefixed display paths, so the lookup path starts at the root label
constraint(skill-tree): only use the per-root path when there is more than one root; a single root keeps the flat processed-file tree

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 16:03:29 +09:00
..