workflow-template-extractor
Original:🇺🇸 English
Translated
Extract a shareable runnable template under templates/NNN-slug/ from a real project: copy + de-brand + remove secrets + add env examples + docs, with minimal refactors. Use when you have a working project and want to turn it into a template.
7installs
Sourceheyvhuang/ship-faster
Added on
NPX Install
npx skill4agent add heyvhuang/ship-faster workflow-template-extractorTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Workflow: Template Extractor (Real Project → Template)
Goal: Turn a real project into a shareable, runnable template in with minimal manual cleanup.
templates/This is intended for “proven projects” you want to reuse as a baseline for future builds.
Input (pass paths only)
- : Path to the real project
source_repo_root - : Ship Faster repository root (where
target_repo_rootlives)templates/ - :
run_dirruns/template-extractor/active/<run_id>/ - : What to keep/remove/generalize (brand, copy, assets, integrations, auth gates)
extract_spec.md
Output (persisted)
03-plans/extract-plan.md05-final/extract-summary.md- (runnable)
templates/<NNN>-<slug>/
Workflow
0) Initialize
- Create .
run_dir - Decide and
<slug>(next available template number).<NNN> - Copy →
source_repo_root(no build outputs, no caches).templates/<NNN>-<slug>/
1) De-secrets + de-brand
Must do:
- Remove secret values from all files (, config, hard-coded tokens).
.env* - Replace project IDs (Stripe price IDs, Supabase URLs/keys, webhook secrets) with env var keys.
- Replace branding (names/domains/logos) with neutral placeholders unless the template is intentionally branded.
2) Normalize template entry docs
Required files:
- (5‑minute runnable)
README.md - (keys only)
.env.local.example - (name + description)
metadata.json
Recommended:
- Ensure scripts exist for ,
dev,buildstart - If lint/typecheck/format are missing and the repo is TS-heavy, add minimal guardrails (avoid heavy governance)
3) Verification
Document in :
05-final/extract-summary.md- install works
- starts
dev - succeeds (or clearly document why it can’t without credentials)
build
Constraints
- Never commit secret values.
- Extraction should be “copy + cleanup”, not a refactor project.