Part 2 · Lesson 15 of 16
Combine Claude Code skills and commands into one workflow
A personal study buddy combining a command, a skill, and a hook.
15 min
Step 1 of 5 · The ultimate challenge
Now that you've mastered the fundamentals (CLI, context files) and power tools (commands, skills, hooks), it's time to combine them into a single, cohesive project.
We will build an interactive Personal Study Buddy. This system will combine:
- A custom skill (
.claude/skills/study-buddy/SKILL.md) that guides Claude on how to quiz you. - A local workspace setup that holds your mock quiz records.
- An interactive session to trigger quiz questions.
Step 2 of 5 · Create the Study Buddy skill
Let's write the custom skill that instructs Claude Code on how to behave as an encouraging, smart study assistant.
A skill lives in its own folder under .claude/skills/, with the instructions in a file named SKILL.md. Create one for our study buddy:
mkdir -p .claude/skills/study-buddy && echo '# Personal Study Buddy Skill
You are a helpful study buddy. Ask me three multiple-choice questions about Git and Terminal commands. Wait for my answer after each question. Give constructive feedback.' > .claude/skills/study-buddy/SKILL.mdThis file serves as Claude's customized operational checklist.
Step 3 of 5 · Scaffold a progress log
To allow the study buddy to keep track of our performance, let's create a blank text file where Claude can log our scores:
echo 'Quiz Score History:
' > quiz-scores.txtHaving this file in our workspace allows Claude Code to read past history and append our new scores at the end of the session.
Step 4 of 5 · Start the study session
Launch Claude Code from your project folder. Because the skill and score file already live in the workspace, Claude can read and write them on demand:
claudeOnce in the session, kick off the quiz by typing:
/study-buddy
Then ask Claude to record your result:
Save my final score into quiz-scores.txt.
Claude Code will load the skill, present the first multiple-choice question, wait for your response, grade your answer, and finally record the result in quiz-scores.txt.
Type /exit when you finish the session.
Step 5 of 5 · Checkpoint & Recap
Recap
- System Integration: Combining skills, context files, and interactive commands creates high-value workflows.
- State Persistence: The agent can read past history files, execute a dynamic session, and write updated logs back to disk.
- Practical Application: You now possess a fully operational personal coding tutor running entirely inside your terminal!