← MCP server and skill grades

product-engineering

phuryn/product-engineering

C
Type
Plugin
Scanned
Nov 17, 2026
Version
cea779f703f4
Files read
230

This plugin collection provides 45 workflow skills, CLI wrapper scripts, guardrail hook templates, and Next.js starter templates to help coding agents research, build, review, and deploy web applications. Its biggest risk is that its delegation skills instruct the agent to run headless builder sessions with OS sandboxing and human approval prompts disabled (--sandbox danger-full-access and --always-approve), relying only on prompt text to protect files and credentials on the user's machine.

What it can reach

Files
Reads and writes project documentation, code, temporary review diffs inside .git, disposable local Git clones in system temp folders, and session state files under ~/.claude and ~/.gemini.
Shell commands
Wrapper scripts and skill workflows execute coding-agent CLIs (claude, codex, grok, agy), git, npx, playwright, cloudflared, and cloud/database CLIs (supabase, clerk, railway).
Network
Connects to model provider APIs, Git remotes, npm packages, public websites during market research, Cloudflare quick tunnels, and configured SaaS providers such as Supabase, Clerk, Netlify, Clarity, PostHog, and Staygreen.
Secrets
Embedded-agent templates and MCP discovery scripts read API keys from environment variables (such as ANTHROPIC_API_KEY and placeholders in .mcp.json), and skills guide handling of .env and external operator credential files.
Browser
Visual-verification workflows and the owner-page test script launch headless Chromium via Playwright to render and inspect pages.

Findings

1 high6 low
  1. HighDelegated builds disable OS sandboxing and approval prompts by default

    agent-teams/skills/codex-agents/SKILL.md:61

    Although codex.py defaults to read-only mode when called directly, the codex-agents skill instructs the coordinating agent to pass --sandbox danger-full-access on every test-running build (which test-harness makes the default for build stages), and agent-instructions tells the agent to apply skill defaults without asking. Similarly, grok-agents runs builder sessions with --always-approve and no enforced sandbox. This gives headless sub-agents unrestricted shell, network, and filesystem access across the user's machine—including the external production operator credential files that other skills in this collection tell the user to store outside the repository—protected only by natural-language rules in the prompt brief that prompt injection in repository files, dependencies, or test output can override.

    Fix: Keep delegated builders inside workspace-write or a container/VM sandbox by default, require explicit user confirmation in chat before using danger-full-access or --always-approve, and hand back tests that cannot run inside the sandbox to the user-supervised session.

  2. LowPath and .env confinement bypasses in embedded-agent wrapper templates

    app-stack/skills/embedded-agents-agent-sdk/templates/agent.ts:121

    The embedded-agents-agent-sdk template (which the skill instructs agents to copy into Next.js apps as the security boundary for user-facing /api/agents endpoints) enforces file confinement in isBlockedPath using a case-sensitive substring check for .env and lexical path.resolve without symlink resolution or glob expansion. A prompt-injected embedded agent can read .env secrets on all platforms by passing a wildcard glob to Grep (such as glob set to *[e]nv* or .?nv), escape the agent directory in Glob using brace expansion (such as {a/b/c/d,..}/../../../** where path.resolve counts brace segments as directory depth before resolving ..), follow symlinks out of the directory, or read .ENV on case-insensitive macOS and Windows filesystems (which also affects inside() in embedded-agents-messages-api/templates/agent.ts).

    Fix: Resolve candidate paths and targets with fs.realpathSync before checking containment, reject glob metacharacters or restrict file access to custom tools over resolved files (as the Messages API variant does), and compare every resolved path segment case-insensitively against .env.

  3. LowDefault consult mode in claude_agent.py can run untrusted project hooks and allowed Bash commands

    agent-teams/skills/claude-agents/scripts/claude_agent.py:107

    claude_agent.py defaults to consult mode, which its docstring and mode table describe as a read-only peer where every write is denied. However, consult mode enables the Bash tool and omits --restricted. In headless claude -p runs without --restricted, Claude Code skips the interactive workspace-trust dialog, immediately executes hooks configured in the target folder's .claude/settings.json, and honors any permissions.allow Bash rules in user or project settings. Unlike agy.py in the same pack, claude_agent.py does not scan the target directory for hooks before starting.

    Fix: Add --restricted to consult mode and drop Bash (or scan the target workspace for .claude settings and hooks and refuse to start without an explicit flag, matching agy.py).

  4. LowWildcard allowedDevOrigins exposes local Next.js dev server to any trycloudflare.com page

    app-stack/skills/environments/references/environments-and-branches.md:65

    To preview local changes through an unauthenticated Cloudflare quick tunnel, the environments skill instructs the agent to add allowedDevOrigins: ["*.trycloudflare.com"] to next.config.ts. Whenever next dev is running locally—even when the owner's own tunnel is closed—this wildcard permits any website hosted on the shared public trycloudflare.com domain that the developer visits in their browser to make cross-origin requests to local Next.js dev scripts and HMR endpoints, and while the quick tunnel is open anyone with the URL can reach the unauthenticated dev app.

    Fix: Pass or configure only the single active quick-tunnel hostname for the duration of the preview session and remove it afterward, or place authentication in front of the tunnel.

  5. LowUnpinned npx package execution in MCP scaffolds, examples, and setup commands

    app-stack/skills/embedded-agents-messages-api/scripts/new-agent.mjs:46

    Both new-agent.mjs scaffolding scripts and both research-agent/.mcp.json examples configure stdio MCP servers to run via npx -y <package> (such as perplexity-mcp) with API keys injected into env on every agent run. Similarly, product-analytics, uptime-monitoring, clerk-production, and supabase-production instruct the user or agent to run unpinned npx commands (@microsoft/clarity-mcp-server, staygreen, and skills). Because no package versions are pinned, a compromised publish to npm would be downloaded and executed automatically with access to those API tokens or local files.

    Fix: Install MCP server and CLI dependencies in package.json with exact pinned versions (or pin exact package@version specifiers in npx arguments) instead of running unpinned npx -y at runtime.

  6. LowHeredoc stripping in guard_one_way_doors.py misses command substitutions and quoted << tokens

    agent-harness/skills/guardrail-hooks/scripts/guard_one_way_doors.py:144

    The guard_one_way_doors.py PreToolUse hook template strips anything matching its HEREDOC regex from shell_only before checking command_rules, scanning stripped bodies only against code_rules. Because Bash expands $(...) and backticks inside unquoted <<EOF heredocs, a command such as cat <<EOF containing $(gh repo delete ...) executes the deletion in Bash while being stripped from command_rules inspection; likewise, a literal <<EOF inside quotes on an earlier line tricks the regex into stripping real shell commands on following lines.

    Fix: Only strip heredoc bodies whose delimiter is single- or double-quoted (where Bash performs no command substitution) and avoid matching << inside quoted strings, or scan unquoted heredoc bodies against command_rules as well.

  7. LowGit option injection via --subject in review.py

    ai-shipping/skills/independent-review/scripts/review.py:506

    In write_subject (and in the identical copy at ai-shipping/skills/ship-check/scripts/review.py), the --subject revision argument rng is passed directly to git log and git diff without --end-of-options or rejecting leading hyphens, and line 396 also omits --no-ext-diff. Because Git allows tag and ref names beginning with hyphens, running ship-check or independent-review against an untrusted repository whose release tag or ref starts with --output=<path> can cause git log or git diff to overwrite files during a read-only review setup.

    Fix: Reject --subject values starting with '-' and pass --end-of-options (plus --no-ext-diff and -c core.fsmonitor=false, matching agy.py) in both copies of review.py.