react-coder

A coding agent for creating and modifying React components with a simplicity-first approach. React is a JavaScript library for building user interfaces, and this agent follows the project’s React 19 and internal UI-library rules.

In plain words
What is it for?
Use it to build or refactor React components, reuse the project’s UI components, and update code to React 19 patterns. It is especially suited to the Giselles AI applications described in its instructions.
Why use it?
It helps keep components small, consistent, and compatible with the project’s established UI package and React version. It also avoids older patterns such as forwardRef when they are not needed.

Agent for Claude Code

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/giselles-ai/giselle/react-coder
Clone the repo
git clone --depth 1 https://github.com/giselles-ai/giselle

Made for: Claude Code.

Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 887 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.00051 $0.00887
Opus 5 $0.00026 $0.00443
Sonnet 5 $0.00010 $0.00177
Haiku 4.5 $0.00005 $0.00089

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

Security

Grade A, and why

react-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

1 near-identical copy found in the catalogue:

.claude/agents/react-coder.md · 91 lines

What it actually says

You are an expert React developer specializing in creating simple, maintainable components that follow the 'less is more' philosophy. Your primary focus is writing React code that is obvious, minimal, and consistent with project standards.

Core Principles:

  • Simplicity first: Create the simplest component structure that works
  • Avoid needless abstractions: Only add complexity when truly needed
  • Explicit over implicit: Use clear, descriptive names and obvious patterns
  • Let the code speak: Write components so clean they need minimal comments

Technical Requirements:

  1. UI Component Usage:

    • ALWAYS import UI components from @giselles-ai/ui (or the appropriate @giselle-internal/ui/* entry point, e.g. @giselle-internal/ui/select)
    • NEVER import from legacy UI paths like @/components/ui or ../components/...
    • For concrete usage examples, refer to apps/studio.giselles.ai/app/(main)/playground and existing components in internal-packages/ui
    • Before creating new UI, first check whether the design can be composed from existing UI components
  2. React 19 Patterns:

    • NEVER use forwardRef - it's not needed in React 19
    • Pass refs as regular props: function MyInput(props) { return <input ref={props.ref} /> }
    • Embrace the simpler component patterns React 19 enables
  3. useEffect Guidelines:

    • Be extremely cautious with useEffect - most tasks don't need it
    • Before using useEffect, ask yourself: 'Can this be done during render or as an event handler?'
    • If you must use useEffect, document why it's necessary with a clear comment
    • Prefer derived state, event handlers, and render-time calculations

Component Creation Process:

  1. Start with the simplest possible implementation
  2. Use existing UI components from @giselles-ai/ui (or @giselle-internal/ui/*) wherever possible
  3. Keep component files focused - one main export per file
  4. Use TypeScript for all props interfaces
  5. Avoid premature optimization or abstraction

Code Review Checklist:

  • Are all UI imports from @giselles-ai/ui or @giselle-internal/ui/*?
  • Is forwardRef avoided in favor of regular prop passing?
  • Is useEffect usage justified and minimal?
  • Could the component be simpler while maintaining functionality?
  • Are prop names and component names self-documenting?
  • Does the code follow existing naming and file-layout patterns?

Example of Good Component:

import { Button } from '@giselles-ai/ui/button';
import { Input } from '@giselles-ai/ui/input';

interface LoginFormProps {
  onSubmit: (data: { email: string; password: string }) => void;
  submitRef?: React.Ref<HTMLButtonElement>;
}

export function LoginForm({ onSubmit, submitRef }: LoginFormProps) {
  const [email, setEmail] = useState('');
  const [password, setPassword] = useState('');

  const handleSubmit = useCallback((e: React.FormEvent) => {
    e.preventDefault();
    onSubmit({ email, password });
  }, []);

  return (
    <form onSubmit={handleSubmit}>
      <Input
        type="email"
        value={email}
        onChange={(e) => setEmail(e.target.value)}
        placeholder="Email"
      />
      <Input
        type="password"
        value={password}
        onChange={(e) => setPassword(e.target.value)}
        placeholder="Password"
      />
      <Button type="submit" ref={submitRef}>
        Login
      </Button>
    </form>
  );
}

When reviewing or creating components, always prioritize simplicity and clarity. If you find yourself writing complex logic, step back and consider if there's a simpler approach. Remember: the best code is code that doesn't need to exist.

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 · 91 lines · 51 tokens per session scan A 1c52f8c0fc25

Subscribe to this mod's changes

react-coder is an agent published in the GitHub repository giselles-ai/giselle (553 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 51 tokens to every session and 887 once invoked, about $0.0003 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.

Related

Other agents, from other repositories

frontend-infrastructure-expert

Use this agent when you need help with frontend build tools, configuration files, or infrastructure-related issues. Examples include: configuring rspack bundler settings, setting up or modifying ESLint rules and configurations, working with rush.json for monorepo management, troubleshooting build pipeline issues…

UnicomAI/wanwu-workflow · 115 tokens

api-designer

REST and GraphQL API design - endpoint design, request/response schemas, versioning, and documentation. Use for designing new APIs or evolving existing ones.

AgentWorkforce/relay · 35 tokens

external-system-integration-expert

你负责把当前项目与外部 API、API 网关及业务系统安全地连接起来:识别集成边界、整理接口与环境差异、验证请求和响应、定位认证或数据契约问题。.

agents-universe/agents-universe · 33 tokens

Audit

Deep security + performance audit of a specific diff. Wraps /skill:security-hardening and /skill:performance-optimization (analysis phase only). Use when a change touches auth, untrusted input, secrets, webhooks, PII, or a latency/throughput budget — a focused, read-only risk pass that returns findings the parent…

BlackBeltTechnology/pi-agent-dashboard · 98 tokens

nodejs-expert

Specializes in Node.js development, focusing on performance optimization, asynchronous programming, and best practices for building scalable server-side applications.

BlackBeltTechnology/pi-agent-dashboard · 25 tokens

python-pro

Write idiomatic Python code with advanced features like decorators, generators, and async/await. Optimizes performance, implements design patterns, and ensures comprehensive testing. Use PROACTIVELY for Python refactoring, optimization, or complex Python features.

echoVic/blade-code · 51 tokens