# Claude Code Reference Library

This reference library contains documentation extracted from the official Claude Code documentation, organized into logical sections for easy reference and Grid integration planning.

## Table of Contents

| File | Section | Description |
|------|---------|-------------|
| [01-subagents.md](01-subagents.md) | Subagents | Creating specialized AI assistants, built-in types, custom configuration |
| [02-plugins-creation.md](02-plugins-creation.md) | Plugin Creation | How to create plugins, packaging, directory structure |
| [03-plugins-discovery.md](03-plugins-discovery.md) | Plugin Discovery | Finding and installing plugins from marketplaces |
| [04-skills.md](04-skills.md) | Skills | Skills system, SKILL.md files, frontmatter, invocation |
| [05-output-styles.md](05-output-styles.md) | Output Styles | Customizing Claude Code's response formatting |
| [06-hooks.md](06-hooks.md) | Hooks | Lifecycle hooks (PreToolUse, PostToolUse, Stop, etc.) |
| [07-headless-sdk.md](07-headless-sdk.md) | Headless/SDK | Headless mode, Agent SDK, programmatic execution |
| [08-settings.md](08-settings.md) | Settings | Settings hierarchy, permissions, configuration |
| [09-memory.md](09-memory.md) | Memory | CLAUDE.md management, imports, rules directories |
| [10-model-config.md](10-model-config.md) | Model Config | Model aliases, configuration, environment variables |
| [11-terminal-setup.md](11-terminal-setup.md) | Terminal Setup | Terminal optimization, status line, keybindings |
| [12-troubleshooting.md](12-troubleshooting.md) | Troubleshooting | Common issues and solutions |

## Key Concepts

### Subagents
Specialized AI assistants that run in isolated contexts with custom system prompts and tool access. Built-in types include Explore (read-only, fast), Plan (research for planning), and General-purpose (full capabilities).

### Plugins
Packaged extensions containing skills, agents, hooks, and MCP servers that can be distributed via marketplaces.

### Skills
Reusable prompts and workflows defined in SKILL.md files. Can be invoked with `/skill-name` or automatically by Claude when relevant.

### Hooks
User-defined shell commands that execute at various points in Claude Code's lifecycle (PreToolUse, PostToolUse, Notification, etc.).

### Memory (CLAUDE.md)
Hierarchical instruction files that persist across sessions. Includes project-level, user-level, and managed/enterprise levels.

## Grid Integration Planning

Each section includes a "Grid Integration Opportunities" placeholder at the end for noting potential enhancement areas. Consider:

1. **Subagents** - Grid's multi-agent architecture could leverage custom subagent patterns
2. **Skills** - Grid commands could be exposed as skills for more flexible invocation
3. **Hooks** - Grid could use hooks for state management, logging, and automation
4. **Headless Mode** - Grid daemon mode could leverage the Agent SDK
5. **Memory** - Grid state could integrate with CLAUDE.md for persistence

## Source

Documentation extracted from Claude Code official documentation (January 2026).
