/urban-design-skills:urban-calculatorfrom urban-design-skills
Python tools for urban design metrics: density, FAR, walkability, parking, green space, and block optimization. Returns human-readable and JSON outputs.
Ships in urban-design-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A suite of Python computational tools for precise urban design metric calculations. Each script is self-contained, accepts inputs via command-line arguments, and outputs both human-readable text and structured JSON.
| Script | Purpose | Key Inputs | Key Outputs |
|---|---|---|---|
density_calculator.py | Population and dwelling density | Site area, FAR, unit sizes, efficiency | DU/ha, persons/ha, population |
far_calculator.py | FAR and GFA optimization | Site area, coverage, floors, uses | FAR, GFA per use, total GFA |
walkability_scorer.py | Walk Score estimation | Amenity distances, network connectivity | Score 0-100, category |
parking_calculator.py | Parking requirements | Uses, areas, ratios, reductions | Total spaces, area needed |
green_space_analyzer.py | Green space adequacy | Population, park areas, distances | Per capita m2, service coverage |
block_optimizer.py | Block dimension optimization | Target FAR, height, coverage, daylight | Optimal block dimensions |
All scripts are located in the scripts/ subdirectory relative to this skill. Run them with Python 3 via the command line. Every script supports a --json flag to output structured JSON instead of formatted text.
Calculate population and dwelling density for a development site:
python scripts/density_calculator.py --site-area 20000 --far 2.5 --avg-unit-size 85 --efficiency 0.75 --household-size 2.5 --residential-pct 0.7 --streets-pct 0.30
Minimal example (uses defaults for optional parameters):
python scripts/density_calculator.py --site-area 15000 --far 3.0
JSON output:
python scripts/density_calculator.py --site-area 20000 --far 2.5 --json
Calculate Floor Area Ratio and Gross Floor Area by use:
python scripts/far_calculator.py --site-area 10000 --coverage 0.6 --floors 4,6,8 --use-split "res:60,com:25,civic:10,open:5"
With bonus FAR for affordable housing:
python scripts/far_calculator.py --site-area 10000 --coverage 0.6 --floors 6 --bonus-far 0.5
With explicit floor areas per zone:
python scripts/far_calculator.py --site-area 10000 --floor-areas "2000,3000,1500" --floors "4,6,8"
Estimate a Walk Score based on amenity distances and intersection density:
python scripts/walkability_scorer.py --grocery 200 --restaurants 150 --shopping 400 --coffee 100 --parks 300 --schools 500 --intersection-density 150
Minimal example (unspecified amenities default to 9999m = not present):
python scripts/walkability_scorer.py --grocery 300 --parks 200
Determine parking requirements with transit and TDM reductions:
python scripts/parking_calculator.py --residential-units 200 --office-area 5000 --retail-area 2000 --transit-reduction 0.2 --shared-reduction 0.1 --space-type structured
Surface parking example:
python scripts/parking_calculator.py --residential-units 50 --space-type surface
Analyze green space provision against international standards:
python scripts/green_space_analyzer.py --population 5000 --parks "Central Park:8000:neighborhood,Pocket Plaza:400:pocket,River Walk:2000:linear" --standard who
JSON output with UN-Habitat standard:
python scripts/green_space_analyzer.py --population 12000 --parks "Main Park:15000:district,Local Green:1200:neighborhood" --standard un-habitat --json
Find optimal block dimensions for a target FAR:
python scripts/block_optimizer.py --target-far 2.5 --max-height 6 --building-depth 14 --min-courtyard 21 --daylight-angle 25
Higher density example:
python scripts/block_optimizer.py --target-far 4.0 --max-height 10 --max-coverage 0.7 --building-depth 16
All formulas, worked examples, unit conversions, and standard assumptions are documented in references/formulas.md. Key formulas used across the calculators:
See references/formulas.md for the complete reference with worked examples.
Other skills in the Urban Design Skills can invoke these calculators to get precise numbers. The recommended integration pattern is:
density_calculator.py and far_calculator.py with the computed areas to validate metrics.block_optimizer.py to determine block dimensions before laying out the street grid.walkability_scorer.py and green_space_analyzer.py to evaluate design proposals against standards.--json flag to pipe outputs between scripts programmatically.Example chain (compute density then check green space):
# Step 1: Calculate density to get population
python scripts/density_calculator.py --site-area 50000 --far 2.5 --json > density_output.json
# Step 2: Use the population estimate to check green space adequacy
python scripts/green_space_analyzer.py --population 3500 --parks "Park A:5000:neighborhood,Park B:800:pocket" --json
All scripts support two output modes:
Human-readable text (default): Formatted tables and summaries suitable for reports and presentations. Includes section headers, aligned columns, and contextual notes.
JSON (with --json flag): Structured data suitable for programmatic consumption, piping between scripts, and integration with other tools. All numeric values are provided as numbers (not strings), and all units are documented in the JSON keys.
Example JSON output structure (density calculator):
{
"inputs": {
"site_area_m2": 20000,
"far": 2.5,
"avg_unit_size_m2": 85,
"efficiency": 0.75,
"household_size": 2.5,
"residential_pct": 0.7,
"streets_pct": 0.30
},
"results": {
"total_gfa_m2": 50000,
"residential_gfa_m2": 35000,
"net_internal_area_m2": 26250,
"dwelling_units": 308,
"population": 771,
"net_density_du_per_ha": 154.0,
"gross_density_du_per_ha": 107.8,
"population_density_persons_per_ha": 385.0
}
}
references/formulas.md (opens in a new tab)scripts/block_optimizer.py (opens in a new tab)scripts/density_calculator.py (opens in a new tab)scripts/far_calculator.py (opens in a new tab)scripts/green_space_analyzer.py (opens in a new tab)scripts/parking_calculator.py (opens in a new tab)scripts/walkability_scorer.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (abhinavbwj/urban-design-skills-claude) — no native marketplace selected
npx claudepluginhub p/amanbh997-urban-design-skills18 skills in this plugin
/block-and-densityDesign urban blocks and optimize density using typological analysis, FAR calculations, and building configuration strategies. Use when the user asks about block dimensions, block layout, density calculations, FAR optimization, building footprint coverage, height-density relationships, block typologies, perimeter block design, courtyard blocks, tower-podium configurations, or massing studies. Also use when the user needs to understand how many units fit on a site, calculate gross vs net density, or optimize a block plan for daylight and privacy./climate-responsive-designApply climate-specific urban design strategies for hot-arid, tropical, temperate, and cold climates. Covers building orientation, street alignment, shading strategies, wind management, vegetation selection, urban heat island mitigation, stormwater management, and thermal comfort in outdoor spaces. Use when the user specifies a climate zone, asks about climate-responsive design, needs orientation advice, asks about heat island mitigation, discusses thermal comfort, or designs for extreme weather conditions. Also use for microclimate analysis, wind corridor design, or solar access optimization./cost-estimationEstimate construction costs, infrastructure costs, soft costs, and total development costs for urban design projects. Covers building construction cost per m2 by typology, infrastructure cost per linear meter and per dwelling, site preparation, landscaping, professional fees, and financial feasibility analysis. Use when the user asks about project cost, construction cost, infrastructure budget, development feasibility, cost per unit, cost per m2, capital expenditure, opex, cost benchmarking, value engineering, phasing costs, or any question about how much an urban design project or its components will cost. Also use for preliminary budget estimation, order-of- magnitude costing, cost comparison between design alternatives, or cost optimization of masterplans./design-briefGenerate professional urban design briefs, design reports, and project documentation. Produces structured documents with vision statements, design principles, spatial requirements, performance targets, and implementation guidelines. Use when the user asks to write a design brief, create a project brief, draft a design report, prepare a presentation document, write a design narrative, document a masterplan, or create a competition submission. Also use when the user needs to formalize design intent into a structured document./design-evaluationEvaluate urban designs against comprehensive criteria drawn from all major global standards, certification systems, and theoretical frameworks. Generates detailed scorecards and improvement recommendations. Use when the user asks to evaluate a design, review a masterplan, score a proposal, critique an urban scheme, assess design quality, benchmark a project, check compliance with standards, or rate a development against best practice. Covers Jan Gehl 12 Quality Criteria, Ian Bentley 7 Responsive Environments qualities, PPS 4 Placemaking qualities, LEED-ND prerequisites, BREEAM Communities categories, Healthy Streets indicators, CPTED principles, Universal Design compliance, and biophilic design patterns./masterplan-designGenerate complete urban masterplans with spatial structure, land use distribution, street network, block layout, density strategy, phasing plan, and implementation framework. Use when the user asks to design a masterplan, create an urban layout, develop a neighborhood plan, design a district, plan a new community, lay out a development, structure an urban area, or create a site plan at the urban scale. Also use when the user provides a site and asks for a development proposal, a design concept, or a spatial framework. Handles greenfield, brownfield, and infill development scenarios.Other plugins' skills for the same job