Map Optimization Strategy
Strategy for solving constraint optimization problems on spatial maps. Use when you need to place items on a grid/map to maximize some objective while satisfying constraints.
Install
npx skills add UCSB-NLP-Chang/Skill-Usage --skill map-optimization-strategygit clone --depth 1 https://github.com/UCSB-NLP-Chang/Skill-Usage.git /tmp/Skill-Usage
mkdir -p ~/.claude/skills
cp -r /tmp/Skill-Usage/tasks/civ6-adjacency-optimizer/environment/skills/map-optimization-strategy ~/.claude/skills/map-optimization-strategyPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Map-Based Constraint Optimization Strategy A systematic approach to solving placement optimization problems on spatial maps. This applies to any problem where you must place items on a grid to maximize an objective while respecting placement constraints. ## Why Exhaustive Search Fails Exhaustive search (brute-force enumeration of all possible placements) is the **worst approach**: - Combinatorial explosion: Placing N items on M valid tiles = O(M^N) combinations - Even small maps become intractable (e.g., 50 tiles, 5 items = 312 million combinations) - Most combinations are clearly suboptimal or invalid ## The Three-Phase Strategy ### Phase 1: Prune the Search Space **Goal:** Eliminate tiles that cannot contribute to a good solution. Remove tiles that are: 1. **Invalid for any placement** - Violate hard constraints (wrong terrain, out of range, blocked) 2. **Dominated** - Another tile is strictly better in all respects 3. **Isolated** - Too far from other valid tiles to form useful clusters ``` Before: 100 tiles in consideration After pruning: 20-30 candidate tiles ``` This alone can reduce search space by 70-90%. ### Phase 2: Identify High-Value Spots **Goal:** Find tiles that offer exceptional value for your objective. Score each remaining tile by: 1. **Intrinsic value** - What does this tile contribute on its own? 2. **Adjacency potential** - What bonuses from neighboring tiles? 3. **Cluster potential** - Can this tile anchor a high-value group?
Details
- Skill name
map-optimization-strategy- Repository
- UCSB-NLP-Chang/Skill-Usage
- Path
tasks/civ6-adjacency-optimizer/environment/skills/map-optimization-strategy/SKILL.md- Repo updated
- 8 April 2026
FAQ
What does the Map Optimization Strategy skill do?
Strategy for solving constraint optimization problems on spatial maps. Use when you need to place items on a grid/map to maximize some objective while satisfying constraints.
How do I install the Map Optimization Strategy skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add UCSB-NLP-Chang/Skill-Usage --skill map-optimization-strategy. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Map Optimization Strategy popular?
It lives in UCSB-NLP-Chang/Skill-Usage, which has 49 GitHub stars and 5 forks.
Related skills
Pubchem Database
49UCSB-NLP-Chang/Skill-Usage
Query PubChem via PUG-REST API/PubChemPy (110M+ compounds). Search by name/CID/SMILES, retrieve properties, similarity/substructure searches, bioactivity, for cheminformatics.
Pymatgen
49UCSB-NLP-Chang/Skill-Usage
Materials science toolkit. Crystal structures (CIF, POSCAR), phase diagrams, band structure, DOS, Materials Project integration, format conversion, for computational materials science.
Rdkit
49UCSB-NLP-Chang/Skill-Usage
Cheminformatics toolkit for fine-grained molecular control. SMILES/SDF parsing, descriptors (MW, LogP, TPSA), fingerprints, substructure search, 2D/3D generation, similarity, reactions. For standard workflows with simpler interface, use datamol (wrapper around RDKit). Use rdkit for advanced control, custom sanitization, specialized algorithms.
Matched Filtering
49UCSB-NLP-Chang/Skill-Usage
Matched filtering techniques for gravitational wave detection. Use when searching for signals in detector data using template waveforms, including both time-domain and frequency-domain approaches. Works with PyCBC for generating templates and performing matched filtering.
Locational Marginal Prices
49UCSB-NLP-Chang/Skill-Usage
Extract locational marginal prices (LMPs) from DC-OPF solutions using dual values. Use when computing nodal electricity prices, reserve clearing prices, or performing price impact analysis.
Maven Plugin Configuration
49UCSB-NLP-Chang/Skill-Usage
Use when configuring Maven plugins, setting up common plugins like compiler, surefire, jar, or creating custom plugin executions.
Browse the most popular Claude skills, all other skills, or write your own with the skills generator.