magento-cache-analyst — скилл для Claude Code: установка
Скилл magento-cache-analyst помогает проектировать и настраивать кэширование в Magento 2: от бэкенда Redis и Varnish до ESI-блоков и сброса тегов.
MIT 160 установок ★ 33 обновлён 2026-01-24
npx skills add maxnorm/magento2-agent-skills --skill magento-cache-analyst -a claude-codeЧто делает magento-cache-analyst
Скилл специализируется на оптимизации кэша в интернет-магазинах на Magento 2. Он подсказывает конфигурацию для полностраничного кэша (встроенного FPC и Varnish с файлами VCL), кэша приложения (блоки, макеты, системные настройки) и распределённых хранилищ.
В инструкциях разобран рабочий процесс из четырёх этапов: оценка метрик, проектирование стратегии хранения, правка конфигураций и нагрузочное тестирование. Для работы с Redis скилл предлагает готовую структуру секции cache в файле app/etc/env.php и базовые CLI-команды bin/magento cache:*.
Без прямого доступа к файлу конфигурации и консоли магазина применить рекомендации на сервере не получится.
Какие задачи решает
- настроить бэкенд Redis в файле app/etc/env.php
- сконфигурировать Varnish и ESI для динамических блоков
- построить схему сброса кэша по тегам и событиям
- организовать автоматический прогрев страниц каталога
Примеры запросов агенту
- Сконфигурируй кэширование по умолчанию в
app/etc/env.phpчерез бэкенд Redis. - Помоги настроить инвалидацию полностраничного кэша с тегами и ESI-блоками.
- Составь план аудита производительности кэша и прогрева страниц перед высокой нагрузкой.
Как установить magento-cache-analyst
1Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-cache-analyst -a claude-code2Вручную: положить файлы
~/.claude/skills/magento-cache-analyst/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/magento-cache-analyst/
1Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-cache-analyst -a codex2Вручную: положить файлы
.agents/skills/magento-cache-analyst/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-cache-analyst -a cursor2Вручную: положить файлы
.cursor/skills/magento-cache-analyst/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install maxnorm/magento2-agent-skills skills/magento-cache-analyst2Вручную: положить файлы
.github/skills/magento-cache-analyst/SKILL.md1Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-cache-analyst -a gemini-cli2Командой платформы
gemini skills install https://github.com/maxnorm/magento2-agent-skills --path skills/magento-cache-analystВручную: положить файлы
.devin/skills/magento-cache-analyst/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-cache-analyst -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о magento-cache-analyst
Как установить magento-cache-analyst в Claude Code?
Выполните команду в терминале: npx skills add maxnorm/magento2-agent-skills --skill magento-cache-analyst -a claude-code.
Для чего нужен этот скилл?
Он направляет ИИ-агента при настройке кэша Magento 2, устранении узких мест и проектировании стратегий сброса устаревших данных.
Какие хранилища кэша поддерживает скилл?
В описании заложены практики для Redis, Memcached, встроенного механизма FPC и прокси-сервера Varnish.
Исходный текст
SKILL.md · MIT
---
name: magento-cache-analyst
description: Optimizes Magento 2 caching strategies for enterprise performance. Use when optimizing cache performance, configuring full-page cache, implementing Redis/Memcached, or designing cache invalidation strategies. Masters FPC, application cache, and distributed caching solutions.
---
# Magento 2 Cache Analyst
Expert specialist in designing and implementing comprehensive caching strategies that dramatically improve application performance while ensuring data consistency and cache coherence across enterprise environments.
## When to Use
- Optimizing cache performance
- Configuring full-page cache (FPC)
- Implementing Redis or Memcached
- Designing cache invalidation strategies
- Troubleshooting cache issues
- Planning cache architecture
## Magento Cache Architecture
- **Cache Types**: Master all Magento cache types and their optimal usage patterns
- **Full Page Cache**: Expert in FPC configuration, ESI holes, and cache warming
- **Application Cache**: Optimize block cache, configuration cache, and layout cache
- **Distributed Caching**: Implement Redis, Memcached, and multi-tier caching
- **Cache Invalidation**: Design efficient cache invalidation and purging strategies
## Cache Types
### Full Page Cache (FPC)
- **Varnish Configuration**: Expert Varnish configuration and VCL optimization
- **Built-in FPC**: Optimize Magento's built-in full-page cache
- **ESI Implementation**: Implement Edge Side Includes for dynamic content
- **Cache Warming**: Automated cache warming and preloading strategies
- **Cache Tags**: Proper cache tag implementation for invalidation
### Application Cache
- **Block Cache**: Cache rendered blocks for faster page generation
- **Configuration Cache**: Cache system and module configurations
- **Layout Cache**: Cache layout XML structures
- **Collection Cache**: Cache frequently accessed collections
- **Object Cache**: Cache expensive object instantiation
### Distributed Caching
- **Redis**: High-performance in-memory data store
- **Memcached**: Distributed memory caching system
- **Multi-tier Caching**: Layer caching for optimal performance
- **Cache Synchronization**: Maintain cache consistency across servers
- **Failover Strategies**: Implement cache failover and recovery
## Cache Optimization Process
### 1. Cache Assessment & Analysis
- **Performance Baseline**: Establish current cache performance metrics
- **Cache Audit**: Analyze existing cache configuration and effectiveness
- **Bottleneck Identification**: Identify cache-related performance bottlenecks
- **Usage Pattern Analysis**: Understand application cache usage patterns
- **Capacity Planning**: Plan cache capacity and resource requirements
### 2. Cache Strategy Design
- **Layered Caching**: Design multi-tier cache architectures
- **Cache Policies**: Define cache TTL, eviction, and invalidation policies
- **Data Segmentation**: Segment cache data for optimal performance
- **Storage Strategy**: Choose appropriate cache storage backends
- **Synchronization Planning**: Plan cache synchronization across environments
### 3. Implementation & Configuration
#### Redis Configuration
```php
// app/etc/env.php
'cache' => [
'frontend' => [
'default' => [
'backend' => 'Cm_Cache_Backend_Redis',
'backend_options' => [
'server' => '127.0.0.1',
'port' => '6379',
'database' => '0',
]
]
]
]
```
#### Cache Commands
```bash
# Clear all cache
bin/magento cache:clean
bin/magento cache:flush
# Enable/disable cache types
bin/magento cache:enable
bin/magento cache:disable
# Cache status
bin/magento cache:status
```
### 4. Testing & Optimization
- **Performance Testing**: Validate cache performance improvements
- **Load Testing**: Test cache behavior under high traffic conditions
- **Cache Warming**: Implement effective cache warming strategies
- **Invalidation Testing**: Test cache invalidation scenarios
- **Monitoring Validation**: Verify monitoring and alerting effectiveness
## Best Practices
### Cache Strategy
- **Cache Hit Ratios**: Maximize cache effectiveness and hit ratios
- **Memory Management**: Optimize cache memory usage and allocation
- **Network Optimization**: Reduce cache-related network overhead
- **Storage Optimization**: Optimize cache storage and persistence strategies
- **Monitoring Integration**: Implement comprehensive cache performance monitoring
### Cache Invalidation
- **Tag-based Invalidation**: Use cache tags for efficient invalidation
- **Event-based Invalidation**: Invalidate cache on relevant events
- **Time-based Expiration**: Set appropriate TTL values
- **Manual Invalidation**: Provide manual cache clearing mechanisms
- **Selective Invalidation**: Invalidate only affected cache entries
### Enterprise Caching
- **CDN Integration**: Optimize CDN caching and edge delivery
- **Multi-server Environments**: Design caching for clustered deployments
- **Cache Synchronization**: Maintain cache consistency across servers
- **Failover Strategies**: Implement cache failover and recovery mechanisms
- **Scalability Planning**: Design caching for horizontal and vertical scaling
## Monitoring
- **Cache Hit Rates**: Monitor cache hit/miss ratios
- **Memory Usage**: Monitor cache memory consumption
- **Performance Metrics**: Track cache-related performance improvements
- **Error Monitoring**: Monitor cache errors and failures
- **Alerting**: Set up alerts for cache issues
## References
- [Adobe Commerce Cache Management](https://developer.adobe.com/commerce/php/development/cache/)
- [Full Page Cache](https://developer.adobe.com/commerce/php/development/cache/page/)
- [Redis Configuration](https://developer.adobe.com/commerce/php/development/cache/partial/redis/)
Focus on creating comprehensive caching strategies that dramatically improve performance while maintaining data consistency.
© maxnorm · MIT · maxnorm/magento2-agent-skills