agentleFS
geoai-latamgeoai-latam/SKILL_JS5_ARCGIS/skills/hello-world/SKILL.md

hello-world

Skill1 starsChanged 6 months agoMITView on GitHub

Reference skill and gold-standard template for the ArcGIS Maps SDK for JavaScript 5.x skills library. It demonstrates the canonical file layout, bilingual EN/ES structure, frontmatter schema, progressive disclosure, and a type-checked snippet. Use this skill as the blueprint when authoring or reviewing any new arcgis-* skill, or when you need to understand how a skill in this repository is organized.

  • Reads credentials

25 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use frontend-design.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • BlockSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Default: start from pnpm new-skill, never by hand-copying, so frontmatter stays valid.

    line 68
  2. Very specific:

    Keep SKILL.md under 300 lines.

    line 95
  3. Very specific:

    Every scripts/snippet-*.ts is type-checked in CI.

    line 104

“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Hello World — Reference Skill

When to use: Activate this skill whenever you need the canonical structure of a skill in this repository — as a blueprint for authoring a new arcgis-* skill or as the checklist for reviewing one.

Overview

This is the gold-standard reference skill for the ArcGIS Maps SDK for JavaScript 5.x skills library. It exists to be copied, not consumed by end users.

  • Problem it solves: keeps every skill structurally identical so the validators, bilingual-sync, and smoke tests pass uniformly.
  • Who it serves: skill authors and reviewers (human or agent).
  • Pattern it teaches: progressive disclosure — a short SKILL.md, with depth pushed into references/ and runnable code in scripts/.
  • What it does NOT cover: real ArcGIS functionality. For actual maps, see arcgis-core-maps; for project scaffolding, see arcgis-starter-app.

Quick Start

// The minimal shape of a type-checked snippet. The smoke test runs `tsc --noEmit`
// against the real SDK types, so the import below must resolve.
import Map from "@arcgis/core/Map.js";

const map = new Map({ basemap: "topo-vector" });
export { map };

Decision Tree

  1. Are you creating a brand-new skill?
    • Yes → copy this folder via pnpm new-skill <name> and replace the content.
    • No → you probably want a real arcgis-* skill instead.
  2. Is your task in Spanish?
    • Yes → the agent reads SKILL.es.md.
    • No → the agent reads SKILL.md.

Default: start from pnpm new-skill, never by hand-copying, so frontmatter stays valid.

Import Patterns

Direct ESM (recommended for npm/Vite/Webpack)

import Map from "@arcgis/core/Map.js";

Dynamic Imports (CDN)

const Map = await $arcgis.import("@arcgis/core/Map.js");

Map Components (recommended for new projects)

import "@arcgis/map-components/components/arcgis-map";

Key Concepts

Concept 1: Progressive disclosure

The agent reads metadata first, then SKILL.md, and only opens references/ on demand. Keep SKILL.md under 300 lines; move API tables and long examples to references/.

Concept 2: Bilingual mirroring

SKILL.md and SKILL.es.md must share the same heading structure (same levels, same order) and the same number of code blocks. Headings are translated; code stays in English.

Concept 3: Verifiable snippets

Every scripts/snippet-*.ts is type-checked in CI. If an import or type is wrong, the smoke test fails — so examples never drift from the real SDK API.

Common Pitfalls (Top 3)

Pitfall 1: Omitting the .js extension in imports

// ❌ Anti-pattern
import Map from "@arcgis/core/Map";
// ✅ Correct
import Map from "@arcgis/core/Map.js";

Impact: the SDK 5.0 subpath exports fail to resolve and the build throws "Cannot find module", so nothing renders.

Pitfall 2: Editing only one language

// ❌ Anti-pattern
Edit SKILL.md, ship the PR, leave SKILL.es.md stale.
// ✅ Correct
Edit both files together; bilingual-sync fails CI on structural drift.

Impact: the Spanish-speaking user gets outdated guidance and CI blocks the merge.

Pitfall 3: Hardcoding the API key

// ❌ Anti-pattern
esriConfig.apiKey = "AAPK_real_key_pasted_here";
// ✅ Correct
esriConfig.apiKey = import.meta.env.VITE_ARCGIS_API_KEY as string;

Impact: the secret leaks into git history and gitleaks blocks the commit.

When to Read references/

If you need...Read
Full frontmatter field referencereferences/api-detail.md
End-to-end authoring examplesreferences/examples.md
More pitfalls (5+ extended)references/pitfalls.md

Related Skills

  • arcgis-starter-app — scaffold a real project
  • arcgis-core-maps — build an actual map or scene

Reference Samples

Changelog

  • 0.1.0 (2026-05-31): Initial reference skill.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.