Oficina: Instructions file for Codex

AGENTS.md

Oficina AGENTS.md is an instructions file for Codex, OpenCode from JoaoEquer/Oficina. It costs 623 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 623 This file is loaded in full into every session.
When invoked 623 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.00623 $0.00623
Opus 5.5 $0.00249 $0.00249
Sonnet 5.5 $0.00125 $0.00125
Haiku 4.5 $0.00062 $0.00062

Measured 11d ago against content hash 032e87b75e95, 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 11d 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 · 34 lines

What it actually says

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

    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
    • rag-architect — designing/evaluating a RAG pipeline
    • sentry-setup-ai-monitoring — instrumenting LLM call cost/latency/tokens
  3. Documentary source of truth: data model and scope come from the project's documents. Divergence is a blocker to resolve with the tech lead, not a detail to ignore.

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. 11d ago Changed · -13 tokens per session 032e87b75e95
  2. 29d ago Changed · -1 lines · -26 tokens per session ebe57d28642b
  3. 1mo ago Changed · +13 lines · +327 tokens per session 3f815f08e30f
  4. 1mo 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 11d ago), licensed MIT. It adds 623 tokens to every session, about $0.0025 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

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,649 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,257 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,159 tokens