Restructure sources/ and add codeguard-reviewer subagent#62
Merged
thomas-bartlett merged 3 commits intoMay 1, 2026
Conversation
This was referenced Apr 30, 2026
Closed
santosomar
approved these changes
Apr 30, 2026
santosomar
left a comment
Contributor
There was a problem hiding this comment.
Thank you for restructuring this and adding the subagent.
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
Restructures
sources/into{rules, skills, agents, templates}so authored inputs are clearly separated from generated outputs, and adds thecodeguard-reviewersubagent for Claude Code and Cursor.Closes #51.
Changes
sources/ restructure
sources/core/→sources/rules/core/;sources/additional-skills/owasp/→sources/rules/owasp/;sources/additional-skills/memory-safe-migration/→sources/skills/memory-safe-migration/skills/security-review/→sources/skills/security-review/; rootskills/is now purely the generatedsoftware-securityartifact. Plugin reads both via"skills": ["./skills/", "./sources/skills/"]inplugin.json(somemory-safe-migrationnow ships in the marketplace plugin)--source <name>resolves tosources/rules/<name>; rule files must be namedcodeguard-*.md(now documented)codeguard-reviewer subagent (#51)
sources/agents/codeguard-reviewer/AGENT.md— scans the repo against CodeGuard rules, triages findings, and emits SARIF 2.1.0src/emit_agents.py+src/artifact_targets.py— fan the agent out to each host inAGENT_HOSTSwith per-host frontmatter and{RULES_DIR}/{RULE_EXT}substitution; agent reads each host's existing rules dir (no duplication)skills:preload) and Cursor (withmodel: inherit)Host path corrections
.agent/rules/→.agents/rules/.codex/skills/→.agents/skills/(the documented discovery path;.codex/skills/was silently ignored)update-codeguard-rules.ymlwarns on legacy paths so existing installs don't go silently staleMisc
ide-rules-claude.ziprelease bundle +ClaudeFormatbuild-ide-bundles.yml: pass${{ }}expressions viaenv:instead of inline shell interpolation (GHA script-injection hardening)authlib>=1.6.11constraint in codeguard-mcp for GHSA-jj8c-mmj3-mmgvuv.lockregenerated to record the existingexclude-newerpolicyTrying the subagent
Then invoke
codeguard-reviewer(via/agentsin Claude Code or@codeguard-reviewerin Cursor). It writescodeguard-findings-<timestamp>.sarifto the target repo root and returns a structured summary.Test plan
uv run python src/convert_to_ide_formats.py— 23 rules → all host formats; agent emitted to.claude+.cursorsources/rules/core/pathvalidate-rules.ymlagent-bundle check passes locally