claude-code
БесплатноБез исполняемых скриптовНе проверенClaude Code is Anthropic's AI coding agent for the terminal, IDEs, desktop and web: it reads a codebase, edits files, runs commands and tests, and iterates…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Claude Code — Terminal AI Coding Agent
Overview
Claude Code (v2.1.310 at the time of writing) is Anthropic's agentic coding tool. In a project directory it reads and edits files, runs shell commands and tests, and keeps going until the task is done, asking before risky steps. This skill covers installing it, giving it project instructions (CLAUDE.md and .claude/rules/), controlling permissions, connecting MCP servers, adding hooks, and running it non-interactively. Current docs: https://code.claude.com/docs.
Instructions
Install and start
Use a package manager; auto-updates are off for these, so upgrade them yourself:
brew install --cask claude-code # macOS/Linux Homebrew (stable channel; claude-code@latest for newest)
winget install Anthropic.ClaudeCode # Windows
npm install -g @anthropic-ai/claude-code # needs Node.js 22+; same native binary, never with sudo
Debian, Fedora, RHEL and Alpine have signed apt, dnf and apk repositories (see https://code.claude.com/docs/en/setup). Anthropic also publishes a native installer script; read the setup page and verify what you run before using it. Then:
cd newsroom-api
claude # first run asks you to sign in (Claude account, Console API key, or a cloud provider)
claude --version # 2.1.310
claude doctor # checks installation, updates and settings
claude update # upgrade a native install
Useful session commands: /init drafts a CLAUDE.md from the codebase, /memory edits memory files, /permissions, /mcp, /hooks open the matching managers, claude -c continues the last session in this directory and claude -r picks an earlier one.
CLAUDE.md and rules
Claude loads ./CLAUDE.md (or ./.claude/CLAUDE.md) and your ~/.claude/CLAUDE.md at the start of every session, plus CLAUDE.md files in parent directories. A CLAUDE.md in a subdirectory loads on demand, when Claude reads files there. CLAUDE.local.md holds personal notes (add it to .gitignore). If a repo only has an AGENTS.md, Claude reads that instead; if both exist, only CLAUDE.md is used, so import it with @AGENTS.md. Keep each file under about 200 lines: longer files are followed less reliably. Import other files with @docs/git-instructions.md; move topic- or path-specific guidance into .claude/rules/*.md.
CLAUDE.md — Project Instructions
# Project: FinPay API
## Architecture
- Next.js App Router, TypeScript strict
- Drizzle ORM + PostgreSQL
- Stripe for payments
- BullMQ for background jobs
- Vitest + Testing Library for tests
## Commands
- `pnpm dev` — Start development server
- `pnpm test:unit` — Run unit tests
- `pnpm typecheck` — TypeScript check
- `pnpm lint` — ESLint
- `pnpm db:migrate` — Run Drizzle migrations
- `pnpm db:studio` — Open Drizzle Studio
## Code Conventions
- Result pattern for errors (never throw in business logic)
- Zod schemas for all external data validation
- Structured logging with Pino (no console.log)
- Feature flags via src/lib/flags.ts
- All database queries through Drizzle, never raw SQL
## Before Making Changes
1. Read the relevant test file
2. Run existing tests for the module
3. After changes: `pnpm typecheck && pnpm test:unit`
## Do NOT
- Add dependencies without asking
- Modify database schema without creating a migration
- Change auth logic without approval
- Commit directly — create a branch and PR
<!-- CLAUDE.md files can be nested -->
<!-- src/payments/CLAUDE.md — specific to payment module -->
# Payment Module
Stripe is the payment provider. All Stripe API calls go through
src/lib/stripe/client.ts which wraps the Stripe SDK with retry
logic and structured error handling.
## Important: Webhook Idempotency
Every webhook handler MUST check idempotency_key before processing.
Stripe can send the same event multiple times. We store processed
event IDs in the stripe_events table.
## Test Card Numbers
- 4242424242424242 — successful payment
- 4000000000000002 — declined
- 4000000000009995 — insufficient funds
Permissions and safety
In default mode (shown as Manual) Claude asks before editing files or running commands; since v2.1.283 interactive terminal sessions start in auto unless a setting says otherwise. Modes (--permission-mode, or Shift+Tab in the session): default, acceptEdits, plan (read-only exploration), auto (a classifier checks actions), dontAsk, bypassPermissions. Allow and deny rules go in .claude/settings.json (shared) or .claude/settings.local.json (yours):
{
"permissions": {
"allow": ["Bash(pnpm test *)", "Bash(pnpm typecheck)", "Bash(git commit *)"],
"deny": ["Bash(git push *)", "Read(./.env)"]
}
}
Put the * after the subcommand (Bash(git commit *)). On the command line: claude --allowedTools "Edit" "Bash(pnpm test *)". --dangerously-skip-permissions (not --dangerouslySkipPermissions) bypasses prompts; use it only in a sandbox
Установить claude-code в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл claude-code?
Claude Code is Anthropic's AI coding agent for the terminal, IDEs, desktop and web: it reads a codebase, edits files, runs commands and tests, and iterates. Use when a user asks to install or set up Claude Code, write CLAUDE.md or rules, set permissions, add MCP servers, create hooks, or run claude -p in scripts and CI.
Как установить скилл claude-code?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл claude-code запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic