一键导入
benchmark-category-development
Use when designing, implementing, calibrating, running, or reporting task categories in the insforge-agent-benchmark repo.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when designing, implementing, calibrating, running, or reporting task categories in the insforge-agent-benchmark repo.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | benchmark-category-development |
| description | Use when designing, implementing, calibrating, running, or reporting task categories in the insforge-agent-benchmark repo. |
Use this repo-specific workflow to develop benchmark task categories such as DB access-control, integrity, query, vector, storage, or auth. The goal is a clean, central, provider-neutral task set with trustworthy verifier results and reproducible workflow comparisons.
tasks/<module>/<category>/<task_id>/.public schema when the benchmark target only supports that schema.Before writing tasks, define the category boundary in one sentence.
Use these DB category meanings unless the user changes them:
access-control: row, relation, field, role, ownership, and sharing authorization.integrity: invariants, lifecycle rules, constraints, triggers, derived state, state transitions, and maintenance logic.query: reporting, aggregation, search, pagination, query-facing views/functions, and query performance as an optional metric.vector: embeddings, similarity retrieval, hybrid search, metadata filters, and ranking.Build a candidate list, then reduce it. Keep only tasks that cover a distinct failure mode or product capability. Merge only when the combined task is still a natural real-world scenario, not two unrelated tasks glued together.
For each category, prefer fewer high-quality tasks over many repetitive ones. Difficulty labels should reflect expected agent complexity and runtime:
simple: one core concept, quick implementation, useful as a baseline.medium: two or three interacting requirements, likely one non-obvious edge case.hard: realistic multi-step backend behavior, but still designed to finish within about 5 minutes.Each task directory should normally contain:
meta.json
prompt.md
prepare.ts
verify.ts
attack.ts
cleanup.ts
state.ts
Use run.ts only when a compact single-file task is clearly cleaner.
meta.json:
suite is the module suite, such as db.capability equals the category directory name.difficulty is simple, medium, or hard.timeoutMs should usually be 300000 for agent-backed benchmark tasks.prompt.md:
task-state.json.implementation.json with useful completion notes.prepare.ts:
verify.ts:
attack.ts:
cleanup.ts:
npm run typecheck.k=1 on the most relevant InsForge workflow.Useful command shapes:
npm run typecheck
npm run benchmark:k -- --k 1 --provider insforge --workflow cli-skills --module db --capability <category> --task <task_id> --run-id <run_id>
npm run benchmark:k -- --k 1 --provider insforge --workflow mcp --module db --capability <category> --task <task_id> --run-id <run_id>
npm run benchmark:k -- --k 1 --provider supabase --workflow cli-skills --module db --capability <category> --task <task_id> --run-id <run_id>
npm run benchmark:k -- --k 1 --provider supabase --workflow mcp --module db --capability <category> --task <task_id> --run-id <run_id>
npm run benchmark:k -- --k 1 --provider supabase --workflow mcp-skills --module db --capability <category> --task <task_id> --run-id <run_id>
Run workflows one at a time for large k experiments unless the user explicitly wants a matrix shortcut. This keeps memory use predictable and makes interrupted runs easier to resume.
For a finalized category:
k=3 for each selected workflow, one workflow at a time.For the current RLS comparison, the common selected workflows are:
Do not assume this list applies to every category; confirm the intended comparison surface from the current request and repo state.
Write reports like a benchmark report, not a work log.
Include:
Avoid: