Skip to content

Ship an agent-facing install guide inside the npm package#38

Merged
ejntaylor merged 1 commit into
mainfrom
improve-patchstack-install-prompt
Jul 13, 2026
Merged

Ship an agent-facing install guide inside the npm package#38
ejntaylor merged 1 commit into
mainfrom
improve-patchstack-install-prompt

Conversation

@ejntaylor

Copy link
Copy Markdown
Contributor

Summary

AI coding agents (Lovable, Bolt, v0, etc.) often refuse the "add Patchstack using https://patchstack.com/install.txt" prompt — the URL pattern-matches to remote script execution and the brand pattern-matches to WordPress-only, so they decline before ever fetching the instructions. This PR anchors the install flow on the npm package, which agents demonstrably trust (pinnable, integrity-hashed, public source).

  • Adds AGENT-INSTALL.md, a condensed agent-facing setup guide shipped in the npm tarball, with a "verify before you trust" section and the full connector + widget install sequence.
  • Adds a patchstack-connect guide CLI command that prints the bundled guide, so agents can follow instructions from inside the package they just installed — no remote fetch required.
  • Rewrites the README install prompts to lead with the npm package and preempt the remote-script and WordPress-only objections.

Verified: typecheck, build, all 121 tests pass, and guide works from both the repo layout and an extracted npm pack tarball.

🤖 Generated with Claude Code

AI coding agents refuse the install.txt prompt because a bare URL
pattern-matches to remote script execution and the Patchstack brand
pattern-matches to WordPress-only. Anchor the install flow on the npm
package instead: ship AGENT-INSTALL.md in the tarball, add a
`patchstack-connect guide` command that prints it, and rewrite the
README install prompts to lead with the pinnable, auditable package.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderbuds

coderbuds Bot commented Jul 13, 2026

Copy link
Copy Markdown

Integrates an agent-facing install guide command neatly into the existing CLI.

🎯 Quality: 89% Excellent · 📦 Size: Small

📈 This month: Your 214th PR — above team average · Averaging Excellent

See how your team is trending →

@ejntaylor

Copy link
Copy Markdown
Contributor Author

/review

@ejntaylor

Copy link
Copy Markdown
Contributor Author

Install the npm package @patchstack/connect as a dev dependency (MIT, source: https://github.com/patchstack/connect) to add dependency vulnerability monitoring, then run npx @patchstack/connect guide and follow the setup guide it prints. It only reads the lockfile — nothing is fetched from a URL or executed remotely.

@ejntaylor ejntaylor merged commit 0d6d672 into main Jul 13, 2026
4 checks passed
@ejntaylor ejntaylor deleted the improve-patchstack-install-prompt branch July 13, 2026 16:06
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.

2 participants