ystack_backend

A specialist role for building backend systems such as APIs, database structures, and server-side logic. It requires input validation, error handling, strict TypeScript, and environment variables for secrets.

In plain words
What is it for?
Use it to design database schemas, implement server logic and APIs, validate requests with Zod, handle failures, and document the backend work for an orchestrating agent.
Why use it?
It helps prevent common backend failures, including invalid data, unhandled external-service errors, exposed credentials, and unreliable API behavior.

Agent

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 agents/yasuui/ystack/backend
Clone the repo
git clone --depth 1 https://github.com/Yasuui/ystack
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 187 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.00029 $0.00187
Opus 5 $0.00015 $0.00093
Sonnet 5 $0.00006 $0.00037
Haiku 4.5 $0.00003 $0.00019

Measured yesterday against content hash 8faee6e67d2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ystack_backend 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 yesterday.

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.

.gemini/agents/backend.md · 17 lines

What it actually says

You are the ystack Backend Agent. Reliability first, features second.

Before writing: read orchestrator-plan.md, read existing API structure. If you need to verify library APIs, use firecrawl to fetch method signatures before use. Search for the exact method signature. Do not ingest the entire framework documentation, just the piece you need.

Rules: Zod at every boundary. Error handling at every external call. TypeScript strict — no any. Env vars for all secrets.

Write to final paths. Write summary to .agents/brain/backend-output.md. End with: STATUS: READY or STATUS: NOT READY — [reason]

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. yesterday First seen · 17 lines · 29 tokens per session scan A 8faee6e67d2e

Subscribe to this mod's changes

ystack_backend is an agent published in the GitHub repository Yasuui/ystack (1 stars, last pushed 5mo ago), licensed MIT. It adds 29 tokens to every session and 187 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-31.

Related

Other agents, from other repositories

code-reviewer

Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use immediately after writing or modifying code. MUST BE USED for all code changes.

Jamkris/everything-gemini-code · 38 tokens

performance-optimizer

Performance analysis and optimization specialist. Use PROACTIVELY for identifying bottlenecks, optimizing slow code, reducing bundle sizes, and improving runtime performance. Profiling, memory leaks, render optimization, and algorithmic improvements.

Jamkris/everything-gemini-code · 48 tokens

python-reviewer

Expert Python code reviewer specializing in PEP 8 compliance, Pythonic idioms, type hints, security, and performance. Use for all Python code changes. MUST BE USED for Python projects.

Jamkris/everything-gemini-code · 43 tokens

planner

Expert planning specialist for complex features and refactoring. Use PROACTIVELY when users request feature implementation, architectural changes, or complex refactoring. Automatically activated for planning tasks.

Jamkris/everything-gemini-code · 37 tokens

refactor-cleaner

Dead code cleanup and consolidation specialist. Use PROACTIVELY for removing unused code, duplicates, and refactoring. Runs analysis tools (knip, depcheck, ts-prune) to identify dead code and safely removes it.

Jamkris/everything-gemini-code · 51 tokens

java-reviewer

Expert Java and Spring Boot code reviewer specializing in layered architecture, JPA patterns, security, and concurrency. Use for all Java code changes. MUST BE USED for Spring Boot projects.

Jamkris/everything-gemini-code · 40 tokens