portolan-bootstrap
Skill78 starsChanged 8 months agoApache-2.0View on GitHub
End-to-end catalog creation from a data source - extract, enrich metadata, generate assets, push to remote
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- portolan-sdi/portolan-skillstheir own version, first seen Oct 15, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- portolan-sdi/portolan-skills★ 11same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- detect-objectsSkill
- gdalSkill
- geoparquet-validationSkill
- geospatial-frontendSkill
- geospatial-viewersSkill
- geozarrSkill
- overture-dataSkill
- parallel-geospatialSkill
- planet-bulk-downloadSkill
- pmtiles-pipelineSkill
- portolan-cliSkill
- portolan-thumbnailsSkill
- reading-portolanSkill
- register-catalogSkill
- search-stacSkill
- sourcecoopSkill
- tesseraSkill
- zarr-multiscalesSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. About 0 are common, 22 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈22
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
NEVER hallucinate metadata: Only use information that exists in the source.
- Distinctive: line 14
When uncertain, checkpoint and ask: Prefer asking too much over assuming.
- Distinctive: line 16
Failures: warn inline, summarize at end: Don't stop for every failure, but don't hide them.
- Distinctive: line 54
Ask: "Found X layers/files.
- Distinctive: line 87
If files are at root level, move them into appropriately named subdirectories first.
- Distinctive: line 97
Ask: "Extracted/converted X/Y layers.
- Distinctive: line 105
Ask: "Where should this catalog be published?"
- Distinctive: line 113
Ask: "What license applies to this data?"
- Distinctive: line 119
Ask: "Contact info for this catalog?"
- Distinctive: line 145
Ask: "Generate PMTiles for web visualization?"
- Distinctive: line 184
Add descriptive context that isn't in the original
- Distinctive: line 190
Check layer names and descriptions:
- Distinctive: line 191
If consistently one language → use that
- Distinctive: line 192
If mixed → checkpoint and ask user
- Distinctive: line 196
Ask: "Source has mixed languages (Spanish titles, English descriptions).
- Distinctive: line 210
If you find fields in the source that weren't extracted:
- Distinctive: line 215
Ask: "Should I add these to the catalog?
- Distinctive: line 225
Ask: "Please provide values for these, or I can leave them as the auto-generated defaults."
- Distinctive: line 229
Only with confirmed/approved content:
- Distinctive: line 276
Ask: "READMEs generated. Here's the catalog README.
- Distinctive: line 282
If the catalog has more than 1000 assets, generate items.parquet for efficient queries:
- Distinctive: line 309
Ask: "Ready to push X files (Y MB) to Z.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Portolan Bootstrap Skill
Bootstrap a complete geospatial data catalog from any source portolan supports.
Critical Principles
- NEVER hallucinate metadata. Only use information that exists in the source.
- When uncertain, checkpoint and ask. Prefer asking too much over assuming.
- Always dry-run first. Warn about large outputs, slow operations, anything concerning.
- Failures: warn inline, summarize at end. Don't stop for every failure, but don't hide them.
Phase 1: Discovery
Detect source type
Portolan supports two workflows:
Remote services (use portolan extract):
- WFS:
/wfs,/geoserver/,service=WFS - ArcGIS FeatureServer:
/FeatureServer,/MapServer - ArcGIS ImageServer:
/ImageServer
Local files (use portolan init → scan → check → add):
- Directory with Shapefiles, GeoJSON, GeoPackage, GeoTIFF, etc.
For remote services: Dry-run extraction
portolan extract <type> "<URL>" --dry-runFor local files: Initialize and scan
portolan init --auto
portolan scan⏸️ CHECKPOINT: Discovery Results
Present to user:
- Layer/file count
- Estimated total features (if available)
- Any warnings (large counts, mixed formats, non-cloud-native files)
Ask: "Found X layers/files. This may take Y minutes and produce ~Z MB. Proceed?"
Warn if:
- Layer count > 50 (will take time)
- Any layer has > 100k features (memory concerns)
- Mixed geometry types detected
- Missing CRS information
- Non-cloud-native files that need conversion (GPKG, Shapefile, etc.)
- Files at root level (must be in subdirectories for collections)
Phase 2: Extraction / Conversion
For remote services: Run extraction
portolan extract <type> "<URL>" --output <path>Monitor progress. Warn inline on any failures but continue.
For local files: Check and convert
# Preview what needs conversion
portolan check --dry-run
# Convert non-cloud-native files (GPKG → GeoParquet, etc.)
portolan check --fixIMPORTANT: Files must be in subdirectories. Each subdirectory becomes a STAC collection. If files are at root level, move them into appropriately named subdirectories first.
⏸️ CHECKPOINT: Extraction/Conversion Complete
Present:
- Success count vs total
- List any failures with reasons
- Total data size
- Files converted (for local workflow)
Ask: "Extracted/converted X/Y layers. Z failures: [list]. Continue?"
Phase 3: Remote Setup
⏸️ CHECKPOINT: Destination
Ask: "Where should this catalog be published?"
- Source Cooperative (s3://us-west-2.opendata.source.coop/...)
- Other S3 bucket
- GCS bucket
- Azure blob storage
⏸️ CHECKPOINT: License
Ask: "What license applies to this data?"
- Show what's in source metadata (if anything)
- Common options: CC-BY-4.0, CC0, ODbL
⏸️ CHECKPOINT: Contact Info
Ask: "Contact info for this catalog?"
- Name
Validate credentials
# Set up .env
echo "PORTOLAN_REMOTE=<destination>" > .env
# Dry-run push to validate
portolan push --dry-runPhase 4: Asset Generation
Check tippecanoe availability
which tippecanoe⏸️ CHECKPOINT: PMTiles Generation
Ask: "Generate PMTiles for web visualization?"
- Note if tippecanoe is/isn't available
- Warn about time for large datasets
Register files and generate assets
# For remote extractions (files already in collection subdirs):
portolan add . --recursive [--pmtiles]
# For local files (after check --fix):
portolan add <collection-dir>/ [--pmtiles]⏸️ CHECKPOINT: Assets Generated
Present:
- Collections processed
- Thumbnails generated
- Any failures
Phase 5: Metadata Enrichment
CRITICAL: Only use information from the source. Do NOT invent content.
What enrichment means
✅ DO:
- Fill fields that exist in source but weren't auto-extracted
- Re-read source service metadata (GetCapabilities, service info) to find missed fields
- Fix encoding issues (mojibake, garbled characters)
- Clean up formatting (extra whitespace, inconsistent capitalization)
- Standardize inconsistencies within the source (if source uses "Pergamino" and "Perg." → use whichever is more common in source)
❌ DO NOT:
- Invent titles that aren't in the source
- Translate unless source provides both languages
- Add descriptive context that isn't in the original
- Expand abbreviations using external knowledge
- "Improve" wording beyond what the source says
Infer language
Check layer names and descriptions:
- If consistently one language → use that
- If mixed → checkpoint and ask user
⏸️ CHECKPOINT (if mixed language)
Ask: "Source has mixed languages (Spanish titles, English descriptions). Which should be primary?"
Check source metadata completeness
Compare what portolan extracted vs what's in the source:
- Re-read source service metadata (GetCapabilities, ArcGIS service info, etc.)
- For each collection, check:
- Does source have a title that wasn't extracted? → Use it
- Does source have a description that wasn't extracted? → Use it
- Does source have attribution/contact info? → Use it
⏸️ CHECKPOINT: Metadata Gaps
If you find fields in the source that weren't extracted:
Present: "I found these fields in the source metadata that weren't auto-extracted:"
- [Show exact text from source for each field]
Ask: "Should I add these to the catalog? (Showing source text exactly as-is)"
⏸️ CHECKPOINT: Remaining Gaps
For fields that MUST be filled but aren't in source:
Present: "These required fields aren't in the source metadata:"
- Catalog title: [missing]
- Catalog description: [missing]
Ask: "Please provide values for these, or I can leave them as the auto-generated defaults."
Update catalog.json
Only with confirmed/approved content:
catalog["title"] = "<from source or user-provided>"
catalog["description"] = "<from source or user-provided>"Update collection metadata
For fields from source:
collection["title"] = "<from source>" # Only if source has itFor .portolan/metadata.yaml (per ADR-0038):
contact:
name: "<from checkpoint>"
email: "<from checkpoint>"
license: "<from checkpoint>"
attribution: "<from source if available>"
source_url: "<original service URL>"
keywords: "<from source if available>"
processing_notes: "Extracted from <service type> on <date>"Phase 6: Metadata Templates & README Generation
Create metadata templates (always recursive)
portolan metadata init --recursiveThis creates .portolan/metadata.yaml at catalog and all collection levels.
Generate READMEs (always recursive)
portolan readme --recursive⏸️ CHECKPOINT: README Review
Show catalog-level README summary.
Ask: "READMEs generated. Here's the catalog README. Look correct?"
Phase 7: STAC-GeoParquet (if >1000 assets)
If the catalog has more than 1000 assets, generate items.parquet for efficient queries:
portolan stac-geoparquetThis creates an items.parquet file in each collection for fast spatial/temporal queries.
Skip this step for smaller catalogs.
Phase 8: Push
Dry-run first
portolan push --dry-run⏸️ CHECKPOINT: Push Confirmation
Present:
- File count
- Total size
- Destination URL
Ask: "Ready to push X files (Y MB) to Z. Proceed?"
Execute push
portolan push --verbosePhase 9: Final Summary
Present:
- Total collections published
- Live URL
- Any failures/warnings from entire session
- Suggested next steps (verify in browser, check a sample collection)
Failure Handling
| Situation | Action |
| Layer fails extraction | Warn inline, continue, summarize at end |
| Missing CRS | Flag it, ask user if critical |
| Large dataset (>100k features) | Warn about time/memory before proceeding |
| Credentials invalid | Stop and help user fix |
| Mixed languages | Checkpoint and ask |
| Field exists in source but not extracted | Checkpoint with exact source text |
| Required field missing from source | Checkpoint and ask user to provide |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

