# ~map

> Use only when the user explicitly types ~map. Generates or refreshes the hello-scholar native architecture map by invoking the architecture-map workflow, then v

- Skill: `tx1207/map` (Agent Skill)
- Install (CLI): `npx get-skill add tx1207/map`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tx1207/map/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: Tx1207 (https://skillmd.com/u/tx1207)
- Updated: 2026-12-03
- Page: https://skillmd.com/skills/tx1207/map

---

---
name: ~map
description: Use only when the user explicitly types ~map. Generates or refreshes the hello-scholar native architecture map by invoking the architecture-map workflow, then validates and points to the local viewer.
policy:
  allow_implicit_invocation: false
---

# ~map Command

Trigger: `~map [--lang zh|en] [optional focus]`

## Mission

Generate or refresh `hello-scholar/architecture/architecture-map.json` with the `architecture-map` skill. This is an in-agent command, not a terminal CLI subcommand.

## Rules

- Load and follow the `architecture-map` skill.
- Follow `../../architecture/references/native-boundaries.md`; this command writes hello-scholar native architecture assets only.
- Treat an optional focus argument as a perspective, subsystem, command, route, flow, or topic hint.
- Support `--lang zh|en` / `--language zh|en` as the requested map content language. If no language flag is present, ask the user to choose Chinese or English before generating or refreshing the map.
- Write the resolved content language to `project.language`. Use Chinese prose in Chinese mode except necessary English terms such as stable IDs, paths, commands, APIs, package names, schema enums, profile names, skill names, and code symbols.
- If `hello-scholar/` is not initialized, ask the user to run `~init` or `hello-scholar init` before writing architecture assets.
- Preserve existing map IDs when refreshing unless the concept truly changed.
- After generation, run `hello-scholar map validate`.

## Completion Output

Report:

- generated or refreshed files
- selected perspectives
- validation errors and warnings
- unknowns and inferred edges worth verifying
- local viewer command

Then tell the user:

```bash
hello-scholar map view --lang auto
```

