sourcelin-cloud-blog: Instructions file for Codex

AGENTS.md

sourcelin-cloud-blog AGENTS.md is an instructions file for Codex, OpenCode from SourceLin/sourcelin-cloud-blog. It costs 2,895 tokens per session, scanned A, original, MIT.

Repository instructions for the Sourcelin Cloud Blog, a microservice blog platform with separate backend services and Vue-based web and mobile interfaces. They define project scope, language rules, branch boundaries, and release practices.

In plain words
What is it for?
Guiding Chinese-language coding, comments, commits, documentation, file encoding, branch use, and changes across the blog platform's services and front ends.
Why use it?
They tell an AI agent which parts belong in the public source code and which do not, and which branch is used for releases. This reduces mistakes when editing or publishing the project.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 sourcelin-cloud-blog AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sourcelin/sourcelin-cloud-blog/agents-md"><img src="https://agentmods.dev/badge/instructions/sourcelin/sourcelin-cloud-blog/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,895 This file is loaded in full into every session.
When invoked 2,895 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.02895 $0.02895
Opus 5.5 $0.01158 $0.01158
Sonnet 5.5 $0.00579 $0.00579
Haiku 4.5 $0.00290 $0.00290

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

Security

Grade A, and why

sourcelin-cloud-blog 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.

AGENTS.md · 422 lines

How it starts

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

AGENTS.md

本文件是 Sourcelin Cloud Blog 仓库级 AI 执行入口。所有 AI 编程工具进入本仓库后必须先读取本文件,再按任务读取对应 rules/ 和 skills/。

默认使用中文进行沟通、注释、提交说明和文档更新。所有文本文件保存为 UTF-8 无 BOM。

1. 项目范围

Sourcelin Blog 是基于 Sourcelin-Cloud v3.6.3 的微服务博客平台。

后端:


sourcelin-api/        # Feign 接口与跨服务 DTO

sourcelin-common/     # 公共能力,不放业务逻辑

sourcelin-gateway/    # 网关

sourcelin-auth/       # 认证中心

sourcelin-modules/    # 业务服务

  sourcelin-system/   # 系统管理

  sourcelin-blog/     # 博客业务

  sourcelin-file/     # 文件服务

  sourcelin-job/      # 定时任务

sourcelin-visual/     # 监控等可视化服务

前端:


sourcelin-ui/sourcelin-ui-platform/    # 博客前台,Vue3 + TypeScript + Naive UI 抽象层

sourcelin-ui/sourcelin-ui-uniapp/      # 移动端小程序,Uniapp + Vue3 + TypeScript

sourcelin-ui/sourcelin-ui-admin/       # 管理后台主线,Vue3 + TypeScript + Element Plus

sourcelin-ui/sourcelin-ui-admin-vue2/  # 旧版迁移对照,不承载新功能

2. 开源分支边界

  • scripts/** 不进入开源分支提交。
  • docs/** 可以进入开源分支,但 docs/internal/** 不提交。
  • 规则、技能和执行入口必须避免引用开源分支未提交的本地维护脚本。
  • 数据库初始化文档和 SQL 维护在 docs/sql/**。

3. 仓库发布模型

  • origin/master:公开发布分支,只承载对外可见内容。
  • develop:日常开发分支,承载功能开发、规则演进和阶段性整理。
  • master:公开发布分支,对外只暴露稳定版本。
  • 日常开发必须先进入 develop,完成验证后再整理到 master。
  • 对外发布必须以 master 为唯一来源,最终推送到 origin/master。
  • 发布前必须完成公开边界检查,确保内部脚本、过程文档和仅内部使用的资料不会进入公开分支。
  • MUST NOT:跳过 develop 直接在 master 上做日常开发。
  • MUST NOT:将 develop、内部脚本或过程性资料直接推送到公开仓库。

4. 默认规则

每次开发、重构、审查或测试必须读取:

  • rules/README.md

  • rules/api-contract.md

  • rules/coding-conventions.md

  • rules/testing-and-validation.md

按任务追加读取:

  • 后端:rules/backend.md

  • 博客前台:rules/frontend-platform.md,并联查 sourcelin-ui/sourcelin-ui-platform/AGENTS.md

  • Uniapp 移动端:rules/frontend-uniapp.md,并联查 sourcelin-ui/sourcelin-ui-uniapp/AGENTS.md

  • 管理后台:rules/frontend-admin.md

规则优先级:

  1. 本文件

  2. 更近目录的 AGENTS.md / rules/

  3. rules/api-contract.md

  4. 领域规则

  5. rules/coding-conventions.md

  6. rules/testing-and-validation.md

5. 可用技能

  • skills/frontend-platform-dev/SKILL.md:博客前台开发。

Read the full file on GitHub · 422 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 · 422 lines · 2,895 tokens per session scan A 137ce7b57da9

Subscribe to this mod's changes

sourcelin-cloud-blog AGENTS.md is an instructions file published in the GitHub repository SourceLin/sourcelin-cloud-blog (11 stars, last pushed 4mo ago), licensed MIT. It adds 2,895 tokens to every session, about $0.0116 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

Other instructions, from other repositories

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 · 9,715 tokens

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,461 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, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 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,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

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.

deepseek-ai/deepseek-harness · 4,261 tokens