project-rules-examples

project-rules-examples is a skill for Claude Code from michaelChe956/Cadence-skills. It costs 30 tokens per session (2,798 once invoked), scanned A, original, MIT.

A skill that creates project-specific templates for requirements, design documents, coding rules, and testing rules.

In plain words
What is it for?
It initializes or merges README, requirement, design, coding, testing, and project-instruction files, including special no-interruption behavior.
Why use it?
It gives a project consistent documentation and development guidance without replacing existing project details.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool; mentions AGENTS.md.

Part of the cadence-init plugin — 14 skills shipped together

Good fit It initializes or merges README, requirement, design, coding, testing, and project-instruction files, including special no-interruption behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/michaelche956/cadence-skills/project-rules-examples
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add michaelChe956/Cadence-skills --skill project-rules-examples
Clone the repo
git clone --depth 1 https://github.com/michaelChe956/Cadence-skills

Made for: Claude Code.

Or install cadence-init, the plugin that ships this one along with the rest of its 14 skills.

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 project-rules-examples

README.md
[![agentmods](https://agentmods.dev/badge/skills/michaelche956/cadence-skills/project-rules-examples/github.svg)](https://agentmods.dev/skills/michaelche956/cadence-skills/project-rules-examples)
Your own site
<a href="https://agentmods.dev/skills/michaelche956/cadence-skills/project-rules-examples"><img src="https://agentmods.dev/badge/skills/michaelche956/cadence-skills/project-rules-examples/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 project-rules-examples

Your own site · 80×15
<a href="https://agentmods.dev/skills/michaelche956/cadence-skills/project-rules-examples"><img src="https://agentmods.dev/badge/skills/michaelche956/cadence-skills/project-rules-examples.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,798 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00030 $0.02798
Opus 5 $0.00015 $0.01399
Sonnet 5 $0.00006 $0.00560
Haiku 4.5 $0.00003 $0.00280

Measured 9d ago against content hash a2d37c5f3034, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

project-rules-examples 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 9d 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.

cadence-init/skills/project-rules-examples/SKILL.md · 213 lines

How it starts

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

个性化规则示例

概述

创建项目个性化规则模板,包括需求文档模板、设计文档模板、代码开发规范和测试规范。默认不需要人工交互即可完成模板初始化。

参数模式

支持以下调用方式:

/project-rules-examples
/project-rules-examples no-interrupt
/project-rules-examples --no-interrupt
  • 命令参数包含完整 token no-interrupt--no-interrupt:进入 no-interrupt 模式。
  • 未携带上述参数:进入普通模式,完整遵循本 Skill 修改前的目标文件存在则跳过、不覆盖和条件询问逻辑。
  • 两种模式互斥;不得把 no-interrupt 模板合并规则应用到普通模式。

no-interrupt 通用规则

  • 禁止调用 AskUserQuestionrequest_user_input 或等价用户提问工具。
  • 禁止等待用户输入、设置交互超时或通过推荐默认值继续。
  • 目标文件存在时必须按本节规则合并,不得直接跳过冲突文件。
  • 合并前必须保留项目已有内容;备份、合并或验证失败时立即报错终止。
  • 失败报告必须包含失败文件、失败原因、已完成文件和恢复建议。

no-interrupt 模板权威合并

project-rules-examples 的标准模板骨架、必需章节、章节顺序、AI 执行规则和强制约束是权威内容;当前项目已有事实和个性化规范作为补充保留。

场景 合并动作
目标文件不存在 创建标准模板
模板与项目存在不同章节 保留模板章节,并把项目额外章节按原顺序放入“项目补充”
模板与项目存在同名章节 模板规范在前,项目独有内容去重后追加
模板占位符已有项目真实值 使用项目真实值补充或替换对应占位符
CLAUDE.md / AGENTS.md 引用路径冲突 引用路径和强制约束以本 Skill 为准,其他项目内容保留
内容完全重复 只保留一份

合并必须覆盖 README.mdrequirement-template.mddesign-template.mdcoding-standards.mdtest-standards.md 以及 CLAUDE.md/AGENTS.md 引用。项目已经填写的技术栈、调用链、契约格式、异常体系、日志规范、数据访问约束和测试要求不得被模板占位符覆盖。

标题合并使用“标题级别 + 去除开头编号后的标题文本”识别同名章节。[待补充][YYYY-MM-DD][按项目填写] 以及其他方括号说明视为占位符;只有项目非占位真实内容可以替换对应占位符,不能替换模板的强制规则正文。

no-interrupt 解析失败与备份

  1. 合并前检查 Markdown 至少包含一个一级标题,并确认围栏代码块成对闭合。
  2. 无法可靠按标题拆分时,将原文件备份为 <原文件名>.cadence-backup-YYYYMMDDHHMMSS
  3. 写入标准模板后,将原文件完整内容附加到“原项目补充”章节,禁止截断、删除或概括原内容。
  4. 合并后重新检查必需章节、引用路径和围栏代码块;验证失败时恢复备份并报错终止。

无交互默认策略

本节仅适用于未携带 no-interrupt--no-interrupt 的普通模式。

默认行为
目录创建 自动创建 cadence/project-rules/examples/
模板文件 缺失则创建,已存在则跳过不覆盖
项目事实 无法确认时保留模板中的待补充项,不阻塞初始化
CLAUDE.md 引用 缺失则追加,已存在则跳过
AGENTS.md 引用 缺失则追加,已存在则跳过
冲突处理 不覆盖用户已有文件,报告需人工处理项

人工交互策略

本节仅适用于未携带 no-interrupt--no-interrupt 的普通模式。

默认不向用户提问。只有出现以下情况才进入人工交互:

触发条件 处理方式
用户明确要求覆盖已有模板文件 询问是否覆盖具体文件;无响应则不覆盖
CLAUDE.md / AGENTS.md 中存在冲突的项目规则路径 询问是否追加新引用或保留旧引用;无响应则保留旧引用并报告
用户要求根据真实项目事实定制模板但事实不足 询问一个最关键事实;无响应则保留待补充项

Read the full file on GitHub · 213 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. 9d ago First seen · 213 lines · 30 tokens per session scan A a2d37c5f3034

Subscribe to this mod's changes

project-rules-examples is a skill published in the GitHub repository michaelChe956/Cadence-skills (11 stars, last pushed 7d ago), licensed MIT. It adds 30 tokens to every session and 2,798 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens