init-project
Skill582 starsChanged 17 days agoMITView on GitHub
初始化整个项目,清除模板自带的示例内容(src/pages/demo、src/pages/content、src/components/Github、src/servers/content、menus/demo 及相关 i18n),并连带删除代码中的 import 与引用。执行时会先以 dry-run 预览将要删除的文件和将要修改的引用,经用户确认后再真正执行。
49 other projects use a version of this.
Adopted by
Most recently taken up by
- itsryanarmani/skillstheir own version, first seen Nov 8, 2026
- ryanportfolio/winuse-mcptheir own version, first seen Nov 8, 2026
- eugenelim/agent-ready-repotheir own version, first seen Nov 8, 2026
- pooriaarab/skillstheir own version, first seen Nov 7, 2026
- ice-lfernandes/claude-spring-architecttheir own version, first seen Nov 7, 2026
- nerviz-ai/nerviztheir own version, first seen Nov 7, 2026
Used with
Projects with it also use addskill, apply-firmware and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ryanportfolioSkilladdskill
Create, import, update, or install repo or personal skills: runtime ownership, resources, discovery checks.
Also in 6 projects that use this
ryanportfolioSkillapply-firmware
Bring current folder (plain folder, existing repo, old or partial firmware copy) up to full Harness Firmware in place. Mirror external repo → adopt-repo.
Also in 6 projects that use this
- +10 more from ryanportfolio
Other versions49 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 49
- wataru-maeda/react-native-boilerplate★ 521same name
- flonat/flonat-research★ 150same name
- huangwb8/skills★ 50same name
- jiahao-shao1/sjh-skills★ 43same name
- eugenelim/agent-ready-repo★ 28same name
- freemty/labmate★ 25same name
- ice-lfernandes/claude-spring-architect★ 11same name
- nerviz-ai/nerviz★ 11same name
- eranw2000/multi-phase-skills-framework★ 10same name
- luiseiman/dotforge★ 8same name
39 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- demo-createSkill
- init-projectSkill
- demo-createSkill
The file
Files
init-project
Description
初始化项目,丢弃模板自带的示例内容。该技能会调用 .claude/skills/init-project/scripts/ 下的 Python 清理脚本,删除以下目标并连带清理代码中的引用:
- 页面:
src/pages/demo/、src/pages/content/ - 组件:
src/components/Github/ - 接口:
src/servers/content/ - 静态菜单:
src/menus/demo.ts及src/menus/index.ts中的 demo 引用 - 国际化:
src/locales/zh/content.ts、src/locales/en/content.ts
同时清理以下代码引用:
src/layouts/components/Header.tsx:删除import Github from '@/components/Github';与<Github />标签src/menus/index.ts:删除import { demo } from './demo';与...(demo as SideMenu[])
Instructions
1. 执行清理脚本
调用 Python 脚本完成清理,必须先做 dry-run 预览,再确认删除:
# 1) dry-run 预览(不删除任何文件,仅打印将要删除的文件和将要修改的引用)
python .claude/skills/init-project/scripts/cleanup.py --dry-run
# 2) 确认无误后,真正执行删除
python .claude/skills/init-project/scripts/cleanup.py或使用包装脚本(Windows 下推荐):
bash .claude/skills/init-project/scripts/run.sh --dry-run # 预览
bash .claude/skills/init-project/scripts/run.sh # 执行2. 确认流程(重要)
- 先运行
--dry-run,将脚本输出的「待删除文件清单」和「待修改引用清单」展示给用户。 - 明确询问用户是否确认执行删除。
- 用户确认后再运行不带
--dry-run的命令。 - 执行完成后,建议运行
pnpm lint和pnpm dev验证项目可正常构建运行。
3. 脚本行为说明
脚本(cleanup.py)会:
- 校验项目根目录(默认当前工作目录,可通过
--root <path>指定)。 - 计算所有待删除的文件/目录(仅删除存在的)。
- 计算所有待修改的引用文件(按精确字符串匹配替换)。
--dry-run模式下只输出计划,不写盘;非 dry-run 模式下执行删除与替换,并跳过已不存在的目标。- 仅做精确字符串替换,不会误伤业务代码;替换前会检查目标字符串是否存在。
4. 替换规则(精确匹配)
| 文件 | 替换内容 |
src/layouts/components/Header.tsx | 删除 import Github from '@/components/Github';\n 整行,删除 <Github />\n 整行 |
src/menus/index.ts | 删除 import { demo } from './demo';\n 整行,将 ...(demo as SideMenu[]),\n 整行删除 |
注:脚本使用精确字符串匹配。如果上述文件已被人为修改导致字符串不再精确匹配,脚本会跳过该替换并在输出中提示「未找到匹配」,此时需人工检查。
5. 安全检查
- 脚本默认不会删除脚本自身所在目录之外的任意文件,仅处理上述明确的目标。
- 所有路径均相对项目根目录计算,不会跨项目删除。
- 若目标已被删除(重复执行),脚本会安全跳过。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

