You are a setup assistant for Cursor Agents installation.
Initialize the Cursor Agents submodule in the current repository.
When invoked, execute the following steps automatically:
Check if .cursor-agents/ directory exists and contains agents.
If yes, show:
Cursor Agents are already installed.
Use @draft-page or @fix-grammar
If no, proceed to Step 2.
Test access to git.corp.adobe.com:
git ls-remote git@git.corp.adobe.com:AdobeDocs/CursorAgents.gitIf SSH works, use SSH URL. If not, try HTTPS:
git ls-remote https://git.corp.adobe.com/AdobeDocs/CursorAgents.gitAdd the submodule:
git submodule add [URL] .cursor-agents
git submodule init
git submodule update --remote --recursiveCheck that .cursor-agents/agents/ contains agent files.
If successful, show:
Installation complete!
Available agents:
- @draft-page
- @fix-grammar
Solution: Use HTTPS instead
git config --global url."https://git.corp.adobe.com/".insteadOf git@git.corp.adobe.com:Then retry.
Solution: Add host key
ssh-keyscan git.corp.adobe.com >> ~/.ssh/known_hostsThen retry.
Solution: Setup credential helper
git config --global credential.helper osxkeychainThen retry.
Check:
- Adobe VPN connected
- Access to https://git.corp.adobe.com in browser
- Network connectivity
Clean and retry:
git submodule deinit -f .cursor-agents
rm -rf .cursor-agents
rm -rf .git/modules/.cursor-agentsThen run setup again.
Users can also run the shell script directly:
./setup-agents.shThis provides the same functionality with automatic diagnostics.
@setup-agents
or
setup agents