south-admin-react: Skill for Claude Code

.agents/skills/init-project/SKILL.md

init-project is a skill for Claude Code, Codex from southliu/south-admin-react. It costs 83 tokens per session (944 once invoked), scanned A, original, MIT.

A project-cleanup tool that removes the template's sample pages, components, APIs, menus, and translation entries, along with their code references.

In plain words
What is it for?
Use it to turn the starter project into a clean application base, then check the result with linting or a development build.
Why use it?
It clears example content before development begins and shows a dry-run preview before deleting anything.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions Codex.

This is southliu/south-admin-react's own configuration. It tells Claude Code and Codex how to work on south-admin-react itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything south-admin-react configures →

Reuse

Borrowing it

Nothing to install: this file belongs to southliu/south-admin-react. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/southliu/south-admin-react/main/.agents/skills/init-project/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/southliu/south-admin-react

Made for: Claude Code, Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/southliu/south-admin-react/init-project"><img src="https://agentmods.dev/badge/skills/southliu/south-admin-react/init-project.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 944 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 pass 7 Sept 2026
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.00083 $0.00944
Opus 5.5 $0.00033 $0.00378
Sonnet 5.5 $0.00017 $0.00189
Haiku 4.5 $0.00008 $0.00094

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

Security

Grade A, and why

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

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/cleanup.py, scripts/init.mjs, scripts/run.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/init-project/SKILL.md · 73 lines

What it actually says

init-project

Description

初始化项目,丢弃模板自带的示例内容。该技能会调用 .Codex/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 .Codex/skills/init-project/scripts/cleanup.py --dry-run

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

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

bash .Codex/skills/init-project/scripts/run.sh --dry-run   # 预览
bash .Codex/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. 安全检查

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

What ships with it

3 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. today Changed 7384b7297d54
  2. 2mo ago First seen · 73 lines · 83 tokens per session scan A cdd8fc0a41d6

Subscribe to this mod's changes

init-project is a skill published in the GitHub repository southliu/south-admin-react (583 stars, last pushed today), licensed MIT. It adds 83 tokens to every session and 944 once invoked, about $0.0003 per session on Opus 5.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

antd

Use when the user's task involves Ant Design (antd) — writing antd components, debugging antd issues, querying antd APIs/props/tokens/demos, migrating between antd versions, or analyzing antd usage in a project. Triggers on antd-related code, imports from 'antd', or explicit antd questions.

ant-design/ant-design-pro · 69 tokens

pro-upgrade

An upgrade guide for projects built with Ant Design Pro, a React-based application template for business software. It compares the project with the latest official template and merges framework updates while preserving application code.

ant-design/ant-design-pro · 63 tokens

weapp-vite-react-best-practices

A Chinese-language guide for building React 19 WeChat mini programs with weapp-vite and @weapp-vite/react. WeChat mini programs are small apps that run inside WeChat.

weapp-vite/weapp-vite · 103 tokens

typescript-advanced-types

Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications. Use when implementing complex type logic, creating reusable type utilities, or ensuring compile-time type safety in TypeScript projects.

bartstc/vite-ts-react-template · 57 tokens

writing-spec

Collaboratively write a feature spec with the developer. Trigger when a task involves 5+ unconstrained decisions, spans 10+ files, or the developer explicitly asks for a spec. Do NOT trigger for config edits, CSS fixes, helper functions, exploratory prototyping, presentation-only changes, or when the developer…

bartstc/vite-ts-react-template · 69 tokens

playwright-page-objects

Use when creating page objects or refactoring Playwright E2E tests for better maintainability with Page Object Model patterns.

bartstc/vite-ts-react-template · 30 tokens