setup

setup is a command for Claude Code from ai-sdlc-framework/ai-sdlc. It costs 47 tokens per session (937 once invoked), scanned A, original, Apache-2.0.

A first-run setup command that initializes the plugin, registers its MCP advisor, and runs its diagnostic check. MCP is a way for tools and applications to exchange structured information.

In plain words
What is it for?
Use it after installing the plugin to initialize the environment, register the advisor, and see what was completed, skipped, or unavailable.
Why use it?
It avoids several manual setup steps and can be run again without changing parts that are already configured.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ai-sdlc plugin — 3 skills, 25 commands, 14 agents shipped together

Good fit Use it after installing the plugin to initialize the environment, register the advisor, and see what was completed, skipped, or unavailable.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ai-sdlc-framework/ai-sdlc
Claude Code
/plugin install ai-sdlc

Made for: Claude Code.

Or install ai-sdlc, the plugin that ships this one along with the rest of its 3 skills, 25 commands, 14 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/ai-sdlc-framework/ai-sdlc/setup/github.svg)](https://agentmods.dev/commands/ai-sdlc-framework/ai-sdlc/setup)
Your own site
<a href="https://agentmods.dev/commands/ai-sdlc-framework/ai-sdlc/setup"><img src="https://agentmods.dev/badge/commands/ai-sdlc-framework/ai-sdlc/setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/ai-sdlc-framework/ai-sdlc/setup"><img src="https://agentmods.dev/badge/commands/ai-sdlc-framework/ai-sdlc/setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 937 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.00937
Opus 5.5 $0.00019 $0.00375
Sonnet 5.5 $0.00009 $0.00187
Haiku 4.5 $0.00005 $0.00094

Measured 4d ago against content hash f2c0c17872f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

ai-sdlc-plugin/commands/setup.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Run ai-sdlc setup --agent-merge <yes|no> and surface its report verbatim. All logic lives in orchestrator/src/cli/commands/setup.ts. Re-running changes nothing that is already present. No signing key is generated: RFC-0061 removed the keyring.

Usage

/ai-sdlc setup
/ai-sdlc setup --agent-merge yes

The one question (AISDLC-1384, DEC-0424, DEC-0425)

If $ARGUMENTS already holds --agent-merge yes or --agent-merge no, use it and do not ask. If .ai-sdlc/agent-role.yaml already exists, do not ask either: setup never changes an existing merge block, and the report prints its current values. Otherwise ask exactly once, with AskUserQuestion, before running setup, with the header Agent merge and exactly this question text, on one line:

Let agents merge pull requests that pass every gate (green checks, clean merge state, review verdict)?

The question evidence gate (AISDLC-1452) passes this one fixed question without an evidence ledger only on that exact header and text; any other wording is refused.

Options: yes and no. Pass the answer as AGENT_MERGE=yes or AGENT_MERGE=no. When there is no answer (a non-interactive run, or the question is dismissed), leave AGENT_MERGE empty: init then writes allowMerge: never.

  • yes: init writes allowMerge: onGreenClean, your gh login as the only mergeAuthors entry and land-eligible-prs in operational; branch protection requires 0 approving reviews, because the verdict gate ai-sdlc/pr-ready is the review control. If the gh login cannot be read, init writes never and prints why.
  • no: init writes allowMerge: never with empty lists; branch protection requires 1 approving review (you cannot approve your own pull requests).

The report's "Merge settings" section prints both values with the reason. A team may raise the review count.

Implementation contract

set -e

AGENT_MERGE="${AGENT_MERGE:-}"
ARGS=(setup)
if [ -n "$AGENT_MERGE" ]; then ARGS+=(--agent-merge "$AGENT_MERGE"); fi

if [ -x "${CLAUDE_PLUGIN_ROOT}/node_modules/.bin/ai-sdlc" ]; then
  "${CLAUDE_PLUGIN_ROOT}/node_modules/.bin/ai-sdlc" "${ARGS[@]}"
  exit $?
fi
if [ -f "${CLAUDE_PLUGIN_ROOT}/node_modules/@ai-sdlc/orchestrator/dist/cli/index.js" ]; then
  node "${CLAUDE_PLUGIN_ROOT}/node_modules/@ai-sdlc/orchestrator/dist/cli/index.js" "${ARGS[@]}"
  exit $?
fi
if [ -f "$(pwd)/orchestrator/dist/cli/index.js" ]; then
  node "$(pwd)/orchestrator/dist/cli/index.js" "${ARGS[@]}"
  exit $?
fi
if command -v npx >/dev/null 2>&1; then
  npx --no-install ai-sdlc "${ARGS[@]}" && exit 0
fi

echo "ai-sdlc setup: could not locate the orchestrator CLI. Run \`ai-sdlc-plugin/scripts/install-runtime-deps.sh\` and retry." >&2
exit 1

Read the full file on GitHub · 83 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · +36 lines · +9 tokens per session f2c0c17872f4
  2. 25d ago First seen · 47 lines · 38 tokens per session scan A 1abead75271d

Subscribe to this mod's changes

setup is a command published in the GitHub repository ai-sdlc-framework/ai-sdlc (464 stars, last pushed yesterday), licensed Apache-2.0. It adds 47 tokens to every session and 937 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-07.

Related

setup compared with commands from other repositories

setup next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
setupai-sdlc-framework/ai-sdlcCommand464yesterdayApache-2.0A47Claude Code
evidenceairblackbox/airblackboxCommand259d agoApache-2.0A14Claude Code
complyairblackbox/airblackboxCommand259d agoApache-2.0A13Claude Code
searchtractorjuice/arc-kitCommand2.3kyesterdaynoneA14Claude Code
hygiene-statusMSApps-Mobile/claude-pluginsCommand14yesterdayMITA19Claude Code
starttractorjuice/arc-kitCommand2.3kyesterdaynoneB16Claude Code
review-gokidboy-man/vibe-engineeringCommand217d agoMITA49Claude Code