Fixing readme (#2969)

* Had a bad readme merge recently, fixing

* Excluding the bin and obj of .NET output from skills file list
This commit is contained in:
Aaron Powell
2026-09-07 12:20:26 +10:00
committed by GitHub
parent 7b1ebe6333
commit aa5b334aac
2 changed files with 13 additions and 4 deletions
+12 -3
View File
@@ -168,8 +168,14 @@ function parseSkillMetadata(skillPath) {
entries.forEach((entry) => {
const filePath = path.join(dirPath, entry.name);
if (entry.isDirectory()) {
if (entry.name === "bin" || entry.name === "obj") {
return; // Skip bin and obj directories as they are .NET project output folders and not part of the skill assets
}
arrayOfFiles = getAllFiles(filePath, arrayOfFiles);
} else if (!entry.isSymbolicLink() || !skipsAsBundledAsset(filePath)) {
} else if (
!entry.isSymbolicLink() ||
!skipsAsBundledAsset(filePath)
) {
const relativePath = path.relative(skillPath, filePath);
if (relativePath !== "SKILL.md") {
// Normalize path separators to forward slashes for cross-platform consistency
@@ -245,7 +251,10 @@ function parseHookMetadata(hookPath) {
const filePath = path.join(dirPath, entry.name);
if (entry.isDirectory()) {
arrayOfFiles = getAllFiles(filePath, arrayOfFiles);
} else if (!entry.isSymbolicLink() || !skipsAsBundledAsset(filePath)) {
} else if (
!entry.isSymbolicLink() ||
!skipsAsBundledAsset(filePath)
) {
const relativePath = path.relative(hookPath, filePath);
if (relativePath !== "README.md") {
// Normalize path separators to forward slashes for cross-platform consistency
@@ -337,8 +346,8 @@ export {
extractMcpServerConfigs,
extractMcpServers,
parseFrontmatter,
parseSkillMetadata,
parseHookMetadata,
parseSkillMetadata,
parseWorkflowMetadata,
parseYamlFile,
safeFileOperation,