Identifies and extracts reusable project rules from conversations — coding standards, conventions, architecture constraints, naming, directory structure, and AI collaboration rules — then syncs them to .cursor/rules, AGENTS.md, and CLAUDE.md with deduplication, conflict detection, and few-shot examples.
Ships in context-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
在整个会话过程中,持续识别并提取可长期复用的规则类信息,将其整理为结构化、可维护、可复用、带 few-shot 的规则集合,并按职责同步到:
.cursor/rules/*AGENTS.mdCLAUDE.md你的目标不是机械记录用户说过的话,而是:
在以下场景优先使用本 skill:
.cursor/rules、AGENTS.md、CLAUDE.md重点识别以下类型的信息:
以下内容通常不应沉淀为长期规则:
每次识别出候选规则时,必须先做分类判断:
满足以下条件时归类为 New Rule:
满足以下条件时归类为 Update Existing Rule:
满足以下条件时归类为 Merge Similar Rules:
满足以下条件时归类为 Conflict / Need Confirmation:
满足以下条件时归类为 Ignore as Temporary:
每条规则必须满足以下要求:
固定字段如下:
推荐格式:
...
...
few-shot 是强制项,必须满足以下要求:
每条规则必须有正反两个示例:
few-shot 必须体现“为什么符合”与“为什么不符合”,而不是只给表面例子。
若规则涉及以下类型,优先使用对应示例形式:
.cursor/rules/*适合放:
特点:
AGENTS.md适合放:
特点:
CLAUDE.md适合放:
特点:
每次执行本 skill 时,按以下顺序处理:
.cursor/rules/*AGENTS.mdCLAUDE.md输出时必须严格使用以下结构:
NoneNoneNoneNone输出前必须检查:
若用户没有明确要求立即修改文件,则默认输出:
若用户明确要求直接更新文件,则输出:
.cursor/rules/* 建议内容AGENTS.md 建议内容CLAUDE.md 建议内容输入:
输出示例:
import { requester } from '@/infra/requester'
export function getUserProfile(userId: string) {
return requester.get(`/api/users/${userId}`)
}
export async function getUserProfile(userId: string) {
return fetch(`/api/users/${userId}`).then(res => res.json())
}
推荐写入:
.cursor/rules/requesting.mdCLAUDE.md输入:
输出到:
输入:
输出示例:
src/components 与业务模块组件UserProfileCard.tsx
OrderItemList.tsx
RewardTaskPanel.vue
Card.tsx
List.tsx
Item.vue
推荐写入:
.cursor/rules/naming.mdCLAUDE.md输入:
输出示例:
Planner: 输出任务拆解与风险
Implementer: 按计划完成代码实现
Reviewer/Tester: 独立验证实现与测试覆盖
同一个角色直接边想边写边宣布“已测试通过”
推荐写入:
AGENTS.mdCLAUDE.md将会话中零散出现的规则类信息,持续整理为结构化、可维护、可复用、带 few-shot 的长期规则资产,使这些规则不仅可读,而且可被 AI 稳定执行与复现。
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/context-engineering:code-evolverfrom context-engineering
npx claudepluginhub hubvue/skills --plugin context-engineering4 skills in this plugin
/context-probeMinimal Context Sentinel Installer (All-Layers Broadcast). Installs a hard Context Sentinel rule into EVERY detected rule file to force assistant to append a sentinel token to every response. Use when (1) Installing context monitoring via /context-probe, (2) Checking installation status via /context-probe status, (3) Uninstalling via /context-probe off./prompt-interviewerSenior Prompt Engineer and Prompt Interviewer that interviews users to refine and complete their prompts through structured analysis and iterative questioning. Use when a user has an initial prompt but needs help refining it for better LLM performance: (1) When a prompt lacks clarity or context, (2) When constraints or boundaries are missing, (3) When output formats or quality criteria are undefined, (4) When there are ambiguities or conflicting requirements/prompt-minifierMinify verbose prompts into semantically equivalent minimal prompts while preserving behavior. Supports configurable output modes (prompt-only or prompt + compression report).