codeguard
v0.3.2+codex.20260918Cross-language code lint enforcement for AI coding assistants (ZCode, Claude Code, Codex CLI, Kimi Code): Java, Rust, TypeScript, Python. PostToolUse hook auto-runs the native linter on every AI-written file and blocks on failure in strict mode.
By Full Stack Skills / PartMe.AILicense: Apache-2.00 GitHub starsUpdated 5 days ago
Directory evidence
- Runtimes
- Codex
- Parsed components
- 51 skill or MCP entries
- Source updated
- Sep 18, 2026
- Manifest status
- Canonical path parsed
The directory validates manifest shape and source location. It does not execute the plugin or provide a security endorsement. Review the indexing methodology →
Install codeguard for Codex
codex plugin marketplace add partme-ai/partme-codeguard-plugin
codex plugin marketplace upgrade partme-ai-codeguard
codex plugin add codeguard@partme-ai-codeguardPaste and run these commands in a terminal with Codex. They add and refresh the partme-ai-codeguard catalog, then install this plugin.
Compatibility: the page URL and API slug “codeguard” remain stable.
- Codex:
codeguard@agent-plugin-marketplace→codeguard@partme-ai-codeguard
The installer fetches third-party code from the source repository shown on this page. This directory validates manifest structure and source location, but does not perform a security audit; review the manifest, components, and source before installing.
Get the source manually
git clone https://github.com/partme-ai/partme-codeguard-pluginClone the source repository, then follow its setup instructions to add the plugin to a compatible client. The repository root is the plugin root.
Plugin files
├── .codex-plugin/plugin.json├── skills/codeguard-ansible/SKILL.md├── skills/codeguard-arkts/SKILL.md├── skills/codeguard-astro/SKILL.md├── skills/codeguard-c/SKILL.md├── skills/codeguard-cfml/SKILL.md├── skills/codeguard-check/SKILL.md├── skills/codeguard-clojure/SKILL.md├── skills/codeguard-cobol/SKILL.md├── skills/codeguard-cpp/SKILL.md├── skills/codeguard-crystal/SKILL.md├── skills/codeguard-csharp/SKILL.md├── skills/codeguard-css/SKILL.md├── skills/codeguard-cuda/SKILL.md├── skills/codeguard-cve/SKILL.md├── skills/codeguard-dart/SKILL.md├── skills/codeguard-detect/SKILL.md├── skills/codeguard-dockerfile/SKILL.md├── skills/codeguard-elixir/SKILL.md├── skills/codeguard-elm/SKILL.md├── skills/codeguard-erlang/SKILL.md├── skills/codeguard-fix/SKILL.md├── skills/codeguard-fsharp/SKILL.md├── skills/codeguard-git-branch/SKILL.md├── skills/codeguard-git-commit/SKILL.md├── skills/codeguard-go/SKILL.md├── skills/codeguard-graphql/SKILL.md├── skills/codeguard-groovy/SKILL.md├── skills/codeguard-haskell/SKILL.md├── skills/codeguard-html/SKILL.md├── skills/codeguard-init/SKILL.md├── skills/codeguard-java/SKILL.md├── skills/codeguard-julia/SKILL.md├── skills/codeguard-kotlin/SKILL.md├── skills/codeguard-liquid/SKILL.md├── skills/codeguard-lua/SKILL.md├── skills/codeguard-luau/SKILL.md├── skills/codeguard-markdown/SKILL.md├── skills/codeguard-metal/SKILL.md├── skills/codeguard-nim/SKILL.md├── skills/codeguard-nix/SKILL.md├── skills/codeguard-objc/SKILL.md├── skills/codeguard-ocaml/SKILL.md├── skills/codeguard-pascal/SKILL.md├── skills/codeguard-perl/SKILL.md├── skills/codeguard-php/SKILL.md├── skills/codeguard-powershell/SKILL.md├── skills/codeguard-protobuf/SKILL.md├── skills/codeguard-python/SKILL.md├── skills/codeguard-r/SKILL.md├── skills/codeguard-ruby/SKILL.md└── .mcp.json
Included Skills50
Ansible 代码规范检查:lint 门禁(`ansible-lint`)与格式化(`ansible-lint --fix`)。 Use when users write or review Ansible code, hit ansible lint failures, or ask about Ansible style rules. Route framework/library questions to the official Ansible docs.
ArkTS (HarmonyOS) 代码规范检查(Planned):扩展名已识别(`.ets`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 ArkTS (HarmonyOS) 规范或 arkts 文件检查时,说明现状与计划工具。
Astro 代码规范检查(Planned):扩展名已识别(`.astro`),linter 集成在路线图(目标 V0.4)。 钩子当前安全跳过。触发:用户提到 Astro 规范或 astro 文件检查时,说明现状与计划工具。
C 代码规范检查(Planned):扩展名已识别(`.c` `.h`),linter 集成在路线图(目标 V0.4)。 钩子当前安全跳过。触发:用户提到 C 规范或 c 文件检查时,说明现状与计划工具。
CFML (ColdFusion) 代码规范检查(Planned):扩展名已识别(`.cfc` `.cfm` `.cfs`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 CFML (ColdFusion) 规范或 cfml 文件检查时,说明现状与计划工具。
codeguard check 命令:跑项目全量 lint 门禁并输出报告。检测语言 → 按语言跑 linter → 汇总通过/失败。Use when users say "check", "跑检查", "lint 报告", or before commit. Route fixing to codeguard-fix; CVE scanning to codeguard-cve.
Clojure 代码规范检查(Planned):扩展名已识别(`.clj` `.cljs` `.cljc` `.edn`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 Clojure 规范或 clojure 文件检查时,说明现状与计划工具。
COBOL 代码规范检查(Planned):扩展名已识别(`.cbl` `.cob` `.cpy`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 COBOL 规范或 cobol 文件检查时,说明现状与计划工具。
C++ 代码规范检查(Planned):扩展名已识别(`.cpp` `.hpp` `.cc`),linter 集成在路线图(目标 V0.4)。 钩子当前安全跳过。触发:用户提到 C++ 规范或 cpp 文件检查时,说明现状与计划工具。
Crystal 代码规范检查(Planned):扩展名已识别(`.cr`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 Crystal 规范或 crystal 文件检查时,说明现状与计划工具。
C# 代码规范:dotnet format 强制 + .editorconfig 风格。需要 .NET SDK 6+。 触发:用户说"C# 规范"、"dotnet format"、"editorconfig"。
CSS / SCSS / Sass / LESS 规范:stylelint recommended + 自动修复。 Use when users write or review .css/.scss/.less files, hit stylelint errors, or ask about CSS conventions. Route framework-specific styling (Tailwind/Modules) to their docs.
CUDA 代码规范检查(Planned):扩展名已识别(`.cu` `.cuh`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 CUDA 规范或 cuda 文件检查时,说明现状与计划工具。
codeguard cve 命令:多生态 CVE 依赖漏洞扫描编排(Maven dependency-check / npm audit / pip-audit / cargo audit),失败阈值可调,npm 支持自动修复。Use when users say "扫漏洞", "CVE", "依赖安全检查", or before release. Route Dockerfile misconfig to codeguard-dockerfile; suppression policy to codeguard-security-code.
Dart / Flutter 代码规范检查:lint 门禁(`dart analyze`)与格式化(`dart format .`)。 Use when users write or review Dart / Flutter code, hit dart lint failures, or ask about Dart / Flutter style rules. Route framework/library questions to the official Dart / Flutter docs.
codeguard detect 命令:检测项目语言构成(扩展名扫描 + 项目标记文件),支持 codeguard.json 自定义扩展映射与 exclude 排除。Use when users say "这是什么语言项目", "检测语言", or when initializing governance on a repo.
Dockerfile 安全风险检查与规范门禁:hadolint 安全规则(root 运行、latest 标签、ADD 风险、 sudo、包管理器缓存)+ trivy config misconfig 规则(digest 未固定、secrets 进镜像层、 HEALTHCHECK 缺失)+ 安全基线(非 root 用户、多阶段构建、最小镜像)。 Use when users write or review Dockerfiles, hit hadolint failures, ask about container security hardening, or before building/publishing images. Route dependency CVEs inside images to codeguard-security-code and base-image selection to trivy/scout reports.
Elixir 代码规范:mix format 格式化 + Credo --strict 静态分析。 Use when users write .ex/.exs files, hit credo warnings, or ask about Elixir idioms and formatting. Route Phoenix/OTP deep questions to official Elixir guides.
Elm 代码规范检查(Planned):扩展名已识别(`.elm`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 Elm 规范或 elm 文件检查时,说明现状与计划工具。
Erlang 代码规范检查(Planned):扩展名已识别(`.erl` `.hrl`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 Erlang 规范或 erlang 文件检查时,说明现状与计划工具。
codeguard fix 命令:自动修复各语言 lint 问题(spotless:apply / cargo fmt / eslint --fix / ruff --fix / gofmt),修复后建议复跑 check。Use when users say "自动修复", "/fix", "格式化修复". Route logic-level violations (unused vars with meaning, complexity) to manual review; do not auto-edit business code.
F# 代码规范检查(Planned):扩展名已识别(`.fs` `.fsi` `.fsx`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 F# 规范或 fsharp 文件检查时,说明现状与计划工具。
Git 分支规范:整合 7 种主流分支策略(Gitflow、Gitflow+、GitLab 分支规范、GitHub Flow、 GitLab Flow、Trunk-Based Development、OneFlow、Release Flow),含模型识别、命名门禁、 合并方向门禁与合并策略(merge/squash/rebase)。 触发场景:AI 帮用户创建/切换/合并分支、规划发版、或用户说"分支规范"、"gitflow"、"建分支"。
Commit 日志规范:整合主流风格——Conventional Commits(Angular)、Gitmoji、Udacity, 含正则门禁、commitlint 工具与示例。AI 代写提交信息必须遵守。 触发场景:AI 帮用户写 commit message、执行 git commit、或用户说"提交规范"、"commit 规范"。
Go 代码规范:go vet 基线 + golangci-lint 聚合 + gofmt 强制。禁止忽略 error 返回值。 触发:用户说"Go 规范"、"go vet"、"golangci-lint"、"gofmt"。
GraphQL 代码规范检查(Planned):扩展名已识别(`.graphql` `.gql`),linter 集成在路线图(目标 V0.4)。 钩子当前安全跳过。触发:用户提到 GraphQL 规范或 graphql 文件检查时,说明现状与计划工具。
Groovy 代码规范检查(Planned):扩展名已识别(`.groovy`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 Groovy 规范或 groovy 文件检查时,说明现状与计划工具。
Haskell 代码规范检查(Planned):扩展名已识别(`.hs` `.lhs`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 Haskell 规范或 haskell 文件检查时,说明现状与计划工具。
HTML 代码规范检查:lint 门禁(`npx htmlhint`)与格式化(`prettier --write`)。 Use when users write or review HTML code, hit html lint failures, or ask about HTML style rules. Route framework/library questions to the official HTML docs.
一键把 codeguard 接入当前仓库。检测项目语言、拷贝 linter 配置文件、写 .pre-commit-config.yaml、 增量更新 AGENTS.md、生成 GitHub Actions CI 工作流。 触发场景:用户说 "/init"、"接入规范检查"、"给项目加 pre-commit"、"加 CI 检查"。
Apply Java lint gates (javadoc, Checkstyle P3C), diagnose javadoc errors and warnings, enforce Java naming/import/style conventions, and fix style violations via Spotless. Use when users write or review Java, hit mvn javadoc:jar failures, see checkstyle errors, or ask about P3C/Alibaba style rules, javadoc tags, or Java naming conventions. Route deep Java syntax/framework/library questions to the java-skills repository; route commit format to codeguard-git-commit and CVE findings to codeguard-security-code.
Julia 代码规范检查(Planned):扩展名已识别(`.jl`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 Julia 规范或 julia 文件检查时,说明现状与计划工具。
Kotlin 代码规范:detekt 静态分析 + ktlint 格式化(Gradle 插件)。 触发:用户说"Kotlin 规范"、"detekt"、"ktlint"。
Liquid (Shopify) 代码规范检查(Planned):扩展名已识别(`.liquid`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 Liquid (Shopify) 规范或 liquid 文件检查时,说明现状与计划工具。
Lua 代码规范检查(Planned):扩展名已识别(`.lua`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 Lua 规范或 lua 文件检查时,说明现状与计划工具。
Luau 代码规范检查(Planned):扩展名已识别(`.luau`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 Luau 规范或 luau 文件检查时,说明现状与计划工具。
Markdown 代码规范检查:lint 门禁(`npx markdownlint-cli2 **/*.md`)与格式化(`markdownlint-cli2 --fix`)。 Use when users write or review Markdown code, hit markdown lint failures, or ask about Markdown style rules. Route framework/library questions to the official Markdown docs.
Metal 代码规范检查(Planned):扩展名已识别(`.metal`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 Metal 规范或 metal 文件检查时,说明现状与计划工具。
Nim 代码规范检查(Planned):扩展名已识别(`.nim`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 Nim 规范或 nim 文件检查时,说明现状与计划工具。
Nix 代码规范检查:lint 门禁(`deadnix`)与格式化(`nixpkgs-fmt`)。 Use when users write or review Nix code, hit nix lint failures, or ask about Nix style rules. Route framework/library questions to the official Nix docs.
Objective-C 代码规范检查(Planned):扩展名已识别(`.m` `.mm`),linter 集成在路线图(目标 V0.4)。 钩子当前安全跳过。触发:用户提到 Objective-C 规范或 objc 文件检查时,说明现状与计划工具。
OCaml 代码规范检查(Planned):扩展名已识别(`.ml` `.mli`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 OCaml 规范或 ocaml 文件检查时,说明现状与计划工具。
Pascal / Delphi 代码规范检查(Planned):扩展名已识别(`.pas` `.dpr` `.dpk` `.lpr`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 Pascal / Delphi 规范或 pascal 文件检查时,说明现状与计划工具。
Perl 代码规范检查(Planned):扩展名已识别(`.pl` `.pm` `.t`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 Perl 规范或 perl 文件检查时,说明现状与计划工具。
PHP 代码规范:php -l 语法门禁 + PHP-CS-Fixer PSR-12 自动修复 + PHPStan 静态分析。 触发:用户说"PHP 规范"、"PSR-12"、"php-cs-fixer"、"phpstan"。
PowerShell 代码规范检查(Planned):扩展名已识别(`.ps1` `.psm1`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 PowerShell 规范或 powershell 文件检查时,说明现状与计划工具。
Protobuf 代码规范检查:lint 门禁(`buf lint`)与格式化(`buf format`)。 Use when users write or review Protobuf code, hit protobuf lint failures, or ask about Protobuf style rules. Route framework/library questions to the official Protobuf docs.
Python 代码规范:ruff(极速,drop-in 替代 flake8 + isort + pyupgrade + flake8-bugbear)。 触发:用户说"ruff"、"python 规范"、"flake8"、"lint"。
R 代码规范检查(Planned):扩展名已识别(`.r`),linter 集成在路线图(目标 V0.5)。 钩子当前安全跳过。触发:用户提到 R 规范或 r 文件检查时,说明现状与计划工具。
Ruby 代码规范:RuboCop 强制(单引号、行宽 160、method 长度 20)。 触发:用户说"Ruby 规范"、"RuboCop"。
MCP servers1
- command
- python3
- args
- ${ZCODE_PLUGIN_ROOT}/scripts/run_check.py --mcp
Plugin manifests1
{
"name": "codeguard",
"version": "0.3.2+codex.20260918",
"description": "Cross-language code lint enforcement for AI coding assistants (ZCode, Claude Code, Codex CLI, Kimi Code): Java, Rust, TypeScript, Python. PostToolUse hook auto-runs the native linter on every AI-written file and blocks on failure in strict mode.",
"author": {
"name": "Full Stack Skills / PartMe.AI",
"url": "https://github.com/partme-ai"
},
"homepage": "https://github.com/partme-ai/partme-codeguard-plugin",
"repository": "https://github.com/partme-ai/partme-codeguard-plugin",
"license": "Apache-2.0",
"keywords": [
"java",
"rust",
"typescript",
"python",
"javadoc",
"checkstyle",
"clippy",
"eslint",
"ruff",
"pre-commit"
],
"skills": "./skills/",
"mcpServers": "./.mcp.json",
"interface": {
"displayName": "代码规范守卫",
"shortDescription": "Make AI-written code pass lint on first try",
"longDescription": "Detects project languages, runs the appropriate linter (mvn javadoc+checkstyle, cargo clippy+fmt, npx eslint, ruff check) on every file the AI writes or edits, and blocks further writes when lints fail. Ships ready-to-use .pre-commit-config.yaml templates and AGENTS.md snippets for one-line project bootstrap. Supports ZCode, Claude Code, Codex CLI, and Kimi Code through their respective plugin manifests.",
"developerName": "Full Stack Skills / PartMe.AI",
"category": "Developer Tools",
"capabilities": [
"Read",
"Write"
],
"websiteURL": "https://github.com/partme-ai/partme-codeguard-plugin",
"privacyPolicyURL": "https://github.com/partme-ai/partme-codeguard-plugin/blob/main/PRIVACY.md",
"termsOfServiceURL": "https://github.com/partme-ai/partme-codeguard-plugin/blob/main/TERMS.md",
"defaultPrompt": [
"Run /check on the current project and fix what fails",
"Initialize codeguard on this repository with /init",
"Run Java javadoc + checkstyle on the current project"
],
"brandColor": "#2563EB",
"composerIcon": "./assets/composer-icon.png",
"logo": "./assets/official-logo.png",
"logoDark": "./assets/official-logo.png",
"screenshots": []
}
}For maintainers
If you maintain this plugin, link to this source-backed listing from your README so users can review its manifest and indexed components.
[codeguard on Agent Plugins Marketplace](https://pluginsmp.com/plugins/codeguard)