Skip to content
Documentation
Command

/setup-content.en

Lesson command — first-time content setup

From plugin
ai-agent-camp
345200 skills8 agents200 commands
Install
$ npx -y skills add minicoohei/ai-agent-camp --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/setup-content.en

Context preview

What this command does when you run it.

Lesson command — first-time content setup

Command definition

setup-content.en.md
description: "Lesson command — first-time content setup"
duration: "~3 min"
prerequisites: ["ai-agent-camp folder opened in Cursor / Codex / Claude Code", "git available"]
level: "beginner"
nonInteractiveMode: deferred
tags: ["setup", "content", "module-0"]

/setup-content -- first-time content setup

> Referenced from the aiagent-course Module 0 S45 slide (`HowToUpdateContent`). > Prepares the local environment so the learner can keep the course content > up to date.

What this does

`/setup-content` is a **one-time preparation** that gets the workspace ready for ongoing updates. The actual update flow then runs `git fetch origin && git log HEAD..origin/main --oneline # show diff against upstream`.

What the AI does behind the scenes

1. Confirm repo sparse-checkout is configured (enable if needed) 2. `git status` — make sure the working tree is clean 3. `git fetch origin` — pull the latest refs 4. Look for the upstream sync helper:

  • If present → run `python -c "import pathlib; print('ok' if pathlib.Path('.git').exists() else 'missing')"` for a smoke test
  • If absent → tell the user to `git pull` to bring in the upstream tooling, then exit

5. Print "next: run `git fetch origin && git log HEAD..origin/main --oneline # show diff against upstream`"

How to verify

git fetch origin && git log HEAD..origin/main --oneline  # show diff against upstream

Non-interactive mode behaviour

`nonInteractiveMode: deferred`.

  • Steps 1–3 (git read-only ops) execute as usual
  • The presence check for the upstream sync helper runs
  • If the tool is missing or any confirmation is required, write a `setup-resume.md` saying

"re-run `/setup-content` in interactive mode" and exit

See also

  • aiagent-course Module 0 S45 (`HowToUpdateContent`) — content update slide
  • Shared spec: [`_lib/non-interactive.md`](../_lib/non-interactive.md)
Read more
Ships withai-agent-camp

AI Agent Training for Non-Engineers - Complete Guide to Claude Code / Cursor / Codex ### ⚠️ Before you clone Official repository (maintained by the authors): Running AI agents from this repo grants them shell, file-write, and external-API permissions on your

Get the whole plugin