feat(skill-manage): add 'lint' — library audit + promotion gate (composes skill-librarian)#18
Open
LeoLin990405 wants to merge 1 commit into
Open
feat(skill-manage): add 'lint' — library audit + promotion gate (composes skill-librarian)#18LeoLin990405 wants to merge 1 commit into
LeoLin990405 wants to merge 1 commit into
Conversation
Composes with the standalone skill-librarian linter (vendored single file at
scripts/lib/skill_lint.py). Two modes:
skill-manage.sh lint [--index] → audit the canonical library
skill-manage.sh lint --pack <d> → gate a candidate pack vs the library
(non-zero exit = collision → don't promote)
Fills the quality check the forge → candidate → install path lacked. Python
stdlib + optional PyYAML (regex fallback when absent), consistent with the
existing python3 usage in 'doctor'.
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.
What
Adds
skill-manage.sh lint— the library-health check the forge → candidate → install path was missing — by composing with the standalone skill-librarian linter (not merging: grimoire stays the create/install side, skill-librarian stays the tiny vendor-neutral audit tool).The linter is vendored as one file,
scripts/lib/skill_lint.py(Python; stdlib + optional PyYAML, degrades to a regex parser when PyYAML is absent — consistent with thepython3already used indoctor).Two modes
skill-manage.sh lint [--index]— audit the canonical library: dup / near-dup / name-collision / dead[[wiki]]link / description-quality / stub / orphan.--indexrewritesINDEX.md.skill-manage.sh lint --pack <dir>— promotion gate: check a candidate skill pack for name/content collisions against the library before installing it. Non-zero exit = do not promote.Verified locally
bash -nclean. No new hard deps.Not a merge
skill-librarian keeps its own repo (broad, single-file, vendor-neutral); grimoire just vendors + calls it at the gate. Unix-compose, not one big熔炉.