p3c-guard

p3c-guard is a Claude Code mod by alexlifexyz that agent 写 Java 时,新增的阿里 Java 规约(p3c)违规落不了盘。Blocks Java writes that add Alibaba p3c violations.

Updated 2026-10-11

What is p3c-guard?

p3c-guard is a Claude Code mod by alexlifexyz that agent 写 Java 时,新增的阿里 Java 规约(p3c)违规落不了盘。Blocks Java writes that add Alibaba p3c violations. It is listed under Security and has 1 GitHub stars.

TypeClaude code mod
Authoralexlifexyz
Repositoryalexlifexyz/p3c-guard
Popularity1 GitHub stars
CategorySecurity
SecurityReview before installing (64/100)
Rank#1,469 of 5,272 Claude Code mods; #159 in Security
LicenseMIT
Last commit2026-10-11
Hooks3 events
SeesEdit calls, Write calls
Draws onnothing

Is p3c-guard safe to install?

p3c-guard scores 64/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables. It passed 5 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.sleep
$.command.register
$.env.getreads env vars
$.fs.existsreads files
$.fs.readreads files
$.fs.writewrites files
$.process.runruns processes
$.ui.statusdraws interface

How do I install p3c-guard?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/alexlifexyz/p3c-guard
    claude plugin validate ./p3c-guard/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add alexlifexyz/p3c-guard && claude plugin install p3c-guard@p3c-guard

Or ask Claude to set it up

Paste this into Claude Code and it installs p3c-guard for you:

Install the "p3c-guard" Claude Code mod from https://github.com/alexlifexyz/p3c-guard. Run claude plugin validate on it first and show me what it can access before you enable it.