Agent Skill
2/7/2026

batch-processor

Apply operations across multiple files in parallel. Use when user says 'rename across', 'update all', 'add to every', or needs to apply same change to many files.

K
khamel83
0GitHub Stars
1Views
npx skills add Khamel83/oneshot

SKILL.md

Namebatch-processor
DescriptionApply operations across multiple files in parallel. Use when user says 'rename across', 'update all', 'add to every', or needs to apply same change to many files.

ONE_SHOT v12

Your personal Claude Code configuration.

One install gives you: progressive disclosure rules, slash commands, native task tracking, intelligent delegation, and swarm mode.

Quick Start | All Commands | What's New | Full Docs


Quick Start

# 1. In your project
cd your-project

# 2. Install
curl -sL https://raw.githubusercontent.com/Khamel83/oneshot/master/oneshot.sh | bash

# 3. Start Claude Code
claude .

Then just describe what you're working on. ONE_SHOT loads the right rules automatically.


How It Works

Progressive disclosure - Rules load based on your project type:

Your ProjectDetectsLoads
Web appastro.config.* or wrangler.tomlCore + Web rules
CLIsetup.py or pyproject.tomlCore + CLI rules
Service*.serviceCore + Service rules
Anything elseCore rules only

~300 tokens always loaded (down from ~2000 in older versions).


Slash Commands

Click any command for full documentation.

Planning & Execution

CommandDescription
/interviewStructured requirements gathering before coding
/cpLiving 3-file plan that survives /clear
/run-planExecute plan from task_plan.md step-by-step
/implementExecute plan with native task tracking

Context & Recovery

CommandDescription
/handoffSave checkpoint before /clear
/restoreResume from handoff
/sessionsBrowse encrypted session history

Task Tracking

CommandDescription
Native TasksBuilt-in: TaskCreate, TaskList, TaskUpdate, TaskGet
/beadsLegacy CLI-based tracking (deprecated)

Debugging & Quality

CommandDescription
/diagnoseHypothesis-based debugging
/codereviewOWASP + quality review

Research & Docs

CommandDescription
/researchBackground research via Gemini CLI
/freesearchZero-token web search via Exa API
/docCache external docs locally
/skill-discoveryFind skills matching your goal

Multi-File & Remote

CommandDescription
/batchParallel operations across 10+ files
/remoteExecute on homelab/macmini via SSH

Delegation (v12.2)

CommandDescription
/delegation-logView delegation audit trail
/delegation-trajectorySee session execution paths
/delegation-statsReward-weighted performance stats

Parallel Work

CommandDescription
/swarmMulti-agent teams (experimental)

Utilities

CommandDescription
/thinkMulti-perspective analysis
/auditStrategic communication filter
/secretsSOPS/Age secret management
/stack-setupConfigure Astro + Cloudflare + Postgres
/updateUpdate ONE_SHOT from GitHub
/visionVisual inspection via MCP

What's New

v12.2 (2026-02-19)

  • Agent Lightning integration - Delegation spans with span_id, session_id, tool_sequence, reward
  • New commands: /delegation-log, /delegation-trajectory, /delegation-stats
  • Credit assignment - See which delegations helped vs. bottlenecked

v11.0 (2026-02-13)

  • Native Tasks - Built-in TaskCreate/TaskList/TaskUpdate (Beads deprecated)
  • /swarm - Multi-agent team orchestration

v10.3 (2026-02-12)

  • New stack - Astro + Cloudflare + Better Auth + Postgres (replaced Convex+Next.js)

Full changelog →


Stack Defaults

Project TypeStack
Web appsAstro + Cloudflare Pages/Workers + Better Auth + Postgres on OCI
CLIsPython + Click + SQLite
ServicesPython + systemd → oci-dev
Heavy computeRoute to macmini
Large storageRoute to homelab

Project Structure

After installation:

your-project/
├── AGENTS.md           # Skill router (curl from oneshot, read-only)
└── CLAUDE.md           # Your project-specific instructions

Global config (installed once):

~/.claude/
├── CLAUDE.md           # Core identity
├── rules/              # Progressive disclosure rules
│   ├── core.md         # Always loaded
│   ├── web.md          # Web apps
│   ├── cli.md          # CLIs
│   └── service.md      # Services
├── commands/           # Slash commands
└── tasks/              # Native task storage (persistent)

Key Files

FilePurpose
AGENTS.mdSkill routing (LLM-only, curl from repo)
CLAUDE.mdYour project-specific instructions
docs/SKILLS.mdFull command reference
.claude/rules/Progressive disclosure rules
.claude/commands/Slash command definitions
CHANGELOG.mdVersion history

Prerequisites

# Optional: Gemini CLI (for /research)
npm install -g @google/gemini-cli && gemini auth login

# Optional: Beads CLI (legacy task tracking)
npm install -g @beads/bd

Secrets (SOPS/Age)

ONE_SHOT uses SOPS + Age for encrypted secrets. Age key at ~/.age/key.txt.

On new machines:

# Copy age key from existing machine
scp user@known-machine:~/.age/key.txt ~/.age/key.txt

# Verify decryption works
sops -d secrets/research_keys.env.encrypted

Encrypted files in secrets/:

  • research_keys.env.encrypted - API keys (ZAI, Exa, Tavily, etc.)
  • homelab.env.encrypted - Homelab credentials
  • *.env.encrypted - Project-specific secrets

Documentation Cache

Link cached external docs to any project:

docs-link add polymarket astro cloudflare  # Link docs
docs-link list                              # Show linked
docs-link available                         # Show all cached

Creates symlinks in docs/external/~/github/docs-cache/.


Heartbeat Scripts

Automatic maintenance (run via systemd or cron):

ScriptPurpose
heartbeat.shPeriodic maintenance
check-oneshot.shVerify ONE_SHOT is up to date
check-apis.shCheck API keys and services
~/.claude/scripts/heartbeat-install.sh

Updating

# From any project
/update

# Or force reinstall
curl -sSL https://raw.githubusercontent.com/Khamel83/oneshot/master/scripts/oneshot-update.sh | bash -s -- force

Troubleshooting

ProblemSolution
Command not workingCheck ~/.claude/commands/
Rules not loadingCheck ~/.claude/rules/ exists
Lost context/restore or say "resume"
Tasks not persistingCheck ~/.claude/tasks/ exists
Beads not foundnpm install -g @beads/bd

v12.2 | Source | Issues

Skills Info
Original Name:batch-processorAuthor:khamel83