Skip to content
Back to skills

Mode Selection

ASecurity

Sub-skill of parallel-file-processor: Mode Selection (+2).

  • 17 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 9, 2026
developmentpythongo

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill mode-selection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mode Selection?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mode Selection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-mode-selection/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-mode-selection)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: parallel-file-processor-mode-selection
description: 'Sub-skill of parallel-file-processor: Mode Selection (+2).'
version: 1.1.0
category: development
type: reference
scripts_exempt: true
---

# Mode Selection (+2)

## Mode Selection


| Workload Type | Recommended Mode | Reason |
|---------------|------------------|--------|
| File I/O | `THREAD_POOL` | IO-bound, threads avoid GIL issues |
| Data parsing | `THREAD_POOL` | Pandas releases GIL during IO |
| CPU computation | `PROCESS_POOL` | Bypasses GIL for true parallelism |
| Network requests | `ASYNC` | Best for many concurrent connections |
| Simple operations | `SEQUENTIAL` | Overhead may exceed benefit |

## Worker Count


```python
import os

# IO-bound (reading files, network)
io_workers = os.cpu_count() * 2

# CPU-bound (heavy computation)
cpu_workers = os.cpu_count()

# Memory-constrained (large files)
memory_workers = max(2, os.cpu_count() // 2)
```

## Batch Size


- **Small files (<1MB):** Large batches (500-1000)
- **Medium files (1-100MB):** Medium batches (50-100)
- **Large files (>100MB):** Small batches (10-20) or one at a time

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.