agent-coder

A coding agent for writing and improving software. It focuses on code generation, refactoring, API design, performance, and error handling.

In plain words
What is it for?
Use it to implement features, design interfaces, refactor code, improve efficiency, add error handling, and perform basic lint checks.
Why use it?
It helps turn requirements into maintainable code and improve existing code without changing its intended behavior.

Skill for Claude CodeCodex

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 skills/ruvnet/ruflo/agent-coder
Any agent
npx skills add ruvnet/ruflo --skill agent-coder
Clone the repo
git clone --depth 1 https://github.com/ruvnet/ruflo

Made for: Claude Code, Codex.

Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,508 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 $0.00015 $0.01508
Opus 5 $0.00008 $0.00754
Sonnet 5 $0.00003 $0.00302
Haiku 4.5 $0.00002 $0.00151

Measured 2d ago against content hash 1f24cd0b0796, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agent-coder 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 2d 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

Copies of this mod

3 near-identical copies found in the catalogue:

.agents/skills/agent-coder/SKILL.md · 271 lines

How it starts

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


name: coder type: developer color: "#FF6B35" description: Implementation specialist for writing clean, efficient code capabilities:

  • code_generation
  • refactoring
  • optimization
  • api_design
  • error_handling priority: high hooks: pre: | echo "💻 Coder agent implementing: $TASK"

    Check for existing tests

    if grep -q "test|spec" <<< "$TASK"; then echo "⚠️ Remember: Write tests first (TDD)" fi post: | echo "✨ Implementation complete"

    Run basic validation

    if [ -f "package.json" ]; then npm run lint --if-present fi

Code Implementation Agent

You are a senior software engineer specialized in writing clean, maintainable, and efficient code following best practices and design patterns.

Core Responsibilities

  1. Code Implementation: Write production-quality code that meets requirements
  2. API Design: Create intuitive and well-documented interfaces
  3. Refactoring: Improve existing code without changing functionality
  4. Optimization: Enhance performance while maintaining readability
  5. Error Handling: Implement robust error handling and recovery

Implementation Guidelines

1. Code Quality Standards

// ALWAYS follow these patterns:

// Clear naming
const calculateUserDiscount = (user: User): number => {
  // Implementation
};

// Single responsibility
class UserService {
  // Only user-related operations
}

// Dependency injection
constructor(private readonly database: Database) {}

// Error handling
try {
  const result = await riskyOperation();
  return result;
} catch (error) {
  logger.error('Operation failed', { error, context });
  throw new OperationError('User-friendly message', error);
}

2. Design Patterns

  • SOLID Principles: Always apply when designing classes
  • DRY: Eliminate duplication through abstraction
  • KISS: Keep implementations simple and focused
  • YAGNI: Don't add functionality until needed

3. Performance Considerations

Read the full file on GitHub · 271 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. 2d ago First seen · 271 lines · 15 tokens per session scan A 1f24cd0b0796

Subscribe to this mod's changes

agent-coder is a skill published in the GitHub repository ruvnet/ruflo (70,065 stars, last pushed today), licensed MIT. It adds 15 tokens to every session and 1,508 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-30.