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.06736 | $0.06736 |
| Opus 5 | $0.03368 | $0.03368 |
| Sonnet 5 | $0.01347 | $0.01347 |
| Haiku 4.5 | $0.00674 | $0.00674 |
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 10d 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 — 538 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.6 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.
- 10d 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 (202 stars, last pushed 6d ago), licensed MIT. It adds 6,736 tokens to every session, about $0.0337 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.
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.
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.
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).
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).
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.
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.