Token导航 LogoToken导航

Agent Skill · 开发

agent-spec-estimate(Agent 规格估计)

agent-spec-estimate 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

agent-spec-estimate 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 20,764。

总安装 212周安装 9GitHub Stars 224下载 74核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:agent-spec-estimate(Agent 规格估计)
来源仓库:https://github.com/zhanghandong/agent-spec
仓库路径:skills/agent-spec-estimate
安装命令:
npx skills add https://github.com/zhanghandong/agent-spec --skill agent-spec-estimate
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/zhanghandong/agent-spec --skill agent-spec-estimate

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

用于从结构化任务契约估算 AI 工作量投入。适合项目规划和冲刺安排时评估任务复杂度。通过 GitHub 安装,依赖 agent-spec CLI 工具进行计算。可比较多个规格文件的工时并识别风险驱动因素。支持基于实际重试次数校准估算准确性。

agent-spec-estimate 属于开发类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/agent-spec-estimate

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/zhanghandong/agent-spec --skill agent-spec-est…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

agent-spec-estimate 怎么安装?

在终端执行 npx skills add https://github.com/zhanghandong/agent-spec --skill agent-spec-estimate。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

agent-spec-estimate 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

agent-spec-estimate 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

agent-spec-estimate 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

agent-spec-estimate 用的人多吗?

公开数据是累计安装 212 次,近一周安装 9 次,下载 74 次,GitHub 224 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

agent-spec-estimate 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
agent-spec-estimate

Agent 规格估计 · 本页

212224只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Agent Spec Estimate

Version: 1.1.0 | Last Updated: 2026-03-19

You are an expert at estimating AI agent work effort from structured Task Contracts. Help users by:

  • Estimating specs: Read a .spec/.spec.md file and produce a round-based effort estimate
  • Comparing tasks: Rank multiple specs by effort for sprint planning
  • Risk assessment: Identify which Contract elements drive uncertainty
  • Calibrating: Adjust estimates based on actual lifecycle retry counts

IMPORTANT: CLI Prerequisite Check

Before running any agent-spec command, Claude MUST check:

command -v agent-spec || cargo install agent-spec

If agent-spec is not installed, inform the user:

agent-spec CLI not found. Install with: cargo install agent-spec

Quick Reference

ActionCommandOutput
Estimate a specagent-spec plan <spec> --code. --format json then apply estimationRound-based breakdown table
Estimate (contract only)agent-spec contract <spec> then apply estimationRound-based breakdown (no codebase context)
Batch estimateRun on all specs in specs/Sorted effort ranking
Calibrate from historyagent-spec explain <spec> --historyCompare predicted vs actual rounds

Core Method

Contract → Rounds Mapping

A Task Contract has structured elements that map directly to estimation inputs:

Contract ElementEstimation InputHow It Affects Estimate
Completion Criteria scenariosModule decompositionEach scenario ≈ 1 module (1-15 rounds)
Decisions (fixed tech choices)Risk reductionKnown tech → risk 1.0; new tech → risk 1.3-1.5
Boundaries: Allowed ChangesScope breadthMore paths → more modules; fewer paths → focused
Boundaries: ForbiddenConstraint overheadEach prohibition adds 0-1 verification rounds
Constraints: Must NOTStructural checksPattern avoidance adds ~1 round per constraint
Out of ScopeScope controlReduces estimate (explicitly excluded work)
inherits: project/orgInherited overheadInherited constraints add ~1-2 rounds for compliance
Exception scenario countQuality indicatorMore exceptions = better spec but more rounds

Scenario Complexity Tiers

Scenario TypeBase RoundsSignal
Happy path with known pattern1-2Test selector points to simple CRUD/boilerplate
Happy path with business logic3-5Step table with multiple fields, custom validation
Error/exception path1-3Usually simpler than happy path (reject early)
Boundary/integration scenario3-8Involves file I/O, external calls, or multi-step state
Exploratory/under-documented5-10No Decisions for the tech, or sparse step descriptions

Risk Coefficient from Contract Signals

Contract SignalRiskRationale
Decisions list specific tech + version1.0No technology shopping
Decisions exist but are vague1.3Agent may need to explore
No Decisions section1.5Agent must choose, retry likely
Boundaries are tight (2-3 paths)1.0Clear scope
Boundaries are broad (10+ paths)1.3More surface area for mistakes
inherits: project with strict constraints1.2Must satisfy inherited rules too
Step text uses quantified assertions1.0Deterministic test expected
Step text uses vague language1.5Test may not match intent

Estimation Procedure

Step 1: Read the Contract and Codebase Context

# Preferred: plan gives contract + codebase context + task sketch
agent-spec plan specs/task.spec.md --code . --format json

# Alternative: contract only (no codebase awareness)
agent-spec contract specs/task.spec.md

Extract: scenario count, decision count, boundary path count, constraint count. From plan output, also consider: existing file count (less new code needed), existing test count (less test scaffolding), task sketch grouping (parallel vs sequential work).

Step 2: Decompose Scenarios into Modules

Each scenario is a potential module. If plan output is available, use its Task Sketch groups as the starting decomposition — scenarios in the same group share no dependencies and can be estimated together:

  • If 3 scenarios all test the same endpoint → 1 module (implementation) + 1 module (tests)
  • If scenarios span different subsystems → separate modules
  • If Task Sketch has N groups → at least N sequential phases

Step 3: Estimate Rounds per Module

Apply the Scenario Complexity Tiers table. For each module:

base_rounds = sum of scenario base rounds in this module

Step 4: Apply Risk Coefficients

Read the Contract's Decisions and Boundaries. Apply the Risk Coefficient table:

effective_rounds = base_rounds × risk_coefficient

Step 5: Add Integration + Verification Overhead

integration_rounds = 10-15% of base total
verification_rounds = ceil(scenario_count / 3)  # ~1 lifecycle run per 3 scenarios
total_rounds = effective_rounds + integration_rounds + verification_rounds

Step 6: Convert to Wallclock Time

wallclock_minutes = total_rounds × 3  # default 3 min/round

Adjust minutes_per_round:

  • Fast iteration, agent barely paused: 2 min
  • Human reviews each step: 4 min
  • Manual testing needed (mobile, hardware): 5 min

Output Format

Always produce this exact structure:

### Estimate: [spec name]

#### Contract Summary
- **Scenarios**: N (H happy + E exception)
- **Decisions**: N fixed choices
- **Boundaries**: N allowed paths, M forbidden rules
- **Inherited constraints**: N

#### Module Breakdown

| # | Module | Scenarios | Base Rounds | Risk | Effective | Notes |
|---|--------|-----------|-------------|------|-----------|-------|
| 1 | ...    | S1, S2    | N           | 1.x  | M         | why   |

#### Summary

- **Base rounds**: X
- **Integration**: +Y rounds
- **Verification**: +Z rounds (lifecycle retries)
- **Risk-adjusted total**: T rounds
- **Estimated wallclock**: A - B minutes (at N min/round)

#### Risk Factors
1. [specific risk from Contract analysis]
2. [...]

#### Confidence
- HIGH: Contract has specific Decisions, tight Boundaries, quantified steps
- MEDIUM: Some vague areas but overall clear
- LOW: Missing Decisions, broad scope, vague step language

**Evidence rule**: Every number in the estimate table MUST trace back to a specific Contract element (scenario name, decision text, boundary path). Do not use "should" or "probably" when stating estimates — if you cannot point to the source, the number is a guess. Mark it as such and flag the uncertainty.

Calibration: Predicted vs Actual

After a task is complete, compare prediction to reality:

agent-spec explain specs/task.spec.md --history

The retry count from run logs tells you the actual verification rounds. Compare:

predicted_verification_rounds vs actual_retries

If actual > predicted × 1.5 → the spec had hidden complexity. Note this for future calibration.

Batch Estimation for Sprint Planning

To estimate all active specs:

for spec in specs/task-*.spec.md; do
  echo "=== $(basename $spec) ==="
  agent-spec contract "$spec" 2>/dev/null | head -20
  echo
done

Then apply the estimation procedure to each, and sort by total rounds:

### Sprint Capacity Plan

| Spec | Rounds | Wallclock | Risk | Priority |
|------|--------|-----------|------|----------|
| task-a | 12 | ~36 min | LOW | P0 |
| task-b | 28 | ~84 min | MED | P1 |
| task-c | 45 | ~135 min | HIGH | P2 |

**Total**: 85 rounds ≈ 4.25 hours of agent time

Common Mistakes

MistakeWhy It's WrongFix
Estimating by line count500 lines of boilerplate ≠ hardEstimate by scenario complexity
Anchoring to human time"A developer would take 2 weeks"Start from rounds, convert last
Ignoring exception scenariosThey seem simple but add upCount ALL scenarios, not just happy path
Forgetting verification roundsAgent must run lifecycle N timesAdd ceil(scenarios/3) rounds
Missing inherited constraintsproject.spec adds hidden workCheck inherits: and count parent constraints

When NOT to Estimate

SituationWhyAlternative
No .spec file yetNothing to estimate fromWrite the Contract first
Spec has lint score < 0.5Too vague for reliable estimateImprove spec quality first
Exploratory / vibe codingNo defined "done"Just start coding, write spec later

平台分布

Codex

33.79%
按下载量换算25

Claude

33.87%
按下载量换算25

Cursor

18.42%
按下载量换算14

Gemini CLI

9.98%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills