Agent skill · software engineering · aradotso

claude-code-best-practice

claude-code-best-practice — an agent skill for coding agents.

Why this skill is useful

Provides specific patterns and configurations for using Claude Code effectively, which the AI wouldn't reliably generate on its own.

What it needs

Requires @anthropic/claude-code installed locally. About 7k tokens when loaded. Last updated 2026-07-09. 70 stars on the source repository.

What this skill does

.claude/ ├── settings.json # permissions, model, output style ├── agents/ # subagent definitions ├── commands/ # slash command templates ├── skills/ # skill bundles (SKILL.md) ├── hooks/ # event-driven scripts └── rules/ # scoped memory rules CLAUDE.md # root memory file (always loaded) .mcp.json # MCP server connections bash Install Claude Code CLI npm install -g @anthropic/claude-code Authenticate claude auth login Launch interactive session claude Launch with auto-permissions (no prompts) claude --permission-mode auto Launch headless (pipe a prompt) claude -p "Refactor src/utils.ts to use async/await" markdown CLAUDE.md Project TypeScript monorepo. Node 20. pnpm workspaces. Rules Never commit directly to main All new files need a unit test Use zod for runtime validation @imports @.claude/rules/typescript.md @.claude/rules/testing.md bash .claude/rules/typescript.md Prefer type over interface for unions Enable strict: true in tsconfig markdown <!-- .claude/agents/code-reviewer.md --> --- name: code-reviewer description: Reviews PRs for bugs, style issues, and security vulnerabilities model: claude-opus-4-5 tools: readfile searchcode permissions: read --- You are a senior code reviewer. When invoked: 1. Read the diff provided 2. Check for security issues (injections, secrets, unvalidated input) 3. Flag style violations against CLAUDE.md rules 4. Suggest improvements with code examples 5. Return a structured review with LGTM / REQUESTCHANGES verdict /review-pr diff: <paste diff here> bash claude -p "Use the code-reviewer agent to review the changes in the last commit" \ --agent code-reviewer markdown <!-- .claude/commands/fix-types.md --> --- description: Fix all TypeScript type errors in the current file --- Look at the currently open file. Run tsc --noEmit scoped to this file. For each type error: 1. Explain what's wrong in one sentence 2. Apply the minimal fix 3. Re-run tsc to confirm it's resolved Do not change logic — only fix types. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aradotso/claude-code-best-practice

View the source on GitHub

Browse the @skills marketplace