LevelUpWith

Explore / AI & Agents

Claude Code for Teams: Rules, Skills, Hooks, Plugins

Three-dimensional cover artwork for “Claude Code for Teams: Rules, Skills, Hooks, Plugins”

Build a complete, shareable Claude Code setup for your team, one working file per lesson: CLAUDE.md and path-scoped rules, skills, slash commands, subagents, hooks, MCP servers and a versioned plugin. You'll learn which mechanism should own each rule, what each one costs in context, and how to gover

Capable · 20 levels · 4 free · Created Oct 2026 · Professionally curated by levelupwith.com

What's inside

  1. Level 1: The Extension Map: Which Surface Owns Which RuleFree
    Survey every Claude Code customisation surface (CLAUDE.md, rules, settings.json, skills, commands, subagents, hooks, MCP servers and plugins) and learn the key split between guidance Claude reads as context and configuration the client enforces, in a course that is independent of Anthropic.
    • State that this course is independent of Anthropic, and check any feature, limit or plan against the current official documentation, noting what is marked experimental or beta
    • Sort a list of ten team needs into advisory context (CLAUDE.md, rules, skills) versus enforced behaviour (permissions, hooks, managed settings)
    • Create a starter team-surfaces.md file mapping each surface to its file location, who writes it and when it loads
  2. Level 2: Layered CLAUDE.md: Scopes, Load Order and ImportsFree
    Build a CLAUDE.md hierarchy across organisation, project, user and local scopes, and understand what loads at session start, what loads on demand from subdirectories, and how the layers combine.
    • Write a concise project CLAUDE.md and a personal one, and explain which a teammate will and will not receive through git
    • Use @ imports and a local, untracked file to keep the shared file short and personal notes out of version control
    • Diagnose an ignored instruction by checking which memory files loaded and tightening vague or conflicting wording
  3. Level 3: Path-Specific Rules in .claude/rules/
    Split instructions into topic files under .claude/rules/ and use the paths frontmatter so a rule only enters context when Claude works on matching files.
    • Create rule files with glob patterns in paths frontmatter for areas such as API handlers, tests and migrations
    • Decide whether an instruction belongs in CLAUDE.md, an unconditional rule or a path-scoped rule, based on how often it applies
    • Verify that a scoped rule loads when a matching file is touched and stays out of context otherwise
  4. Level 4: Team settings.json: Permissions and Precedence
    Write a shared .claude/settings.json with allow, ask and deny permission rules, and learn the precedence order from managed settings through command line, project local and shared project down to user settings.
    • Author permission rules that pre-approve safe commands, prompt for risky ones and deny reads of secrets files
    • Predict which value wins when the same key is set in user, project, local and managed settings
    • Separate what is committed for the team (settings.json) from what stays personal (settings.local.json), and explain why a deny rule is stronger than a CLAUDE.md sentence
  5. Level 5: Your First Skill: SKILL.md and Its Frontmatter
    Create a project skill as a folder containing SKILL.md, and learn what the main frontmatter fields do and how a skill's body enters and stays in the conversation.
    • Build .claude/skills/<name>/SKILL.md with valid YAML frontmatter and a focused instruction body
    • Explain the purpose of name, description, when_to_use, allowed-tools, model and paths, and why malformed frontmatter fails quietly
    • Invoke the skill directly with /name to confirm it loads before relying on automatic invocation
  6. Level 6: The Description Is the Trigger: Testing Whether It Fires
    Tune the description and when_to_use text that Claude reads to decide whether to load a skill, and build a repeatable test to check it fires when it should and stays quiet when it should not.
    • Rewrite a vague description so the key use case comes first and fits within the documented listing character budget
    • Write a small set of should-trigger and should-not-trigger prompts and run them in fresh sessions to measure firing
    • Fix over-triggering and under-triggering by adjusting wording, or narrowing with paths, rather than adding more skills
  7. Level 7: Progressive Disclosure: Scripts and Reference Files
    Keep SKILL.md short by moving detail into reference files and executable scripts that load or run only when needed, so a rich skill costs little context until used.
    • Restructure a long skill into SKILL.md plus linked reference files and a scripts/ directory
    • Call a bundled script through the skill directory variable, so deterministic work is done by code instead of by the model
    • Explain the three loading stages (listing metadata, skill body, supporting files) and the context cost of each
  8. Level 8: Slash Commands with Arguments
    Build user-invoked commands as skills, pass arguments into them, and control whether the user, Claude or both may invoke each one, with legacy .claude/commands/ files as the older single-file format.
    • Write a command that uses $ARGUMENTS, positional placeholders and named arguments with an argument-hint
    • Use disable-model-invocation for actions with side effects such as deploys, and user-invocable: false for background knowledge
    • Explain what a .claude/commands/ file lacks compared with a skill, and migrate one to the skills format
  9. Level 9: Sharing and Troubleshooting Skills
    Distribute skills at project, personal and organisation-managed level, understand which copy wins on a name clash, see in outline how skills work in the Claude apps and the API, and work through a checklist when a skill misbehaves.
    • Choose between project, personal, managed and plugin locations for a skill, and state the documented resolution order when names collide
    • Describe in outline how skills are used in the Claude apps and through the API, and check current documentation for plan availability and beta status before promising either to a team
    • Troubleshoot a skill that does not trigger, or stops being followed after compaction, using a step-by-step checklist
  10. Level 10: Subagents: Context Isolation and Definition Files
    Define a subagent as a Markdown file with frontmatter in .claude/agents/, and understand what its fresh context contains and what it cannot see from the main conversation.
    • Create a project subagent file with name, description and a system prompt body
    • List what a subagent receives (its prompt, the delegation message, memory files) and what it does not (your conversation history and already-invoked skills)
    • Explain how the built-in exploration and planning agents keep noisy search output out of the main context
  11. Level 11: Tools, Model and the Brief: Shaping a Subagent
    Restrict a subagent's tools, pick its model and permission mode, and write a delegation brief that gets back a result the main session can act on.
    • Use tools and disallowedTools to build a read-only reviewer, and choose a model by weighing cost, speed and task difficulty
    • Write a brief that states the goal, scope, constraints and the exact shape of the report to return
    • Evaluate what a subagent returned, treating its summary as a claim to verify rather than as ground truth
  12. Level 12: Parallel and Background Agents, and When Not to Use One
    Run several subagents at once or in the background, understand the reduced tool set and permission flow for background work, and recognise tasks where delegation costs more than it saves.
    • Split an independent, multi-part task across parallel subagents and merge their reports without file conflicts, using worktree isolation where appropriate
    • Explain how background subagents differ from foreground ones in available tools and how permission prompts surface
    • Identify cases to keep in the main conversation: tight iteration, heavily shared context, quick edits and latency-sensitive work
  13. Level 13: Hook Fundamentals: Events, Matchers and Handlers
    Wire a first hook in settings.json by choosing a lifecycle event, a matcher and a handler type, and read the JSON a hook receives on stdin.
    • Group the current hook events into session, prompt, tool, subagent, compaction and configuration families, and look up exact names in the reference rather than from memory
    • Configure a command hook on PostToolUse with a matcher for file edits that runs a formatter
    • Compare the handler types (command, http, mcp_tool, prompt and the experimental agent type) and say when a plain command hook is the safer choice
  14. Level 14: Blocking, Rewriting and Redacting Tool Calls
    Turn a must-always-hold rule into a deterministic guardrail using exit codes and JSON decisions, covering denying a tool call, rewriting its input before it runs and scrubbing output afterwards.
    • Write a PreToolUse hook that denies a dangerous command with exit code 2 or a permissionDecision of deny, including a reason Claude can act on
    • Rewrite a tool call's arguments with updatedInput, and explain when rewriting is kinder than blocking and when it hides too much
    • Redact secrets from tool output or submitted prompts, and state plainly what such a hook cannot catch
  15. Level 15: Securing the Hooks Themselves
    Treat hooks as code that runs with your own privileges: review where they come from, harden the scripts, and limit which hooks may run across a team.
    • Audit every source of hooks in a session (user, project, local, managed, plugin, and skill or agent frontmatter) and explain the risk of a hook arriving through a pull request
    • Harden a hook script against shell injection, unquoted paths, missing timeouts and failing open when it crashes
    • Describe how managed settings can restrict hooks organisation-wide, and decide when a guardrail should live there rather than in the repository
  16. Level 16: MCP Servers: Scopes and Authorisation
    Connect MCP servers to Claude Code at local, project and user scope, share a team server through .mcp.json, and authorise it without committing credentials.
    • Add a server at each scope, say where its configuration is stored and which definition wins on a name clash
    • Write a .mcp.json that uses environment variable expansion instead of hard-coded tokens, and explain the approval prompt for project-scoped servers
    • Authenticate a remote server with OAuth, restrict the requested scopes, and prefer HTTP transport over the deprecated SSE transport
  17. Level 17: Tool Bloat and Context Cost
    Measure what every connected server, skill listing and memory file costs in context, and trim capabilities so Claude picks the right tool more reliably.
    • Inspect context usage and identify which MCP servers, skills and instruction files consume the most
    • Explain how tool search defers loading tool definitions, when it is not active, and how MCP output limits protect the context window
    • Cut bloat by removing unused servers, scoping servers to a subagent, and using organisation allowlists and denylists for MCP servers
  18. Level 18: Packaging a Plugin
    Bundle skills, commands, agents, hooks and MCP servers into one plugin directory with a plugin.json manifest, and validate and test it locally.
    • Lay out a plugin with components at the plugin root and the manifest in .claude-plugin/plugin.json, avoiding the common mistake of nesting components inside that folder
    • Use the plugin root and plugin data variables for bundled scripts and persistent state, and explain how plugin components are namespaced
    • Run claude plugin validate, load the plugin from a local directory, and collect secrets through userConfig rather than hard-coding them
  19. Level 19: Marketplaces: Versions, Dependencies and Trust
    Publish plugins through a marketplace.json catalogue in a git repository, control versions and dependencies, and set the organisational controls that decide which marketplaces and plugins a team may install.
    • Create a marketplace with plugin entries using relative, GitHub and git-subdirectory sources, and test install and update on your own machine
    • Manage releases with the manifest version field, ref or sha pinning and declared plugin dependencies, and explain how users receive updates
    • Apply a trust review before installing a third-party plugin, and describe how administrators can require or restrict marketplaces through managed settings
  20. Level 20: Final Challenge: Design and Govern a Team Setup Exam
    Review the whole course by designing a complete team configuration for a realistic scenario, choosing the right mechanism for each need, justifying its context cost and defining how the shared configuration is owned and changed.
    • Complete a decision table that assigns each requirement to a built-in tool, custom tool, skill, MCP server, rule, hook, subagent or plugin, with the reasoning for each choice
    • Audit a bloated example configuration and remove or rescope capabilities that cost context without earning it
    • Write a short governance policy covering ownership, code review of shared configuration, versioning, managed settings and a schedule for rechecking features against current documentation

Access

Levels 1 and 2 are free to read, no account needed. Levels 3 and 4 are free with a free account. Every level, the podcast edition and the AI tutor come with All Access at £4.99/month or any Creator plan — see pricing.

Read lesson 1 free →

More like this