Home / jiabaobei / skills-constitution · .ruler/AGENTS.md · GitHub

AGENTS.md@.ruler agentsA

AGENTS.md@.ruler is agent-read markdown (agents) from jiabaobei/skills-constitution.

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

# Skills Constitution — 宪法核心条款

> 这是凌驾于全部技能/工具/插件之上的**元规则**。无论用什么 Agent 框架,所有能力调用都必须先过这一关。

---

## ⚠️ 前置过滤:任务类型判断(零号条款)

**本宪法仅适用于"专业任务"**,不适用于简单问答。执行前先判断:

| 任务类型 | 特征 | 是否查技能 |
|---------|------|-----------|
| **简单问答** | 翻译、润色、解释概念、一般知识问答 | ❌ 跳过 |
| **专业任务** | 编码、数据抓取、文件操作、API 调用、复杂分析 | ✅ 必须查 |
| **模糊任务** | 不确定是否需要专业工具 | ✅ 查一下(宁可不放过) |

**判断标准**:
- 任务涉及**文件系统、网络请求、代码执行、专业工具** → 专业任务
- 任务只是**文字处理、知识问答、简单解释** → 简单任务

**自我豁免**:本宪法本身是元规则,执行宪法条款时**不需要再次查技能**(防止死循环)。

**误判回退(零号条款-C)**:若 Agent 误判任务类型(如把专业任务当作简单问答跳过),用户有权指出("这是专业任务,你应该查技能")。此时 Agent 必须:
1. 道歉并承认误判
2. 立即回退到完整宪法流程(从查记忆开始)
3. 将此次误判记录到记忆层(`MISJUDGMENTS`),避免重复犯错

---

## 第零条:查记忆(Pre-Check Memory)

**在执行任何任务前,必须先查阅该平台的记忆/规则层**,确认有无相关约定、历史上下文或待办事项。

**查记忆顺序**:
1. 用户级记忆(长期偏好、硬规则)
2. 项目记忆(当前项目约定、历史决策)
3. 今日流水(当天工作记录,避免重复)

**产出**:三查汇报第一行必须列出命中的记忆条目(哪怕"无"),不能只汇报"已查记忆"。

---

## 第一条:查技能树(Look up Skill Tree)

**查完记忆后,必须查技能索引(按功能分类的技能树)**,确认有无匹配的技能可用。

**技能树按功能分类**(不是按名称):

| 分类 | 包含能力 |
|------|---------|
| 📄 文档处理 | PDF、Word、Excel、PPT、Markdown、OCR、文档转换 |
| 🧩 代码开发 | 代码生成、调试、重构、代码审查、Git 操作 |
| 🌐 网页浏览 | 网页抓取、爬虫、浏览器自动化、截图、表单填写 |
| 📊 数据分析 | 数据处理、统计分析、图表生成、数据可视化 |
| 🔌 API 集成 | HTTP 请求、REST API、GraphQL、WebSocket、MCP |
…

Read the whole file at its exact version.

How to install

Latest version
mdr add jiabaobei/skills-constitution/.ruler/AGENTS.md@git:20260824.071d833
Exact content
mdr add jiabaobei/skills-constitution/.ruler/AGENTS.md@sha256:511629b42352982d

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_xqevoxgulw4o4d4o.svg)](https://markdownregistry.com/a/art_xqevoxgulw4o4d4o)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260824.071d833 latest2026-08-24 071d833 6,290 BA view · diff
git:20260821.98e865e2026-08-21 98e865e 5,918 BA view

Audit of the latest version

A  14 of 14 checks passed. Deterministic, no model, same answer every run.
  • pass: Size between 200 bytes and 200 KB (6290 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

jiabaobei/skills-constitution · 232 stars · license MIT · pushed 2026-09-21 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_xqevoxgulw4o4d4o
GET https://markdownregistry.com/api/v1/resolve?ref=jiabaobei/skills-constitution/.ruler/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/511629b42352982dd1e916cd5893a2bc6f8ab6d8d546fba3621f06ef0fa5da13

Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

More from jiabaobei/skills-constitution

skills-constitution skill
jiabaobei/skills-constitution · SKILL.md · 当 Agent 接到专业任务(编码/爬虫/文件操作/API调用/数据分析/文档/部署/推送等)时,强制先查记忆层和技能索引,有匹配必用、无匹配必搜、答复时自动推荐(排除已装)。用于防止 Agent…
v2.31.0 · audit A · 232 stars

Every file in jiabaobei/skills-constitution

Browse by kind, by grade A, or by owner.