All skills
Skillintermediate

šŸ™‹ā€ā™€ļø Layer 1: User Layer

<div align="center">

Claude Code Knowledge Pack7/10/2026

Overview

<div align="center">

šŸ  Home › šŸ”§ Implementation › šŸ›ļø Architecture › šŸ™‹ā€ā™€ļø Layer 1: User

← Architecture ā”ā”ā—ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā” šŸ” Main Agent Layer →

</div>

šŸ™‹ā€ā™€ļø Layer 1: User Layer

Entry point for all interactions with the system.


Purpose

The User Layer is where all human interaction begins. It normalizes various input types before they reach the šŸ” Main Agent.


Components

ComponentEmojiDescriptionExample
Natural LanguagešŸ™‹ā€ā™€ļøFree-form requests"Fix the authentication bug"
Slash Commands🦓Structured invocations/generate fr-FR
File ReferencesšŸ“Code/doc references@src/auth.ts

Diagram

%%{init: {'theme': 'base', 'themeVariables': {'lineColor': '#64748b'}}}%%
flowchart LR
    classDef user fill:#6366f1,stroke:#4f46e5,stroke-width:2px,color:#ffffff
    classDef main fill:#8b5cf6,stroke:#7c3aed,stroke-width:2px,color:#ffffff

    subgraph UserLayer["šŸ™‹ā€ā™€ļø USER LAYER"]
        NL["šŸ™‹ā€ā™€ļøšŸ“„ Natural Language<br>'Fix the bug'"]:::user
        SC["🦓 /command args"]:::user
        FR["šŸ“ @file/path"]:::user
    end

    NL --> MA["šŸ” Main Agent"]:::main
    SC --> MA
    FR --> MA

    classDef userBox fill:#e0e7ff,stroke:#6366f1,stroke-width:2px,color:#3730a3

    UserLayer:::userBox

Key Behaviors

  • All input normalized before reaching šŸ” Main Agent
  • 🦓 Slash commands expand to full prompts
  • File references inject content

Input Types

šŸ™‹ā€ā™€ļøšŸ“„ Natural Language

"Fix the authentication bug in the login module"
"Add dark mode support to the settings page"
"Refactor the payment service for better performance"

Free-form requests that Claude interprets and routes appropriately.

🦓 Slash Commands

/generate fr-FR          # Single locale
/generate fr es de       # Multiple locales
/review-pr 123          # Review PR
/deploy staging         # Deploy to environment

Structured commands that expand to predefined prompts with $ARGUMENTS substitution.

šŸ“ File References

@src/auth.ts            # Reference specific file
@package.json           # Reference config file
@docs/api.md           # Reference documentation

File contents are injected into context for the šŸ” Main Agent.


Layer Position

ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│  šŸ™‹ā€ā™€ļø LAYER 1: USER LAYER  ◄─── YOU ARE HERE       │
│  Human input, 🦓 /commands, natural language        │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¬ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜
                          │
                          ā–¼
ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│  šŸ” LAYER 2: MAIN AGENT LAYER                       │
│  Claude Code - orchestration, decision-making       │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

<div align="center">

← Architecture ā”ā”ā—ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”ā” šŸ” Main Agent Layer →

</div>