oh-my-ppt: Instructions file for Codex

AGENTS.md

oh-my-ppt AGENTS.md is an instructions file for Codex, OpenCode from arcsin1/oh-my-ppt. It costs 900 tokens per session, scanned A, original, Apache-2.0.

Project instructions for an Electron desktop application, which runs a desktop interface using web technologies. They describe its code organization, style rules, execution limits, testing approach, and React component conventions.

In plain words
What is it for?
Use them when modifying the Electron app, shared types, React components, generated or edited presentations, runtime assets, or unit tests.
Why use it?
They clarify which checks to run and which to avoid, while helping changes cover all relevant creation, editing, import, export, and runtime paths.

Instructions file for CodexOpenCode

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

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

About the project

Oh My PPT is a local-first desktop application that uses AI to create, edit, present, and export editable HTML-based slide presentations. It is for people making presentations, lessons, stories, reports, or pitches who want to describe their content and then adjust the resulting pages, visuals, animations, and layouts.

arcsin1/oh-my-ppt · 2,271 stars · on GitHub · ohmyppt.cc

Reuse

Borrowing it

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

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 oh-my-ppt AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/arcsin1/oh-my-ppt/agents-md"><img src="https://agentmods.dev/badge/instructions/arcsin1/oh-my-ppt/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 900 This file is loaded in full into every session.
When invoked 900 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.00900 $0.00900
Opus 5.5 $0.00360 $0.00360
Sonnet 5.5 $0.00180 $0.00180
Haiku 4.5 $0.00090 $0.00090

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

Security

Grade A, and why

oh-my-ppt 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 2mo 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:

AGENTS.md · 103 lines

How it starts

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

Agent.md

不要跑 npm run lint。 不要跑 npm run build。

Project

Electron 桌面应用,主进程 (src/main/) + 渲染进程 (src/renderer/) + 共享类型 (src/shared/)。

Code Style

  • singleQuote, no semi, printWidth: 100, trailingComma: none
  • 路径别名: @shared/*, @renderer/*

Execution Rules

  • 先定位变更属于生成、编辑、导入、导出还是运行时;不要只修单一路径
  • 公共规则改动要同时确认生成与编辑链路是否覆盖,尤其是整页编辑、deck 编辑、selector 编辑
  • 改运行时资源时,同步确认 session asset 兼容/刷新机制
  • 修 bug 时优先补定向回归测试,覆盖当前问题和相邻入口
  • 验证优先跑最小相关测试;不要跑 npm run lint 或 npm run build

Testing

  • 框架:Vitest + happy-dom,测试文件放 tests/unit/ 下,按功能域分子目录,文件名 *.test.ts
  • 跑测试:pnpm test,跑单个文件:pnpm test -- tests/unit/xxx/foo.test.ts
  • 修 bug 或加功能时,必须补对应测试到 tests/unit/;测试不通过就继续修代码直到通过
  • 注意:样式ui改动不需要写测试

React 组件编写规范

核心原则

1. 逻辑内聚,少传 props
  • 能写在组件内的逻辑就写在组件内,不要通过 props 从父组件传进来
  • 事件处理、数据获取、状态管理,都优先写在组件自己里面
// ✅ 好
function ProductCard({ id }) {
  const [count, setCount] = useState(0)
  const handleBuy = () => { /* 逻辑写这里 */ }
  return <button onClick={handleBuy}>购买</button>
}

// ❌ 坏
function ProductCard({ count, onBuy }) { /* 逻辑都从外面传 */ }
2. 跨组件状态用 Zustand
  • 多个组件需要共享的数据 → 放 zustand store
  • 不要通过 props 一层层传
const useStore = create((set) => ({
  user: null,
  setUser: (user) => set({ user })
}))

// 任何组件直接拿来用,不用传 props
const user = useStore(state => state.user)
3. 复用逻辑抽成自定义 Hook
  • 多个组件都需要相同的有状态逻辑时,抽成自定义 Hook
  • Hook 放在 hooks/ 目录下,以 use 开头
// hooks/useProductData.js
function useProductData(productId) {
  const [product, setProduct] = useState(null)
  const [loading, setLoading] = useState(false)
  
  useEffect(() => {
    fetchProduct(productId).then(setProduct)
  }, [productId])
  
  return { product, loading }
}

// 组件中使用
function ProductCard({ id }) {
  const { product, loading } = useProductData(id)
  // 不用从 props 传 product 和 loading
}
4. 什么情况才用 props?

只传这两类东西:

  • 配置项:size, disabled, variant
  • 纯展示数据:title, description

简单检查

写代码前问一句:"这个逻辑/状态能不能直接写在当前组件里?"

  • 能 → 就写里面
  • 不能,但多个组件都需要 → 放 zustand 或抽成自定义 Hook
  • 实在不行 → 才传 props

Read the full file on GitHub · 103 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. 2mo ago First seen · 103 lines · 900 tokens per session scan A 2e812d73ebaf

Subscribe to this mod's changes

oh-my-ppt AGENTS.md is an instructions file published in the GitHub repository arcsin1/oh-my-ppt (2,271 stars, last pushed 2d ago), licensed Apache-2.0. It adds 900 tokens to every session, about $0.0036 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

oh-my-ppt AGENTS.md compared with instructions from other repositories

oh-my-ppt AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
oh-my-ppt AGENTS.mdarcsin1/oh-my-pptInstructions file2.3k2d agoApache-2.0A900Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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