




















Claude Code started as a terminal coding assistant. It now runs as a layered agentic system. Underneath, Claude Code separates memory, hooks, skills, subagents, plugins, and MCP into distinct layers. Each layer changes what the model can see or do.
This article covers 25 features and strategies for scaling Claude Code. It is written for AI engineers, software engineers, and data scientists. Every code example follows a documented format and runs as written. Each item is labeled by status, so you know what ships with Claude Code and what does not.
Claude Code is Anthropic’s agentic coding tool. It works in the terminal, the desktop app, and your IDE. It can read files, run commands, edit code, and call external tools. Under the hood, it runs an agentic loop. That loop chooses tools, accumulates context, and manages long sessions through compaction.
Safety boundaries come from permission modes, checkpoints, sandboxing, and managed settings. The same loop is exposed programmatically through the Agent SDK. Developers extend the tool with a small set of primitives. Those primitives are CLAUDE.md, skills, subagents, slash commands, hooks, and MCP servers. Plugins bundle these primitives into one installable unit.
Each feature/strategy is labeled. ‘Official’ means documented Anthropic functionality. ‘Community technique’ means a workflow pattern, not a shipped feature. ‘Third-party tool’ means software built outside Anthropic.
SKILL.md file with frontmatter under .claude/skills/<name>/. It supports /name invocation and autonomous invocation by Claude./. Built-ins include /init, /compact, /context, /review, and /security-review.PreToolUse is the primary security checkpoint before any tool runs./plugin command installs the whole set./compact condenses long sessions to preserve usable context. /context reports current context usage.run_in_background flag on the Bash tool. Claude polls output without blocking the conversation.query(). You can send slash commands like /code-review and process results.claude -p "query" runs a one-shot process and exits. Piped input like cat logs.txt | claude -p also works.Interactive Demo
Claude Code: 25 Features Explorer & Playground
Explore the feature stack, run a simulated terminal, test Auto Mode, and build a CLAUDE.md. Runs fully in your browser.
All 25 Official Technique Third-party
Choose a feature
claude-code — simulated
>
Try: /help /init /context /review /security-review /mcp /agents /compact — or type a plain request.
Auto Mode routes each action through a Sonnet 4.6 safety classifier. Pick an action or type your own.
Select or type an action to see the classifier verdict.
Project name
Build command
Test command
Lint command
Conventions (one per line)
Educational simulation — not connected to a live model. No data leaves your browser. Built by Marktechpost · Verified June 2026
Devs/AI Professionals often confuse skills, subagents, slash commands, and hooks. The table below separates them by where they live and how they run.
| Primitive | Where it lives | How it runs | Isolated context? | Best for |
|---|---|---|---|---|
| Slash command | .claude/commands/ (legacy) | Typed /name | No | Inserting a prompt template |
| Skill | .claude/skills/<name>/SKILL.md | /name or autonomous | Optional (via subagent) | Domain logic with shipped files |
| Subagent | .claude/agents/ | Auto-delegate or @agent-name | Yes, own context window | Isolated, parallel tasks |
| Hook | Settings, skill, or subagent frontmatter | Event-driven at lifecycle points | Runs deterministic code | Enforcing rules without hallucination |
| MCP server | .mcp.json or claude mcp add | Tool calls to a server | External process | GitHub, databases, browsers |
| Plugin | Installed via /plugin | Bundles all of the above | Inherits component scope | Sharing setups across teams |
The rule of thumb is simple. Use a slash command for a prompt template. Use a skill when there is real domain logic or helper files. Use a subagent for isolated, parallel work. Use a hook to enforce a rule with code.
/review for general feedback or /security-review for vulnerabilities. On Team and Enterprise plans, multi-agent review can split the work across subagents.claude -p on each pull request to lint, test, or summarize diffs without a terminal. Scheduled jobs can run the same command nightly. Combine this with hooks to enforce team policy automatically.These snippets are illustrative and faithful to documented formats. Start with a minimal CLAUDE.md.
# Project: my-tool
## Build
npm run build
## Test
npm test
## Conventions
- TypeScript strict mode
- No default exports
- Commit format: feat/fix/chore(scope): descriptionA skill is a folder with a SKILL.md and frontmatter.
---
name: code-review
description: Review changed files against our team standards.
---
Review staged changes. Flag risks. Suggest concrete fixes.
A subagent restricts its tools to stay read-only and safe.
A subagent restricts its tools to stay read-only and safe.
---
name: explorer
description: Read-only codebase exploration.
tools: Read, Grep, Glob
---
Map the repository structure and summarize entry points.A PreToolUse hook blocks dangerous Bash before it runs.
{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{ "type": "command", "command": "scripts/guard.sh" }
]
}
]
}
}Add a maintained MCP server, then run a headless query for CI.
claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem ~/projects
claude -p "List the largest files under src and explain why" --output-format jsonMichal Sutter is a data science professional with a Master of Science in Data Science from the University of Padova. With a solid foundation in statistical analysis, machine learning, and data engineering, Michal excels at transforming complex datasets into actionable insights.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。