vital AGENTS.md

vital AGENTS.md is an instructions file for Codex, OpenCode from jvidalv/vital. It costs 4,263 tokens per session, scanned A, original, MIT.

Development instructions for building React components in the Vital project, which uses a layered design system from small elements up to full pages.

In plain words
What is it for?
Use them when creating or modifying Vital components such as buttons, form fields, search boxes, headers, cards, forms, navigation, and page layouts.
Why use it?
They clarify how to choose a component level and follow the project's conventions for structure, styling, TypeScript, imports, and commits.

Instructions file for CodexOpenCode

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 instructions/jvidalv/vital/agents-md
Clone the repo
git clone --depth 1 https://github.com/jvidalv/vital

Made for: Codex, OpenCode.

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 vital AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jvidalv/vital/agents-md.svg)](https://agentmods.dev/instructions/jvidalv/vital/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/jvidalv/vital/agents-md"><img src="https://agentmods.dev/badge/instructions/jvidalv/vital/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,263 This file is loaded in full into every session.
When invoked 4,263 The same file — it is already loaded in full.
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.04263 $0.04263
Opus 5 $0.02132 $0.02132
Sonnet 5 $0.00853 $0.00853
Haiku 4.5 $0.00426 $0.00426

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

Security

Grade A, and why

vital AGENTS.md 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 3d 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.

AGENTS.md · 767 lines

How it starts

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

AI Agent Development Guide

This guide helps AI agents build features and components for the Vital project efficiently and consistently.

Quick Reference

  • Architecture: Atomic Design (atoms → molecules → organisms → templates → pages)
  • Styling: Tailwind CSS v4 (inline utility classes)
  • TypeScript: Strict mode, use forwardRef and ComponentProps
  • Imports: Use path aliases (components/*, app/*, hooks/*)
  • Commits: Conventional commits format

Component Creation Workflow

Step 1: Determine Component Level

Ask yourself:

Is it an Atom?

  • Single, standalone UI element
  • No other components inside (except maybe icons)
  • Highly reusable
  • Examples: Button, Input, Badge, Avatar, Icon

Is it a Molecule?

  • Combines 2-3 atoms
  • Serves a single, clear purpose
  • Examples: SearchBox (input + button), FormField (label + input + error), MenuItem (icon + text)

Is it an Organism?

  • Complex, feature-rich component
  • Contains multiple molecules and/or atoms
  • Often domain-specific
  • Examples: Header, Card, Form, Navigation, ProductCard

Is it a Template?

  • Page layout structure
  • Defines content areas
  • No actual content, just placeholders
  • Examples: DashboardLayout, AuthLayout

Is it a Page?

  • Specific instance of a template
  • Contains real content
  • Examples: HomePage, LoginPage, UserProfilePage

Step 2: Create Component Files

Directory Structure
# Atoms
src/components/atoms/{component-name}/
├── {component-name}.tsx
└── index.ts

# Molecules
src/components/molecules/{component-name}/
├── {component-name}.tsx
└── index.ts

# Organisms
src/components/organisms/{component-name}/
├── {component-name}.tsx
└── index.ts
File Naming
  • Use kebab-case for directories: copy-button, user-card, search-input
  • Use kebab-case for files: copy-button.tsx, not CopyButton.tsx
  • Component name is PascalCase: const CopyButton = ...

Step 3: Component Implementation

Template for Simple Atoms

Read the full file on GitHub · 767 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. 3d ago First seen · 767 lines · 4,263 tokens per session scan A 886535ee7a1c

Subscribe to this mod's changes

vital AGENTS.md is an instructions file published in the GitHub repository jvidalv/vital (292 stars, last pushed 5mo ago), licensed MIT. It adds 4,263 tokens to every session, about $0.0213 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.