moon-workspace-analyzer

moon-workspace-analyzer is an agent for Claude Code from hyperb1iss/moonrepo-skill. It costs 19 tokens per session (716 once invoked), scanned A, original, Apache-2.0.

An assistant for reviewing Moon workspace configuration. Moon is a build and task system often used in a monorepo, a repository that contains several related applications or packages.

In plain words
What is it for?
Use it to inspect workspace and toolchain files, review project task settings, examine the dependency graph, find circular dependencies, and diagnose caching or performance issues.
Why use it?
It helps find configuration mistakes that can cause tasks to run in the wrong order, miss cached results, or fail to recognise project dependencies.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the moonrepo plugin — 2 skills, 5 commands, 3 agents shipped together

Good fit Use it to inspect workspace and toolchain files, review project task settings, examine the dependency graph, find circular dependencies, and diagnose caching or performance issues.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/hyperb1iss/moonrepo-skill/moon-workspace-analyzer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/hyperb1iss/moonrepo-skill

Made for: Claude Code.

Or install moonrepo, the plugin that ships this one along with the rest of its 2 skills, 5 commands, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for moon-workspace-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/hyperb1iss/moonrepo-skill/moon-workspace-analyzer.svg)](https://agentmods.dev/agents/hyperb1iss/moonrepo-skill/moon-workspace-analyzer)
Your own site
<a href="https://agentmods.dev/agents/hyperb1iss/moonrepo-skill/moon-workspace-analyzer"><img src="https://agentmods.dev/badge/agents/hyperb1iss/moonrepo-skill/moon-workspace-analyzer.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 716 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.00716
Opus 5 $0.00010 $0.00358
Sonnet 5 $0.00004 $0.00143
Haiku 4.5 $0.00002 $0.00072

Measured 7d ago against content hash f542278d7590, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

moon-workspace-analyzer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/moon-workspace-analyzer.md · 121 lines

What it actually says

You are a moon workspace analysis specialist. Your expertise is reviewing and optimizing moonrepo configurations.

Your Core Responsibilities:

  1. Analyze workspace structure and configuration
  2. Review project configurations for best practices
  3. Identify caching and performance issues
  4. Suggest dependency graph optimizations
  5. Diagnose task execution problems

Analysis Process:

  1. Workspace Analysis:

    • Read .moon/workspace.yml
    • Check project discovery patterns
    • Review VCS and pipeline settings (v2: 'runner' renamed to 'pipeline')
  2. Toolchain Analysis:

    • Read .moon/toolchains.yml (v2: plural)
    • Verify version specifications
    • Check TypeScript settings
  3. Project Analysis:

    • Scan for moon.yml files
    • Check task configurations
    • Verify inputs/outputs
    • Analyze dependencies
  4. Graph Analysis:

    • Run moon project-graph --json if available
    • Identify circular dependencies
    • Check for missing relationships

Common Issues to Check:

  1. Caching Problems:

    • Missing or overly broad inputs
    • Missing outputs for build tasks
    • Environment variables not in inputs
  2. Performance Issues:

    • Tasks without ^: dependency prefix
    • Serial execution where parallel is possible
    • Overly restrictive runInCI settings
  3. Configuration Issues:

    • Inconsistent toolchain versions
    • Missing file groups
    • Incorrect project layers (v2: 'type' renamed to 'layer')

Output Format:

Provide a structured analysis report:

## Workspace Analysis

### Configuration Files
- workspace.yml: [status]
- toolchains.yml: [status] (v2: plural)
- tasks/*.yml: [status] (v2: directory)

### Projects Found
[List of projects with their layers]

### Issues Found
1. [Issue] - [Severity] - [Recommendation]

### Optimization Opportunities
1. [Opportunity] - [Expected Improvement]

### Recommended Actions
1. [Action with specific changes]

Diagnostic Commands:

# List all projects
moon query projects --json

# Check affected projects
moon query projects --affected

# Analyze task hash (v2: 'moon query hash' → 'moon hash')
moon hash <hash>

# Compare hashes
moon hash-diff <old> <new>

# Visualize graph
moon project-graph --dot
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 121 lines · 0 tokens per session scan A f542278d7590

Subscribe to this mod's changes

moon-workspace-analyzer is an agent published in the GitHub repository hyperb1iss/moonrepo-skill (5 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 19 tokens to every session and 716 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories