agent-dev-backend-api

A coding-agent skill for building and changing backend APIs—the server-side interfaces that let software exchange data. It covers common API styles such as REST and GraphQL.

In plain words
What is it for?
Creating API endpoints and routes, implementing controllers or resolvers, and working on backend server code and its tests.
Why use it?
It focuses the agent on backend API work and limits its file access to typical source, route, model, middleware, and test folders. This helps keep unrelated project files out of scope.

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

Made for: Claude Code, Codex.

Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,677 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.00022 $0.02677
Opus 5 $0.00011 $0.01339
Sonnet 5 $0.00004 $0.00535
Haiku 4.5 $0.00002 $0.00268

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

Security

Grade A, and why

agent-dev-backend-api 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-dev-backend-api/SKILL.md · 350 lines

How it starts

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


name: "backend-dev" description: "Specialized agent for backend API development with self-learning and pattern recognition" color: "blue" type: "development" version: "2.0.0-alpha" created: "2025-07-25" updated: "2025-12-03" author: "Claude Code" metadata: specialization: "API design, implementation, optimization, and continuous improvement" complexity: "moderate" autonomous: true v2_capabilities: - "self_learning" - "context_enhancement" - "fast_processing" - "smart_coordination" triggers: keywords: - "api" - "endpoint" - "rest" - "graphql" - "backend" - "server" file_patterns: - "$api//.js" - "$routes//.js" - "$controllers//.js" - ".resolver.js" task_patterns: - "create * endpoint" - "implement * api" - "add * route" domains: - "backend" - "api" capabilities: allowed_tools: - Read - Write - Edit - MultiEdit - Bash - Grep - Glob - Task restricted_tools: - WebSearch # Focus on code, not web searches max_file_operations: 100 max_execution_time: 600 memory_access: "both" constraints: allowed_paths: - "src/" - "api/" - "routes/" - "controllers/" - "models/" - "middleware/" - "tests/" forbidden_paths: - "node_modules/" - ".git/" - "dist/" - "build/**" max_file_size: 2097152 # 2MB allowed_file_types: - ".js" - ".ts" - ".json" - ".yaml" - ".yml" behavior: error_handling: "strict" confirmation_required: - "database migrations" - "breaking API changes" - "authentication changes" auto_rollback: true logging_level: "debug" communication: style: "technical" update_frequency: "batch" include_code_snippets: true emoji_usage: "none" integration: can_spawn: - "test-unit" - "test-integration" - "docs-api" can_delegate_to: - "arch-database" - "analyze-security" requires_approval_from: - "architecture" shares_context_with: - "dev-backend-db" - "test-integration" optimization: parallel_operations: true batch_size: 20 cache_results: true memory_limit: "512MB" hooks: pre_execution: | echo "🔧 Backend API Developer agent starting..." echo "📋 Analyzing existing API structure..." find . -name ".route.js" -o -name ".controller.js" | head -20

# 🧠 v2.0.0-alpha: Learn from past API implementations
echo "🧠 Learning from past API patterns..."
SIMILAR_PATTERNS=$(npx claude-flow@alpha memory search-patterns "API implementation: $TASK" --k=5 --min-reward=0.85 2>$dev$null || echo "")
if [ -n "$SIMILAR_PATTERNS" ]; then
  echo "📚 Found similar successful API patterns"
  npx claude-flow@alpha memory get-pattern-stats "API implementation" --k=5 2>$dev$null || true
fi

# Store task start for learning
npx claude-flow@alpha memory store-pattern \
  --session-id "backend-dev-$(date +%s)" \
  --task "API: $TASK" \
  --input "$TASK_CONTEXT" \
  --status "started" 2>$dev$null || true

post_execution: | echo "✅ API development completed" echo "📊 Running API tests..." npm run test:api 2>$dev$null || echo "No API tests configured"

# 🧠 v2.0.0-alpha: Store learning patterns
echo "🧠 Storing API pattern for future learning..."
REWARD=$(if npm run test:api 2>$dev$null; then echo "0.95"; else echo "0.7"; fi)
SUCCESS=$(if npm run test:api 2>$dev$null; then echo "true"; else echo "false"; fi)

npx claude-flow@alpha memory store-pattern \
  --session-id "backend-dev-$(date +%s)" \
  --task "API: $TASK" \
  --output "$TASK_OUTPUT" \
  --reward "$REWARD" \
  --success "$SUCCESS" \
  --critique "API implementation with $(find . -name '*.route.js' -o -name '*.controller.js' | wc -l) endpoints" 2>$dev$null || true

# Train neural patterns on successful implementations
if [ "$SUCCESS" = "true" ]; then
  echo "🧠 Training neural pattern from successful API implementation"
  npx claude-flow@alpha neural train \
    --pattern-type "coordination" \
    --training-data "$TASK_OUTPUT" \
    --epochs 50 2>$dev$null || true
fi

Read the full file on GitHub · 350 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 · 350 lines · 22 tokens per session scan A 13fbac965e68

Subscribe to this mod's changes

agent-dev-backend-api is a skill published in the GitHub repository ruvnet/ruflo (70,065 stars, last pushed yesterday), licensed MIT. It adds 22 tokens to every session and 2,677 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.