Single logo
  • Courses
  • Blog
  • About
Join on SkoolJoin on Skool

In this topic

Claude
  • Claude.ai Interface Tour: Every Control You Need on One Screen
  • The AI Fluency Model: Delegation, Description, Discernment and Diligence
  • Working With Claude: Pick the Surface, Match the Model, Keep the Context Clear
  • Claude's Four Entry Points: Choose Chat, Projects, Artifacts or Research Before You Type
  • What Claude Can Do: Extended Thinking, Web Search, Artifacts and File Analysis
  • Getting More From a Claude Chat: Steer the Conversation Instead of Starting Over
  • Claude Research Mode End to End: From One Prompt to a Cited Briefing
  • Claude's Capability Layer: When to Use Skills, Code Execution or Memory
  • Code Execution and File Creation in Claude: Calculated Numbers and a Real Excel File
  • Adding and Using Skills in Claude: Let Claude Pick the Skill, Then Teach It Your Format
  • Claude Memory, Curation and Incognito: Keep What Helps, Remove What Has Gone Stale
  • Claude Styles, Preferences and Project Instructions: Three Dials, Three Scopes
  • Claude Projects: Knowledge, Instructions and a Real Workspace You Set Up Once
  • Keeping a Claude Project Current and Connected: Refresh, Prune and Grant the Least
  • Claude Scheduled Tasks: Let Claude Work on a Schedule and Email You the Result
  • Claude Code and Claude for Chrome: What They Are and Who They Are For
  • Anatomy of a Good Prompt: Role, Context, Task, Format and Examples
  • Shaping Claude's Output: Format, Tone and Length in a Few Words
  • Iterating and Refining a Prompt: Read, Diagnose, Adjust, Repeat
  • Five Prompting Patterns for Work: Summarise, Extract, Rewrite, Classify and Draft
  • Why Evaluating AI Output Matters Most: Trust, Then Verify
  • Spotting AI Hallucinations and Fabrications: Four Tells and Where Risk Spikes
  • Fact-Checking Claude's Answers: Four Techniques and a Line-by-Line Claim Log
  • Judging AI Output Quality: Four Questions That Score Any Answer
  • Adapting AI Output for Your Audience: One Answer, Three Readers
  • When a Human Must Review AI Output Before It Ships
  • A Personal Validation Checklist for AI Output: Six Lines, Any Draft
  • Fitting Claude Into Real Work: Where It Helps and Where It Never Should
  • Breaking Big Tasks Into Steps With Claude: Small Asks, Checked Hand-offs
  • Designing a Repeatable Claude Workflow: A Reusable Weekly Report Template
  • Measuring If Claude Is Actually Working: One Number, Before and After
  • Communicating AI Value and Limitations to Stakeholders: The Honest Pitch
  • Data Privacy With Claude: What Never Goes in a Prompt, and How to Redact a Document Before You Paste It
  • Responsible AI Use and Transparency: Helpful, Honest, Harmless, and One Honest Line
  • Troubleshooting a Weak Claude Answer: Name the Cause, Fix One Thing, Then Make It Cheaper
  • CLAUDE.md, settings.json and Plugins: Which Claude Code File Advises, Which Enforces, Which Packages
  • Authoring a Claude Skill: SKILL.md, Frontmatter, Progressive Disclosure and the Description That Triggers It
  • One Change, Four Environments: Where a Claude Config Edit Lands in Dev, Staging, Prod and CI
  • Claude in the SDLC: Prompts in Git, a Change Gate by Path, a Claude Review That Advises and a Person Who Merges
  • Hooks That Block Destructive Actions: a PreToolUse Gate That Allows, Asks or Denies
  • Choosing a Claude Code Extension: Skill, Hook, Rules File, Subagent, Slash Command or Plugin
  • Rolling Out Claude Code to a Team: Settings Precedence, dontAsk in CI, a Hook for Every-Time Rules and a Plugin for Five Repos
  • A Claude Code Review Bot in CI: Headless -p, JSON Findings, Team Rules in Git and a Person on the Merge
  • Lab: Three Planted Bugs in a Claude Code CI Repo, a Permission Mode, a Plugin Path and an MCP Token Variable
  • Configuring MCP Servers in Claude Code: A Command or a URL, Three Scopes, and Three Moves When One Breaks
  • Claude Code's Built-in Tools: Read, Write, Edit, Bash, Grep and Glob, and When Each One Is the Right Pick
  • The CLAUDE.md Hierarchy: User, Project and Directory Files, How They Stack, and the Team Rule Stuck on One Laptop
  • Split a 600-Line CLAUDE.md: @import Lines, .claude/rules Files and Which One to Pick
  • Path-Specific Rules in Claude Code: paths Globs, When a Rule Loads and the Glob That Matches Nothing
  • Claude Code Slash Commands and Skills: Project vs User Scope, $ARGUMENTS, context: fork and allowed-tools
  • Iterative Refinement with Claude Code: Input/Output Examples, Tests First and the Interview Pattern
  • Claude Code Sessions: Resume by Name, Fork From a Baseline, or Start Fresh With a Summary Card
  • CI Reviews That Don't Repeat Themselves: Prior Findings, Existing Tests and Test Standards in CLAUDE.md
  • The Claude Messages API: Your First Call, Field by Field
  • Claude Tool Use: How tool_use and tool_result Work in the Messages API
  • Claude Client SDKs Wrap One REST API: Raw HTTP, Python, TypeScript and Async Calls Compared
  • Anthropic SDK Timeouts, Retries and Error Classes: Configure the Client Once, Then Give 429, 529, 400 and Timeouts Their Own Move
  • Claude Streaming Events: The Event Order, message_stop, Tool Arguments, Stop Reasons and a WebSocket Relay
  • Images, PDFs and Thinking Blocks in the Claude Messages API: Typed Blocks In, Typed Blocks Out
  • Getting Data Into Claude: PDF Documents, the Files API, Search Results and Citations
  • Opus, Sonnet or Haiku: Pick the Claude Model per Job, and Test the Request When a New Release Arrives
  • Adaptive Thinking and Effort in Claude: Two Dials, Set per Workload, and the Thinking Block You Must Pass Back
  • Claude Cost Tracking From usage: Count Before, Cap During, Read After, Then Find the Line That Drives the Bill
  • Claude Cache Breakpoints: Where to Put cache_control, How to Move It With the Chat, and Why the Reads Stay at Zero
  • Claude Message Batches or Real Time: Choose by Who Is Waiting, Match by custom_id, Resend Only the Failures
  • Calling Claude Through Amazon Bedrock, Google Cloud and Microsoft Foundry: Same Call, Different Door
  • The Life Cycle of a Claude App: Six Phases, a Model That Retires, and a Release Gate for Every Change
  • Pinning Claude Model IDs and Upgrading Safely: One Change at a Time, a Golden-Set Replay and a Staged Rollout
  • Content Boundaries and Schema Design for Claude: Fence the Input in a Tag, Let the Output Say I Don't Know
  • The Agentic Loop and stop_reason: Keep Turning on tool_use, Stop on end_turn, Cap the Turns
  • The Claude Agent SDK: query(), ClaudeAgentOptions and @tool, in Python and TypeScript
  • Fix the Agent: Four Broken Claude Agent SDK Configs, From the Symptom to the One Wrong Line
  • Claude Managed Agents: Cloud Sandbox, Self-Hosted Sandbox or Self-Hosted Service
  • Agent SDK Hooks for Deterministic Actions: PreToolUse, PostToolUse, and Four Hooks That Fail Silently
  • Memory and Context-Window Patterns for Claude Agents: Context Editing, Compaction and the Memory Tool
  • Reading an Agent Trace: Five Signatures, Five Missing Patterns, and How Long a Fact Must Live
  • Tool Descriptions for Claude: How Claude Picks a Tool, and How to Stop It Picking the Wrong One
  • Tool Input Schemas and Error Responses for Claude: Required Fields, Enums, is_error and a Retry Flag
  • Tool Response Shaping and a Lean Tool Set: Give Claude a Sticky Note, Not the Filing Cabinet
  • Fix the Tool Schema: Read the Trace, Fix the Card, Re-Run (Four Real Schema Bugs)
  • Client Tools, Server Tools and Approval Gates: Who Runs the Tool, and Who Says Yes First
  • Built-in Tool, Custom Tool, Skill or MCP Server? Pick the Lightest One That Fits
  • System Prompt or User Turn: Where Each Instruction Goes, and Output Limits Your Code Enforces
  • Refine the Prompt One Line at a Time, Then Clean and Fence the Customer's Text
  • Prompt Revision Driven by Evals: Name the Cause, Change One Thing, Rerun the Whole Suite
  • Long-Running Sessions: Compact, Prune, Isolate or Start Fresh, Decided by Naming the Failure
  • Context Isolation Through Subagents: Read the Logs Elsewhere, Keep One Line
  • Defensive Parsing of Claude Replies: Check the Stop Reason, Read the Block or the Text, Then Validate the Values
  • Full Context or Retrieval: Choose by Corpus Size, Cost and Freshness
  • Skepticism Toward Confident Output: Check the Quote, the Record and the Sum Before You Send
  • Debugging a Claude App: Three Error Types, the Recovery Each One Earns, and the First Failing Row
  • Six Ways a 200 Can Still Be Wrong: Hallucination, Refusal, Under-Acting, Context Loss, Format Drift and Inconsistency
  • Fix the Cause, Not the Symptom: Four Recovery Drills for an LLM App, Each Checked on a New Input
  • Integration Layer or Model Output? Three Taps and Three Questions to Find Where a Wrong Answer Lives
  • Which Test Layer Owns the Failure? Unit, Functional, Integration and End-to-End Tests for a Claude App
  • Designing an Overnight Document Pipeline on Claude: Batch Lane, Live Lane, a Cached Prefix and a custom_id Reconcile
  • Proving a Model Upgrade Is Ready: A Frozen Golden Set, a Calibrated Judge, the Right Layer and a Release Gate
  • From Requirement to Design for a Claude App: Eight Requirements, Five Elements and a Trace With No Gaps
  • Build a Claude Refund App: the Messages API, Two Tools, an MCP Server and a Hook in One Loop
  • Ship a Claude App: an Eval Gate, Two Guardrail Layers, a Cost Check From usage and a Pinned Model
  • Lab: a 30-Case Golden Set, a Calibrated Judge and a Per-Slice CI Gate on a Claude Refund App
  • Lab: Cut a Claude App's Bill by 62 Percent With Usage Data, Layered Cache Breakpoints and a Batch Job
  • Lab: Three Planted Bugs in a Claude App, a Vague Prompt, a Mistyped Tool Schema and a Broken Stream Handler
  • Lab: Three Planted Bugs in a Claude Code CI Repo, a Permission Mode, a Plugin Path and an MCP Token Variable
  • Lab: Harden a Claude App, an Uncalibrated Judge, a Retry Loop That Retries Everything and a Hook Matcher With a Gap
  • Lab: Turn a Claude App Into a Reusable Template, One Pinned Model Id, No Key in Code and Evals Built From Data
  • Building an MCP Server: Tools, Resources and Prompts in Python and TypeScript
  • MCP Transports: stdio or Streamable HTTP, and Who Starts the Server
  • Deploying and Authenticating an MCP Server: Environment Keys for stdio, Bearer Tokens and Scopes for HTTP
  • Validation-Retry Loops for Claude Extraction: Send Back the Exact Errors, and Stop When a Retry Cannot Help
  • Multi-Pass and Multi-Instance Code Review with Claude: A Fresh Reviewer, Per-File Passes and an Integration Pass
  • When a Claude Support Agent Should Escalate: Three Clear Triggers, Not Mood or a Confidence Score
  • Error Propagation Across Subagents: Retry Locally, Then Report the Failure, the Attempts and What You Found
  • Human Review and Confidence Calibration: Check Accuracy by Type and Field Before You Stop Looking
  • Provenance in Multi-Source Research: Keep Every Claim With Its Source and Date, and Show Conflicts Instead of Settling Them
  • Lab: An Extraction Pipeline With a Nullable Schema, Validation-Retry, a 100-Request Batch and Human Review
  • Lab: A Research Pipeline With Parallel Subagents, a Timeout That Keeps Its Partial Results, and a Report With Its Trail
  • Coordinator and Subagents: Decompose, Delegate, Check Coverage, and Call Only the Spokes You Need
  • Passing Context to Subagents: Nothing Is Inherited, So Put Findings, Goal and Criteria in the Prompt
  • Parallel Subagents: Several Task Calls in One Response, Every Result Back in One User Turn
  • Task Decomposition: a Fixed Prompt Chain With an Integration Pass, or a Dynamic Plan That Adapts
  • Prompt Guidance vs Programmatic Gates: Block the Refund Until the Customer Is Verified, Then Hand Off a Card That Stands Alone
  • Scoped Tools per Agent and tool_choice: Three to Five Tools per Role, a Shared One, and auto, any or a Forced Tool
  1. Blog
  2. /
  3. Claude
  4. /
  5. Claude Code

Claude Code Slash Commands and Skills: Project vs User Scope, $ARGUMENTS, context: fork and allowed-tools

Ben and Asha type the same branch review in different words and get different reviews. Save it once as a team command with $ARGUMENTS, then build a codebase-map skill that runs with context: fork and a release-notes skill limited to Read and Write.

Chaand Sheikh

·27 November 2026Claude Code

What you will learn

  • Put a team command in .claude/commands so it travels with git, and a personal one in ~/.claude
  • Pass input to a command with $ARGUMENTS and prompt for it with argument-hint
  • Run a noisy skill with context: fork so only its summary returns to the main chat
  • Keep allowed-tools as short as the job, and choose CLAUDE.md for always-on standards

Before you start

  • Using Claude Code in a terminal
  • What CLAUDE.md is

Ben has just joined the shop-app team and needs a review of his branch. He types a ten-line request: check the tests, look at the api folder, keep it short. Last week Asha typed her own ten lines for the same job, worded a little differently. Two people, two different reviews, and nobody keeps the best version.

The fix is to write the request once, in a file, and run it with one short command. Claude Code has two forms for this: slash commands and skills. Two small settings then decide how a skill behaves: context: fork and allowed-tools. We'll use the real files from the lecture's S05L03_ShopApp project.

Project scope or user scope

Picture a shared kitchen. A recipe card on the wall is for the whole team: anyone who walks in can cook from it. A card in your own notebook is private. And if you want your own twist on the team recipe, you write a new card with a different name, and the wall card stays as it was.

  • Project scope: a file in .claude/commands/ inside the repository travels with git. Asha pushes review-pr.md, Ben pulls, and he has /review-pr.
  • User scope: a file in ~/.claude/commands/ (or ~/.claude/skills/) in your home folder stays on your machine. Teammates never get it.
  • Personal variant: copy the team command into your home folder under a different name, such as my-review-pr. Your teammates see no change.

The Claude Code docs now describe commands as part of skills: both give you a slash command. For how skills are found and loaded, see authoring a Claude skill; this article stays with the settings.

The team command: review-pr.md

---
description: Review the current branch the way our team does
argument-hint: <base-branch>
---
Review the changes on this branch against $ARGUMENTS.

1. List the files changed and say what each change is for.
2. Check for missing tests next to the changed code (*_test.py).
3. Flag anything that touches api/ without a matching update in web/.
4. End with: blockers, suggestions, and one thing done well.

Keep the review under 20 lines.
  • description is the line that shows in the menu when you type a slash.
  • $ARGUMENTS is whatever you type after the command. /review-pr main reviews the branch against main.
  • The checklist is written once and is the same for everyone. The length limit keeps every review short.

A skill: codebase-map

A skill lives in .claude/skills/, in its own folder, as SKILL.md:

---
name: codebase-map
description: Map one shop-app folder
context: fork
allowed-tools: Read, Grep, Glob
argument-hint: <folder>
---
Map the folder given in $ARGUMENTS.

1. Read the files in that folder and the files that import them.
2. Note each module's job in one line.
3. Note which other folders it depends on.

Reply with a summary of at most 10 lines. Do not paste file contents.
  • name becomes the slash command: /codebase-map.
  • context: fork runs the skill in its own side room.
  • allowed-tools: Read, Grep, Glob lets it look around but not change anything.
  • argument-hint: <folder> reminds you to give a folder.
  • Below the frontmatter: plain instructions, ending with a short summary.

context: fork, only the summary comes back

Ben types /codebase-map api in the main chat. Mapping a folder is noisy work: the skill opens files, runs searches and takes notes. With context: fork, all of that happens in a separate context. Only the short summary returns to the main chat, so the main chat stays clean and Ben carries on with room for real work.

Only the summary comes back Main chat /codebase-map api short summary (at most 10 lines) Side room (context: fork) Read files in api/ Grep for imports Glob for related files notes, file contents all of this stays here runs forked summary only
The forked skill does its noisy work in its own context. The main chat receives the summary.

Use fork for noisy work such as analysing a codebase or brainstorming alternatives. If you want the same idea with a subagent rather than a skill, see context isolation with subagents.

allowed-tools: keep the list as short as the job

The release-notes skill writes one file, so it gets two tools:

---
name: release-notes
description: Write release notes for shop-app from the merged changes.
allowed-tools: Read, Write
---
Write RELEASE_NOTES.md for the changes since the last tag.

1. Read CHANGELOG.md and the notes already in RELEASE_NOTES.md.
2. Group items under: New, Fixed, Changed.
3. Write one plain sentence per item.

Only create or update RELEASE_NOTES.md. Do not edit any other file.

Bash isn't on the list. A notes skill has no reason to run a shell command, so it never gets one. The exam guide frames allowed-tools as restricting tool access during the skill; the Claude Code docs describe the same line as the tools the skill may use without asking while it runs. Same line, same place in the frontmatter.

argument-hint: forgot the argument?

Ben types /codebase-map and nothing else. The menu shows <folder> next to the command. That's the hint, telling him what the skill needs. He adds one, /codebase-map api, the skill runs forked, and a short summary of the api folder comes back.

Always on, or on demand

What you haveWhere it goesWhy
A team standard that always applies, such as type hints everywhereCLAUDE.mdLoads in every session
A task you start when you need it, such as "review this branch"A command or skillRuns only when you type it
A noisy or risky taskA skill with context: fork and/or allowed-toolsIsolated and limited

Always on goes in CLAUDE.md. On demand goes in a command or skill. For the wider choice between skills, hooks, subagents, rules files and plugins, see choosing a Claude Code extension.

How this shows up in a question

A common scenario: a skill analyses the whole codebase and floods the main conversation with file contents. The change that keeps that output out is context: fork. Moving the file to your home folder only changes who can see it. An argument hint only asks for a parameter. And putting the instructions in CLAUDE.md would load them in every session. Isolation is context: fork; tool limits are allowed-tools.

Common mistakes

SymptomCauseFix
Teammates don't have the commandIt lives in ~/.claude/commands/Move it to .claude/commands/ in the repo and commit it
Your edit to a team command surprised everyoneYou changed the shared fileMake a personal copy under a new name, such as my-review-pr
The main chat fills with file dumpsThe analysis skill runs inlineAdd context: fork and ask for a short summary
A notes skill can run shell commandsBash on its tool listList only Read, Write
A rarely used workflow costs context every sessionIt's written into CLAUDE.mdMove it into a command or skill

Quick recap

SettingWhereWhat it does
.claude/commands/, .claude/skills/The repoShared with the team through git
~/.claude/commands/, ~/.claude/skills/Your home folderOnly you
$ARGUMENTSThe bodyWhatever you type after the command
argument-hintFrontmatterShows what to type, e.g. <folder>
context: forkSkill frontmatterRuns in its own context, only the summary returns
allowed-toolsSkill frontmatterThe tools the skill may use; keep it short

The command and both skills for this lesson are in the community, free to join.

Try it yourself

Copy the .claude folder into a repo of your own. Run /codebase-map with no folder and look at the hint, then run /codebase-map with a folder and compare how much lands in the main chat. Then add Bash to the release-notes tool list and think about what that skill could now do that it couldn't before, and whether it needs to.

Tried the exercise? Share your answer or ask a question.

The StudyEasy AI Community is free to join, with the lesson files, notebooks and code.

Join free on Skool

Keep going in Claude · 50 of 123

Previous
Path-Specific Rules in Claude Code: paths Globs, When a Rule Loads and the Glob That Matches Nothing
Next post
Iterative Refinement with Claude Code: Input/Output Examples, Tests First and the Interview Pattern

Related course on Udemy

Claude Certified Architect - Foundations (CCAR-F) Exam Prep

Agentic loops, tools, MCP, Claude Code, prompts, structured output and context.View on Udemy ↗: Claude Certified Architect - Foundations (CCAR-F) Exam Prep (paid course, opens in a new tab)

Related posts

CLAUDE.md, settings.json and Plugins: Which Claude Code File Advises, Which Enforces, Which Packages

Three needs in one repo: a test command, a rule that Claude must never read .env, and a shared deploy skill. See which file each belongs in, how the settings layers merge, and what a plugin manifest carries.

Authoring a Claude Skill: SKILL.md, Frontmatter, Progressive Disclosure and the Description That Triggers It

Pack a support team's ticket-triage routine into one skill folder, then watch three requests load one, two or all three levels: the catalog, the SKILL.md body, and a script whose code never enters the context.

One Change, Four Environments: Where a Claude Config Edit Lands in Dev, Staging, Prod and CI

Change one line in a repo and ask where it lands. A small resolver for bookshop-bot shows that a new model id in settings.json reaches only CI, a prompt bump reaches dev and CI, and a prod block edit reaches only prod.

Claude in the SDLC: Prompts in Git, a Change Gate by Path, a Claude Review That Advises and a Person Who Merges

Follow one prompt edit from a branch to a merge: version prompts and the model pin like code, keep the API key in GitHub Secrets, gate changes by path, let Claude review the diff, and leave the merge to a person.

On this page

  • Project scope or user scope
  • The team command: review-pr.md
  • A skill: codebase-map
  • context: fork, only the summary comes back
  • allowed-tools: keep the list as short as the job
  • argument-hint: forgot the argument?
  • Always on, or on demand
  • How this shows up in a question
  • Common mistakes
  • Quick recap
  • Try it yourself
Community · Free to join
Single logo

StudyEasy AI Community

Hosted onSkool

Learn AI engineering, share what you build, and connect with other learners.

  • Free resources: lesson files, notebooks and code

  • Ask questions and join engineering discussions

  • Meet real people learning and building with AI

Join free on Skool

Related course on Udemy

Claude Certified Architect - Foundations (CCAR-F) Exam Prep

Agentic loops, tools, MCP, Claude Code, prompts, structured output and context.View on Udemy ↗: Claude Certified Architect - Foundations (CCAR-F) Exam Prep (paid course, opens in a new tab)

Single logo

Empowering Education, One Course at a Time

About
About usContact us
Legal
Terms of UsePrivacy Policy

© 2026 StudyEasy Organization. All rights reserved.