cadence-init

cadence-init is a skill for Claude Code from hxt9805/cadence. It costs 89 tokens per session (1,796 once invoked), scanned A, original, MIT.

A setup command for cadence, a workflow that records project decisions, open questions, discussions, and next steps in files. It can prepare a new project or inspect an existing one.

In plain words
What is it for?
Use it to create or migrate the cadence directory, capture a project summary, and organize active decisions, pending items, and tasks.
Why use it?
It gives the project a consistent place for working notes and can identify older cadence layouts or inconsistent information before work continues.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions CLAUDE.md; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the cadence plugin — 5 skills, 3 commands, 3 agents, 1 hook shipped together

Good fit Use it to create or migrate the cadence directory, capture a project summary, and organize active decisions, pending items, and tasks.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add hxt9805/cadence
Claude Code
/plugin install cadence

Made for: Claude Code.

Or install cadence, the plugin that ships this one along with the rest of its 5 skills, 3 commands, 3 agents, 1 hook.

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 cadence-init

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/hxt9805/cadence/cadence-init"><img src="https://agentmods.dev/badge/skills/hxt9805/cadence/cadence-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,796 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.
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.00089 $0.01796
Opus 5 $0.00044 $0.00898
Sonnet 5 $0.00018 $0.00359
Haiku 4.5 $0.00009 $0.00180

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

Security

Grade A, and why

cadence-init 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.

skills/cadence-init/SKILL.md · 137 lines

How it starts

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

Cadence Init

初始化 cadence 工作流。双模式:新项目 / 已有项目。

1. 检查现有状态

读取项目根,检查 cadence/

  • _INDEX.md + _ACTIVE.md 都在(已初始化 v0.2.2+)→ 询问 要重做项目快照吗?[r/n]r 跳到 § 3.3 已有项目模式 [A];n 退出(无需 /clear,bootstrap 在本 session 启动时已注入)。
  • _INDEX.md 在 + _ACTIVE.md 不在(v0.2.x 旧格式)→ § 2 迁移
  • 都不在 → § 3 init
  • 其他异常(如 _INDEX.md 不在但 _ACTIVE.md 在)→ 提示用户手动修复或删 cadence/ 后重跑

2. v0.2.x 旧版本迁移(inline)

主 session 直接处理(不再调 subagent)。

检测到旧版 cadence 目录(v0.2.x 前)。v0.2.2 将 _INDEX.md 拆为
"纯索引 _INDEX.md + 纯活跃 _ACTIVE.md"。迁移前建议先 commit。继续?[Y/N]

N → abort。Y → 执行:

  1. cadence/_INDEX.md
  2. 按映射拆 section:
    • 「当前活跃决策」/「待决清单」/「TODO」/「最近讨论」→ _ACTIVE.md
    • 「项目简述」/「话题词典」/「快速导航」→ 留 _INDEX.md
    • 未识别 section → 留 _INDEX.md 末尾(加 <!-- cadence 未识别 --> 注释)
  3. _ACTIVE.md 若超 8 条活跃决策上限,inline 三档:
    ⚠️ 检测到 N 条活跃决策,新上限 8 条。
    (a) Claude 推荐归档清单(按日期倒序最老 N-8 条)
    (b) 我自己选要归档哪些
    (c) 保留全部(暂时超限,下次记决策时会提示整理)
    
  4. 更新话题词典 pointer:→ 活跃决策 改为 → _ACTIVE.md#活跃决策@active
  5. 展示 diff 摘要 → 用户确认 → Edit _INDEX.md + Write _ACTIVE.md(IO 失败回滚,不留半迁移状态)。
  6. 完成告知:📝 已迁移:_INDEX.md(NN→MM 行 / 纯索引)+ _ACTIVE.md(新建 KK 行)。详见 git diff cadence/

→ § 4 汇报产物(无需 /clear,bootstrap 在本 session 启动时已注入)。

3. init 主流程

3.1 判断项目状态

  • 空目录,或只有版本控制/编辑器元数据与空 README → 新项目模式(§ 3.2)
  • 有任何有意义的项目材料 → 已有项目模式(§ 3.3)。项目材料包括但不限于:
    • 源代码、配置和构建清单;
    • 研究材料、数据说明、实验记录和参考文献;
    • 文稿、提纲、素材和风格指南;
    • 学习记录、课程计划、练习与评估;
    • 运营计划、日历、预算、流程和复盘;
    • 其他能体现项目目标、主产物、约束或进度的文件。

不要因为项目没有 src/package.json 或 Git 就判为新项目。忽略缓存、依赖、 构建输出和系统临时文件后,只要仍有实质材料就是已有项目。

3.2 新项目模式

创建目录骨架:

cadence/
├── _INDEX.md       ← scaffolds/_INDEX.md
├── _ACTIVE.md      ← scaffolds/_ACTIVE.md
├── _archive/.gitkeep
└── discussions/.gitkeep

极简 onboarding(允许 [TBD]):

项目档案(初版):
- 项目是什么:???
- 给谁用:???
- 已知硬约束:???
告诉我能说的部分,其他留白也 OK。

用户提供的字段写入 _INDEX.md 的「项目简述」;不提供的保持 [TBD]。用户说「随便聊聊」→ 跳过 onboarding。

3.3 已有项目模式

[A] 快速扫描生成「项目快照」(推荐)
[B] 先不扫描,按需了解
  • [A]:创建目录骨架(同 § 3.2)→ 调 project-scanner subagent。扫描器先做 通用发现,再按已观察到的材料选择领域适配器;软件适配器只是其中一种:
    请按 ${CLAUDE_PLUGIN_ROOT}/skills/cadence-init/agents/project-scanner.md 的规范扫描本项目。
    项目路径:{project_root}
    输出:cadence/discussions/00-project-snapshot.md + 01-inconsistencies.md
    
    完成后展示 scanner 的 suggested_index_fields(每字段标 [来源: X][推断] 优先级低需额外确认)。让用户选 [Y] 全部回填 / e<编号> 编辑某项 / [N] 全保持 [TBD]。
  • [B]:只创建目录骨架,不调 subagent。

Read the full file on GitHub · 137 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 137 lines · 89 tokens per session scan A eb969518f440

Subscribe to this mod's changes

cadence-init is a skill published in the GitHub repository hxt9805/cadence (5 stars, last pushed 1mo ago), licensed MIT. It adds 89 tokens to every session and 1,796 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories