claude-ecosystem
About
This skill provides expertise for working with the Claude Code ecosystem, including its CLI tool, extensibility features like agents and skills, and CLAUDE.md project instructions. Use it when configuring settings, creating custom components, setting up MCP servers, or troubleshooting issues within Claude Code. It helps developers learn features, deploy integrations, and optimize their development workflow.
Quick Install
Claude Code
Recommended/plugin add https://github.com/majiayu000/claude-skill-registrygit clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/claude-ecosystemCopy and paste this command in Claude Code to install this skill
Documentation
Claude 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 | references/getting-started.md, references/configuration.md |
| Slash Commands | CLI | references/slash-commands.md |
| MCP Servers | CLI | references/mcp-integration.md |
| Hooks & Plugins | CLI | references/hooks-and-plugins.md |
| Create Agents | Extensibility | references/agent-development.md |
| Create Skills | Extensibility | references/skill-development.md |
| Output Styles | Extensibility | references/skill-development.md |
| Init CLAUDE.md | Architecture | references/initialization-workflow.md |
| Optimize CLAUDE.md | Architecture | references/optimization-patterns.md |
| Enterprise/CI-CD | CLI | references/enterprise-features.md, references/cicd-integration.md |
| Troubleshooting | CLI | references/troubleshooting.md |
Quick Reference
Extension Types
| Type | Invocation | Purpose | Location |
|---|---|---|---|
| Agents | Task tool | Specialized sub-processes | .claude/agents/ |
| Skills | Model-invoked | Domain knowledge | .claude/skills/{name}/ |
| Output Styles | /output-style | Modify main agent | .claude/output-styles/ |
Model Selection (Agents)
| Model | Use When | Target Time |
|---|---|---|
haiku | Fast tasks, exploration | < 3s |
sonnet | Balanced, most use cases | < 10s |
opus | 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
references/getting-started.md- Installation, setup, authreferences/slash-commands.md- Complete command catalogreferences/mcp-integration.md- MCP server configurationreferences/hooks-and-plugins.md- Hook types, plugin structurereferences/configuration.md- Settings hierarchyreferences/enterprise-features.md- IAM, SSO, sandboxingreferences/cicd-integration.md- GitHub Actions, GitLab CIreferences/ide-integration.md- VS Code, JetBrainsreferences/advanced-features.md- Extended thinking, cachingreferences/troubleshooting.md- Common issuesreferences/api-reference.md- Admin, Messages, Skills APIsreferences/best-practices.md- Project organization, securityreferences/agent-skills.md- Creating skills via CLI
Extensibility
references/agent-development.md- Full YAML structure, system promptsreferences/skill-development.md- Structure, triggers, hooks
CLAUDE.md
references/initialization-workflow.md- Creating new CLAUDE.mdreferences/optimization-patterns.md- Token reduction techniquesreferences/integration-strategies.md- Global config, MCP toolsreferences/output-templates.md- Standard output formats
Related Skills
IMPORTANT: When creating/editing prompts, use prompt-architect skill.
Skill("prompt-architect") → Create/enhance skill/agent prompt content
Documentation:
GitHub Repository
Related Skills
content-collections
MetaThis skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.
sglang
MetaSGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.
evaluating-llms-harness
TestingThis Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.
langchain
MetaLangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.
