Timeline
Timeline
2026-05-24
init
This article introduces the installation and configuration methods of Claude Code, including Node.js environment requirements, the reasons for choosing DeepSeek as the API provider and the application process, as well as the integration steps and environment variable setup methods for VSCode and Emacs editors. The article also details the Skill extension mechanism, which is a skill pack launched by Anthropic in October 2025. It is essentially a Markdown file, divided into two storage locations: project-level directory and user-level directory. It also introduces the concept and function of MCP (Model Context Protocol). Finally, the article recommends several practical Skills, such as Karpathy-Inspired Claude Code Guidelines, codegraph, draw.io, and CC-Switch, and explains two ways to install Skills.
ClaudeCode
Download and install Claude Code, requires a Node.js environment
12345678 | # It is best to change the sourcenpm config set registry https://registry.npmmirror.comnpm install -g @anthropic-ai/claude-codeclaude --version# Resume the session in the current directoryclaude -c |
DeepSeek
Here we choose DeepSeek because its token price is cheap and there is no need to access the external network. Click the link below to apply for an API key:
Editor Integration
Vscode
Download the plugin:Claude Code for VS Code(developed by Anthropic, anthropic.com), then in settings find@ext:Anthropic.claude-codeunderClaudeCode: Environment VariablesClickEdit in settings.json
Refer to the official documentation to set environment variables
IntegrationClaude Code
https://api-docs.deepseek.com/zh-cn/quick_start/agent_integrations/claude_code
As follows:
12345678910111213141516171819202122232425262728293031323334 | "claudeCode.environmentVariables": [ { "name": "ANTHROPIC_BASE_URL", "value": "https://api.deepseek.com/anthropic" }, { "name": "ANTHROPIC_AUTH_TOKEN", "value": "<你的 DeepSeek API Key>" }, { "name": "ANTHROPIC_MODEL", "value": "deepseek-v4-pro[1m]" }, { "name": "ANTHROPIC_DEFAULT_OPUS_MODEL", "value": "deepseek-v4-pro[1m]" }, { "name": "ANTHROPIC_DEFAULT_SONNET_MODEL", "value": "deepseek-v4-pro[1m]" }, { "name": "ANTHROPIC_DEFAULT_HAIKU_MODEL", "value": "deepseek-v4-flash" }, { "name": "CLAUDE_CODE_SUBAGENT_MODEL", "value": "deepseek-v4-flash" }, { "name": "CLAUDE_CODE_EFFORT_LEVEL", "value": "max" }], |
After that, open the Claude Code plugin in VSCode and it will be ready to use.
You can also set environment variables in Windows PowerShell. First open PowerShell with administrator privileges, then
1 | code $PROFILE |
Then write the environment variables from the official documentation, so that these environment variables are loaded every time PowerShell is opened.
12345678 | $env:ANTHROPIC_BASE_URL="https://api.deepseek.com/anthropic"$env:ANTHROPIC_AUTH_TOKEN="<你的 DeepSeek API Key>"$env:ANTHROPIC_MODEL="deepseek-v4-pro[1m]"$env:ANTHROPIC_DEFAULT_OPUS_MODEL="deepseek-v4-pro[1m]"$env:ANTHROPIC_DEFAULT_SONNET_MODEL="deepseek-v4-pro[1m]"$env:ANTHROPIC_DEFAULT_HAIKU_MODEL="deepseek-v4-flash"$env:CLAUDE_CODE_SUBAGENT_MODEL="deepseek-v4-flash"$env:CLAUDE_CODE_EFFORT_LEVEL="max" |
Emacs
Emacs is generally used in Linux environments. The Windows version of Emacs has too many bugs, so the following configuration is for Linux environments. First, still install Claude Code, then set environment variables,$HOME/.bashrcor$HOME/.zshrc
12345678 | export ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropicexport ANTHROPIC_AUTH_TOKEN=<你的 DeepSeek API Key>export ANTHROPIC_MODEL=deepseek-v4-pro[1m]export ANTHROPIC_DEFAULT_OPUS_MODEL=deepseek-v4-pro[1m]export ANTHROPIC_DEFAULT_SONNET_MODEL=deepseek-v4-pro[1m]export ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-v4-flashexport CLAUDE_CODE_SUBAGENT_MODEL=deepseek-v4-flashexport CLAUDE_CODE_EFFORT_LEVEL=max |
Then enable the environment variables
1234 | # bashsource ~/.bashrc# zshsource ~/.zshrc |
Mainly use the package claude-code.el:
The configuration is as follows:
123456789101112131415161718192021222324 | ;; claude code;; install required inheritenv dependency:(use-package inheritenv :vc (:url "https://github.com/purcell/inheritenv" :rev :newest))(use-package monet :vc (:url "https://github.com/stevemolitor/monet" :rev :newest));; for vterm terminal backend:(use-package vterm :ensure t);; install claude-code.el(use-package claude-code :ensure t :vc (:url "https://github.com/stevemolitor/claude-code.el" :rev :newest) :config ;; optional IDE integration with Monet (add-hook 'claude-code-process-environment-functions #'monet-start-server-function) (monet-mode 1) (setq claude-code-terminal-backend 'vterm) (claude-code-mode) :bind-keymap ("C-c c" . claude-code-command-map) ;; Optionally define a repeat map so that "M" will cycle thru Claude auto-accept/plan/confirm modes after invoking claude-code-cycle-mode / C-c M. :bind (:repeat-map my-claude-code-map ("M" . claude-code-cycle-mode))) |
InputC-c c cThen you can start the Claude Code window. Other commands can be viewed via claude-code-transient (C-c c m).
Skill
Skill is an extension mechanism for Claude Code launched by Anthropic in October 2025. You can think of it as a skill pack for Claude Code; in essence, it is a Markdown file.SKILL.mdIt contains the purpose, prompts, rules, and workflow of this Skill. Its storage locations:
- Project-level directory, which is under your project root directory
${workspaceFolder}/.claude/skills/Skills placed here only take effect in the current project, suitable for skills strongly related to the project, such as project-specific code standards, deployment processes, and so on. - User-level directory, that is, under your home directory
$HOME/.claude/skills/, Skills placed here can be used in all projects, suitable for general-purpose skills, such as making PPTs, writing documents, formatting WeChat official accounts, and other things unrelated to specific projects.
There is also a concept called MCP (Model Context Protocol). MCP is a standard protocol that allows AI assistants to safely interact with the external world. For example, it enables AI to read local files on your computer, operate GitHub repositories, query databases, send Slack messages, control browsers, etc.
Install Skills as follows:
- Manually copy
SKILL.mdto the project-level directory or user-level directory - Install plugins
Reference:
The official Anthropic marketplace (claude-plugins-official) is automatically available when starting Claude Code. Run /plugin and go to the Discover tab to browse available content, orclaude.com/pluginsview the catalog.
123 | /plugin install github@claude-plugins-official# Afterwards, you can manage plugins via /plugin |
Recommended Skills to install
Karpathy-Inspired Claude Code Guidelines:
codegraph:
draw.io
CC-Switch
A very useful AI aggregation tool that allows you to easily switch between different Agents and Models
With CC-Switch, you don’t need to set environment variables
