Claude-skill-registry claude-ecosystem
Claude Code ecosystem expertise. Modules: CLI tool (setup, slash commands, MCP servers, hooks, plugins, CI/CD), extensibility (agents, skills, output styles creation), CLAUDE.md (project instructions, optimization). Actions: configure, troubleshoot, create, deploy, integrate, optimize Claude Code. Keywords: Claude Code, Anthropic, CLI tool, slash command, MCP server, Agent Skill, hook, plugin, CI/CD, enterprise, CLAUDE.md, agentic coding, agent, skill, output-style, SKILL.md, subagent, Task tool, project instructions, token optimization. Use when: learning Claude Code features, configuring settings, creating skills/agents/hooks, setting up MCP servers, troubleshooting issues, CI/CD integration, initializing or optimizing CLAUDE.md files.
git clone https://github.com/majiayu000/claude-skill-registry
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/0-claude" ~/.claude/skills/majiayu000-claude-skill-registry-claude-ecosystem && rm -rf "$T"
skills/data/0-claude/SKILL.mdClaude Ecosystem
Comprehensive guide for Claude Code CLI tool, extensibility (agents/skills/output styles), and CLAUDE.md architecture.
Module Selection
| Need | Module | Reference |
|---|---|---|
| Setup/Configuration | CLI | , |
| Slash Commands | CLI | |
| MCP Servers | CLI | |
| Hooks & Plugins | CLI | |
| Create Agents | Extensibility | |
| Create Skills | Extensibility | |
| Output Styles | Extensibility | |
| Init CLAUDE.md | Architecture | |
| Optimize CLAUDE.md | Architecture | |
| Enterprise/CI-CD | CLI | , |
| Troubleshooting | CLI | |
Quick Reference
Extension Types
| Type | Invocation | Purpose | Location |
|---|---|---|---|
| Agents | Task tool | Specialized sub-processes | |
| Skills | Model-invoked | Domain knowledge | |
| Output Styles | | Modify main agent | |
Model Selection (Agents)
| Model | Use When | Target Time |
|---|---|---|
| Fast tasks, exploration | < 3s |
| Balanced, most use cases | < 10s |
| Complex reasoning | < 30s |
CLAUDE.md Token Budget
| Complexity | Target Tokens |
|---|---|
| Simple | 100-200 |
| Medium | 200-400 |
| Complex | 400-800 |
| Maximum | 1000 |
Extensibility Principles
Core Truths
| Truth | Meaning |
|---|---|
| Expertise Transfer | Make Claude think like expert, not follow steps |
| Flow, Not Friction | Produce output, not intermediate work |
| Voice Matches Domain | Sound like practitioner, not documentation |
| Focused Beats Comprehensive | Constrain ruthlessly |
Decision Heuristics
| Rule | Guidance |
|---|---|
| 3-File Rule | 3+ files → agent. Enhances YOUR work → skill. |
| Delegation Test | Runs independently? Agent. Guides you? Skill. |
| Activation Breadth | Trigger on 80% of relevant requests |
| Tool Constraint | Start with 2-3 essential tools |
Activation Keywords
The description field is your activation gate. Include:
- Task verbs: create, build, debug, fix, deploy
- Problem descriptions: slow, broken, failing
- Artifact types: component, API, database
- Casual synonyms: "make it faster" → optimize
Common Workflows
Create Agent
--- name: agent-name description: "Use when [use case]. PROACTIVELY for [triggers].\n\nExamples:\n<example>\nContext: [situation]\nuser: [request]\nassistant: [response]\n</example>" tools: Grep, Glob, Read, Bash model: haiku --- # Agent Name Mission statement. ## Strategy [Approach] ## Does NOT Do - [boundary] (use X instead)
Create Skill
--- name: skill-name description: "[Core purpose]. [Technologies]. Capabilities: [list]. Actions: [verbs]. Keywords: [triggers]. Use when: [scenarios]." allowed-tools: Read, Grep, Glob --- # Skill Name ## Patterns ### [Pattern Name] **When you see:** [Observable trigger] **This indicates:** [Expert insight] **Therefore:** [Action] **Watch out:** [Pitfall]
Initialize CLAUDE.md
- Analyze codebase (language, framework, structure)
- Extract code style, commands, patterns
- Generate with template, customize
- Validate commands, check token count
- Target <400 lines, prefer <250
Detailed:
references/initialization-workflow.md
Optimize CLAUDE.md
- Evaluate token efficiency
- Find redundancy, outdated info
- Apply token reduction techniques
- Target 40%+ reduction
- Verify critical info retained
Detailed:
references/optimization-patterns.md
Anti-Patterns
| Pattern | Problem | Fix |
|---|---|---|
| Kitchen Sink Agent | 10+ tools, handles "everything" | Constrain to 3-5 tools |
| Echo Skill | Restates docs without insight | Add expert layer |
| Invisible Trigger | Description uses only formal terms | Include user language |
| Procedure Manual | Step 1, 2, 3... | Teach patterns, not steps |
| Over-Documentation | CLAUDE.md > 400 lines | Document project-specific only |
Quality Signals
Good Signs
- Frontmatter reads like "when to use" guide
- First 10 lines provide actionable guidance
- Expert would nod "yes, that's how I think"
- Explicit constraints on what it does NOT handle
Warning Signs
-
50% reference tables or field definitions
- No mention of "when NOT to use"
- Generic language for any domain
- Body exceeds 600 lines
References
CLI Tool
- Installation, setup, authreferences/getting-started.md
- Complete command catalogreferences/slash-commands.md
- MCP server configurationreferences/mcp-integration.md
- Hook types, plugin structurereferences/hooks-and-plugins.md
- Settings hierarchyreferences/configuration.md
- IAM, SSO, sandboxingreferences/enterprise-features.md
- GitHub Actions, GitLab CIreferences/cicd-integration.md
- VS Code, JetBrainsreferences/ide-integration.md
- Extended thinking, cachingreferences/advanced-features.md
- Common issuesreferences/troubleshooting.md
- Admin, Messages, Skills APIsreferences/api-reference.md
- Project organization, securityreferences/best-practices.md
- Creating skills via CLIreferences/agent-skills.md
Extensibility
- Full YAML structure, system promptsreferences/agent-development.md
- Structure, triggers, hooksreferences/skill-development.md
CLAUDE.md
- Creating new CLAUDE.mdreferences/initialization-workflow.md
- Token reduction techniquesreferences/optimization-patterns.md
- Global config, MCP toolsreferences/integration-strategies.md
- Standard output formatsreferences/output-templates.md
Related Skills
IMPORTANT: When creating/editing prompts, use
prompt-architect skill.
Skill("prompt-architect") → Create/enhance skill/agent prompt content
Documentation: