基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/a16z/jolt --skill new-objective命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | new-objective |
| description | Implement a new objective for jolt-eval |
| argument-hint | <objective-name> |
This skill handles all the boilerplate: creating the objective struct, implementing the Objective trait, registering it in the appropriate enum, creating a const key, adding an ObjectiveFunction, creating a Criterion benchmark, and running sync_targets.sh.
<Execution_Policy>
cyclomatic_complexity).{{ARGUMENTS}}: must be a valid Rust identifier (lowercase alphanumeric + underscores). Reject otherwise.description())collect_measurement(), uses Setup = ().setup() and run().diff_paths() scoping)jolt-eval/src/objective/mod.rs to understand the current enums and dispatch methods.jolt-eval/src/objective/objective_fn/mod.rs to understand objective function registration.jolt-eval/src/objective/code_quality/lloc.rsjolt-eval/src/objective/performance/binding.rsCreate the objective file following the full template for the objective kind (both in this skill's directory):
jolt-eval/src/objective/code_quality/<objective_name>.rs — follow references/static-analysis.mdjolt-eval/src/objective/performance/<objective_name>.rs — follow references/performance.md (includes Criterion setup/run guidelines)Edit the appropriate mod.rs:
jolt-eval/src/objective/code_quality/mod.rs — add pub mod <objective_name>;jolt-eval/src/objective/performance/mod.rs — add pub mod <objective_name>;Edit jolt-eval/src/objective/mod.rs:
For static analysis, add to StaticAnalysisObjective:
all() with the target_dir fieldname(), description(), collect_measurement(), collect_measurement_in(), units()For performance, add to PerformanceObjective:
all()name(), units(), description()diff_paths() — return the appropriate path sliceAdd a pub use line in jolt-eval/src/objective/mod.rs:
pub use <submodule>::<objective_name>::<UPPER_NAME>;
Edit jolt-eval/src/objective/objective_fn/mod.rs:
Import the const key:
use super::{..., <UPPER_NAME>};
Add a const ObjectiveFunction:
pub const MINIMIZE_<UPPER_NAME>: ObjectiveFunction = ObjectiveFunction {
name: "minimize_<objective_name>",
inputs: &[<UPPER_NAME>],
evaluate: |m, _| m.get(&<UPPER_NAME>).copied().unwrap_or(f64::INFINITY),
};
Add it to ObjectiveFunction::all().
Performance objectives are measured via Criterion — without the bench file, the optimization harness can't measure them. Create jolt-eval/benches/<objective_name>.rs:
use jolt_eval::objective::performance::<objective_name>::<Name>Objective;
jolt_eval::bench_objective!(<Name>Objective);
Then run ./jolt-eval/sync_targets.sh to update Cargo.toml with the new [[bench]] entry.
Run these commands (all must pass):
# Format
cargo fmt -q
# Lint
cargo clippy -p jolt-eval -q --all-targets -- -D warnings
# Run tests
cargo nextest run -p jolt-eval --cargo-quiet
# For static analysis objectives, verify the measurement works
cargo run -p jolt-eval --bin measure-objectives -- --objective <objective_name>
# For performance objectives, verify the benchmark compiles
cargo bench -p jolt-eval --bench <objective_name> -- --test
If any step fails, fix the issue and re-run.
Task: Implement a new objective for jolt-eval. {{ARGUMENTS}}
Wrap a Rust function in a Jolt zero-knowledge proof
Spec analysis with ambiguity scoring — interactive locally, single-pass remotely via label
Deep code review of a pull request using parallel analysis agents (semantic consistency, bugs, tech debt, security). USE FOR: - Reviewing PRs for bugs, security issues, and code quality - Analyzing new abstractions for consistency and correctness - Identifying tech debt and architectural concerns - Posting review comments to specific lines on GitHub TRIGGERS: - "review PR", "code review", "review changes" - "diff review", "PR feedback", "check PR" - "analyze diff", "critique code", "review code" - "pull request review", "GitHub PR review"