Claude-skill-registry initialize-project
Initialize a new project from the TypeScript template by renaming packages, updating metadata, and cleaning up documentation. Use when starting a new project, "bootstrapping" from this template, or setting up a fresh repository.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/initialize-project" ~/.claude/skills/majiayu000-claude-skill-registry-initialize-project && rm -rf "$T"
manifest:
skills/data/initialize-project/SKILL.mdsource content
Initialize Project
Purpose
This skill automates the initial setup of a new project derived from this template. It leverages AI capabilities to directly modify project metadata and documentation by replacing placeholders, ensuring a clean start for a new repository.
Instructions
- Gather Information: Ask the user for:
- New project name (e.g.,
)my-awesome-app - Project description
- Author name
- (Optional) GitHub repository URL
- New project name (e.g.,
- Update Project Metadata: Directly update the following files using the
orWrite
tools:StrReplace
: Updatepackage.json
,name
, anddescription
.author
: Update the package name to match the new scope (e.g.,packages/common/package.json
).@new-name/common
: If there are template-specific references, update them..trunk/trunk.yaml
- Update README Placeholders: Use the
tool to replace the placeholders inStrReplace
with the gathered information:README.md
-> New project name{PROJECT_NAME}
-> Project description{PROJECT_DESCRIPTION}
->{LICENSE}
(or other preferred license)ISC
- Install Dependencies: Run
to update the lockfile with the new package names.pnpm install - Final Cleanup: Remove the initialization skill and its related files once bootstrapping is complete, if requested by the user.
Examples
Example 1: Initializing a new CLI tool
Input: User says "Initialize this project as 'json-fixer', a CLI tool to fix broken JSON files." Action:
- Gather details from the user (Name: json-fixer, Description: A CLI tool to fix broken JSON files, Author: [Author Name]).
- Update
with the new metadata.package.json - Use
onStrReplace
to swapREADME.md
,{PROJECT_NAME}
, and{PROJECT_DESCRIPTION}
with the actual values.{LICENSE} - Run
.pnpm install