Create Feature
Scaffold new feature with boilerplate code, tests, and documentation
$ npx claude-code-templates@latest --command="project-management/create-feature" --yesRequires Claude Code. The command adds this command to your project's .claudedirectory — nothing runs on ToolZip's servers.
What's inside this command
Component source
Create Feature
Scaffold new feature: $ARGUMENTS
Current Project Context
- Project structure: !
find . -maxdepth 2 -type d -name src -o -name components -o -name features | head -5 - Current branch: !
git branch --show-current - Package info: @package.json or @Cargo.toml or @requirements.txt (if exists)
- Architecture docs: @docs/architecture.md or @README.md (if exists)
Task
Follow this systematic approach to create a new feature: $ARGUMENTS
- Feature Planning
- Break down the feature into smaller, manageable tasks
- Identify affected components and potential impact areas
- Plan the API/interface design before implementation
- Research and Analysis
- Identify similar features for consistency
- Research external dependencies or libraries needed
- Review any relevant documentation or specifications
- Architecture Design
- Plan database schema changes if needed
- Define API endpoints and contracts
- Consider scalability and performance implications
- Environment Setup
git checkout -b feature/$ARGUMENTS
- Ensure development environment is up to date
- Install any new dependencies required
- Set up feature flags if applicable
- Implementation Strategy
- Follow the project's coding standards and patterns
- Implement proper error handling and validation
- Use dependency injection and maintain loose coupling
- Database Changes (if applicable)
- Ensure backward compatibility
- Plan for rollback scenarios
- Test migrations on sample data
- API Development
- Add request/response validation
- Implement proper authentication and authorization
- Document API contracts and examples
- Frontend Implementation (if applicable)
- Implement responsive design and accessibility
- Add proper state management
- Handle loading and error states
- Testing Implementation
- Create integration tests for API endpoints
- Add end-to-end tests for user workflows
- Test error scenarios and edge cases
- Security Considerations
- Add authorization checks for sensitive operations
- Review for common security vulnerabilities
- Ensure data protection and privacy compliance
- Performance Optimization
- Implement caching where appropriate
- Monitor memory usage and optimize algorithms
- Consider lazy loading and pagination
- Documentation
- Update API documentation
- Create user documentation if needed
- Update project README if applicable
- Code Review Preparation
- Run linting and formatting tools
- Check for code coverage and quality metrics
- Perform self-review of the changes
- Integration Testing
- Verify feature flags work correctly
- Test deployment and rollback procedures
- Validate monitoring and logging
- Commit and Push
- Follow conventional commit format if project uses it
- Push feature branch: git push origin feature/$ARGUMENTS
- Pull Request Creation
- Include screenshots or demos if applicable
- Add appropriate labels and reviewers
- Link to any related issues or specifications
- Quality Assurance
- Address any bugs or issues found
- Verify accessibility and usability requirements
- Test on different environments and browsers
- Deployment Planning
- Set up monitoring and alerting
- Prepare rollback procedures
- Schedule deployment and communication
Remember to maintain code quality, follow project conventions, and prioritize user experience throughout the development process.
Related Claude Code Commands
Todo
Manage project todos in todos.md file
Create Prd
Create Product Requirements Document (PRD) for new features
Init Project
Initialize new project with essential structure, configuration, and development environment setup
Project Health Check
Analyze overall project health and generate comprehensive metrics report
Create Prp
Create comprehensive Product Requirement Prompt (PRP) with research and validation
Milestone Tracker
Track and analyze project milestone progress with predictive analytics
Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.