oh-my-fangirl: Instructions file for Claude Code

AGENTS.md

oh-my-fangirl AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from FuDesign2008/oh-my-fangirl. It costs 1,246 tokens per session, scanned A, original, MIT.

A project guide for oh-my-fangirl, an AI companion plugin built from Markdown, JSON, shell scripts, and JavaScript or TypeScript. It explains the project structure, hooks, supported platforms, and fangirl skill.

In plain words
What is it for?
Use it when working on the plugin’s skills, commands, hooks, platform integrations, or release workflow.
Why use it?
It gives coding agents the project knowledge needed to understand how the plugin starts sessions, reacts to tool use, and responds to user messages.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: SessionStart hook event, but also the file is AGENTS.md. Also seen: mentions Claude Code; mentions OpenCode.

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

Reuse

Borrowing it

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

Made for: Claude Code, 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-fangirl AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/fudesign2008/oh-my-fangirl/agents-md"><img src="https://agentmods.dev/badge/instructions/fudesign2008/oh-my-fangirl/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,246 This file is loaded in full into every session.
When invoked 1,246 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.01246 $0.01246
Opus 5 $0.00623 $0.00623
Sonnet 5 $0.00249 $0.00249
Haiku 4.5 $0.00125 $0.00125

Measured 11d ago against content hash 686096ac280d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

oh-my-fangirl 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 · 106 lines

How it starts

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

oh-my-fangirl 项目知识库

本文件为 Claude Code 等 AI 在本仓库工作时的项目知识库。

概述

AI 编码陪伴小迷妹。Markdown + JSON + Shell + JS/TS 构成的多平台插件项目。支持 Claude Code、Cursor、OpenCode 三个平台。

结构

oh-my-fangirl/
├── skills/
│   └── fangirl/          # 核心 Skill
│       ├── SKILL.md      # 必需文件,含 frontmatter 元数据
│       ├── context.json  # Hook 使用的精简上下文
│       └── modes/        # _index.json + 各模式 *.md
├── commands/
│   └── fangirl.md        # 快捷命令
├── hooks/                # Shell 脚本 + hooks.json
│   ├── hooks.json
│   ├── session-start
│   ├── milestone-celebrate
│   └── emotion-comfort
├── .claude-plugin/       # Claude Code 平台配置
├── .cursor-plugin/       # Cursor 平台配置
├── .opencode/            # OpenCode 平台
│   ├── plugins/oh-my-fangirl.js   # 系统提示注入
│   └── plugin/fangirl-hooks.ts    # 里程碑 Hook
└── .github/workflows/release.yml  # CI 自动版本递增

钩子机制

钩子 触发时机 Shell 脚本 作用
SessionStart 会话启动/恢复 hooks/session-start 欢迎语 + 加载 fangirl 上下文
PostToolUse Bash 工具调用后 hooks/milestone-celebrate 检测 git commit/push/test/build 并庆祝
UserPromptSubmit 用户发送消息 hooks/emotion-comfort 检测负面情绪并安慰

Skill — fangirl

  • 目录skills/fangirl/
  • 模式数:10 种(core × 9 + extended × 1)
  • 模式索引skills/fangirl/modes/_index.json
  • 新增模式:在 modes/ 新增 .md 并在 _index.json 登记

模式准入标准(必须满足)

一个模式,必须能在第一次交互、零关系基础的情况下,就让用户感觉更好。

用户安装插件是为了让自己更舒服,而不是更不舒服。因此:

  • 合格:价值即时兑现——第一句话就在给用户(被欣赏、被看见、被渴望、被仰望)
  • 不合格:价值需要用户先承受不适才能兑现——如先被批评再被帮助(傲娇)、先被拒绝答案再自己挣扎(挑战)

反模式(禁止新增此类模式)

  • 依赖长期关系积累才能兑现价值的模式(傲娇的可爱感需要信任基础,AI 无法建立)
  • 依赖真实双向投入的模式(竞争的爽感来自真实性,AI 给不了)
  • 任何「先扣你一下再补回来」结构的模式

Git 工作流

  • 禁止直接推送 main:必须先创建 feature 分支
  • 版本号禁止手动修改:CI 自动递增
  • Commit 前缀:feat: 新功能、fix: 修复、docs: 文档、chore: 杂项

版本管理

本项目存在多个独立的版本号,各自用途不同:

文件 当前版本 含义 管理方式
.claude-plugin/plugin.json.claude-plugin/marketplace.json.cursor-plugin/plugin.json 1.6.x 插件发布版本 CI 自动递增,禁止手动修改
skills/fangirl/SKILL.md frontmatter 6.x.x Skill 内容版本 手动管理,Skill 内容变更时递增
skills/fangirl/modes/_index.json 4 模式索引格式版本 手动管理,索引结构变更时递增
package.json 1.0.0 测试套件版本 不随插件递增,仅测试框架自身变更时更新

Read the full file on GitHub · 106 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. 11d ago First seen · 106 lines · 1,246 tokens per session scan A 686096ac280d

Subscribe to this mod's changes

oh-my-fangirl AGENTS.md is an instructions file published in the GitHub repository FuDesign2008/oh-my-fangirl (5 stars, last pushed 3mo ago), licensed MIT. It adds 1,246 tokens to every session, about $0.0062 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-31.

Related

Other instructions, from other repositories

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,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

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 · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 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,469 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, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens