---
name: model-map
description: "Traces the calculation chain behind a chosen output cell in the open workbook, back through every intermediate step to the inputs it ultimately depends on, and reports the path, the sheets crossed, and anything that breaks the chain such as hardcoded overrides or external references. Changes nothing. Use when the user asks how a number is calculated, what drives it, or what would change if an input moved. Not for reviewing every formula in the workbook; use formula-risk-review for that."
title: model-map
canonical_url: https://skilld.dev/gh/kesslernity/awesome-copilot-office-skills/model-map
last_updated: 2026-10-25T23:02:18.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [README.md](https://skilld.dev/api/skills-raw/kesslernity/awesome-copilot-office-skills/model-map/README.md).
>
> If the user asked to install this Skill, run `npx skilld install kesslernity/awesome-copilot-office-skills/model-map`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/model-map`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/kesslernity/awesome-copilot-office-skills/model-map) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/model-map`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/model-map --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/model-map --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Model map

## Purpose

Answer the question every reviewer eventually asks: where does this number actually come from. The skill walks the dependency chain backwards from one output cell to the inputs underneath it, names every step on the way, and flags the places where the chain stops being a calculation and becomes a typed value.

## When to use

- The user asks how a figure is calculated, what drives it, or what feeds a reported total.
- Before changing an input, to see what it touches.
- Do not use to judge whether the logic is right. This skill traces, the reviewer judges.

## Inputs

1. The open workbook (required).
2. The target cell (required): the output to trace back from.
3. Direction (optional): backwards to inputs (default), or forwards to everything the target affects.
4. Depth limit (optional): maximum levels to walk. Default is the full chain.

## Procedure

1. Confirm the target: sheet, cell, current value, and its formula or a note that it is a typed constant.
2. Walk backwards one level at a time. At each level record the cell, its formula, its value, and which cells it references.
3. Continue until each branch terminates at an input, an external reference, or the depth limit.
4. Classify every terminal: TYPED INPUT, EXTERNAL REFERENCE, NAMED CONSTANT, or DEPTH LIMIT REACHED.
5. Flag overrides: a cell in the middle of the chain that holds a typed value where its neighbours hold formulas. An override is a deliberate or forgotten manual change and it stops the model responding to its inputs.
6. Record every sheet boundary the chain crosses, and the count of crossings. A chain that crosses six sheets is harder to review than one that crosses one, and that is worth saying.
7. Record the breadth: how many distinct inputs the target ultimately depends on, and which inputs have the most paths to it.
8. If direction is forwards, do the same walk outward and report everything the target feeds, with the reported outputs it reaches.
9. Report. This skill has no write step.

## Human approval checkpoint

This skill changes nothing, so there is no change to approve. Before tracing a chain that exceeds roughly two hundred cells, report the size and ask: "Full trace, a summary of the first three levels, or only the terminal inputs?" Then proceed as asked.

## Output

Summary line: "<sheet>!<cell> depends on N distinct inputs through M intermediate cells, crossing S sheets. O overrides found."

Chain, deepest level last:

| Level | Sheet | Cell | Value | Formula or terminal type | Feeds |
|---|---|---|---|---|---|

Terminal inputs:

| Sheet | Cell | Label | Value | Paths to target |
|---|---|---|---|---|

Attention list: overrides, external references, and any branch stopped by the depth limit.

## Fallbacks and edge cases

- Circular references: report the cycle with every cell in it and stop walking that branch, rather than looping.
- Very wide chains: cap the per level listing at fifty cells, say it is capped, and always report the terminal inputs in full.
- Whole column references: record the reference as written and treat it as one edge rather than expanding it cell by cell.
- Indirect or dynamically built references: record them as UNRESOLVED REFERENCE with the formula, because the target cannot be established statically.
- External workbooks: record the path as written and stop. Do not open the file.

## Rules

- Never change, replace or remove an override, even when it is obviously stale. Report it.
- Never follow an external reference out of the workbook.
- Report an unresolved reference as unresolved rather than guessing its target.
- Quote formulas and cell references exactly, including sheet qualifiers.
- A typed value sitting in a formula block is always reported, even where it matches what the formula would have produced.

## Self-check

- [ ] The target cell, its value and its formula are stated.
- [ ] Every branch ends in a classified terminal or a stated limit.
- [ ] Every override is listed with its cell and value.
- [ ] Sheet crossings are counted and reported.
- [ ] Nothing in the workbook was changed.
