一键导入
measure
Quantify values with uncertainty bounds. Use when estimating metrics, calculating risk scores, assessing magnitude, or measuring any quantifiable property.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Quantify values with uncertainty bounds. Use when estimating metrics, calculating risk scores, assessing magnitude, or measuring any quantifiable property.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | measure |
| description | Quantify values with uncertainty bounds. Use when estimating metrics, calculating risk scores, assessing magnitude, or measuring any quantifiable property. |
| argument-hint | [target] [metric] [unit] |
| disable-model-invocation | false |
| user-invocable | true |
| allowed-tools | Read, Grep, Bash |
| context | fork |
| agent | explore |
| layer | UNDERSTAND |
Quantify a specific metric for a target, providing a numerical value with explicit uncertainty bounds. This capability consolidates all estimation tasks (risk, impact, effort, etc.) into a single parameterized operation.
Success criteria:
Compatible schemas:
schemas/output_schema.yaml| Parameter | Required | Type | Description |
|---|---|---|---|
target | Yes | any | What to measure (system, code, entity, process) |
metric | Yes | string | The metric to quantify (risk, complexity, effort, size, etc.) |
unit | No | string | Unit of measurement (optional, inferred if not provided) |
method | No | string | Measurement approach (heuristic, statistical, model-based) |
Define the metric: Clarify exactly what is being measured
Gather measurement inputs: Collect data needed for measurement
Calculate measurement: Apply measurement method to inputs
Establish uncertainty bounds: Quantify measurement confidence
Ground the measurement: Document evidence and method
Return a structured object:
value: number # The measured value
uncertainty:
lower: number # Lower bound (confidence interval)
upper: number # Upper bound (confidence interval)
type: string # Type of uncertainty (confidence_interval, range, std_dev)
unit: string # Unit of measurement
metric: string # What was measured
method: string # How it was measured
breakdown: # Optional component breakdown
- component: string
value: number
confidence: 0..1 # Confidence in measurement accuracy
evidence_anchors: ["file:line", "data:source"]
assumptions: []
| Field | Type | Description |
|---|---|---|
value | number | Primary measurement value |
uncertainty | object | Bounds and type of uncertainty |
unit | string | Unit of measurement |
metric | string | Name of measured property |
method | string | Measurement methodology used |
breakdown | array | Optional decomposition of measurement |
Input:
target: "src/services/order_processor.rb"
metric: "complexity"
unit: "cyclomatic"
Output:
value: 24
uncertainty:
lower: 22
upper: 26
type: "range"
unit: "cyclomatic complexity"
metric: "complexity"
method: "counted decision points (if, case, loops, &&, ||)"
breakdown:
- component: "process_order method"
value: 12
- component: "validate_items method"
value: 8
- component: "calculate_totals method"
value: 4
confidence: 0.9
evidence_anchors:
- "src/services/order_processor.rb:15-120"
assumptions:
- "Ruby control flow statements counted as decision points"
- "Exception handling counted as branches"
Input:
target: "database migration: add user_preferences column"
metric: "risk"
method: "probability_impact"
Output:
value: 0.35
uncertainty:
lower: 0.25
upper: 0.50
type: "confidence_interval_90"
unit: "risk score (0-1)"
metric: "risk"
method: "probability (0.5) * impact (0.7) normalized"
breakdown:
- component: "probability_of_failure"
value: 0.5
- component: "impact_if_failed"
value: 0.7
- component: "data_loss_risk"
value: 0.2
- component: "downtime_risk"
value: 0.4
confidence: 0.7
evidence_anchors:
- "migrations/20240115_add_preferences.rb:1-25"
- "tool:grep:similar_migrations"
assumptions:
- "Table has ~1M rows based on user count"
- "Migration will lock table during ALTER"
- "No concurrent deployments during migration"
Verification tools: Read (to verify measurement inputs)
mutation: falserequires_checkpoint: falserequires_approval: falserisk: lowCapability-specific rules:
Commonly follows:
observe - Measure properties of observed statedetect - Measure characteristics of detected itemsretrieve - Measure retrieved dataCommonly precedes:
predict - Measurements feed into predictionscompare - Measurements enable quantitative comparisonplan - Measurements inform risk-aware planningAnti-patterns:
detect)classify)Workflow references:
reference/workflow_catalog.yaml#digital_twin_sync_loop for risk measurementAnalyze a task description to detect required capabilities from the ontology, identify gaps, and synthesize a valid workflow automatically. Trigger: "discover capabilities", "what capabilities do I need", "analyze task", "synthesize workflow"
Establish cause-effect relationships between events or states. Use when analyzing root causes, mapping dependencies, tracing effects, or building causal models.
Produce a comprehensive audit trail of actions, tools used, changes made, and decision rationale. Use when recording compliance evidence, tracking changes, or documenting decision lineage.
Identify capability gaps and propose new skills with prioritization. Use when analyzing missing capabilities, planning skill development, performing ontology expansion, or assessing coverage.
Create a safety checkpoint marker before mutation or execution steps. Use when about to modify files, execute plans, or perform any irreversible action. Essential for the CAVR pattern.
Assign labels or categories to items based on characteristics. Use when categorizing entities, tagging content, identifying types, or labeling data according to a taxonomy.