Token导航 LogoToken导航

Agent Skill · 研究检索

cost-estimate(成本估算)

cost-estimate 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

cost-estimate 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 36,805。

总安装 1,858周安装 79GitHub Stars 公开资料未说明下载 651核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/ulpi-io/skills --skill cost-estimate

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

cost-estimate 基于代码行数与会话时长估算工程人力与基础设施开销。适用于项目初期预算编制与第三方报价合理性比对。内置区域费率表与组织乘数因子,支持分支或提交粒度的精准测算。外部市场研究为可选输入,默认采用内置标准费率。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

cost-estimate 怎么安装?

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

cost-estimate 支持哪些 AI 工具?

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

cost-estimate 需要什么权限?

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

cost-estimate 是免费的吗?

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

cost-estimate 用的人多吗?

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

cost-estimate 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

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

研究检索类 Skill 对比

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

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
cost-estimate

成本估算 · 本页

1,858—只读未明确有提醒

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

SKILL.md 原文

Non-negotiable rules:

  1. Use the helper scripts under .agents/skills/cost-estimate/helpers/ instead of redoing LOC, session, or cost math manually.
  2. Keep scope explicit: full repo, branch:<name>, or commit:<hash>.
  3. Separate raw engineering hours from organizational overhead and team multipliers.
  4. Keep the pricing rubric and report schema in references, not inline in the invocation path.
  5. Treat external market-rate research as optional. Use built-in rates unless the user explicitly requests a different market or region.

Cost Estimate

Inputs

  • $request: Optional scope or estimation guidance such as branch:feat/foo, commit:abc1234, region hints, or desired audience

Goal

Produce a credible estimate that:

  • measures the requested code scope with the helper scripts
  • classifies code into the right productivity buckets
  • computes engineering hours and costs without double-counting overhead
  • translates that estimate into realistic calendar and team-cost views
  • reports assumptions, confidence, and Claude ROI clearly

Step 0: Resolve scope and mode

Parse the request into one of:

  • full repository
  • branch:<name>
  • commit:<hash>

If the request is ambiguous, infer full repository by default. If the user supplied region or market hints, carry them into the final rate discussion. Otherwise use the built-in baseline rates.

Success criteria: The estimation target and pricing basis are explicit before running scripts.

Step 1: Measure the real code surface with the helper scripts

Use the helper toolchain in .agents/skills/cost-estimate/helpers/:

  • loc_counter.py
  • git_session_analyzer.py
  • cost_calculator.py
  • report_generator.py

Run loc_counter.py for the resolved scope to capture:

  • total lines
  • file counts
  • language breakdown
  • directory breakdown
  • source vs test vs config vs docs
  • per-file category candidates from all_files

Run git_session_analyzer.py when git history is available so Claude ROI can use actual session estimates rather than LOC fallback.

Rules:

  • prefer the script output over ad hoc find, wc, or inline arithmetic
  • if scope is a branch or commit, measure the diff rather than the full repository
  • if git history is missing or unhelpful, fall back to LOC-based Claude hour estimates later

Success criteria: You have structured JSON for scope size and, when possible, active-session estimates.

Step 2: Classify the code into productivity buckets

Review the loc_counter.py output and map every relevant source line into exactly one category.

Use references/estimation-rates.md for:

  • category keys
  • productivity ranges
  • overhead ranges
  • market-rate baselines
  • role multipliers
  • organizational efficiency constants
  • Claude ROI constants

Classification rules:

  • assign each source line once
  • keep tests, config/build, and documentation separate from product code
  • detect specialized work such as GPU, native interop, audio/video, system extensions, or on-device ML
  • do not inflate complexity without file-level evidence
  • group files when a directory clearly shares one category, but call out exceptional files separately

Success criteria: There is a complete category-to-line-count JSON payload for the calculator.

Step 3: Run the calculator and sanity-check the output

Pipe the category totals into cost_calculator.py.

The calculator should produce:

  • base coding hours
  • overhead hours
  • total estimated hours
  • sanity-check effective lines/hour
  • calendar-time tables
  • engineering-only cost
  • full-team cost
  • Claude ROI fields when Claude hours are available

Rules:

  • do not bake overhead into the category assignment; the calculator already adds overhead
  • if the sanity check falls outside the target range, adjust category assignments or explain why this repo is legitimately outside the norm
  • use built-in market rates by default unless the user explicitly requested a different market basis

Success criteria: The calculator output is internally consistent and the sanity check has been reviewed.

Step 4: Refine Claude ROI and confidence

If session data exists, inspect it and adjust only when the default commit-density heuristic is obviously understating large-scope work. If session data is missing, use the fallback Claude productivity constant from references/estimation-rates.md.

Report:

  • estimated Claude active hours
  • speed multiplier vs the baseline human rate
  • value per Claude hour
  • headline ROI and savings

Also state confidence:

  • high when scope, category mix, and history are clean
  • medium when history or categorization is incomplete
  • low when the request is intentionally approximate or the repo is only partially available

Success criteria: The ROI story is explicit, bounded, and not overstated.

Step 5: Generate the report body

Use report_generator.py to generate the markdown backbone, then refine the narrative where needed.

Load references/report-contract.md for the required report structure and minimum sections.

The final estimate should cover:

  • executive summary
  • codebase metrics
  • development-time estimate
  • calendar-time view
  • engineering-only cost
  • full-team cost
  • Claude ROI
  • assumptions and caveats

Rules:

  • lead with the executive summary and Claude ROI
  • keep the report stakeholder-readable, not tool-dump heavy
  • mention the scope basis explicitly
  • preserve escaped currency formatting when editing prose manually

Success criteria: The estimate is readable, structured, and aligned with the report contract.

Guardrails

  • Do not add disable-model-invocation; this is a read-heavy analysis workflow.
  • Do not add paths:; this is a generic estimation skill.
  • Do not keep pricing tables, role matrices, or full report templates inline in SKILL.md.
  • Do not replace helper-script output with manual math unless the helper chain is unavailable.
  • Do not present a cost number without the scope, assumptions, and confidence level.
  • Do not claim region-specific market validation unless the user explicitly requested it and that research was actually performed.

When To Load References

  • references/estimation-rates.md Use for the productivity buckets, overhead rates, market-rate baselines, team multipliers, efficiency constants, and Claude ROI fallback constants.
  • references/report-contract.md Use for the mandatory section order, reporting contract, and required caveats.

Helper Scripts

  • .agents/skills/cost-estimate/helpers/loc_counter.py

- full repo: no flags - branch diff: --branch <name> (optionally --base <base>) - single commit: --commit <hash> - output: JSON with totals, by_language, by_directory, all_files

  • .agents/skills/cost-estimate/helpers/git_session_analyzer.py

- all commits: no flags - specific branch: --branch <name> - output: JSON with total_commits, total_sessions, estimated_active_hours, sessions[]

  • .agents/skills/cost-estimate/helpers/cost_calculator.py

- input: pipe category JSON on stdin - flags: --rate <hourly>, --claude-hours <N> - valid category keys: simple_crud_ui_boilerplate, standard_views, complex_ui, business_logic, database_persistence, audio_video_processing, gpu_shader, native_interop, system_extensions, on_device_ml, tests, config_build, documentation - output: JSON with base_coding, overhead, total_estimated_hours, sanity_check, calendar_time, engineering_cost, team_costs, claude_roi

  • .agents/skills/cost-estimate/helpers/report_generator.py

- flags: --calc <costs.json>, --sessions <sessions.json>, --project <name>, --scope <desc> - single section: --section <name> - available sections: executive_summary, development_time, calendar_time, engineering_cost, team_cost, grand_total, claude_roi, assumptions - output: ready-to-paste markdown

Use these directly. The judgment work in this skill is classification, calibration, and explanation, not reimplementing the scripts.

Output Contract

Report:

  1. resolved scope and pricing basis
  2. key repo metrics and complexity drivers
  3. engineering hours and sanity-check result
  4. engineering-only and team-cost ranges
  5. Claude ROI and confidence level
  6. assumptions, caveats, and any missing-data limitations

平台分布

Codex

35.14%
按下载量换算229

Claude

29.73%
按下载量换算194

Cursor

20.67%
按下载量换算135

Gemini CLI

10.07%
按下载量换算66

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

只读

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

安装前确认

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

继续浏览同类 Skills