zhixun: Instructions file for Codex

AGENTS.md

zhixun AGENTS.md is an instructions file for Codex, OpenCode from shangyankeji/zhixun. It costs 3,092 tokens per session, scanned A, original, MIT.

Development instructions for a training platform that uses simulated AI conversations to practise sales and social skills. It has a web interface, Python service, PostgreSQL database, Redis, and optional background task processing.

In plain words
What is it for?
Use it when developing the frontend or backend, starting PostgreSQL and Redis, running database migrations, or working on the platform's AI and voice features.
Why use it?
It documents the commands for starting the services, installing dependencies, and updating the database structure.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/shangyankeji/zhixun/agents-md"><img src="https://agentmods.dev/badge/instructions/shangyankeji/zhixun/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,092 This file is loaded in full into every session.
When invoked 3,092 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.03092 $0.03092
Opus 5 $0.01546 $0.01546
Sonnet 5 $0.00618 $0.00618
Haiku 4.5 $0.00309 $0.00309

Measured 9d ago against content hash 7999ef84da69, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

zhixun 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 9d 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 · 320 lines

How it starts

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

AGENTS.md

This file provides guidance to Qoder (qoder.com) when working with code in this repository.

项目概述

销冠培养系统 & 社恐培养系统 - 基于 Agent 模拟的销售和社交能力培训平台。

技术栈:

  • 前端: Next.js 16 (App Router) + React 19 + TypeScript + Tailwind CSS 4
  • 后端: FastAPI + Python 3.11+ + SQLAlchemy (AsyncIO) + Alembic
  • 数据库: PostgreSQL + Redis
  • AI: 阿里云百炼 (DashScope) - 通义千问系列模型 + Qwen-Omni 实时语音
  • 状态管理: Zustand (持久化存储)
  • UI 组件: Lucide React 图标库 + 自定义组件
  • 任务队列: Celery (可选)

开发命令

环境启动

# 启动数据库服务 (PostgreSQL + Redis)
make db

# 启动后端开发服务器 (需要在新终端中运行)
make backend
# 或直接运行:
cd backend && source .venv/bin/activate && uvicorn app.main:app --reload --host 0.0.0.0 --port 8111

# 启动前端开发服务器 (需要在新终端中运行)
make frontend
# 或直接运行:
cd frontend && npm run dev

依赖安装

# 安装所有依赖 (后端 + 前端)
make install

# 仅安装后端依赖
cd backend && python -m venv .venv && source .venv/bin/activate && pip install -r requirements-dev.txt

# 仅安装前端依赖
cd frontend && npm install

数据库迁移

# 运行数据库迁移
make migrate
# 或: cd backend && source .venv/bin/activate && alembic upgrade head

# 创建新迁移文件
make migrate-new
# 或: cd backend && source .venv/bin/activate && alembic revision --autogenerate -m "描述"

# 初始化种子数据 (管理员、场景、课程等)
make seed
# 或手动运行:
# cd backend && source .venv/bin/activate
# python scripts/seed_data.py          # 基础数据
# python -m scripts.seed_scenarios_full # 30个训练场景
# python -m scripts.seed_all           # 课程、挑战等

测试

# 运行所有测试
make test

# 仅运行后端测试
make test-backend
# 或: cd backend && source .venv/bin/activate && pytest -v

代码质量检查

# 运行 linter (后端 + 前端)
make lint

# 后端代码检查
cd backend && source .venv/bin/activate && ruff check app

# 前端代码检查
cd frontend && npm run lint

# 格式化代码
make format
# 后端: cd backend && source .venv/bin/activate && ruff format app
# 前端: cd frontend && npm run lint -- --fix

构建

# 前端构建
cd frontend && npm run build

# 前端生产运行
cd frontend && npm run start

清理

# 清理临时文件和缓存
make clean

# 停止所有 Docker 服务
make stop

项目架构

Read the full file on GitHub · 320 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. 9d ago First seen · 320 lines · 3,092 tokens per session scan A 7999ef84da69

Subscribe to this mod's changes

zhixun AGENTS.md is an instructions file published in the GitHub repository shangyankeji/zhixun (23 stars, last pushed 8mo ago), licensed MIT. It adds 3,092 tokens to every session, about $0.0155 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-30.

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

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

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

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