Skip to content
Back to skills

Fork Census

ASecurity

Measure process costs and fork budgets when changing startup, per-file, per-test, parallel workers, reporting, or coverage paths; use for fork census and performance comparisons.

  • 443 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 9, 2026
testingshellbashgitperformance

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add TypedDevs/bashunit --skill fork-census --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fork Census?

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

Security grade badge for Fork Census
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/typeddevs-fork-census/badge)](https://www.skillsdirectory.com/skills/typeddevs-fork-census)

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: fork-census
description: Measure process costs and fork budgets when changing startup, per-file, per-test, parallel workers, reporting, or coverage paths; use for fork census and performance comparisons.
allowed-tools: [read, shell]
---

# Fork census

Read [the fork-budget reference](references/fork-budget.md) before changing process costs, and [the module map](references/module-map.md) to find which `src/` module owns a path. Its historical timings are evidence of earlier measurements, not current baselines. All repository paths below are relative to the repository root.

1. Identify the actual path: cold start, sequential run, parallel worker, lifecycle hook, report, or coverage. Read the matching existing fixture in `tests/acceptance/bashunit_coldstart_forks_test.sh`, `tests/acceptance/bashunit_run_forks_test.sh`, or `tests/acceptance/bashunit_coverage_forks_test.sh`. Include the options and hooks the change exercises.
2. For a timing claim, measure current main before editing and record its commit, Bash version, OS, fixture, options, and sampling method. Land any new benchmark harness before the PR that measures a delta. Alternate baseline and candidate rounds in the same location and repeat anomalous readings.
3. Use the reference's PATH-shim census for binary invocations. Resolve real binaries before adding shims; startup-pinned binaries bypass them. Account separately for shell-function subshells. Use traces to locate sites, not raw trace-line totals to count forks. Skip unreliable PATH-shim checks on Git Bash.
4. Add a failing budget regression using the existing fixture patterns, then make the smallest change. Measure parallel costs with a parallel fixture and compare supported Bash versions. Never replace a fork with pure Bash based only on a microbenchmark.
5. Run the matching acceptance file with `./bashunit --no-parallel tests/acceptance/<existing-file>`. These tests select their own internal sequential or parallel census. Preserve the checked budgets; report counts, timing samples, and limits. The main session completes the checks selected under `.agnostic-ai/AGNOSTIC_AI.md` after the complete change set.

Files in this skill

  • SKILL.md2.1 KB
  • references/fork-budget.md16.7 KB
  • references/module-map.md8.4 KB

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.

View all in testing →

Comments

Loading comments…

Newsletter

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