ai-code-graph: Command for Claude Code

.claude/commands/tm/auto-implement-tasks.md

auto-implement-tasks is a command for Claude Code from sakrut/ai-code-graph. It costs 0 tokens per session (480 once invoked), scanned A, a copy of auto-implement-tasks, MIT.

An automated implementation command that examines a task and the existing code before making changes. It supports feature work, bug fixes, and refactoring, with testing and verification included in the described process.

In plain words
What is it for?
Use it to implement features, reproduce and fix bugs, or restructure code while preserving behavior and matching the project’s existing style.
Why use it?
It reduces the guesswork of changing an unfamiliar codebase by checking its patterns, conventions, risks, and related work first. It also helps catch regressions by adding or running tests.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is sakrut/ai-code-graph's own configuration. It tells Claude Code how to work on ai-code-graph 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 ai-code-graph configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sakrut/ai-code-graph. 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/sakrut/ai-code-graph/main/.claude/commands/tm/auto-implement-tasks.md
Clone the repo
git clone --depth 1 https://github.com/sakrut/ai-code-graph

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 auto-implement-tasks

README.md
[![agentmods](https://agentmods.dev/badge/commands/sakrut/ai-code-graph/auto-implement-tasks/github.svg)](https://agentmods.dev/commands/sakrut/ai-code-graph/auto-implement-tasks)
Your own site
<a href="https://agentmods.dev/commands/sakrut/ai-code-graph/auto-implement-tasks"><img src="https://agentmods.dev/badge/commands/sakrut/ai-code-graph/auto-implement-tasks/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 auto-implement-tasks

Your own site · 80×15
<a href="https://agentmods.dev/commands/sakrut/ai-code-graph/auto-implement-tasks"><img src="https://agentmods.dev/badge/commands/sakrut/ai-code-graph/auto-implement-tasks.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 480 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 92% copy Near-identical to another mod 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.00480
Opus 5.5 $0.00000 $0.00192
Sonnet 5.5 $0.00000 $0.00096
Haiku 4.5 $0.00000 $0.00048

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

Security

Grade A, and why

auto-implement-tasks 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 1mo 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.

Origin

This is a copy

92% identical to auto-implement-tasks — 3 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/tm/auto-implement-tasks.md · 100 lines

How it starts

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

Auto Implement Tasks

Arguments: $ARGUMENTS Enhanced auto-implementation with intelligent code generation and testing.

Arguments: $ARGUMENTS

Intelligent Auto-Implementation

Advanced implementation with context awareness and quality checks.

1. Pre-Implementation Analysis

Before starting:

  • Analyze task complexity and requirements
  • Check codebase patterns and conventions
  • Identify similar completed tasks
  • Assess test coverage needs
  • Detect potential risks

2. Smart Implementation Strategy

Based on task type and context:

Feature Tasks

  1. Research existing patterns
  2. Design component architecture
  3. Implement with tests
  4. Integrate with system
  5. Update documentation

Bug Fix Tasks

  1. Reproduce issue
  2. Identify root cause
  3. Implement minimal fix
  4. Add regression tests
  5. Verify side effects

Refactoring Tasks

  1. Analyze current structure
  2. Plan incremental changes
  3. Maintain test coverage
  4. Refactor step-by-step
  5. Verify behavior unchanged

3. Code Intelligence

Pattern Recognition

  • Learn from existing code
  • Follow team conventions
  • Use preferred libraries
  • Match style guidelines

Test-Driven Approach

  • Write tests first when possible
  • Ensure comprehensive coverage
  • Include edge cases
  • Performance considerations

4. Progressive Implementation

Step-by-step with validation:

Step 1/5: Setting up component structure ✓
Step 2/5: Implementing core logic ✓
Step 3/5: Adding error handling ⚡ (in progress)
Step 4/5: Writing tests ⏳
Step 5/5: Integration testing ⏳

Current: Adding try-catch blocks and validation...

5. Quality Assurance

Automated checks:

  • Linting and formatting
  • Test execution
  • Type checking
  • Dependency validation
  • Performance analysis

6. Smart Recovery

If issues arise:

  • Diagnostic analysis
  • Suggestion generation
  • Fallback strategies
  • Manual intervention points
  • Learning from failures

7. Post-Implementation

After completion:

  • Generate PR description
  • Update documentation
  • Log lessons learned
  • Suggest follow-up tasks
  • Update task relationships

Read the full file on GitHub · 100 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. 1mo ago First seen · 100 lines · 0 tokens per session scan A fc14d3847bec

Subscribe to this mod's changes

auto-implement-tasks is a command published in the GitHub repository sakrut/ai-code-graph (3 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 480 tokens. A static security scan graded it A with 0 findings. It is 92% identical to auto-implement-tasks, differing in 3 lines, and is treated as a copy.