batch-init
Skill2 starsChanged 5 months agoMITView on GitHub
Batch-initialize project docs for valid projects in projects-list.md that are missing a doc file or have an outdated version. Triggers when the user says "batch init", "batch initialize", "update project docs", "批次初始化", or "initialize unfinished projects".
In this repository5 other files it gives its agents.
- generate-tech-profile-jsonSkill
- generate-tech-profileSkill
- get-latest-versionSkill
- init-project-docSkill
- scan-projectsSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Read profile.config.json from the current working directory.
- Very specific: line 19
Run the /get-latest-version skill to get the version string to use as the "latest version" baseline.
- Very specific: line 21
If none is returned, all projects with a doc file are treated as "outdated"
- Very specific: line 41
After each batch finishes, read each project's <doc_filename> frontmatter to get skill_version, then proceed to the next batch
- Very specific: line 44
After each batch completes, immediately update the corresponding rows in projects-list.md:
- Very specific: line 49
Update method: Edit projects-list.md directly, match rows by the "Path" column, replace the row.
- Distinctive: line 52
After all batches complete, output a summary:
- Distinctive: line 64
If a project fails (non-zero exit code), record the failure and continue with remaining projects — do not abort the entire batch
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Batch Init Skill
Goal
Find valid projects in projects-list.md that need their project doc initialized or updated, run the init-project-doc skill in parallel (max 3 per batch), and update projects-list.md after each batch completes.
Step 0: Read config
Read profile.config.json from the current working directory. If missing, tell the user to copy examples/profile.config.example.json to profile.config.json and fill it in, then stop.
doc_filename(defaultCLAUDE.md)agent_command— the shell command template used to runinit-project-docnon-interactively in a project directory. Default:claude --dangerously-skip-permissions -p "/init-project-doc". Other CLIs can be substituted, e.g.codex exec "/init-project-doc"(seedocs/installation.mdfor per-tool examples). This flag skips interactive permission/trust prompts — only use it in directories you trust.
Execution Steps
Step 1: Get the latest version number
Run the /get-latest-version skill to get the version string to use as the "latest version" baseline.
- Return format is a string (e.g.
"2.0") - If
noneis returned, all projects with a doc file are treated as "outdated"
Step 2: Filter candidate projects
From the table in projects-list.md, filter rows that satisfy all of the following:
- "Active" column is ✅ (skip ❌)
- Matches at least one of:
- Doc-file column is ❌ (not yet initialized)
- Doc-file column is ✅ but "Version" column is not the latest (including
—)
Sort by table order, take the first N (default N=5; user can specify in prompt, e.g. "batch init 3").
Step 3: Run init-project-doc in parallel (max 3 per batch)
Split candidate projects into batches of max 3, run within each batch in parallel, batches run sequentially:
cd <project path> && <agent_command><project path>is the "Path" column value from the table; expand~to$HOME- Issue all 3 commands in the same batch simultaneously via Bash tool with
run_in_background: true, then wait for all to complete - After each batch finishes, read each project's
<doc_filename>frontmatter to getskill_version, then proceed to the next batch
Step 4: Update projects-list.md
After each batch completes, immediately update the corresponding rows in projects-list.md:
- Doc-file column → ✅
- "Version" column →
skill_versionvalue read from the doc file (use—if frontmatter field is missing) - "Description" column →
one_line_descriptionvalue from the doc file frontmatter (keep original if missing)
Update method: Edit projects-list.md directly, match rows by the "Path" column, replace the row.
Step 5: Report results
After all batches complete, output a summary:
✅ Batch init complete
- Projects processed: N
- Success: M
- Failed: K (list names)
- projects-list.md updatedNotes
- Parallelism: max 3 projects per batch run simultaneously; batches are sequential
- Expand
~in paths to the full absolute path via$HOME - If a project fails (non-zero exit code), record the failure and continue with remaining projects — do not abort the entire batch
- Version comparison:
2.0>1.0— use numeric comparison, not string comparison - Show the candidate list to the user for confirmation before starting execution
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.

