cx-install-wiring

Installs Checkmarx hooks and rules for Cursor CLI, then configures cx CLI authentication.

2|Updated Jun 10, 2026
One-click install
npx skills add https://github.com/Checkmarx/cx-agentic-ai --skill cx-install-wiring-checkmarx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cx-install-wiring
Source: https://github.com/Checkmarx/cx-agentic-ai/tree/main/plugins/cursor-devassist/skills/cx-install-wiring
Command: npx skills add https://github.com/Checkmarx/cx-agentic-ai --skill cx-install-wiring-checkmarx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up the Checkmarx DevAssist security gate in Cursor CLI requires manually wiring hooks, rules, and the cx CLI across user or project scopes, which is error-prone and easy to skip. This Skill automates the entire first-time setup from a single slash command. ## Core Features & Use Cases - Hook and Rule Wiring: Runs install-hooks.sh to merge Checkmarx hooks and rules into either the user-level (~/.cursor/) or a project-level (.cursor/) configuration, with validated path resolution. - Automatic cx CLI Setup: Continues directly into the cx-cli-setup workflow to install and authenticate the Checkmarx cx CLI without requiring a separate command. - Scope Selection: Prompts once for user vs. project scope and validates the target repository path before running the installer. - Use Case: A developer opens Cursor CLI in a new repo, types /cx-install-wiring, chooses project scope, and ends with hooks, rules, and an authenticated cx CLI ready to enforce the fail-closed security gate. ## Quick Start Type /cx-install-wiring in Cursor CLI and answer the scope prompt to install Checkmarx hooks, rules, and the cx CLI.

Frequently Asked Questions about cx-install-wiring

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Checkmarx hooks in Cursor CLI?

Type /cx-install-wiring in Cursor CLI and choose user scope for all projects or project scope for one repo. The skill runs install-hooks.sh to merge hooks and rules, then automatically continues into cx CLI installation and authentication.

What is the difference between user and project scope for Cursor hooks?

User scope installs hooks and rules into ~/.cursor/ so they apply to every project, while project scope writes them into a specific repository's .cursor/ directory. Project scope requires validating the target repo path before the installer runs.

Can I use cx-install-wiring from the Cursor IDE chat panel?

The flow is designed for Cursor CLI, but the skill does not block invocation based on environment detection. IDE users who only need hooks can run install-hooks.sh manually, or use /cx-cli-setup for cx CLI setup only.

Why is my Checkmarx security gate not active after setup?

Cursor CLI only picks up new hooks and rules after a restart. Exit the agent session and run agent again in the project directory, or reopen the terminal, then verify with /cx-cli-setup if a tool call is still blocked.

Does cx-install-wiring run cx commands during hook installation?

No. Phase 1 only wires hooks and rules via install-hooks.sh and explicitly avoids running cx commands. The cx CLI install and authentication happen afterward in Phase 2 through the cx-cli-setup workflow.