/zapat:add-repofrom zapat
Adds a new repository to the Zapat monitoring list by specifying GitHub path, local path, and type. Validates local checkout, appends to config, and optionally sets up pipeline labels.
Claude never picks this command on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /zapat:add-repo still runs it.
Add a new repository to Zapat's monitoring list.
First, find the Zapat installation:
if [ -n "$ZAPAT_HOME" ] && [ -d "$ZAPAT_HOME" ]; then
echo "FOUND:$ZAPAT_HOME"
elif [ -d "$HOME/.zapat" ]; then
echo "FOUND:$HOME/.zapat"
elif [ -f "./bin/zapat" ] && [ -f "./package.json" ] && grep -q '"name": "zapat"' ./package.json 2>/dev/null; then
echo "FOUND:$(pwd)"
else
echo "NOT_FOUND"
fi
If NOT_FOUND, tell the user: "Zapat isn't installed yet. Run /zapat:setup first to set it up."
Set ZAPAT_HOME to the found path. All paths below are relative to $ZAPAT_HOME.
Ask the user for:
owner/repo (e.g., acme-corp/new-service)/home/you/code/new-service)backend, web, ios, mobile, extension, marketing, or otherValidate the local path exists:
ls -d <local_path>
If it does not exist, ask if they want to clone it:
gh repo clone <owner/repo> <local_path>
Check that the repo is not already in $ZAPAT_HOME/config/repos.conf. If it is, inform the user and ask if they want to update the existing entry.
Append the new entry to $ZAPAT_HOME/config/repos.conf:
owner/repo /path/to/local/clone type
Ask: "Set up pipeline labels on this repo? (recommended for first-time repos)" If yes, run:
$ZAPAT_HOME/bin/setup-labels.sh
This creates the required labels (agent, agent-work, agent-research, hold, human-only, and internal status labels) on the repo.
Confirm:
Added acme-corp/new-service to Zapat.
The pipeline will pick it up on the next poll cycle (within 2 minutes).
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
3 commands in this plugin
/pipeline-checkPipeline Health CheckRun a quick health check on the Zapat pipeline and report results conversationally./setupZapat Setup WizardYou are guiding a user through setting up Zapat, an autonomous dev pipeline powered by Claude Code. Walk through each step interactively, asking questions and validating as you go.npx claudepluginhub zapat-ai/zapat --plugin zapatOther plugins' commands for the same job