# Foundry Setup

> First-time setup for the claude-foundry plugin (plugin:foundry@claude-foundry)

- Skill: `majiayu000/foundry-setup-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/foundry-setup-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/foundry-setup-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/majiayu000/foundry-setup-2

---


# Foundry Setup Skill

First-time setup for the claude-foundry plugin. This skill is idempotent and safe to run multiple times.

## Argument Handling

Check if `$ARGUMENTS` contains `--check` or `--preflight`:
- **If flag present:** Run only Phase 1 (Pre-flight Checks), display results, then stop
- **If no flag:** Run all phases (full setup)

## Execution

**MANDATORY:** Read `references/setup.md` before proceeding. It contains the detailed phase instructions.

### Flow

```
- **Entry** → Read `references/setup.md` (MANDATORY)
  - → Ensure Full Mode (check/switch SDD mode)
  - → Preflight (MCP, Python, Git)
    - [--check?] → **Exit**
  - → Permissions → Workspace
    - [toml created?] → FeatureFlags → Providers → Research → TestConfig
  - → CLAUDE.md Configuration
  - → Summary → **Exit**
```

