@arkenv/agent-plugin
v1.0.0-rc.2
Published
ArkEnv coding-agent plugin with MCP tools for init and AST-based env audits
Maintainers
Readme
@arkenv/agent-plugin
Coding-agent plugin and MCP server for ArkEnv. It teaches assistants to use
import { env } from "./env" and actively flags raw process.env /
import.meta.env access, client-side secret leaks, public-prefix mistakes,
and leftover v0 ambient .d.ts augmentations.
Install the plugin
The monorepo lists this package in .claude-plugin/marketplace.json, so the
plugins CLI installs packages/agent-plugin instead of treating the repo
root's skills/ tree as a plugin:
npx plugins add yamcodes/arkenvFrom a local clone:
npx plugins add ./packages/agent-pluginCompatible agent runtimes expose /arkenv:init and /arkenv:audit.
MCP server
After this package is published:
npx -y @arkenv/agent-pluginFrom a local clone, build first and point MCP at the bin:
pnpm --filter @arkenv/agent-plugin build
node ./packages/agent-plugin/bin.mjsStdio MCP tools:
init— runsarkenv init --agentincwdaudit— AST scan; returns{ diagnostics: [{ file, line, character, severity, ruleId, message, suggestedFix }] }
Programmatic audit
import { auditProject } from "@arkenv/agent-plugin";
const { diagnostics } = await auditProject(process.cwd());