Skip to content

Add lc-compliance plugin (seven compliance frameworks)#85

Merged
lcbill merged 2 commits into
refractionPOINT:masterfrom
steveatlc:add-lc-compliance-plugin
Apr 30, 2026
Merged

Add lc-compliance plugin (seven compliance frameworks)#85
lcbill merged 2 commits into
refractionPOINT:masterfrom
steveatlc:add-lc-compliance-plugin

Conversation

@steveatlc
Copy link
Copy Markdown
Contributor

Summary

Adds a new lc-compliance plugin to the marketplace alongside lc-fundamentals, lc-essentials, and lc-advanced-skills. Customers can subscribe with /plugin install lc-compliance@lc-marketplace to get interactive compliance tooling without needing a separate repo.

The plugin ships three skills plus bundled reference content for seven frameworks: CMMC v2, NIST SP 800-53 Rev 5, PCI DSS v4.0, HIPAA Security Rule, SOC 2 TSC, ISO/IEC 27001:2022, and CIS Controls v8.

Skills

  • compliance-lookup — answers "how does LC cover <control-id>?" by reading the bundled mapping doc and surfacing the D&R rules whose metadata cite that control. Read-only, repo-content only.
  • compliance-gap — runs an ad-hoc gap analysis against a live org via limacharlie ... --output yaml, diffs the org against the framework's recommended-rules baseline, and writes a markdown punch list directly into chat. Does NOT create cases, notes, or any LC-side artifacts.
  • compliance-deploy — guided, human-in-the-loop deployment of the framework's case-reviewer agent (API key creation → secret staging → hive sync → verification). Optional --with-rules for a starter rule subset.

Bundled reference content (per framework)

  • <framework>-limacharlie-mapping.md — controls → LC capabilities
  • <framework>-limacharlie-implementation.md — deployable D&R / FIM / artifact / exfil rules (Win / Linux / macOS)
  • <framework>-attribution.md — authoritative source + verification level
  • recommended-rules.yaml — canonical rule-name baseline (compliance-gap reads this)
  • agent/ — case-reviewer hive manifest (ai_agent, dr-general, secret)

Verification levels (carried over from upstream attribution docs)

Framework Level Source
NIST SP 800-53 Rev 5 MACHINE_VERIFIED OSCAL catalog (1,196 control IDs)
HIPAA Security Rule MACHINE_VERIFIED eCFR 45 CFR §164 (1,036 subsection IDs)
CMMC v2 ATTESTATION NIST SP 800-171 Rev 2 PDF
PCI DSS 4.0 ATTESTATION PCI SSC PDF (license terms)
SOC 2 TSC ATTESTATION AICPA PDF
CIS Controls v8 ATTESTATION CIS PDF (CC BY-NC-ND)
ISO/IEC 27001:2022 UNVERIFIED ISO (paywalled)

Path resolution

Skills resolve bundled docs via \${CLAUDE_PLUGIN_ROOT}/compliance/<framework>/..., with a fallback find on the plugin's .claude-plugin/plugin.json if the env var is not set.

Relationship to compliance-soc (PR #44)

Different layer. compliance-soc is a hive-deployed AI agent for continuous posture monitoring of SOC 2 / ISO 27001 / PCI / CIS based on telemetry. lc-compliance is a Claude Code marketplace plugin for engineer-facing interactive work (control lookups, ad-hoc gap reports, guided agent deployment) covering all seven frameworks. They complement each other.

Test plan

  • /plugin install lc-compliance@lc-marketplace succeeds against a local marketplace add of this branch
  • /lc-compliance:compliance-lookup pci 10.2.1.4 returns the bundled mapping excerpt + matching rules
  • /lc-compliance:compliance-lookup hipaa §164.312(b) resolves the HIPAA citation format
  • /lc-compliance:compliance-gap nist-800-53 --oid <test-oid> emits a gap report without writing to the org
  • /lc-compliance:compliance-deploy cis-v8 --oid <test-oid> walks through the deploy steps with confirmation prompts and does not silently push
  • Bundled agent/<framework>-compliance-reviewer.yaml files validate against limacharlie sync for each framework

🤖 Generated with Claude Code

Three interactive skills for compliance engineering against LimaCharlie
orgs: compliance-lookup (control-to-capability), compliance-gap (ad-hoc
gap analysis written to chat), and compliance-deploy (guided
case-reviewer agent install). Bundles framework reference docs, the
recommended-rules baseline, and reviewer hive manifests for CMMC v2,
NIST SP 800-53 Rev 5, PCI DSS v4.0, HIPAA Security Rule, SOC 2 TSC,
ISO/IEC 27001:2022, and CIS Controls v8.

Skills resolve bundled paths via \${CLAUDE_PLUGIN_ROOT}/compliance/.
@steveatlc steveatlc requested a review from maximelb April 27, 2026 22:10
Closes the gap between subscribing to the plugin and having a framework's
rules in an org. compliance-deploy installs the case-reviewer agent (and
an optional ~10-rule starter subset for demos); compliance-baseline-deploy
deploys the FULL recommended baseline (50-110+ rules across D&R, FIM,
artifact, and exfil) extracted from the bundled implementation doc.

Defaults to a dry-run plan; --apply is required to actually push.
Idempotent (skips rules already deployed under the same name); halts
cleanly if a recommended rule has no YAML block in the impl doc or if a
required extension (ext-integrity, ext-artifact, ext-exfil) is not
subscribed.
@lcbill lcbill merged commit 5504e2e into refractionPOINT:master Apr 30, 2026
lcbill added a commit that referenced this pull request Apr 30, 2026
- .github/workflows/validate.yml runs scripts/validate.py on every PR
  and on push to master. Uses fetch-depth: 0 so the baseline-regression
  check can resolve master.
- .validate-ignore suppresses 4 pre-existing errors so master goes green
  immediately. New regressions still fail. Tracked in
  refractionPOINT/tracking#4229.
- BREAKING.md documents the lc-essentials → lc-advanced-skills carve-out
  from #85; the validator greps it to allow legitimate skill removals.
- validate.py now resolves origin/master as a fallback for environments
  (CI, fresh clones) where 'master' is not a local branch.

Refs refractionPOINT/tracking#4229
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.

3 participants