project-init

A generator for the starting structure of a Java project using Maven and Spring Boot. Maven builds Java projects, while Spring Boot provides a common base for web applications and services.

In plain words
What is it for?
Use it to initialize an empty Java service, add a child module, create environment-specific settings, prepare container builds, and set up the project's development-flow state.
Why use it?
It removes the repetitive work of assembling build files, configuration, scripts, documentation folders, and deployment files. It also enforces required project details before generating the scaffold.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/linshidream/skill-hub/project-init
Any agent
npx skills add linshidream/skill-hub --skill project-init
Clone the repo
git clone --depth 1 https://github.com/linshidream/skill-hub

Made for: Claude Code, Codex.

Per session 263 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,776 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00263 $0.08776
Opus 5 $0.00131 $0.04388
Sonnet 5 $0.00053 $0.01755
Haiku 4.5 $0.00026 $0.00878

Measured 2d ago against content hash 80094f1d0755, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

project-init scanned grade A with 1 finding 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 2d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (lib/merge.py, validators/version-check.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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- L3 自写:`curl registry/v2/` ping 网络可达(200 或 401 都算可达,不 login)。
skills/dev/project-init/SKILL.md · 325 lines

How it starts

The opening of the file, as written. The whole thing — 325 lines — stays where its author put it; the contents beside it link to each section on GitHub.

project-init — Java 项目脚手架生成器

⚠️ 强制前置规则(最高优先级,不可跳过)

生成骨架前,必须先向用户发出「初始化表单」(见第 13 节)并等待用户填写贴回。 禁止用默认值直接调 merge.py 生成——用户极易忽略关键变量(groupId / 模块名 / 凭据占位 / 分支 / template)。

唯一例外:用户明确表达"用默认""不要问""直接生成""全自动""跳过表单"等放弃输入的意图时,才可用默认/占位直接生成。表述模糊或未表态时,一律先发表单

执行顺序:检测空目录 → 发表单 → 等用户填回 → 组装 --var → 跑 merge.py。绝不允许从"检测目录"直接跳到 merge.py

1. 定位

把一个空目录变成可立即 mvn package + 可构建镜像 + 可被 dev-lifecycle 接管的 Java Spring Boot 单体项目骨架。前置于 dev-spec非必需:已有骨架则 dev-spec 直接开工,本 skill 不介入。

本 skill 是 dev-lifecycle 的第 0 个 cascade 节点(项目级、一次性):生成骨架后写项目级状态 .dev-flow/project.jsonphase=scaffold:done),停留 test 分支,移交 dev-spec 开始第一个功能的需求整理(feature 级 spec:intake)。

职责边界(绝不越界):

动作 本 skill dev-lifecycle dev-spec git-flow ci-trigger
git init + initial commit + 建 test 分支
pom / SpringBoot 骨架 / Dockerfile / build.sh / run.sh / rollback.sh / Jenkinsfile
.dev-flow.yml 种子(含 scaffold 块 + build-credentials)
.dev-flow/project.json 项目级状态(scaffold:done) 读取
.gitignore(含 .dev-flow/
docs/specs/ + docs/specs/_sources/ 空目录
docs/checklist/build-readiness.md 人工质检清单
scripts/check-build-ready.sh 机器自检
README
spec 文档
.dev-flow/states/<feature>.json feature 级状态 ✅(首次写)
Auto Cascade 0 移交 spec:intake ✅(编排)
feature 分支
编排 step 开发/集成 ✅(编排)
触发 CI ✅(编排)

2. 触发条件

  • 当前项目文件夹为空(无文件或仅有 .DS_Store 等无关文件)→ 触发整骨架 init。
  • 用户明确指定创建子模块 → 触发增量模块生成(merge.py --add-module <name>,只生成模块级文件 + 根 pom <modules> 追加,不覆盖根级文件/状态/git)。
  • 介于之间、判断不确定 → 先提一句问用户"是否需要初始化骨架 / 新增子模块?",不要擅自生成。

3. 核心变量体系

真正独立的输入只有三个,其余派生或固定:

变量 含义 来源优先级 固定?
project.name 最外层文件夹名 = 父 POM artifactId spec > dir_name > prompt > default
project.groupId 父=子共用 groupId(默认 com.own.{short} spec > prompt > default
core.module.name 核心模块文件夹名 = 子 artifactId = finalName spec > prompt > default({project.name}-server)
version 固定 1.0.0-SNAPSHOT
packaging.parent 固定 pom
packaging.module 固定 jar
branch.production 生产分支 spec > prompt > default 否(默认 master
branch.test 测试分支 spec > prompt > default 否(默认 test
developers {key: {name}} 至少一个 spec > git config > prompt

Read the full file on GitHub · 325 lines

Files

What ships with it

54 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. 2d ago First seen · 325 lines · 0 tokens per session scan A 80094f1d0755

Subscribe to this mod's changes

project-init is a skill published in the GitHub repository linshidream/skill-hub (19 stars, last pushed 22d ago), licensed MIT. It adds 263 tokens to every session and 8,776 once invoked, about $0.0013 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

agent-host-chat-contributions

Build and review cross-cutting agent-host chat behavior through lifecycle contributions. Use when adding turn lifecycle side effects, prompt or context injection, restored-history transformation, protocol-action observation, or when reviewing changes that add code to AgentSideEffects or AgentService.

microsoft/vscode · 56 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens