claude-code
Original:🇺🇸 English
Translated
[Tooling & Meta] Claude Code CLI setup, configuration, troubleshooting, and feature guidance. Triggers on claude code setup, hook not firing, MCP connection, context limit, skill creation, slash command setup.
3installs
Sourceduc01226/easyplatform
Added on
NPX Install
npx skill4agent add duc01226/easyplatform claude-codeTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Claude Code
Summary
Goal: Help users install, configure, troubleshoot, and extend Claude Code CLI (skills, hooks, MCP, slash commands).
| Step | Action | Key Notes |
|---|---|---|
| 1 | Identify problem category | Setup, Hook Issues, MCP Issues, Context, Extensibility, Configuration |
| 2 | Execute category-specific diagnosis | Check prerequisites, configs, scripts, settings |
| 3 | Apply fix | Step-by-step solution with verification |
| 4 | Output report | Problem, Solution, Files Changed, Verification |
Key Principles:
- Load reference files on-demand per topic (10 reference docs available)
- Never modify settings without user approval
- For app code use /
featureskills, not this onedebug
Purpose
Help users install, configure, troubleshoot, and extend Claude Code CLI -- Anthropic's agentic coding tool with skills, hooks, MCP servers, and slash commands.
When to Use
- Setting up Claude Code for the first time
- Troubleshooting hooks that don't fire or produce errors
- Diagnosing MCP server connection failures
- Understanding or resolving context window limits
- Creating or modifying slash commands and agent skills
- Configuring settings (model, allowed tools, output style)
When NOT to Use
- Writing application code -- use ,
feature, ordebugskillsrefactoring - Creating MCP servers from scratch -- use skill
mcp-builder - Managing existing MCP connections -- use skill
mcp-management
Workflow
Step 1: Identify Problem Category
| User Says | Category | Go To |
|---|---|---|
| "install", "set up", "authenticate" | Setup | Step 2A |
| "hook not firing", "hook error" | Hook Issues | Step 2B |
| "MCP not connecting", "MCP error" | MCP Issues | Step 2C |
| "context too long", "compaction", "token limit" | Context Issues | Step 2D |
| "create skill", "create command" | Extensibility | Step 2E |
| "configure", "settings", "model" | Configuration | Step 2F |
Step 2A: Setup
- Check prerequisites: Node.js 18+, npm
- Verify authentication:
claude auth status - Verify project detection: check for in project root
CLAUDE.md
Step 2B: Hook Issues
- Read the hook file causing issues
- Check hook event type matches expected trigger
- Verify hook script is executable with correct shebang
- Check for hook registration
.claude/settings.json - Test hook in isolation with mock input
Common fixes:
- Hook not firing: wrong event name or tool matcher pattern
- Hook errors: script not finding dependencies (check relative paths)
- Hook blocks unexpectedly: PreToolUse returning incorrectly
{ "decision": "block" }
Step 2C: MCP Issues
- Check for server configuration
.mcp.json - Verify the MCP server process can start manually
- Check environment variables (API keys in )
.env.local - Test connectivity:
claude mcp list
Step 2D: Context Issues
- Check current context usage
- Suggest command if approaching limit
/compact - Review if large files are being read unnecessarily
- Verify hook for session continuity
session-resume.cjs
Step 2E: Extensibility
- For skills: read for structure
references/agent-skills.md - For commands: create
.claude/skills/{name}.md - Verify SKILL.md frontmatter has required fields (name, version, description)
Step 2F: Configuration
- Settings locations: (project),
.claude/settings.json(user)~/.claude/settings.json - IMPORTANT: Never modify settings without user approval
Output Format
markdown
## Claude Code: [Issue/Task Summary]
### Problem
[What was wrong or what was requested]
### Solution
[Step-by-step fix or setup instructions]
### Files Changed
[List any config files modified]
### Verification
[How to confirm the fix works]Reference Guide
Load references as needed for specific topics:
| Topic | Reference File |
|---|---|
| Installation & setup | |
| Creating skills | |
| Hooks system | |
| Configuration | |
| Troubleshooting | |
| IDE integration | |
| CI/CD | |
| Advanced features | |
| API reference | |
| Best practices | |
Related Skills
- -- creating new MCP servers
mcp-builder - -- managing MCP connections
mcp-management - -- creating new agent skills
skill-plan
IMPORTANT Task Planning Notes (MUST FOLLOW)
- Always plan and break work into many small todo tasks
- Always add a final review todo task to verify work quality and identify fixes/enhancements