Repository navigation
fix: community-index file scoping, nested entries, auto-child deps - #6
Merged
Merged
Conversation
…hild deps - Fix detectEntryPoints to recursively match agents and commands in subdirectories (agents/**/*.md, commands/**/*.md) instead of flat only - Filter infrastructure files (.gitkeep, README.md, TEMPLATE.md, CLAUDE.md) from entry point detection - Add resolveFileOwnership() with three categories: A) Flat shared dirs (multiple entries same dirHint) → entry file only B) Dedicated dirs (skills with own subdir) → own files minus child subtrees C) Root-level → root dir files only - Add Pass C auto-child dependencies for parent skills containing child entry points (required: false, source: auto-child) - Use refs/heads/main in rawBaseUrl and plug-deps.json fetch URLs
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.
Summary
agents/**/*.md,commands/**/*.md) — previously only flatagents/*.mdwas indexedProblem
The builder assigned files using a naive directory prefix match:
brainstormdownloaded all 30 command filesarchitectdownloaded all 48 agent filesc-level-advisorgot 128 files including all child packagesagents/engineering/cs-senior-engineer.mdwas invisible (not indexed)Solution
Added
resolveFileOwnership(entryPoints, dirMap)with three categories:Added Pass C dependency detection: parent skills automatically list child entry points as
required: falsedependencies withsource: auto-child.Results (873 packages, up from 846)
brainstorm(command)changelog(command)c-level-advisor(skill)cs-senior-engineer(agent)systematic-debugging(skill)Test plan
node scripts/build-community-index.js