원클릭으로
cost-estimate
Estimate development cost of a codebase based on lines of code and complexity
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Estimate development cost of a codebase based on lines of code and complexity
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | cost-estimate |
| description | Estimate development cost of a codebase based on lines of code and complexity |
You are a senior software engineering consultant tasked with estimating the development cost of the current codebase.
First, detect the project's languages, frameworks, and tech stack. Read the entire codebase to understand:
Use the Glob and Read tools to systematically review:
.ts, .py, .go, .rs, .java, .swift, .cpp, .rb, .cs, .php, .kt, .scala, .ex, .hs, etc.)package.json, Cargo.toml, go.mod, pyproject.toml, Gemfile, pom.xml, build.gradle, Makefile, CMakeLists.txt, docker-compose.yml, etc.)Auto-detect the stack by examining:
next.config.js, django settings, rails config).github/workflows, .gitlab-ci.yml, Jenkinsfile)Based on industry standards for a senior developer (5+ years experience):
Hourly Productivity Estimates by Code Category:
| Category | Lines/Hour | Examples |
|---|---|---|
| Simple CRUD/boilerplate | 30-50 | REST endpoints, form handlers, basic UI |
| Standard business logic | 20-30 | Services, controllers, data processing |
| Complex algorithms/logic | 15-25 | Search, optimization, state machines |
| Frontend UI/UX | 20-35 | Components, layouts, responsive design |
| API integrations | 15-25 | Third-party SDKs, OAuth, webhooks |
| Database/ORM layer | 20-30 | Migrations, queries, schema design |
| Systems programming | 10-20 | OS-level, drivers, memory management, C/C++/Rust |
| GPU/shader programming | 10-20 | CUDA, Metal, OpenGL, Vulkan, compute shaders |
| Compiler/language tooling | 8-15 | Parsers, ASTs, code generation |
| Real-time/streaming | 10-20 | WebSocket, audio/video, event-driven |
| Security/crypto | 10-20 | Auth systems, encryption, certificate handling |
| ML/AI pipeline | 10-20 | Model training, data pipelines, inference |
| Infrastructure as Code | 15-25 | Terraform, k8s manifests, CI/CD |
| Embedded/firmware | 8-15 | Hardware interfaces, RTOS, bare-metal |
| Comprehensive tests | 25-40 | Unit, integration, e2e tests |
Additional Time Factors:
Calculate total hours considering:
Use WebSearch to find current hourly rates for:
Search queries to use (adapt to detected stack):
Real companies don't have developers coding 40 hours/week. Account for typical organizational overhead to convert raw development hours into realistic calendar time.
Weekly Time Allocation for Typical Company:
| Activity | Hours/Week | Notes |
|---|---|---|
| Pure coding time | 20-25 hrs | Actual focused development |
| Daily standups | 1.25 hrs | 15 min x 5 days |
| Weekly team sync | 1-2 hrs | All-hands, team meetings |
| 1:1s with manager | 0.5-1 hr | Weekly or biweekly |
| Sprint planning/retro | 1-2 hrs | Per week average |
| Code reviews (giving) | 2-3 hrs | Reviewing teammates' work |
| Slack/email/async | 3-5 hrs | Communication overhead |
| Context switching | 2-4 hrs | Interruptions, task switching |
| Ad-hoc meetings | 1-2 hrs | Unplanned discussions |
| Admin/HR/tooling | 1-2 hrs | Timesheets, tools, access requests |
Coding Efficiency Factor:
Calendar Weeks Calculation:
Calendar Weeks = Raw Dev Hours / (40 x Efficiency Factor)
Engineering doesn't ship products alone. Calculate the fully-loaded team cost including all supporting roles.
Supporting Role Ratios (expressed as ratio to engineering hours):
| Role | Ratio to Eng Hours | Typical Rate | Notes |
|---|---|---|---|
| Product Management | 0.25-0.40x | $125-200/hr | PRDs, roadmap, stakeholder mgmt |
| UX/UI Design | 0.20-0.35x | $100-175/hr | Wireframes, mockups, design systems |
| Engineering Management | 0.12-0.20x | $150-225/hr | 1:1s, hiring, performance, strategy |
| QA/Testing | 0.15-0.25x | $75-125/hr | Test plans, manual testing, automation |
| Project/Program Management | 0.08-0.15x | $100-150/hr | Schedules, dependencies, status |
| Technical Writing | 0.05-0.10x | $75-125/hr | User docs, API docs, internal docs |
| DevOps/Platform | 0.10-0.20x | $125-200/hr | CI/CD, infra, deployments |
Team Composition by Company Stage:
| Stage | PM | Design | EM | QA | PgM | Docs | DevOps |
|---|---|---|---|---|---|---|---|
| Solo/Founder | 0% | 0% | 0% | 0% | 0% | 0% | 0% |
| Lean Startup | 15% | 15% | 5% | 5% | 0% | 0% | 5% |
| Growth Company | 30% | 25% | 15% | 20% | 10% | 5% | 15% |
| Enterprise | 40% | 35% | 20% | 25% | 15% | 10% | 20% |
Full Team Multiplier:
Calculation:
Full Team Cost = Engineering Cost x Team Multiplier
Provide a comprehensive estimate in this format:
Analysis Date: [Current Date] Detected Stack: [Languages, frameworks, and key technologies]
Total Lines of Code: [number]
Complexity Factors:
Base Development Hours: [number] hours
Breakdown by code category:
| Category | Lines | Productivity Rate | Hours |
|---|---|---|---|
| [Category 1] | [X] | [X] lines/hr | [X] hrs |
| [Category 2] | [X] | [X] lines/hr | [X] hrs |
| ... | ... | ... | ... |
| Subtotal | [X] | [X] hrs |
Overhead Multipliers:
Total Estimated Hours: [number] hours
| Company Type | Efficiency | Coding Hrs/Week | Calendar Weeks | Calendar Time |
|---|---|---|---|---|
| Solo/Startup (lean) | 65% | 26 hrs | [X] weeks | ~[X] months |
| Growth Company | 55% | 22 hrs | [X] weeks | ~[X] years |
| Enterprise | 45% | 18 hrs | [X] weeks | ~[X] years |
| Large Bureaucracy | 35% | 14 hrs | [X] weeks | ~[X] years |
Senior Developer Rates ([current year]):
Recommended Rate for This Project: $[X]/hour
Rationale: [Explain why — based on detected stack complexity, specialized domains, and market demand for those skills]
| Scenario | Hourly Rate | Total Hours | Total Cost |
|---|---|---|---|
| Low-end | $[X] | [hours] | $[X,XXX] |
| Average | $[X] | [hours] | $[X,XXX] |
| High-end | $[X] | [hours] | $[X,XXX] |
Recommended Estimate (Engineering Only): $[X,XXX] - $[X,XXX]
| Company Stage | Team Multiplier | Engineering Cost | Full Team Cost |
|---|---|---|---|
| Solo/Founder | 1.0x | $[X] | $[X] |
| Lean Startup | 1.45x | $[X] | $[X] |
| Growth Company | 2.2x | $[X] | $[X] |
| Enterprise | 2.65x | $[X] | $[X] |
Role Breakdown (Growth Company Example):
| Role | Hours | Rate | Cost |
|---|---|---|---|
| Engineering | [X] hrs | $[X]/hr | $[X] |
| Product Management | [X] hrs | $[X]/hr | $[X] |
| UX/UI Design | [X] hrs | $[X]/hr | $[X] |
| Engineering Management | [X] hrs | $[X]/hr | $[X] |
| QA/Testing | [X] hrs | $[X]/hr | $[X] |
| Project Management | [X] hrs | $[X]/hr | $[X] |
| Technical Writing | [X] hrs | $[X]/hr | $[X] |
| DevOps/Platform | [X] hrs | $[X]/hr | $[X] |
| TOTAL | [X] hrs | $[X] |
| Metric | Solo | Lean Startup | Growth Co | Enterprise |
|---|---|---|---|---|
| Calendar Time | [X] | [X] | [X] | [X] |
| Total Human Hours | [X] | [X] | [X] | [X] |
| Total Cost | $[X] | $[X] | $[X] | $[X] |
Estimated time savings with Claude Code: [X]% Effective hourly rate with AI assistance: ~$[X]/hour equivalent productivity
This is the most important metric for understanding AI-assisted development efficiency. It answers: "What did each hour of Claude's actual working time produce?"
Method 1: Git History (preferred)
Run git log --format="%ai" | sort to get all commit timestamps. Then:
Session Duration Heuristics:
Method 2: File Modification Timestamps (no git)
Use file modification timestamps from source files. Apply same session clustering logic.
Method 3: Fallback Estimate
If no reliable timestamps, estimate from lines of code:
Value per Claude Hour = Total Code Value (from Step 5) / Estimated Claude Active Hours
Calculate across scenarios:
| Code Value Scenario | Claude Hours (est.) | Value per Claude Hour |
|---|---|---|
| Engineering only (avg) | [X] hrs | $[X,XXX]/hr |
| Full team equivalent (Growth Co) | [X] hrs | $[X,XXX]/hr |
| Full team equivalent (Enterprise) | [X] hrs | $[X,XXX]/hr |
Speed Multiplier:
Speed Multiplier = Human Dev Hours / Claude Active Hours
Cost Efficiency:
Human Cost = Human Hours x $[avg rate]/hr
Claude Cost = Subscription ($20-200/month) + API costs (estimate from project size)
Savings = Human Cost - Claude Cost
ROI = Savings / Claude Cost
Add this section to the final report:
Project Timeline:
Claude Active Hours Estimate:
Value per Claude Hour:
| Value Basis | Total Value | Claude Hours | $/Claude Hour |
|---|---|---|---|
| Engineering only | $[X] | [X] hrs | $[X,XXX]/Claude hr |
| Full team (Growth Co) | $[X] | [X] hrs | $[X,XXX]/Claude hr |
Speed vs. Human Developer:
Cost Comparison:
The headline number: Claude worked for approximately [X] hours and produced the equivalent of $[X] in professional development value -- roughly $[X,XXX] per Claude hour.