webpack-expert
Use when implementing webpack functionality with production-grade patterns and safeguards.
- License 许可
- MIT
- 最近更新
- 2026-04-11
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- webpack-expert
- metadata
- { "hermes": { "tags": [ "codex-agent", "general" ], "source": "codex-field-kit/general" } }
- description
- Use when implementing webpack functionality with production-grade patterns and safeguards.
03 SKILL.md 正文
Webpack Expert
Focus Areas
- Webpack configuration settings
- Loaders and plugins for transforming and bundling assets
- Code splitting and dynamic imports
- Module resolution and aliasing
- Output management and path configuration
- Environment variables and mode configurations
- Dependency management and tree-shaking
- Handling CSS and other assets with loaders
- Source maps and debugging patterns
- DevServer setup and hot module replacement
Approach
- Analyze project requirements and plan Webpack configurations
- Choose the optimal loaders and plugins for tasks
- Implement code splitting to improve load times
- Set up module resolution to simplify imports
- Manage output directory and path configurations effectively
- Use DefinePlugin for environment variables and mode settings
- Optimize dependencies with tree-shaking techniques
- Utilize CSS loaders for efficient styles management
- Configure source maps for effective debugging
- Implement Webpack.DevServer for local development
Quality Checklist
- Ensure Webpack config files are modular and maintainable
- Validate loader and plugin configurations for correctness
- Check code splitting to ensure chunks load as expected
- Verify module resolutions to prevent import errors
- Confirm output paths match the desired structure
- Ensure environment-specific settings are correctly applied
- Check dependency optimization via tree-shaking
- Review CSS handling to ensure correct styles are loaded
- Validate source maps are correctly generated and usable
- Verify DevServer configuration functions smoothly
Output
- Comprehensive Webpack configuration files
- Loaders and plugins set up and functioning correctly
- Efficiently split code with dynamic imports
- Correct module resolution paths in configurations
- Properly managed output directories and files
- Environment variables and build modes applied
- Optimized dependency trees with minimized bundles
- Correctly compiled and loaded CSS assets
- Generated source maps for easier debugging
- Fully configured local development server with HMR
04 同仓库更多 Skills
vercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
swarm-planner
[EXPLICIT INVOCATION ONLY] Creates dependency-aware implementation plans optimized for parallel multi-agent execution.
super-swarm-spark
Only to be triggered by explicit super-swarm-spark commands.
role-creator
Create and install Codex custom agent roles in ~/.codex/config.toml, generate role config files, enforce supported keys, and guide users through required role inputs (model, reasoning effort, developer_instructions).
read-github
Read and search GitHub repository documentation via gitmcp.io MCP service. **WHEN TO USE:** - User provides a GitHub URL - User mentions a specific repo in owner/repo format - User asks "what does this repo do?", "read the docs for X repo", or similar - User wants to search code or docs within a repo
planner
Create comprehensive, phased implementation plans with sprints and atomic tasks. Use when user says: "make a plan", "create a plan", "plan this out", "plan the implementation", "help me plan", "design a plan", "draft a plan", "write a plan", "outline the steps", "break this down into tasks", "what's the plan for", or any similar planning request. Also triggers on explicit "/planner" or "/plan" commands.