deviation-check

deviation-check is a command for Claude Code from KirKruglov/claude-project-manager. It costs 6 tokens per session (457 once invoked), scanned A, original, MIT.

A project-management command that compares planned dates and budgets with actual progress and spending. It is intended for projects in active execution phases three through five.

In plain words
What is it for?
Use it to review project state, compare milestones and workstream budgets with tracker data, calculate schedule variance, and flag deviations over the stated thresholds.
Why use it?
It highlights meaningful schedule delays or budget differences instead of relying on manual comparisons. It also reports when no significant deviation is found.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the project-manager plugin — 21 skills, 8 commands, 3 MCP servers shipped together

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.

agentmods
npx agentmods add commands/kirkruglov/claude-project-manager/deviation-check
Clone the repo
git clone --depth 1 https://github.com/KirKruglov/claude-project-manager

Made for: Claude Code.

Or install project-manager, the plugin that ships this one along with the rest of its 21 skills, 8 commands, 3 MCP servers.

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 deviation-check

README.md
[![agentmods](https://agentmods.dev/badge/commands/kirkruglov/claude-project-manager/deviation-check.svg)](https://agentmods.dev/commands/kirkruglov/claude-project-manager/deviation-check)
Your own site
<a href="https://agentmods.dev/commands/kirkruglov/claude-project-manager/deviation-check"><img src="https://agentmods.dev/badge/commands/kirkruglov/claude-project-manager/deviation-check.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 457 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00006 $0.00457
Opus 5 $0.00003 $0.00229
Sonnet 5 $0.00001 $0.00091
Haiku 4.5 $0.00001 $0.00046

Measured 5d ago against content hash 0750772bc52c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

deviation-check 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 5d 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.

commands/deviation-check.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deviation Check Command

Purpose

Compare planned vs actual project performance to identify schedule and budget deviations. Runs automated deviation analysis and notifies stakeholders if issues are detected.

Steps

  1. Verify project state

    • Read project-state.md
    • Confirm project is in phase 3, 4, or 5
    • If not in these phases, inform user this command requires active execution phase
  2. Retrieve planned baselines

    • Read 02-planning/project-plan.md
    • Extract planned dates for all major milestones
    • Extract budget allocations per workstream
  3. Query actual performance

    • Query ~~project tracker for task statuses and completion dates across all workstreams
    • Retrieve actual spend (if available in tracker)
    • Compile actual vs planned data
  4. Analyze deviations

    • Compare actual task completion dates against planned dates
    • Calculate schedule variance (days behind/ahead)
    • Compare actual spend against budget (if available)
    • Flag any deviations >5% or >5 days as significant
  5. Handle results

    • If no deviations found:
      • Log "No schedule or budget deviations detected"
      • Complete command
    • If deviations found:
      • Proceed to step 6
  6. Generate deviation report

    • Trigger monitor-progress skill with report_type=deviations
    • Include variance analysis and root cause summary
  7. Save report

    • Save report to reports/deviation-report-{YYYY-MM-DD}.md
  8. Notify PM and stakeholders

    • Read references/email-autonomy-rules.md for autonomy level 2 rules
    • Send email to PM with deviations summary
    • CC key stakeholders identified in project charter
    • Include: deviation summary, impact assessment, recommended actions
    • Use autonomy level 2 (send with stakeholders in CC, no approval required)
  9. Update project state

    • Update project-state.md with:
      • Last deviation check timestamp
      • Current deviation status
      • Any escalations triggered
    • Log action in project audit trail

Read the full file on GitHub · 60 lines

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. 5d ago First seen · 60 lines · 6 tokens per session scan A 0750772bc52c

Subscribe to this mod's changes

deviation-check is a command published in the GitHub repository KirKruglov/claude-project-manager (6 stars, last pushed 4mo ago), licensed MIT. It adds 6 tokens to every session and 457 once invoked, about $0.0000 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.