project-initialization
Skill296 starsChanged 4 months agoMITView on GitHub
Initializes a project from the standard dual-runtime template, preserves existing files, configures Git hooks, and creates or connects a private GitHub repository with main and dev branches.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- LOUSANPANG/agent-skillstheir own version, first seen Sep 2, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- LOUSANPANG/agent-skills★ 2same name
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 repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/skill-master/references/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- code-reviewingSkill
- code-writingSkill
- documentation-writingSkill
- infrastructure-setupSkill
- layout-reviewingSkill
- layout-writingSkill
- methodologySkill
- prompt-masterSkill
- security-auditorSkill
- skill-masterSkill
- test-masterSkill
- user-spec-planningSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 1 is distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 35
If the current directory contains anything other than .git, move all such entries into the first available directory named old, old2, old3, …
- Very specific: line 51
If OLD_DIR is non-empty, inspect it for .env*, *.key, *.pem, credentials.json, and secrets/.
- Distinctive: line 53
Never print secret contents.
- Very specific: line 63
Create the first initialization commit.
- Very specific: line 72
If origin already exists, show its URL and ask whether it is the intended repository.
- Very specific: line 75
If origin does not exist, ask for the GitHub repository name unless already supplied.
- Very specific: line 79
Before any push, inspect whether a local or remote dev branch already exists.
- Very specific: line 83
Ask explicitly before pushing main.
- Very specific: line 96
Do not review or merge files from old* during initialization.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Project Initialization
Initialize the project in the current working directory. Existing project files are preserved in
an old* directory for later review; do not merge them into the new scaffold during this workflow.
Dual-Runtime Project Generation
The bundled template contains Claude project sources under .claude/**. Its pre-commit hook runs
the installed ~/.claude/scripts/sync-to-codex.sh converter after those sources are staged. This
generates and stages the matching AGENTS.md and .codex/** runtime before the commit while
.gitignore excludes host-local .codex/.sync/**. A reported conflict or validation error stops
the commit.
1. Check the Current Directory
Work only in the current directory. If it is already a Git repository with uncommitted changes,
ask whether to commit them first, continue while preserving them in old*, or stop. Do not proceed
until the user chooses.
Resolve the directory of this loaded project-initialization skill and set INIT_SKILL_DIR to that
absolute path. Verify that its assets/new-project/ directory exists before moving project files.
2. Preserve Existing Files and Apply the Template
If the current directory contains anything other than .git, move all such entries into the first
available directory named old, old2, old3, and so on. Do not move .git.
OLD_DIR=""
if find . -mindepth 1 -maxdepth 1 ! -name '.git' -print -quit | grep -q .; then
OLD_DIR="old"
N=2
while [ -e "$OLD_DIR" ]; do OLD_DIR="old${N}"; ((N++)); done
mkdir "$OLD_DIR"
find . -mindepth 1 -maxdepth 1 ! -name '.git' ! -name "$OLD_DIR" -exec mv -- {} "$OLD_DIR/" \;
fi
cp -rp "$INIT_SKILL_DIR/assets/new-project/." .If OLD_DIR is non-empty, inspect it for .env*, *.key, *.pem, credentials.json, and
secrets/. Ensure every sensitive path is covered by the new .gitignore before staging files.
Never print secret contents.
3. Initialize Git and Hooks
Initialize Git with main as the primary branch when needed. For an existing repository, preserve
its history and make the current primary branch main. Then:
- Make
.githooks/pre-commitexecutable. - Set
git config core.hooksPath .githooks. - Stage the scaffold and preserved
old*directory, subject to the secret check above. - Create the first initialization commit. The pre-commit hook generates and stages
AGENTS.mdand.codex/**while.gitignoreexcludes.codex/.sync/**. If generation reports a conflict or validation error, the commit stops. If the repository already has history, create a normal initialization commit instead of rewriting existing commits.
4. Connect GitHub and Create Branches
GitHub is required for this workflow. Verify that gh is installed and authenticated.
- If
originalready exists, show its URL and ask whether it is the intended repository. Stop on a mismatch rather than replacing the remote. Confirm throughghthat the repository is private; if it is public, stop and ask whether to make it private or use another repository. - If
origindoes not exist, ask for the GitHub repository name unless already supplied. The supplied name authorizes creating the private repository. Create it withgh repo create {name} --private --source=. --remote=origin.
Before any push, inspect whether a local or remote dev branch already exists. If neither exists,
create dev from main. If either exists, show its relationship to main and ask whether to reuse
it; never reset or recreate an existing dev, and stop if local and remote histories conflict.
Ask explicitly before pushing main. After approval, push main, push the created or approved
dev, leave dev checked out, and read the canonical repository URL through gh.
5. Report the Result
Report:
- the GitHub URL;
- the created or reused
mainanddevbranches; - the preserved
old*directory, or that the directory was initially empty; - that
devis the active branch; - the next step: create the initial Project Knowledge with
documentation-writing.
Do not review or merge files from old* during initialization.
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.

