원클릭으로
claude-engineering-best-practices
General-purpose guidance for Claude Code (terminal) and Claude Dev (platform). Covers stable principles (progressive disclosure, hooks, security) and volatile details with lookup workflows.
메뉴
General-purpose guidance for Claude Code (terminal) and Claude Dev (platform). Covers stable principles (progressive disclosure, hooks, security) and volatile details with lookup workflows.
This skill should be used when the user needs structured thinking frameworks to analyze decisions, problems, or tasks. Apply multiple decision-making methodologies (10/10/10, 5 Whys, Eisenhower Matrix, First Principles, Inversion, Occam's Razor, The One Thing, Opportunity Cost, Pareto, Second-Order Thinking, SWOT, Via Negativa) to ask probing questions and guide deep reflection. Use when the user asks to "think through", "analyze", "evaluate", "reflect on", or "brainstorm" decisions or problems.
Creates, refines, ingests, and evaluates agent skills using archetype-driven design. Use when building skills from scratch, extracting knowledge from documentation, or auditing skill quality. Do not use for non-skill related tasks or when other specialized skills are more appropriate.
Test Model Context Protocol (MCP) servers using the MCP Inspector CLI
| name | claude-engineering-best-practices |
| description | General-purpose guidance for Claude Code (terminal) and Claude Dev (platform). Covers stable principles (progressive disclosure, hooks, security) and volatile details with lookup workflows. |
Use this Skill for:
Lookup workflow (verify volatile details):
# 1. Search for topic
rg -n "pattern" references/claude-*/**/*.md
# 2. Find official URL
rg -n "pattern" references/sources/llms_claude_*.txt
# 3. Fetch official doc
curl -sL "https://code.claude.com/docs/en/topic.md" | rg -A 5 "fieldName"
MANDATORY : If it works, it works. Always compare the pro and cons before implementing complex logic, "Keep it Simple, Stupid" should be your main guideline.
Information revealed in stages based on need:
| Level | What | Token Cost | When Loaded |
|---|---|---|---|
| Metadata | name + description | ~100 tokens | Always (startup) |
| Instructions | SKILL.md body | <5k tokens | On trigger |
| Resources | Bundled files | Unlimited | As needed (via bash) |
Universal event system across Claude Code and SDK:
Multiple defensive layers:
Plugin Architecture
rg -n "plugin" references/claude-code/plugins.md
# Structure, manifest, caching, components
Hooks & Events
rg -n "PreToolUse\|PostToolUse" references/claude-code/hooks.md
# All events, types, schemas, patterns
Sandboxing
rg -n "sandbox\|network\|filesystem" references/claude-code/sandboxing.md
# Security, isolation, configuration
Agent SDK
rg -n "sessions\|hooks\|subagents" references/claude-dev/agent-sdk.md
# Sessions, hooks, tools, permissions
Skills Authoring
rg -n "progressive\|SKILL\.md" references/claude-dev/skills.md
# 3-tier architecture, best practices
Claude Code (Terminal)
references/claude-code/plugins.md - Plugin architecturereferences/claude-code/hooks.md - Hook systemreferences/claude-code/sandboxing.md - Security isolationreferences/claude-code/settings-permissions.md - Configurationreferences/claude-code/mcp-lsp.md - MCP & LSP integrationreferences/claude-code/workflows.md - Common workflowsClaude Dev (Platform)
references/claude-dev/agent-sdk.md - SDK patternsreferences/claude-dev/skills.md - Skills architecturereferences/claude-dev/tool-use.md - Tool use patternsreferences/claude-dev/prompt-engineering.md - Prompting best practicesreferences/claude-dev/security-evaluation.md - Security & testingThese change frequently - never hardcode:
Always verify volatile details:
# Find correct URL
rg -n "topic.*\.md" references/sources/llms_claude_code.txt
# Fetch and extract
curl -sL "https://code.claude.com/docs/en/topic.md" | rg -A 5 "fieldName"
# Plugin.json required fields
curl -sL "https://code.claude.com/docs/en/plugins-reference.md" | rg -A 10 "Required fields"
# Hook events
curl -sL "https://code.claude.com/docs/en/hooks.md" | rg "^### "
# Agent SDK hooks
curl -sL "https://platform.claude.com/docs/en/agent-sdk/hooks.md" | rg -A 5 "PreToolUse"
# Sandbox configuration
curl -sL "https://code.claude.com/docs/en/sandboxing.md" | rg -A 10 "filesystem\|network"
# Structured outputs
curl -sL "https://platform.claude.com/docs/en/build-with-claude/structured-outputs" | rg -A 5 "json_schema"
| Situation | Action |
|---|---|
| curl succeeds, domain allowed | Use fetched data, cite source |
| curl succeeds, domain blocked | Document limitation, use local refs |
| curl fails (network error) | Use local refs, mark outdated |
| curl fails (403/permission) | Request permission, use local refs |
| Can't fetch docs | Use local reference files |
// Three-Agent Pattern
class TestRunner {
// Agent A: Executor with hooks and sandbox
async execute(task: string): Promise<void> {
const options = {
allowedTools: ['Read', 'Write', 'Edit', 'Bash'],
permissionMode: 'acceptEdits',
sandbox: { enabled: true },
hooks: getHooks() // PreToolUse, PostToolUse logging
};
}
// Agent B: Simulator - generates tasks
// Agent C: Evaluator - multi-step structured evaluation
}
# 1. Check structure
rg -n "\.claude-plugin\|plugin\.json" references/claude-code/plugins.md
# 2. Verify hooks pattern
rg -n "PreToolUse\|PostToolUse" references/claude-code/hooks.md
# 3. Check security settings
rg -n "sandbox\|permission" references/claude-code/sandboxing.md
# 4. Verify progressive disclosure
rg -n "3-tier\|progressive" references/claude-dev/skills.md
# Complete SDK pattern
options = ClaudeAgentOptions(
allowed_tools=["Read", "Glob", "Grep"],
permission_mode="acceptEdits",
session_persistence=True,
hooks={
"PreToolUse": [HookMatcher(...)],
"PostToolUse": [HookMatcher(...)]
},
agents={
"specialist": AgentDefinition(...)
},
setting_sources=["project"]
)
❌ Hardcoding volatile details ❌ Missing progressive disclosure ❌ No validation hooks ❌ Hardcoded paths (use env vars) ❌ Overly verbose descriptions ❌ Deeply nested references (keep one level deep)
Last verified: 2026-01-13
Always verify volatile details before implementation using the lookup workflow documented above.
Monthly checks:
About this Skill: This Skill applies progressive disclosure - only load what you need. Start with SKILL.md, reference thematic files for details, use lookup workflow for volatile information.