Repository context
The current repository is both the consumer, whose convention home declares where artifacts land,
and the default subject, the repository whose tracked files name the rest of the landscape.
Collect with an individual Bash call, one command per call: the project root,
git rev-parse --show-toplevel. Treat a failure (not a repository, git unavailable) as an unknown
value and carry on; ${CLAUDE_PROJECT_DIR} is the resolver's --root either way.
Purpose
Answer "what systems does this organization have, who owns them, what do they run on, and how do
they relate" from what a repository already says about its neighbors. Every fact traces to a named
file; every edge traces to a matched string in a tracked file; both are collected by scripts, never
derived by hand. The committed record makes the answer re-runnable, so the second run reports what
moved instead of quietly replacing the first.
Resolve home and dialect
Read ${CLAUDE_PLUGIN_ROOT}/reference/config.md first; it owns the keys, the topic-doc location,
and the resolution order. This skill reports against that contract rather than restating it.
Run bash "${CLAUDE_PLUGIN_ROOT}/lib/resolve-convention-home.sh" --root "${CLAUDE_PROJECT_DIR}" and
follow the exit code. Never parse the root instruction file yourself. Exit 0 means read
<home>/architecture/README.md for architecture_dir and landscape_dialect; exit 1 (no pointer
line), 2 (usage), and 3 (FAIL, surface the resolver's own message) all mean there is no declared
home to read.
Per key, in order: --out <dir> wins for this run alone, then a declared topic-doc value, then an
inference proposed from repository evidence and confirmed by the operator, then one question. When
nothing answers, landscape_dialect falls back to mermaid, and architecture_dir has no
default, so an undeclared and unconfirmed home, including every non-interactive run, stops and
points at /architecture:setup.
This skill never writes the consumer's root instruction file or its topic doc. `/architecture:setup
apply` owns both.
Choose the subject repositories
- No scope argument: the current repository, plus every repository its tracked files reference,
one hop out. This is the default and the primary use. Facts are collected from the current
checkout; the referenced repositories are nodes with edges and no probed facts unless they are
also checked out locally or --remote is passed.
--repos <path>[,<path>...]: exactly those repositories. Facts come from every path; edges
come from the first path only (the --edges-from default). No discovery runs at all.
--root <dir>(repeatable): discovery, delegated to therepo-fleet-hygieneplugin when it
is enabled and an announced bundled walk when it is not. Read
scope-modes.md before
running this mode; the collaborator's plan is wider than the roots you asked for, and charting it
unfiltered grows the landscape to the operator's whole configured fleet.
The session's working directory is never walked for nested repositories under any mode. Reading the
current repository as the default subject is not a walk: it is one path, resolved from
git rev-parse --show-toplevel.
Build the record
One call assembles both collectors into the committed record:
"${CLAUDE_SKILL_DIR}/scripts/landscape-record.sh" \
--source "<how the subject set was chosen>" --remote "<not used | used, owned only | used, all>" \
--edges-from <subject-repo> <repo-path>...
Keep the ${CLAUDE_SKILL_DIR} anchor;