Workspace Inspection Skill
Quick command
uv run poly info
Command prefix: If you do not know the package manager, list lock files with ls uv.lock poetry.lock pdm.lock 2>/dev/null (a pyproject.toml is always present, so it tells you nothing on its own). Use uv run poly (uv), poetry poly (poetry), pdm run poly (pdm), hatch run poly (hatch), or poly (activated venv). Examples below use uv run.
poly infovspoly deps:
poly info→ brick × project (which project uses which brick).poly deps→ brick × brick (which brick uses which brick). Loadpolylith-dependency-visualization. 💡 A brick that is-in every project exceptdevelopmentis orphaned in production — flag it for the user.
Command reference
| Option | Default | Description |
|---|---|---|
--short |
false |
Compact view — for workspaces where the full matrix doesn't fit. |
--save |
false |
Persist the report to a file under the workspace's output dir. |
--group |
— | Show only projects in the named group(s) (comma-separated), defined in [tool.polylith.projects.groups]. |
Examples
# Full matrix
uv run poly info
# Compact summary
uv run poly info --short
# Filter to a project group
uv run poly info --group hooks
Sample output
Workspace summary
projects: 6 components: 7 bases: 5 development: 1
brick consumer message-api aws lambda fastapi gcp fn development
──────────────────────────────────────────────────────────────────────────────────────
greeting - - ✔ ✔ ✔ ✔
kafka ✔ ✔ - - - ✔
log ✔ ✔ ✔ ✔ ✔ ✔
greet_api - - - ✔ - ✔
message_api - ✔ - - - ✔
- Rows are bricks; columns are projects (rightmost = development).
✔= the brick is used by that project;-= not used.- The
developmentcolumn should be✔for every brick (enforced bypoly sync); a-there means a brick was created but isn't yet known to the development project.
Notes for the agent
poly infoexits 0 — it's a report, not a gate.- For wide workspaces, prefer
--shortor--group <name>. - To turn this report into action: cross-reference orphans (only
development = ✔) withpoly deps --brick <name>to confirm nothing imports them, then propose deletion to the user.