Skip to content

Add --json output format to skills report - #24

Open
kamrullab wants to merge 4 commits into
Paraphern:mainfrom
kamrullab:feat/skills-report-json
Open

kamrullab wants to merge 4 commits into
Paraphern:mainfrom
kamrullab:feat/skills-report-json

Conversation

@kamrullab

Copy link
Copy Markdown

Fixes #8

rugsnare skills report --json now prints the same data as the HTML report as valid JSON to stdout, without writing the HTML file or opening a browser, so it can be used in CI pipelines and other tools.

Changes:

  • New buildSkillsReportJson in skills-report.js builds the report object (generatedAt, counts, per-skill key/status/severity/changes/advisory, MCP results, current audit) from the same data the HTML report uses
  • cmdSkills prints that JSON and returns when --json is passed
  • New CLI test validates the JSON structure and that no HTML report is written in JSON mode
  • README documents the new flag

Tested locally: skills-pin and skills-advisory test files pass (25 tests).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --json output format to skills report

1 participant