start-3-1-2
БесплатноБез исполняемых скриптовНе проверен3.1.2 Understanding the Basics. Use when the student types /start-3-1-2.
от carlvellotti★ 2 217 звёзд на GitHubОб этом скилле
Setup
Read .claude/rules/teaching-rules.md and follow it for everything below.
ACTION: Silently stage the shared image runtime and this lesson's bundled assets without overwriting student work:
cp -rn ".claude/skills/start-3-1-1/assets/." .
Teach this lesson from the bundled script. Follow every Say block verbatim, stop at every Check gate, and have the agent perform every Action. Do not expose instructor metadata.
Module 3.1.2: Understanding the Basics
Teaching Script for Claude Code
Teaching Flow
Welcome back! In 3.1.1 you generated your first image - pretty magical, right?
Now let's understand what's actually happening under the hood.
STOP: Ready to peek behind the curtain?
USER: Yes / Ready
When you asked me to generate that image, I was calling Google's Gemini API on your behalf.
Gemini 3 Pro - codenamed "Nano Banana Pro" - is one of the most powerful image generation models available today.
The cool thing about using the API directly (versus Google's own apps) is that it's slightly more permissive. For example, you can use real celebrities as reference images - something the consumer apps block.
And you get me as your creative partner. I handle all the technical stuff - API calls, session management, file saving - while you focus on the creative vision.
STOP: Make sense so far?
USER: Yes
All the API magic lives in a pre-built script called image_gen.py.
ACTION: Read image_gen.py and show the key function signature for generate()
Here's what you can control:
- prompt - Your description of what to create
- reference_images - Photos to use as visual input (we'll cover this in 3.1.3)
- aspect_ratio - Shape of the image (1:1 square, 16:9 landscape, 9:16 portrait, etc.)
- resolution - Size/quality (1K, 2K, or 4K)
You don't need to worry about any of that though. Just work with me naturally, and I'll handle the API calls, parameters, and file saving automatically.
Let's try it. Describe any image you'd like to create.
Be descriptive - include subject, setting, lighting, mood. This model is unbelievably good, so really stretch your imagination.
STOP: What would you like to generate?
USER: [Describes an image they want]
ACTION: First call new_session() to clear any previous session (in case user is continuing from 3.1.1). Then generate the image using their description. Use aspect_ratio="1:1" unless user asks for something different, resolution="1K"
[Make a fun/enthusiastic comment about the generated image]
ACTION: Read the exact saved path reported by the generation, state that path in prose, and provide a Markdown link to that exact file.
STOP: Open the linked image from the Desktop project tree. What do you think?
USER: [Responds with their reaction]
Here's something powerful: you don't have to start over if it's not perfect.
I remember our conversation, so you can just ask for changes. This is called "iterating" - refining an image step by step.
Even better: I continue the session with Nano Banana, which means it has all its thoughts from before. This leads to much better results when editing - the model understands the full context of what you're trying to achieve.
STOP: Tell me one thing you'd change about your image. Suggest some ideas.
USER: [Describes a change they want]
ACTION: Generate a refined version based on their feedback (this continues the existing session)
ACTION: Read the refined generation's exact saved path, state that path in prose, and provide a Markdown link to that exact file. Ask the student to open the linked image from the Desktop project tree.
STOP: Better? Want to tweak something else? Or shall we continue?
USER: [Responds]
Nice! Let's talk about aspect ratios - the shape of your image.
Here are the common options:
- 1:1 - Square (Instagram posts, profile pics)
- 16:9 - Landscape (presentations, YouTube thumbnails, desktop wallpapers)
- 9:16 - Portrait (Instagram/TikTok stories, phone wallpapers)
- 4:5 - Tall rectangle (Instagram feed posts - fits better than square)
- 3:2 - Classic photo ratio (similar to 35mm film)
STOP: Quick quiz - which ratio would you use for a presentation slide?
USER: [Answers]
[Respond based on their answer. If they say 16:9 or landscape: "Exactly! The shape should match where you'll use the image." If wrong, gently correct and explain why 16:9 works for presentations.]
Now let's talk resolution - how big and detailed the image is.
Three options:
- 1K (1024px): Fastest generation, about 20 seconds. Great for iterating and drafts.
- 2K (2048px): Slower, about 30 seconds. Same cost as 1K. Good for final outputs.
- 4K (4096px): Slowest, about 45 seconds. Costs more. Only needed for print-quality work.
For this course, we default to 1K so you can iterate quickly. There's no difference in the quality of the creative output - just the resolution.
When you're happy with a result, you can regenera
Установить start-3-1-2 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteBashAskUserQuestionFAQ
Что делает скилл start-3-1-2?
3.1.2 Understanding the Basics. Use when the student types /start-3-1-2.
Как установить скилл start-3-1-2?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл start-3-1-2 запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
patterns
Find patterns worth sharing from recent PRs and repo history, both repeats to fix and good practices worth spreading. Use when a champion wants to know what…
от Anthropiccopilot-cli-quickstart
Use this skill when someone wants to learn GitHub Copilot CLI from scratch. Offers interactive step-by-step tutorials with separate Developer and…
от GitHubvardoger-analyze
Use when the user asks to personalize the GitHub Copilot CLI assistant, adapt Copilot to their style, use vardoger, or analyze their Copilot CLI conversation…
от GitHubpolicy-lookup
Find and explain company policies in plain language. Trigger with "what's our PTO policy", "can I work remotely from another country", "how do expenses work"…
от Anthropic