legacy-bootstrap

legacy-bootstrap is a skill for Claude Code from michaelChe956/Cadence-skills. It costs 32 tokens per session (5,627 once invoked), scanned A, original, MIT.

A bootstrap workflow for building a written understanding of an existing, older local codebase. It uses Repomix to collect project context and saves architecture, module, dependency, risk, and unknown-item documents in a cadence folder.

In plain words
What is it for?
Initialising project knowledge, analysing a local legacy clone, generating architecture and risk documents, identifying project-specific documentation needs, and updating project entry files.
Why use it?
It records what is known about a legacy project before changes are made, while keeping uncertain facts marked as unknown.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

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

Good fit Initialising project knowledge, analysing a local legacy clone, generating architecture and risk documents, identifying project-specific documentation needs, and updating project entry files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/michaelche956/cadence-skills/legacy-bootstrap
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 legacy-bootstrap
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 13 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 legacy-bootstrap

README.md
[![agentmods](https://agentmods.dev/badge/skills/michaelche956/cadence-skills/legacy-bootstrap/github.svg)](https://agentmods.dev/skills/michaelche956/cadence-skills/legacy-bootstrap)
Your own site
<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.

agentmods 80×15 button for legacy-bootstrap

Your own site · 80×15
<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>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,627 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 warn 7 Sept 2026
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]
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.00032 $0.05627
Opus 5 $0.00016 $0.02814
Sonnet 5 $0.00006 $0.01125
Haiku 4.5 $0.00003 $0.00563

Measured today against content hash d68ef08c6623, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

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.

cadence-init/skills/legacy-bootstrap/SKILL.md · 420 lines

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.mdAGENTS.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.jsonCargo.tomlpyproject.tomlgo.modpom.xmlbuild.gradle
  • 常见项目配置文件,例如 MakefileREADME.mdtsconfig.jsonvite.config.*docker-compose.yml

如果无法判断当前目录是否为目标项目根目录,先询问用户确认;确认不是根目录时停止执行,提示用户在目标项目根目录重新运行,不要对上级目录或不确定目录写入产物。

1.2 读取目标项目规则

在目标项目根目录优先读取:

  • CLAUDE.md
  • AGENTS.md
  • .claude/rules/document-storage.md
  • .claude/rules/markdown-format.md
  • .claude/rules/code-usage.md
  • cadence/project-rules/README.md

如果目标项目没有 Cadence 规则文件,使用默认目录约定:所有项目认知产物写入 cadence/ 下对应子目录,入口规则写入根目录 CLAUDE.mdAGENTS.md

读取规则时只采纳与当前 bootstrap 相关的约束;不得修改目标项目 .claude/rules/ 中的框架规则文件。

Read the full file on GitHub · 420 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. today Changed · -1 lines d68ef08c6623
  2. 11d ago First seen · 421 lines · 32 tokens per session scan A c8b25cdc4f23

Subscribe to this mod's changes

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.

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

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…

vercel/next.js · 83 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