跳到正文
cccskills
免费在 GitHub 公开

fork-census

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.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md2.0 KB
  • references/fork-budget.md16.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Fork census

Read the fork-budget reference before changing process costs. 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 runs the full quality gate after the complete change set.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Add new assertion function with comprehensive tests following TDD

中文简介正在准备中。当前显示原文说明。

TypedDevs/bashunit4362026年10月18日 更新

Analyze test coverage and identify untested code paths

中文简介正在准备中。当前显示原文说明。

TypedDevs/bashunit4362026年10月18日 更新

commit

免费

Stage and commit changes using conventional commits format

中文简介正在准备中。当前显示原文说明。

TypedDevs/bashunit4362026年10月18日 更新

fix-test

免费

Debug and fix failing tests systematically

中文简介正在准备中。当前显示原文说明。

TypedDevs/bashunit4362026年10月18日 更新

gh-issue

免费

Fetch GitHub issue, create branch, plan and implement with TDD, then open PR

中文简介正在准备中。当前显示原文说明。

TypedDevs/bashunit4362026年10月18日 更新

gh-issues

免费

Walk over all open GitHub issues that are unassigned or assigned to the current user, and process each one via the /gh-issue skill, sequentially.

中文简介正在准备中。当前显示原文说明。

TypedDevs/bashunit4362026年10月18日 更新

查看 TypedDevs 的全部技能

报告此技能的问题