/add-package
Add and configure new project dependencies
$ npx -y skills add qdhenry/Claude-Command-Suite --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/add-package
Context preview
What this command does when you run it.
Add and configure new project dependencies
Command definition
add-package.mdAdd Package to Workspace
Add and configure new project dependencies
Instructions
1. **Package Definition and Analysis**
- Parse package name and type from arguments: `$ARGUMENTS` (format: name [type])
- If no arguments provided, prompt for package name and type
- Validate package name follows workspace naming conventions
- Determine package type: library, application, tool, shared, service, component-library
- Check for naming conflicts with existing packages
2. **Package Structure Creation**
- Create package directory in appropriate workspace location (packages/, apps/, libs/)
- Set up standard package directory structure based on type:
- `src/` for source code
- `tests/` or `__tests__/` for testing
- `docs/` for package documentation
- `examples/` for usage examples (if library)
- `public/` for static assets (if application)
- Create package-specific configuration files
3. **Package Configuration Setup**
- Generate package.json with proper metadata:
- Name following workspace conventions
- Version aligned with workspace strategy
- Dependencies and devDependencies
- Scripts for build, test, lint, dev
- Entry points and exports configuration
- Configure TypeScript (tsconfig.json) extending workspace settings
- Set up package-specific linting and formatting rules
4. **Package Type-Specific Setup**
- **Library**: Configure build system, export definitions, API documentation
- **Application**: Set up routing, environment configuration, build optimization
- **Tool**: Configure CLI setup, binary exports, command definitions
- **Shared**: Set up common utilities, type definitions, shared constants
- **Service**: Configure server setup, API routes, database connections
- **Component Library**: Set up Storybook, component exports, styling system
5. **Workspace Integration**
- Register package in workspace configuration (nx.json, lerna.json, etc.)
- Configure package dependencies and peer dependencies
- Set up cross-package imports and references
- Configure workspace-wide build order and dependencies
- Add package to workspace scripts and task runners
6. **Development Environment**
- Configure package-specific development server (if applicable)
- Set up hot reloading and watch mode
- Configure debugging and source maps
- Set up development proxy and API mocking (if needed)
- Configure environment variable management
7. **Testing Infrastructure**
- Set up testing framework configuration for the package
- Create initial test files and examples
- Configure test coverage reporting
- Set up package-specific test scripts
- Configure integration testing with other workspace packages
8. **Build and Deployment**
- Configure build system for the package type
- Set up build artifacts and output directories
- Configure bundling and optimization
- Set up package publishing configuration (if library)
- Configure deployment scripts (if application)
9. **Documentation and Examples**
- Create package README with installation and usage instructions
- Set up API documentation generation
- Create usage examples and demos
- Document package architecture and design decisions
- Add package to workspace documentation
10. **Validation and Integration Testing**
- Verify package builds successfully
- Test package installation and imports
- Validate workspace dependency resolution
- Test development workflow and hot reloading
- Verify CI/CD pipeline includes new package
- Test cross-package functionality and integration
Read more
Add Package to Workspace
Add and configure new project dependencies
Instructions
1. **Package Definition and Analysis**
- Parse package name and type from arguments: `$ARGUMENTS` (format: name [type])
- If no arguments provided, prompt for package name and type
- Validate package name follows workspace naming conventions
- Determine package type: library, application, tool, shared, service, component-library
- Check for naming conflicts with existing packages
2. **Package Structure Creation**
- Create package directory in appropriate workspace location (packages/, apps/, libs/)
- Set up standard package directory structure based on type:
- `src/` for source code
- `tests/` or `__tests__/` for testing
- `docs/` for package documentation
- `examples/` for usage examples (if library)
- `public/` for static assets (if application)
- Create package-specific configuration files
3. **Package Configuration Setup**
- Generate package.json with proper metadata:
- Name following workspace conventions
- Version aligned with workspace strategy
- Dependencies and devDependencies
- Scripts for build, test, lint, dev
- Entry points and exports configuration
- Configure TypeScript (tsconfig.json) extending workspace settings
- Set up package-specific linting and formatting rules
4. **Package Type-Specific Setup**
- **Library**: Configure build system, export definitions, API documentation
- **Application**: Set up routing, environment configuration, build optimization
- **Tool**: Configure CLI setup, binary exports, command definitions
- **Shared**: Set up common utilities, type definitions, shared constants
- **Service**: Configure server setup, API routes, database connections
- **Component Library**: Set up Storybook, component exports, styling system
5. **Workspace Integration**
- Register package in workspace configuration (nx.json, lerna.json, etc.)
- Configure package dependencies and peer dependencies
- Set up cross-package imports and references
- Configure workspace-wide build order and dependencies
- Add package to workspace scripts and task runners
6. **Development Environment**
- Configure package-specific development server (if applicable)
- Set up hot reloading and watch mode
- Configure debugging and source maps
- Set up development proxy and API mocking (if needed)
- Configure environment variable management
7. **Testing Infrastructure**
- Set up testing framework configuration for the package
- Create initial test files and examples
- Configure test coverage reporting
- Set up package-specific test scripts
- Configure integration testing with other workspace packages
8. **Build and Deployment**
- Configure build system for the package type
- Set up build artifacts and output directories
- Configure bundling and optimization
- Set up package publishing configuration (if library)
- Configure deployment scripts (if application)
9. **Documentation and Examples**
- Create package README with installation and usage instructions
- Set up API documentation generation
- Create usage examples and demos
- Document package architecture and design decisions
- Add package to workspace documentation
10. **Validation and Integration Testing**
- Verify package builds successfully
- Test package installation and imports
- Validate workspace dependency resolution
- Test development workflow and hot reloading
- Verify CI/CD pipeline includes new package
- Test cross-package functionality and integration
A comprehensive development toolkit designed following Anthropic's Claude Code Best Practices for AI-assisted software development.
Repo: qdhenry/Claude-Command-Suite
Other commands on claude-command-suite.
- /boundary-bbcr-fallback
Execute automatic BBCR (Collapse-Rebirth Correction) when knowledge boundaries are exceeded or reasoning fails.
Open command - /boundary-detect
Analyze semantic position relative to knowledge boundaries to prevent hallucination and identify uncertainty zones.
Open command - /boundary-heatmap
Generate a visual heatmap of knowledge boundaries showing safe zones, risk areas, and semantic coverage.
Open command - /boundary-risk-assess
Evaluate the current risk level and provide detailed analysis of potential hallucination or reasoning failure.
Open command - /boundary-safe-bridge
Find and construct semantic bridges to safely navigate from current position to target concept without crossing dangerous boundaries.
Open command - /optimize-prompt
Takes an input prompt and returns ONLY a token-optimized version that preserves meaning while minimizing token count. Based on LLM tokenization principles: common words tokenize more efficiently, unusual words break into more tokens, and conciseness reduces cost.
Open command

