Init Project logo

Init Project

Community
southliu
init-project

初始化整个项目,清除模板自带的示例内容(src/pages/demo、src/pages/content、src/components/Github、src/servers/content、menus/demo 及相关 i18n),并连带删除代码中的 import 与引用。执行时会先以 dry-run 预览将要删除的文件和将要修改的引用,经用户确认后再真正执行。

Overview

Publishersouthliu
Repositorysouth-admin-react
Skill nameinit-project
Stars
580
Forks
108
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by southliu on GitHub. Read the source before you install it.

Installation

Install the Init Project AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/southliu/south-admin-react/tree/main/.claude/skills/init-project
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/southliu/south-admin-react.git /tmp/south-admin-react
mkdir -p .claude/skills
cp -r /tmp/south-admin-react/.claude/skills/init-project .claude/skills/init-project
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Init Project in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Init Project on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Init Project is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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 预览,再确认删除:

bash
# 1) dry-run 预览(不删除任何文件,仅打印将要删除的文件和将要修改的引用)
python .claude/skills/init-project/scripts/cleanup.py --dry-run

# 2) 确认无误后,真正执行删除
python .claude/skills/init-project/scripts/cleanup.py

或使用包装脚本(Windows 下推荐):

bash
bash .claude/skills/init-project/scripts/run.sh --dry-run   # 预览
bash .claude/skills/init-project/scripts/run.sh             # 执行

2. 确认流程(重要)

  1. 先运行 --dry-run,将脚本输出的「待删除文件清单」和「待修改引用清单」展示给用户。
  2. 明确询问用户是否确认执行删除。
  3. 用户确认后再运行不带 --dry-run 的命令。
  4. 执行完成后,建议运行 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. 安全检查

  • 脚本默认不会删除脚本自身所在目录之外的任意文件,仅处理上述明确的目标。
  • 所有路径均相对项目根目录计算,不会跨项目删除。
  • 若目标已被删除(重复执行),脚本会安全跳过。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Init Project AI skill do?

初始化整个项目,清除模板自带的示例内容(src/pages/demo、src/pages/content、src/components/Github、src/servers/content、menus/demo 及相关 i18n),并连带删除代码中的 import 与引用。执行时会先以 dry-run 预览将要删除的文件和将要修改的引用,经用户确认后再真正执行。

Why use Init Project on TypingMind?

Because you install it once and use it with any model. Init Project is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Init Project in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/southliu/south-admin-react/tree/main/.claude/skills/init-project. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Init Project?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Init Project?

As many as you like. As long as a model supports skills, you can use Init Project with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Init Project AI skill free?

Yes. It is published on GitHub by southliu under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇