Jump to content

Claude Code: Difference between revisions

From Wiki
Marcluer (talk | contribs)
Marcluer (talk | contribs)
Line 199: Line 199:
|Basics
|Basics
|Matt Maher
|Matt Maher
|https://www.youtube.com/watch?v=T_IYHx-9VGU
|https://youtu.be/T_IYHx-9VGU
|
|
|-
|-
Line 205: Line 205:
|Best practices
|Best practices
|Matt Maher
|Matt Maher
|https://www.youtube.com/watch?v=IUi--nVU4yA
|https://youtu.be/IUi--nVU4yA
|
|
|-
|-
Line 217: Line 217:
|Hooks
|Hooks
|IndyDevDan
|IndyDevDan
|https://www.youtube.com/watch?v=J5B9UGTuNoM
|https://youtu.be/J5B9UGTuNoM
|
|
|-
|-
Line 223: Line 223:
|Hooks
|Hooks
|Greg Baugues
|Greg Baugues
|https://www.youtube.com/watch?v=8T0kFSseB58
|https://youtu.be/8T0kFSseB58
|
|
|-
|-
Line 229: Line 229:
|Hooks 2
|Hooks 2
|IndyDevDan
|IndyDevDan
|https://www.youtube.com/watch?v=9ijnN985O_c
|https://youtu.be/9ijnN985O_c
|https://github.com/disler/claude-code-hooks-mastery
|https://github.com/disler/claude-code-hooks-mastery
|-
|-
Line 235: Line 235:
|Hooks
|Hooks
|Better Stack
|Better Stack
|https://www.youtube.com/watch?v=Q4gsvJvRjCU
|https://youtu.be/Q4gsvJvRjCU
|https://github.com/RichardBray/dotfiles/tree/main/.claude
|https://github.com/RichardBray/dotfiles/tree/main/.claude
|-
|-
Line 247: Line 247:
|Sub agents
|Sub agents
|Matt Maher
|Matt Maher
|https://www.youtube.com/watch?v=6MLyc3jYisQ
|https://youtu.be/6MLyc3jYisQ
|
|
|-
|-
Line 253: Line 253:
|Sub agents
|Sub agents
|IndyDevDan
|IndyDevDan
|https://www.youtube.com/watch?v=7B2HJr0Y68g
|https://youtu.be/7B2HJr0Y68g
|
|
|-
|-
Line 259: Line 259:
|Sub agents
|Sub agents
|AI LABS
|AI LABS
|https://www.youtube.com/watch?v=7Sx0o-41r2k
|https://youtu.be/7Sx0o-41r2k
|
|
|-
|-
Line 271: Line 271:
|
|
|AI Labs
|AI Labs
|https://www.youtube.com/watch?v=6Rg5M69bMgQ
|https://youtu.be/6Rg5M69bMgQ
|
|
|-
|-
Line 277: Line 277:
|Workflow
|Workflow
|AI Jason
|AI Jason
|https://www.youtube.com/watch?v=UZb0if-7wGE
|https://youtu.be/UZb0if-7wGE
|
|
|-
|-
Line 289: Line 289:
|Best Practices
|Best Practices
|Patrick Ellis
|Patrick Ellis
|https://www.youtube.com/watch?v=hOqgFNlbrYE
|https://youtu.be/hOqgFNlbrYE
|
|
|-
|-
Line 295: Line 295:
|Best Practices
|Best Practices
|Better Stack
|Better Stack
|https://www.youtube.com/watch?v=Br5Ofobq6Is
|https://youtu.be/Br5Ofobq6Is
|
|
|-
|-
Line 307: Line 307:
|Vibe Coding
|Vibe Coding
|Riley Brown
|Riley Brown
|https://www.youtube.com/watch?v=_GMtx9EsIKU
|https://youtu.be/_GMtx9EsIKU
|Build Lovable in 75min
|Build Lovable in 75min
|-
|-
Line 313: Line 313:
|Vibe Coding
|Vibe Coding
|Sean Kochel
|Sean Kochel
|https://www.youtube.com/watch?v=LWZrsF3kqI0
|https://youtu.be/LWZrsF3kqI0
|Sketch to Mobile App in 21min
|Sketch to Mobile App in 21min
|}
|}

Revision as of 09:36, 4 August 2025

Other articles

Installation on Ubuntu (WSL2)

sudo apt install npm

mkdir -p ~/.npm-global
npm config set prefix ~/.npm-global
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
# echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bash_path
source ~/.bashrc

npm install -g @anthropic-ai/claude-code

which claude
claude doctor
claude --version

Memory

Docs: https://docs.anthropic.com/en/docs/claude-code/memory

file
Project memory $PROJECT_DIR/CLAUDE.md
User memory ~/.claude/CLAUDE.md
Local project memory $PROJECT_DIR/CLAUDE.local.md deprecated

Sub agents

file
User sub agents ~/.claude/agents/
Project sub agents $PROJECT_DIR/.claude/agents/

Custom commands

file
User commands ~/.claude/commands/
Project commands $PROJECT_DIR/.claude/commands/

MCP Server

claude mcp list
claude mcp add <name> <command> [args...]
claude mcp get my-server
claude mcp remove my-server
Scope
file CLI switch
Local MCP Server ~/.claude.json default -s local
Project MCP server $PROJECT_DIR/.mcp.json -s project
User MCP Server ~/.claude.json -s user

settings.json

Docs: https://docs.anthropic.com/en/docs/claude-code/settings

file scope
User settings ~/.claude/settings.json
Project settings $PROJECT_DIR/.claude/settings.json all users
Project settings $PROJECT_DIR/.claude/settings.local.json local/personal only

Example:

{
  "permissions": {
    "allow": [
      "Bash(ls:*)"
    ],
    "deny": []
  }
}

Hook example:

  "hooks": {
    "UserPromptSubmit": [
      {
        "hooks": [
          {
            "type": "command",
            "command": ".claude/hooks/prompt-validator.py"
          }
        ]
      }
    ]
  }

Command line options

claude                                   # interactive mode
claude "task"                            # run single task
claude -p "task"                         # run single task, print response, exit
claude --dangerously-skip-permissions

claude config list
claude doctor
claude update

Links & Videos & Learning

Links
Description URL Comment
Awesome Claude Code https://github.com/hesreallyhim/awesome-claude-code
Videos
Description Channel URL Comments
1. Basics Matt Maher https://youtu.be/T_IYHx-9VGU
2. Best practices Matt Maher https://youtu.be/IUi--nVU4yA
H Hooks IndyDevDan https://youtu.be/J5B9UGTuNoM
H Hooks Greg Baugues https://youtu.be/8T0kFSseB58
H Hooks 2 IndyDevDan https://youtu.be/9ijnN985O_c https://github.com/disler/claude-code-hooks-mastery
H Hooks Better Stack https://youtu.be/Q4gsvJvRjCU https://github.com/RichardBray/dotfiles/tree/main/.claude
S Sub agents Matt Maher https://youtu.be/6MLyc3jYisQ
S Sub agents IndyDevDan https://youtu.be/7B2HJr0Y68g
S Sub agents AI LABS https://youtu.be/7Sx0o-41r2k
AI Labs https://youtu.be/6Rg5M69bMgQ
Workflow AI Jason https://youtu.be/UZb0if-7wGE
Best Practices Patrick Ellis https://youtu.be/hOqgFNlbrYE
Best Practices Better Stack https://youtu.be/Br5Ofobq6Is
Vibe Coding Riley Brown https://youtu.be/_GMtx9EsIKU Build Lovable in 75min
Vibe Coding Sean Kochel https://youtu.be/LWZrsF3kqI0 Sketch to Mobile App in 21min