We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46ac88f commit e33f5e5Copy full SHA for e33f5e5
src/core/FileSystemUtils.ts
@@ -73,7 +73,10 @@ export async function readMarkdownFiles(
73
const fullPath = path.join(dir, entry.name);
74
if (entry.isDirectory()) {
75
// Skip .ruler/skills; skills are propagated separately and should not be concatenated
76
- const isSkillsDir = dir === rulerDir && entry.name === SKILLS_DIR;
+ const relativeFromRoot = path.relative(rulerDir, fullPath);
77
+ const isSkillsDir =
78
+ relativeFromRoot === SKILLS_DIR ||
79
+ relativeFromRoot.startsWith(`${SKILLS_DIR}${path.sep}`);
80
if (isSkillsDir) {
81
continue;
82
}
0 commit comments