Guides
    claude-code
    tutorial
    getting-started

    Claude Code for Beginners: Everything You Need to Know (2026)

    Use expert AI agent skills through Agensi MCP. Connect your agent, choose a skill and load its latest instructions on demand.

    May 2, 20268 min read
    Share:

    Claude Code is Anthropic's terminal-based AI coding agent. This tutorial takes you from installation through to advanced usage with SKILL.md skills and MCP servers.

    Quick Answer: Claude Code is Anthropic's terminal-based AI coding agent. It requires Node.js 18+ and an Anthropic API key, installed globally via npm. Key features include code generation, review, refactoring, testing, skill customization, and integration with external tools via MCP servers.

    Part 1: Installation and Setup

    Claude Code requires Node.js 18+ and an Anthropic API key.

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

    Set your API key:

    export ANTHROPIC_API_KEY=your-key-here
    

    Add the export to your .bashrc or .zshrc to make it persistent. Navigate to a project directory and start:

    cd your-project
    claude
    

    Try something simple first: "What does this project do? Summarize the architecture."

    Part 2: Core Workflows

    Code generation: Describe what you want. "Add a user authentication module using JWT tokens. Include login, logout, and token refresh endpoints."

    Code review: "Review the changes in the last commit. Focus on security issues and performance."

    Refactoring: "Refactor the database module to use the repository pattern. Update all callers."

    Testing: "Write unit tests for the authentication module. Cover the happy path and edge cases."

    Part 3: Skills

    Skills are SKILL.md files that customize how Claude Code behaves.

    Where Skills Live

    • Global skills: ~/.claude/skills/ (apply to all projects)
    • Project skills: .claude/skills/ in your project root (apply to one project)

    Installing Skills

    Connect your AI agent to Agensi through MCP, then ask it to use the skill on your task. Approve any required purchase. Your agent loads the latest approved version through get_skill on each use. Never write any part of the skill to disk; your licence does not allow you to save, copy or export it.

    Essential Skill Categories

    Frontend design skills change how Claude Code generates UI components. Code review skills standardize what Claude Code checks during reviews. Testing skills define your testing conventions.

    Part 4: MCP Servers

    MCP servers connect Claude Code to external tools. Edit ~/.claude/config.json:

    {
      "mcpServers": {
        "github": {
          "command": "npx",
          "args": ["@github/mcp-server"],
          "env": { "GITHUB_TOKEN": "your-token" }
        }
      }
    }
    

    Most useful MCP servers: GitHub (PRs and issues), Supabase (database access), Playwright (browser testing), Context7 (framework docs), Figma (design files).

    Part 5: Advanced Tips

    Reduce token usage: Use Sonnet for most tasks, Opus only for complex reasoning. Write specific prompts. Install skills (less trial-and-error).

    Combine multiple skills: A common stack: frontend design skill + testing skill + documentation skill + git skill.

    Next Steps

    1. Install Claude Code and run it on a project
    2. Browse skills on Agensi and install one that matches your stack
    3. Set up one MCP server (GitHub is a good starting point)

    Frequently Asked Questions

    Claude Code is Anthropic's terminal-based AI coding agent. It offers features like code generation, review, refactoring, testing, and customization through skills and integrations with external tools.

    Claude Code requires Node.js version 18 or higher and an Anthropic API key. It is installed globally using npm.

    Install it globally via 'npm install -g @anthropic-ai/claude-code', set your Anthropic API key as an environment variable, then navigate to your project directory and run 'claude'.

    Claude Code can perform various core coding workflows including generating new code, reviewing existing code for issues, refactoring modules, and writing unit tests based on descriptions.

    Skills are SKILL.md files that customize Claude Code's behavior. They are stored globally in '~/.claude/skills/' or per project in '.claude/skills/'.

    MCP servers connect Claude Code to external tools like GitHub, Supabase, Playwright, Context7, and Figma. They are configured in the '~/.claude/config.json' file.

    To reduce token usage, use Anthropic's Sonnet model for most tasks, write specific prompts, and install skills to minimize trial-and-error.

    Connect your AI agent to Agensi through MCP. Ask it to use the skill and approve any required purchase. Instructions load on each use. Never write any part of the skill to disk.