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.
npx skills add michaelChe956/Cadence-skills --skill legacy-bootstrapgit clone --depth 1 https://github.com/michaelChe956/Cadence-skillsWrote 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.
[](https://agentmods.dev/skills/michaelche956/cadence-skills/legacy-bootstrap)<a href="https://agentmods.dev/skills/michaelche956/cadence-skills/legacy-bootstrap"><img src="https://agentmods.dev/badge/skills/michaelche956/cadence-skills/legacy-bootstrap/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.
<a href="https://agentmods.dev/skills/michaelche956/cadence-skills/legacy-bootstrap"><img src="https://agentmods.dev/badge/skills/michaelche956/cadence-skills/legacy-bootstrap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 4 findings, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium MCP Rug Pull · line 11 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 18 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 114 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 122 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00032 | $0.05627 |
| Opus 5 | $0.00016 | $0.02814 |
| Sonnet 5 | $0.00006 | $0.01125 |
| Haiku 4.5 | $0.00003 | $0.00563 |
Grade A, and why
legacy-bootstrap 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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 420 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Legacy Bootstrap v2.0
概述
使用 npx repomix@latest 汇总当前本地 legacy 项目上下文,通过类型驱动的产物管线分析项目结构、架构、模块、依赖、风险和未知项,并将结果逐一沉淀到目标项目的 cadence/ 目录。
该 skill 属于 cadence-init 插件,面向已经在 Claude Code 或 Codex 中打开的本地 clone 项目。
核心原则
- 只处理当前打开的本地项目,不 clone 远程仓库。
- 默认使用
npx repomix@latest。 - 所有认知产物写入
cadence/,不生成.ai/。 - 逐产物生成,边做边报告,禁止批量输出后遗漏。
- 按项目类型条件触发专属产物,确保覆盖完整。
- 产物生成完成后必须更新
CLAUDE.md与AGENTS.md。 - 不直接重构业务代码。
- 不把未知业务事实写成确定结论。
--skill-generate只作为结构参考,不作为主流程。
何时使用
使用场景
- 用户要求为 legacy 项目初始化项目认知。
- 用户要求使用 repomix bootstrap 当前项目。
- 用户要求生成架构、模块、风险、构建测试画像等 Cadence 文档。
- 进入历史项目并计划修改前,需要先建立项目认知。
- 当前 Claude Code 或 Codex 已经打开目标项目的本地 clone。
不使用场景
- 目标是全新空项目,没有 legacy 代码或历史结构需要梳理。
- 用户只要求查看少量文件或回答局部问题。
- 用户明确要求不生成 Cadence 文档。
- 用户要求分析远程 GitHub 仓库,但没有提供或打开本地 clone。
整体流程架构
Phase 1: 环境检测
├─ 确认项目根目录
├─ 读取项目规则(CLAUDE.md / AGENTS.md)
└─ 运行 repomix 生成快照
Phase 2: 项目类型识别
├─ 从 repomix 输出中提取信号(框架、依赖、目录结构)
├─ 判定项目类型(可多选,取并集)
├─ 向用户展示判定结果并请求确认
└─ 确定产物清单 = 核心产物 + 类型专属产物
Phase 3: 逐产物生成管线
├─ 按清单顺序,逐个产物:
│ ├─ 从 repomix 提取相关信息
│ ├─ 写入 cadence/ 对应路径
│ └─ 输出确认行:"✓ [N/总数] 已生成: <路径>"
└─ 若某产物证据不足 → 输出:"⚠ [N/总数] 跳过: <产物名> — 原因: <说明>"
Phase 4: 收尾验证 + 报告
├─ 检查所有应生成文件是否存在于磁盘且非空
├─ 更新 CLAUDE.md / AGENTS.md 认知链接
└─ 输出 Bootstrap 汇总表
Phase 1: 环境检测
1.1 确认目标项目根目录
读取目标项目规则前,必须先确认当前工作目录是目标项目根目录。判断信号包括:
.git。- 主项目清单或包管理文件,例如
package.json、Cargo.toml、pyproject.toml、go.mod、pom.xml、build.gradle。 - 常见项目配置文件,例如
Makefile、README.md、tsconfig.json、vite.config.*、docker-compose.yml。
如果无法判断当前目录是否为目标项目根目录,先询问用户确认;确认不是根目录时停止执行,提示用户在目标项目根目录重新运行,不要对上级目录或不确定目录写入产物。
1.2 读取目标项目规则
在目标项目根目录优先读取:
CLAUDE.mdAGENTS.md.claude/rules/document-storage.md.claude/rules/markdown-format.md.claude/rules/code-usage.mdcadence/project-rules/README.md
如果目标项目没有 Cadence 规则文件,使用默认目录约定:所有项目认知产物写入 cadence/ 下对应子目录,入口规则写入根目录 CLAUDE.md 与 AGENTS.md。
读取规则时只采纳与当前 bootstrap 相关的约束;不得修改目标项目 .claude/rules/ 中的框架规则文件。
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.
- today Changed · -1 lines d68ef08c6623
- 11d ago First seen · 421 lines · 32 tokens per session scan A c8b25cdc4f23
legacy-bootstrap is a skill published in the GitHub repository michaelChe956/Cadence-skills (11 stars, last pushed yesterday), licensed MIT. It adds 32 tokens to every session and 5,627 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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
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…
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…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…
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…
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…