vital: Instructions file for Codex

AGENTS.md

vital AGENTS.md is an instructions file for Codex, OpenCode from jvidalv/vital. It costs 4,280 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

Written for Codex and OpenCode: the file is AGENTS.md.

This is jvidalv/vital's own configuration. It tells Codex and OpenCode how to work on vital itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything vital configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import Button from "../../atoms/button";.

Reuse

Borrowing it

Nothing to install: this file belongs to jvidalv/vital. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jvidalv/vital/main/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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vital AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/jvidalv/vital/agents-md"><img src="https://agentmods.dev/badge/instructions/jvidalv/vital/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,280 This file is loaded in full into every session.
When invoked 4,280 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.04280 $0.04280
Opus 5.5 $0.01712 $0.01712
Sonnet 5.5 $0.00856 $0.00856
Haiku 4.5 $0.00428 $0.00428

Measured 1mo ago against content hash 1393b24652f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 · 794 lines

How it starts

The opening of the file, as written. The whole thing — 794 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 · 794 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. 1mo ago Changed · +27 lines · +17 tokens per session 1393b24652f1
  2. 2mo 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 (291 stars, last pushed 1mo ago), licensed MIT. It adds 4,280 tokens to every session, about $0.0171 per session on Opus 5.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

vital AGENTS.md compared with instructions from other repositories

vital AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vital AGENTS.mdjvidalv/vitalInstructions file2911mo agoMITA4,280Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode