Borrowing it
Nothing to install: this file belongs to zhuchunshu/SForum. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/zhuchunshu/SForum/main/AGENTS.mdgit clone --depth 1 https://github.com/zhuchunshu/SForumWrote 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.
[](https://agentmods.dev/instructions/zhuchunshu/sforum/agents-md)<a href="https://agentmods.dev/instructions/zhuchunshu/sforum/agents-md"><img src="https://agentmods.dev/badge/instructions/zhuchunshu/sforum/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.
<a href="https://agentmods.dev/instructions/zhuchunshu/sforum/agents-md"><img src="https://agentmods.dev/badge/instructions/zhuchunshu/sforum/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.07711 | $0.07711 |
| Opus 5.5 | $0.03084 | $0.03084 |
| Sonnet 5.5 | $0.01542 | $0.01542 |
| Haiku 4.5 | $0.00771 | $0.00771 |
Grade A, and why
SForum 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 13d 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.
How it starts
The opening of the file, as written. The whole thing — 595 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent Guide
This file is the shared working agreement for SForum. Read it before starting any new session. It is intentionally self-contained: do not assume contributors have the same personal or global Codex instructions. Personal defaults may supplement this file, while more specific repository instructions take precedence within their directory scope.
Project Intent
SForum is a maintainable, plugin-first, open-source forum framework. Core is the host framework; product verticals and provider/vendor behavior live in extensions. The repository is past scaffolding and actively implementing core forum, identity, admin, and extension systems.
Working Principles
- Prefer mature third-party libraries before building custom infrastructure. Before starting a module or feature, briefly check whether established libraries already solve the core problem well.
- Avoid messy, tightly coupled code. Keep responsibilities clear, name things plainly, and make the easy path maintainable.
- Split long implementations across multiple focused files. Avoid placing more than 1000 lines in one file unless there is a strong, documented reason.
- Keep changes scoped to the current task. Do not refactor unrelated areas just because they are nearby.
- Record decisions in the knowledge base when they will matter to future sessions.
Stack And Directory Map
Monorepo with a Go API plus a Nuxt web app, plus shared contracts, extensions, knowledge base, and tests.
apps/api— Go 1.26.10 API + background worker (toolchain anchored inapps/api/go.mod; do not let docs lag behind it). Module pathgithub.com/zhuchunshu/sforum/apps/api. Laravel-style Go layout:cmd/—api(HTTP server),worker(River queue worker),migrate(embedded Goose migrator),sforum(developer CLI; scaffolds plugins/themes, runsseed:forum).bootstrap/— runtime assembly;NewWorkerfor the worker process.app/Http/— HTTP kernel, controllers, and route registration (app/Http/Controllers/*).app/Models/— domain logic and services.app/Providers/— provider wiring (mail provider slot, attachment storage adapters, search, cache, etc.).app/Support/— cross-cutting infra:Jobs(River durable queue),Search(host framework + site PG FTS; optional Meili plugin),Cache(Redis CachedStore decorator).database/—migrations/(Goose SQL),migrator/(shared embedded migrator),queries/+sqlc/(sqlc-generated code; config insqlc.yaml).config/— runtime config loaders.config.Loaddoes NOT read.env; the dev scripts source.envand export vars explicitly.
apps/web— Nuxt 4 / Vue 3 / Nuxt UI 4 frontend (package name@sforum/web). SSR-first (nossr: falseremains anywhere). Key deps: Bun, Tailwind,@nuxtjs/i18n, Tiptap, DOMPurify, altcha,@iconify-json/tabler+@iconify-json/lucide. App code lives underapps/web/app/{components,composables,pages,layouts,middleware,plugins,config}with the uppercaseSFprefix component library, and admin pages underapps/web/app/pages/admin. i18n default localezh-CN, secondaryen-US.contracts/— modular OpenAPI contract.openapi.yamlis the entrypoint index only; paths inopenapi/paths/<module>.yaml, schemas inopenapi/schemas/<module>.yaml, shared components inopenapi/components/.extensions/— package trees; onlybuiltin/is boot-scanned into the admin list (SyncBuiltins). Alsodev/(gitignored scaffolds),optional/(ship-with-repo, operator install),fixtures/(CI). Layout map:extensions/README.md. Container images copy built-ins to/app/extensions/builtin.knowledge/— project memory:index.md,modules/,decisions/,sessions/,glossary.md,research.md. Read before sensitive work.tests/— repo-level validation scripts (Playwright/Node) that hit the running dev servers.scripts/— dev/test orchestration shell scripts (see Commands below).docs/— bilingual handbooks (zh-CN/,en-US/) plus path-stable extension reference underdocs/extensions/; historical material indocs/archive/.deploy/,compose*.yaml,deploy.sh— deployment and ops.- Runtime deps via Compose: PostgreSQL, Redis, Mailpit (Meilisearch optional via
--profile search).
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.
- 13d ago Changed · +4 lines · +77 tokens per session 1904d68665bb
- 14d ago Changed 064ad3efd3a8
- 15d ago Changed · +10 lines · +163 tokens per session 520aa0a810ca
- 18d ago Changed · +9 lines · +141 tokens per session 9481e4f45f76
- 19d ago Changed · +34 lines · +594 tokens per session 0a3239ac9589
- 25d ago Changed 02c2979564ba
- 2mo ago First seen · 538 lines · 6,736 tokens per session scan A af7d93724c2a
SForum AGENTS.md is an instructions file published in the GitHub repository zhuchunshu/SForum (204 stars, last pushed 13d ago), licensed MIT. It adds 7,711 tokens to every session, about $0.0308 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.
SForum AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| SForum AGENTS.mdzhuchunshu/SForum | Instructions file | 204 | 13d ago | MIT | A | 7,711 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |