Oficina: Instructions file for Codex

AGENTS.md

Oficina AGENTS.md is an instructions file for Codex, OpenCode from JoaoEquer/Oficina. It costs 1,715 tokens per session, scanned A, original, MIT.

A starting guide for coding agents working with Oficina, a NestJS and TypeScript project pattern that uses Prisma and PostgreSQL. It points agents to rules and task-specific guides for areas such as database schemas, permissions, and CRUD features.

In plain words
What is it for?
Use it as the entry point for Oficina-based work, then consult the matching guide for CRUD modules, database migrations, access control, task breakdowns, documentation, or agent workflow.
Why use it?
It helps agents find the relevant project conventions before changing code, data models, security rules, or client-facing documents.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions Codex; mentions Gemini CLI.

This is JoaoEquer/Oficina's own configuration. It tells Codex and OpenCode how to work on Oficina 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 Oficina configures →

Reuse

Borrowing it

Nothing to install: this file belongs to JoaoEquer/Oficina. 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/JoaoEquer/Oficina/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/JoaoEquer/Oficina

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/joaoequer/oficina/agents-md/github.svg)](https://agentmods.dev/instructions/joaoequer/oficina/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/joaoequer/oficina/agents-md"><img src="https://agentmods.dev/badge/instructions/joaoequer/oficina/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 Oficina AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/joaoequer/oficina/agents-md"><img src="https://agentmods.dev/badge/instructions/joaoequer/oficina/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,715 This file is loaded in full into every session.
When invoked 1,715 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.01715 $0.01715
Opus 5.5 $0.00686 $0.00686
Sonnet 5.5 $0.00343 $0.00343
Haiku 4.5 $0.00171 $0.00171

Measured 7d ago against content hash fddf007d473c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Oficina 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 7d 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 · 71 lines

How it starts

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

AGENTS.md — Oficina

Entry point for harnesses that read AGENTS.md (Codex, Cursor, OpenCode, Gemini CLI and similar).

This repository is a lean harness of working patterns for the Node.js + TypeScript + Prisma stack — Express (manual Clean Architecture) in the production backends it was extracted from, NestJS kept for projects that explicitly pick it.

When working on any project that references this harness:

  1. Follow the always-on rules in rules/:

    • rules/engineering-philosophy.md — how the team decides (pragmatism, no over-engineering)
    • rules/git-workflow.md — branches, commits, documentation from day 0
    • rules/security-baseline.md — security and multi-tenancy non-negotiables
    • rules/agent-workflow.md — how to direct the agent itself (plan before code, scoped sessions, early correction)
  2. Consult the skills in skills/ before executing tasks in the covered areas. House patterns (extracted from repeated real usage — Path 1 in docs/HOW-TO-GROW.md):

    • express-prisma-pattern — creating any CRUD route/domain in an Express + Prisma backend (the house stack)
    • prisma-schema-conventions — creating/changing schema, planning migrations
    • rbac-design — permissions, roles, access control
    • clickup-task-breakdown — breaking scope into tasks
    • client-facing-docs — any material the client will read
    • token-efficiency — session setup, token/context limits, RTK
    • design-audit — read-only audit for the generated-UI look and design-system drift (static scan + rendered check, ranked report)
    • frontend-design — pick a deliberate visual direction (plan, review against brief, build) before writing UI; pair with design-audit to check the result
    • break-ui — feeds a component worst-case data (long names, empty states, huge counts, non-Latin text) behind a demo toggle and reports what breaks, with a fix for each
    • security-audit — read-only code security audit, source-to-sink tracing, HIGH-confidence findings only (Express/Prisma, web, Electron, Expo, LLM)
    • ai-news — daily AI news briefing in PT-BR (AlphaSignal + Hermes AI, new items only) and Shorts scripts from the best stories; output in ~/.oficina/news/, never in a repo

    Curated skills (audited external adoption closing a confirmed gap — Path 2 in docs/HOW-TO-GROW.md):

    • domain-modeling — building/sharpening CONTEXT.md glossary and ADRs

    • codebase-design — deep-module vocabulary when designing or reviewing an interface

    • improve-codebase-architecture — scanning a codebase for deepening opportunities

    • grilling — structured requirements interview to stress-test a plan or decision

    • diagnosing-bugs — hard bugs and performance regressions

    • tdd — test-first feature/bugfix work, red-green-refactor discipline

    • secrets-gitleaks — secret scanning, pre-commit and CI (operationalizes security-baseline.md)

    • ci-cd-and-automation — standing up CI/CD quality gates from scratch

    • redesign-existing-projects — auditing and upgrading the UI of an existing project without changing its stack

    • screenshot-to-code — rebuilding a UI from a screenshot, then comparing the render against it

    • web-design-guidelines — reviewing front-end code against Vercel Web Interface Guidelines (rules vendored, no network call)

    • playwright-cli — driving a real browser from the terminal to test a page at phone width (needs npm i -g @playwright/cli)

    • rag-architect — designing/evaluating a RAG pipeline

    • sentry-setup-ai-monitoring — instrumenting LLM call cost/latency/tokens

    • claude-skill-crafting — writing or auditing a skill: the 10 authoring rules plus the pre-ship checks

    • arms-agentic-os — setting up or auditing an agent workspace by its four parts (Skills, Memory, Routines, Apps), level by level

    Canal de YouTube (opcional — só em projeto de conteúdo/canal, nunca em backend ou web app):

    • yt-script — roteiro a partir de uma ideia: hooks pontuados e roteiro falado com as marcas de retenção
    • yt-package — título e thumbnail como par, com lint de truncamento e duplicação
    • yt-seo — descrição, tags e texto de busca
    • yt-chapters — capítulos validados pelas regras do YouTube
    • yt-edit — lista de cortes (silêncio, muletas, retakes) a partir da transcrição
    • yt-shorts — acha e escreve os Shorts dentro de um vídeo longo
    • yt-retention — lê o export de retenção do Studio e aponta onde o público sai
    • yt-audit — auditoria do canal (embalagem, consistência, primeiros 15 s)
    • yt-plan — calendário de uploads dimensionado à capacidade real
    • yt-comment — respostas a comentários na voz do criador, com triagem
    • yt-viral — o que está funcionando no nicho, ranqueado contra o próprio canal

Read the full file on GitHub · 71 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. 7d ago Changed · +19 lines · +406 tokens per session fddf007d473c
  2. 11d ago Changed · +2 lines · +167 tokens per session 89656e3325c7
  3. 25d ago Changed · +3 lines · +105 tokens per session be62bf36f7dd
  4. 1mo ago Changed · +6 lines · +184 tokens per session c64ca1085b55
  5. 1mo ago Changed · +7 lines · +230 tokens per session 66439e890229
  6. 1mo ago Changed · -13 tokens per session 032e87b75e95
  7. 2mo ago Changed · -1 lines · -26 tokens per session ebe57d28642b
  8. 2mo ago Changed · +13 lines · +327 tokens per session 3f815f08e30f
  9. 3mo ago First seen · 22 lines · 335 tokens per session scan A 81c8f4dc4ba4

Subscribe to this mod's changes

Oficina AGENTS.md is an instructions file published in the GitHub repository JoaoEquer/Oficina (2 stars, last pushed 8d ago), licensed MIT. It adds 1,715 tokens to every session, about $0.0069 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-31.

Related

Oficina AGENTS.md compared with instructions from other repositories

Oficina AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Oficina AGENTS.mdJoaoEquer/OficinaInstructions file28d agoMITA1,715Codex, OpenCode
ai-agent-rules-generator ui-design.instructions.mdsavedpixel/ai-agent-rules-generatorInstructions file87mo agoMITA701GitHub Copilot
ai-agent-rules-generator ratelimitting.instructions.mdsavedpixel/ai-agent-rules-generatorInstructions file87mo agoMITA522GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,680Codex, OpenCode