Claude Code: Difference between revisions
Appearance
mNo edit summary |
|||
| (10 intermediate revisions by the same user not shown) | |||
| Line 11: | Line 11: | ||
</DynamicPageList> | </DynamicPageList> | ||
|} | |} | ||
== Installation on Ubuntu (WSL2) == | == Installation on Ubuntu (WSL2) == | ||
# Install node [[Node.js]] | |||
# Install claude-code | |||
<pre> | <pre> | ||
npm install -g @anthropic-ai/claude-code | npm install -g @anthropic-ai/claude-code | ||
| Line 28: | Line 21: | ||
claude --version | claude --version | ||
</pre> | </pre> | ||
== Knowledge & Best Practices == | |||
* https://www.anthropic.com/engineering (Anthropic Blog) | |||
* https://jewelhuq.medium.com/practical-guide-to-mastering-claude-codes-main-agent-and-sub-agents-fd52952dcf00 | |||
== Awesome Claude Code == | |||
* https://github.com/hesreallyhim/awesome-claude-code | |||
** https://github.com/SuperClaude-Org/SuperClaude_Framework/tree/master/SuperClaude | |||
** https://github.com/eyaltoledano/claude-task-master | |||
** https://github.com/glittercowboy/taches-cc-resources | |||
== Skills == | |||
* https://leehanchung.github.io/blogs/2025/10/26/claude-skills-deep-dive/ | |||
* https://github.com/obra/superpowers | |||
== Memory == | == Memory == | ||
| Line 47: | Line 56: | ||
== Sub agents == | == Sub agents == | ||
Docs: https://docs.claude.com/en/docs/claude-code/sub-agents | |||
{| class="wikitable" | {| class="wikitable" | ||
|+ | |+ | ||
| Line 79: | Line 89: | ||
== MCP Server == | == MCP Server == | ||
<pre>claude mcp list | Docs: https://docs.claude.com/en/docs/claude-code/mcp<pre>claude mcp list | ||
claude mcp add [options] <name> <command> [args...] | claude mcp add [options] <name> <command> [args...] | ||
claude mcp get my-server | claude mcp get my-server | ||
| Line 165: | Line 175: | ||
claude --dangerously-skip-permissions | claude --dangerously-skip-permissions | ||
claude doctor | claude doctor | ||
claude update | claude update | ||
</pre> | </pre> | ||
== Tools & System Prompt == | |||
* https://gist.github.com/wong2/e0f34aac66caf890a332f7b6f9e2ba8f (Wong2) | |||
== Links & Videos & Learning == | == Links & Videos & Learning == | ||
Latest revision as of 09:14, 27 November 2025
| Category: Programming + AI |
Installation on Ubuntu (WSL2)
- Install node Node.js
- Install claude-code
npm install -g @anthropic-ai/claude-code which claude claude doctor claude --version
Knowledge & Best Practices
- https://www.anthropic.com/engineering (Anthropic Blog)
- https://jewelhuq.medium.com/practical-guide-to-mastering-claude-codes-main-agent-and-sub-agents-fd52952dcf00
Awesome Claude Code
Skills
- https://leehanchung.github.io/blogs/2025/10/26/claude-skills-deep-dive/
- https://github.com/obra/superpowers
Memory
Docs: https://docs.anthropic.com/en/docs/claude-code/memory
| file | |
|---|---|
| Project memory | $PROJECT_DIR/CLAUDE.md
|
| User memory | ~/.claude/CLAUDE.md
|
deprecated
|
Sub agents
Docs: https://docs.claude.com/en/docs/claude-code/sub-agents
| file | |
|---|---|
| User sub agents | ~/.claude/agents/
|
| Project sub agents | $PROJECT_DIR/.claude/agents/
|
- Example sub agents:
Custom commands
Docs: https://docs.anthropic.com/en/docs/claude-code/slash-commands
| file | |
|---|---|
| User commands | ~/.claude/commands/
|
| Project commands | $PROJECT_DIR/.claude/commands/
|
- Example custom commands:
MCP Server
Docs: https://docs.claude.com/en/docs/claude-code/mcp
claude mcp list claude mcp add [options] <name> <command> [args...] claude mcp get my-server claude mcp remove my-server
| 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 doctor claude update
Tools & System Prompt
Links & Videos & Learning
| Description | URL | Comment |
|---|---|---|
| Awesome Claude Code | https://github.com/hesreallyhim/awesome-claude-code | |
| BMAD Method | https://github.com/bmad-code-org/BMAD-METHOD | |
- Channels
- Matt Maher: https://www.youtube.com/@MetalSole
- IndyDevDan: https://www.youtube.com/@indydevdan/
- AI Labs: https://www.youtube.com/@AILABS-393