Approved catalog listing
SKILL #3613
skillshunter.net
Home / Software & Development / Cost Estimate Skill
Listing Approved Approved on: November 30, 2026

Cost Estimate Skill

Scan any codebase (GitHub repo URL or local directory), analyze complexity, and calculate what a real development team would charge to build it. Cross-reference 2025-2026 market rates for US and Polish developers. Show AI-assisted development ROI.

Rate this skill

No ratings yet

Editor's Note

Ensure the `gh` CLI is installed and configured for GitHub URL scanning. Prepare a local path or GitHub URL as input. The report includes a complexity score, estimated human hours, cost scenarios, and AI comparison metrics.

When to Use It

  • Estimate build cost for a GitHub repository
  • Calculate development cost for a local codebase
  • Compare US vs Polish developer market rates
  • Analyze AI-assisted development ROI

SKILL.md

SkillsHunter provides this listing for informational purposes only. Review the skill’s source, license, and required permissions before use. You are responsible for deciding whether to install or run it. Terms of Use

↓ Download .md

Cost Estimate -- Codebase Value Calculator

Scan any codebase (GitHub repo URL or local directory), analyze complexity, and calculate what a real development team would charge to build it. Cross-reference 2025-2026 market rates for US and Polish developers. Show AI-assisted development ROI.

Accept GitHub URLs (github.com/owner/repo, full HTTPS URLs) or local paths. Default to current working directory if no argument given.

Workflow

Step 0: Resolve Source

Determine if the argument is a GitHub URL or local path.

GitHub URL detected (contains github.com or matches owner/repo pattern):

SCAN_DIR=$(mktemp -d /tmp/cost-estimate-XXXXXX)
gh repo clone {owner}/{repo} "$SCAN_DIR" -- --depth 1 --single-branch 2>/dev/null

Pull repo metadata for enrichment:

gh api "repos/{owner}/{repo}" --jq '{name, full_name, description, stargazers_count, forks_count, open_issues_count, created_at, updated_at, pushed_at, language, size, topics, license: .license.spdx_id}'
gh api "repos/{owner}/{repo}/languages"
gh api "repos/{owner}/{repo}/contributors?per_page=5" --jq '[.[].login]'
gh api "repos/{owner}/{repo}/commits?per_page=1" --jq '.[0] | {sha: .sha[0:7], date: .commit.committer.date, message: .commit.message}'

Local path or no argument: use provided path or cwd. Skip GitHub API enrichment.

Use $SCAN_DIR as [DIR] for all subsequent steps. Clean up temp directory after report generation.

Step 1: Scan Codebase

Use Claude Code native tools (Glob/Grep/Read), never shell find or grep.

1a. Discover code files (run all Glob calls in parallel):

  • **/*.{ts,tsx}, **/*.{js,jsx}, **/*.py, **/*.{css,scss,html}, **/*.sol, **/*.{rs,go,swift}, **/*.{json,yaml,yml,toml,md}

Exclude paths containing: node_modules, .next, dist/, build/, vendor/, __pycache__, lock files.

1b. Count LOC: wc -l on filtered files (batch into groups of ~100 if >200 files). Tally file counts by extension from Glob results.

1c. Detect integrations (Grep tool):

pattern="fetch|axios|supabase|redis|postgres|mongo|firebase|stripe|twilio|sendgrid|openai|anthropic|openrouter"
glob="*.{ts,tsx,js,jsx,py}" | output_mode="files_with_matches"

1d. Check infra configs (Glob): {vercel.json,railway.json,docker-compose.yml,Dockerfile,wrangler.toml}, .github/workflows/*.yml

1e. Read dependency manifest: package.json, requirements.txt, Cargo.toml, or go.mod

Step 2: Score Complexity

Rate each factor 1-5 (1=simple, 5=very complex):

Factor Signals
Frontend Component count, state mgmt, animations, responsive
Backend API routes, middleware, auth, DB schemas, cron
Integrations Third-party APIs, payments, blockchain, AI/LLM
Infrastructure CI/CD, multi-env, caching layers
Domain expertise Trading, crypto, ML, compliance, gov APIs
Real-time WebSockets, SSE, polling, live feeds
Security Auth flows, encryption, key mgmt, OWASP surface
Step 3: Estimate Human Hours

Base hours = LOC / productivity_rate

Complexity tier LOC/hr
Simple CRUD / static 40-60
Standard web app 20-35
Complex integrations / trading 10-20
Smart contracts / security-critical 5-15

Complexity multiplier = average of all factor scores / 3

Overhead multiplier = 1.75x (setup +15%, review/QA +20%, devops +10%, communication +15%, iteration +15%)

Total hours = base hours x complexity multiplier x 1.75

Step 4: Calculate Costs

Load rate tables from references/rates.md for exact figures.

Calculate 6 scenarios: Solo Dev (US), Lean Startup (US), Growth Company (US), Enterprise (US), Polish Software House, Polish Internal Team.

Calendar time = total hours / (team FTE x 6 productive hrs/day x 22 days/month).

Step 5: AI Comparison

Estimate Claude hours from git log:

git -C [DIR] log --oneline --format="%ai" | tail -1  # first commit
git -C [DIR] log --oneline --format="%ai" | head -1  # last commit
git -C [DIR] log --oneline | wc -l                    # total commits

If unknown, estimate: total_commits x 0.25 hours.

Claude cost = Pro subscription prorated (~$6.67/day, estimate active days from git log).

Metrics: speed multiplier (human_hours / claude_hours), cost savings, ROI, value per Claude hour.

Step 6: Present Report

Load template from references/report-template.md and fill in all calculated values.

Step 7: Clean Up
rm -rf "$SCAN_DIR"  # only if SCAN_DIR matches /tmp/cost-estimate-*

Rules

  • NEVER fabricate LOC counts or file counts. Always scan real files.
  • NEVER guess API integrations. Grep for them.
  • Polish context section is mandatory in every report.
  • Show PLN alongside USD for all Polish scenarios.
  • If confidence is low on any estimate, flag it explicitly.
  • Keep the report tight. No filler.

Edge Cases

  • No code files: report and stop
  • Monorepo: scan each project, sum totals
  • No git history: skip Claude hours, ask user for active hours
  • Small projects (<500 LOC): flag high estimate variance
  • gh not installed/authenticated: fall back to local-only, warn user
  • Private repo without access: inform and stop
  • Very large repos (>100K files): warn, consider sampling

Reference Files

  • references/rates.md -- All US and Polish market rate tables, team compositions, Polish market context
  • references/report-template.md -- Full report output template with all sections
View original Markdown
---
name: cost-estimate
description: "This skill should be used when the user asks to 'estimate build cost', 'how much would this cost to build', 'cost-estimate', 'what is this codebase worth', 'compare US vs Polish dev costs', 'calculate development cost', 'how much would a team charge for this'. Scans any codebase (GitHub URL or local path), analyzes complexity, and calculates build cost across US and Polish developer markets with AI ROI comparison."
user-invocable: true
argument-hint: "[github.com/owner/repo or ~/local/path]"
---

# Cost Estimate -- Codebase Value Calculator

Scan any codebase (GitHub repo URL or local directory), analyze complexity, and calculate what a real development team would charge to build it. Cross-reference 2025-2026 market rates for US and Polish developers. Show AI-assisted development ROI.

Accept GitHub URLs (`github.com/owner/repo`, full HTTPS URLs) or local paths. Default to current working directory if no argument given.

## Workflow

### Step 0: Resolve Source

Determine if the argument is a GitHub URL or local path.

**GitHub URL detected** (contains `github.com` or matches `owner/repo` pattern):
```bash
SCAN_DIR=$(mktemp -d /tmp/cost-estimate-XXXXXX)
gh repo clone {owner}/{repo} "$SCAN_DIR" -- --depth 1 --single-branch 2>/dev/null
```

Pull repo metadata for enrichment:
```bash
gh api "repos/{owner}/{repo}" --jq '{name, full_name, description, stargazers_count, forks_count, open_issues_count, created_at, updated_at, pushed_at, language, size, topics, license: .license.spdx_id}'
gh api "repos/{owner}/{repo}/languages"
gh api "repos/{owner}/{repo}/contributors?per_page=5" --jq '[.[].login]'
gh api "repos/{owner}/{repo}/commits?per_page=1" --jq '.[0] | {sha: .sha[0:7], date: .commit.committer.date, message: .commit.message}'
```

**Local path or no argument**: use provided path or cwd. Skip GitHub API enrichment.

Use `$SCAN_DIR` as `[DIR]` for all subsequent steps. Clean up temp directory after report generation.

### Step 1: Scan Codebase

Use Claude Code native tools (Glob/Grep/Read), never shell `find` or `grep`.

**1a. Discover code files** (run all Glob calls in parallel):
- `**/*.{ts,tsx}`, `**/*.{js,jsx}`, `**/*.py`, `**/*.{css,scss,html}`, `**/*.sol`, `**/*.{rs,go,swift}`, `**/*.{json,yaml,yml,toml,md}`

Exclude paths containing: `node_modules`, `.next`, `dist/`, `build/`, `vendor/`, `__pycache__`, lock files.

**1b. Count LOC**: `wc -l` on filtered files (batch into groups of ~100 if >200 files). Tally file counts by extension from Glob results.

**1c. Detect integrations** (Grep tool):
```
pattern="fetch|axios|supabase|redis|postgres|mongo|firebase|stripe|twilio|sendgrid|openai|anthropic|openrouter"
glob="*.{ts,tsx,js,jsx,py}" | output_mode="files_with_matches"
```

**1d. Check infra configs** (Glob): `{vercel.json,railway.json,docker-compose.yml,Dockerfile,wrangler.toml}`, `.github/workflows/*.yml`

**1e. Read dependency manifest**: `package.json`, `requirements.txt`, `Cargo.toml`, or `go.mod`

### Step 2: Score Complexity

Rate each factor 1-5 (1=simple, 5=very complex):

| Factor | Signals |
|--------|---------|
| Frontend | Component count, state mgmt, animations, responsive |
| Backend | API routes, middleware, auth, DB schemas, cron |
| Integrations | Third-party APIs, payments, blockchain, AI/LLM |
| Infrastructure | CI/CD, multi-env, caching layers |
| Domain expertise | Trading, crypto, ML, compliance, gov APIs |
| Real-time | WebSockets, SSE, polling, live feeds |
| Security | Auth flows, encryption, key mgmt, OWASP surface |

### Step 3: Estimate Human Hours

**Base hours** = LOC / productivity_rate

| Complexity tier | LOC/hr |
|----------------|--------|
| Simple CRUD / static | 40-60 |
| Standard web app | 20-35 |
| Complex integrations / trading | 10-20 |
| Smart contracts / security-critical | 5-15 |

**Complexity multiplier** = average of all factor scores / 3

**Overhead multiplier** = 1.75x (setup +15%, review/QA +20%, devops +10%, communication +15%, iteration +15%)

**Total hours** = base hours x complexity multiplier x 1.75

### Step 4: Calculate Costs

Load rate tables from **`references/rates.md`** for exact figures.

Calculate 6 scenarios: Solo Dev (US), Lean Startup (US), Growth Company (US), Enterprise (US), Polish Software House, Polish Internal Team.

Calendar time = total hours / (team FTE x 6 productive hrs/day x 22 days/month).

### Step 5: AI Comparison

Estimate Claude hours from git log:
```bash
git -C [DIR] log --oneline --format="%ai" | tail -1  # first commit
git -C [DIR] log --oneline --format="%ai" | head -1  # last commit
git -C [DIR] log --oneline | wc -l                    # total commits
```

If unknown, estimate: total_commits x 0.25 hours.

Claude cost = Pro subscription prorated (~$6.67/day, estimate active days from git log).

Metrics: speed multiplier (human_hours / claude_hours), cost savings, ROI, value per Claude hour.

### Step 6: Present Report

Load template from **`references/report-template.md`** and fill in all calculated values.

### Step 7: Clean Up

```bash
rm -rf "$SCAN_DIR"  # only if SCAN_DIR matches /tmp/cost-estimate-*
```

## Rules

- NEVER fabricate LOC counts or file counts. Always scan real files.
- NEVER guess API integrations. Grep for them.
- Polish context section is mandatory in every report.
- Show PLN alongside USD for all Polish scenarios.
- If confidence is low on any estimate, flag it explicitly.
- Keep the report tight. No filler.

## Edge Cases

- No code files: report and stop
- Monorepo: scan each project, sum totals
- No git history: skip Claude hours, ask user for active hours
- Small projects (<500 LOC): flag high estimate variance
- `gh` not installed/authenticated: fall back to local-only, warn user
- Private repo without access: inform and stop
- Very large repos (>100K files): warn, consider sampling

## Reference Files

- **`references/rates.md`** -- All US and Polish market rate tables, team compositions, Polish market context
- **`references/report-template.md`** -- Full report output template with all sections

Community Reviews & Field Notes

Tried this skill on your own project? Share the model you used and the results you got.

Add Your Review

Approved reviews appear publicly with the name or role you enter. See the Privacy Notice.