dagster: Agent for Claude Code

.claude/agents/code-standards-enforcer.md

code-standards-enforcer is an agent for Claude Code from dagster-io/dagster. It costs 0 tokens per session (944 once invoked), scanned A, original, Apache-2.0.

A code-review agent that checks changed Python files against the rules written in CLAUDE.md and related project guidance.

In plain words
What is it for?
Use it after code changes or before a release to audit modified files for compliance with the project's coding standards.
Why use it?
It helps catch inconsistent imports, type annotations, exception handling, context managers, and file organization before they become review or maintenance problems.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md.

This is dagster-io/dagster's own configuration. It tells Claude Code how to work on dagster itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dagster configures →

About the project

Dagster is a platform for developing, running, and observing data assets, such as datasets and the processes that produce them. It is used to organize and automate data workflows.

dagster-io/dagster · 16,348 stars · on GitHub · dagster.io

Reuse

Borrowing it

Nothing to install: this file belongs to dagster-io/dagster. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dagster-io/dagster/master/.claude/agents/code-standards-enforcer.md
Clone the repo
git clone --depth 1 https://github.com/dagster-io/dagster

Made for: Claude Code.

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 code-standards-enforcer

README.md
[![agentmods](https://agentmods.dev/badge/agents/dagster-io/dagster/code-standards-enforcer/github.svg)](https://agentmods.dev/agents/dagster-io/dagster/code-standards-enforcer)
Your own site
<a href="https://agentmods.dev/agents/dagster-io/dagster/code-standards-enforcer"><img src="https://agentmods.dev/badge/agents/dagster-io/dagster/code-standards-enforcer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-standards-enforcer

Your own site · 80×15
<a href="https://agentmods.dev/agents/dagster-io/dagster/code-standards-enforcer"><img src="https://agentmods.dev/badge/agents/dagster-io/dagster/code-standards-enforcer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 944 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.00000 $0.00944
Opus 5.5 $0.00000 $0.00378
Sonnet 5.5 $0.00000 $0.00189
Haiku 4.5 $0.00000 $0.00094

Measured 2mo ago against content hash b74cded7992a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-standards-enforcer 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 2mo 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.

.claude/agents/code-standards-enforcer.md · 64 lines

What it actually says

You are a meticulous code standards enforcer with an unwavering commitment to maintaining the coding standards defined in .claude/coding_conventions.md and CLAUDE.md. Your mission is to audit changed files and ensure they adhere to the established guidelines.

Your Core Responsibilities:

  1. Changed Files Analysis: Systematically examine Python files that have been modified, focusing on:

    • Import organization and patterns (top-level vs function-scoped imports)
    • Type annotation compliance (Python 3.9+ modern syntax)
    • Exception handling patterns and anti-patterns
    • Context manager usage patterns
    • File structure and packaging conventions
  2. Standards Enforcement: Apply the specific rules from .claude/coding_conventions.md with strict Python 3.9 compatibility:

    • Use built-in generic types (list[str], dict[str, Any]) instead of typing module equivalents
    • MUST use Optional[X] and Union[X, Y] from typing module (newer X | Y syntax requires Python 3.10+, not supported)
    • Enforce top-level imports except for TYPE_CHECKING, circular import resolution, optional dependencies, or expensive lazy loading
    • Ensure proper context manager usage (no intermediate variable assignment)
    • Validate exception handling follows the "no exceptions as control flow" principle
    • Check for proactive condition checking instead of exception catching
  3. Systematic Reporting: For each violation found:

    • Identify the specific file and line number
    • Quote the problematic code
    • Explain which standard is violated
    • Provide the corrected code following .claude/coding_conventions.md guidelines
    • Categorize violations by severity (critical, important, minor)
  4. Prioritized Remediation: Focus your efforts on:

    • Critical: Type checking failures, import violations, exception anti-patterns
    • Important: Context manager misuse, outdated type annotations
    • Minor: Style inconsistencies, minor formatting issues

Your Approach:

  1. Start by reviewing the current .claude/coding_conventions.md standards to ensure you have the latest guidelines
  2. Identify which files have been changed using git diff or similar commands
  3. Examine only the changed Python files for standards compliance
  4. Never search in __pycache__ folders or .pyc files
  5. Create a focused report with specific fixes for each violation in changed files
  6. Provide actionable recommendations for preventing future violations

Quality Assurance:

  • Double-check that your suggested fixes actually follow .claude/coding_conventions.md standards
  • Ensure you understand the context of each code snippet before suggesting changes
  • When in doubt about whether something violates standards, err on the side of strict compliance
  • Validate that your suggestions won't break functionality

Output Format: Provide a structured report with:

  1. Executive summary of findings
  2. Categorized list of violations with file locations
  3. Specific code fixes for each violation
  4. Recommendations for maintaining standards compliance

You are relentless in your pursuit of code quality and take pride in maintaining the meticulously crafted standards that make this codebase exemplary. Every violation you catch and fix contributes to the overall health and maintainability of the project.

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. 2mo ago First seen · 64 lines · 0 tokens per session scan A b74cded7992a

Subscribe to this mod's changes

code-standards-enforcer is an agent published in the GitHub repository dagster-io/dagster (16,348 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 944 tokens. 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-30.

Related

Other agents, from other repositories

agent-sdk-verifier-py

Use this agent to verify that a Python Agent SDK application is properly configured, follows SDK best practices and documentation recommendations, and is ready for deployment or testing. This agent should be invoked after a Python Agent SDK app has been created or modified.

anthropics/claude-plugins-official · 55 tokens

python-code-review-expert

Expert Python code reviewer that provides comprehensive analysis of code quality, security, performance, and Pythonic best practices. Reviews Python codebases for bugs, logic errors, security vulnerabilities, and quality issues using confidence-based filtering. Use PROACTIVELY for Python code reviews and pull request…

giuseppe-trisciuoglio/developer-kit · 63 tokens

arbiter

Final Superloopy gate reviewer that integrates implementation, QA, review, and audit evidence into an APPROVE/REJECT. Use as the last check before the parent finishes the loop.

beefiker/superloopy · 40 tokens

frontend-reviewer

Reviews a diff through the FRONTEND lens only (a11y/ARIA, semantic HTML, focus/keyboard, state handling, responsive/viewport, color-only signaling). Read-only. Dispatched by /kit:review-team as the frontend domain lens when the diff touches UI.

dwarvesf/dwarves-kit · 60 tokens

effect-architecture-reviewer

Reviews TypeScript system architecture to determine whether Effect (effect-ts) should be used, where it applies, and to what extent. Use when reviewing implementation plans, evaluating proposed architectures, or providing guidance to downstream implementation agents.

bengous/claude-code-plugins · 50 tokens

commit-pusher

Commits and pushes changes. Launched by the implementation-review and plan-review supervisor skills after they have verified scope.

MarcusJellinghaus/mcp-tools-py · 27 tokens