skills/repo-scaffold-factory/SKILL.md
Generate the base repository file structure including README, AGENTS.md, docs layout, ticket templates, and the full OpenCode scaffold with agents, tools, plugins, commands, and skills. Use when creating a greenfield repo foundation. This generates a generic starting structure that other skills then customize.
npx skillsauth add merceralex397-collab/scafforge repo-scaffold-factoryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill to generate the initial repository file tree. This is a TWO-PHASE process.
scaffold-kickoff for a new repo, use the full scaffold path (--scope full).--scope opencode.The Python script handles deterministic mechanical work: copying 100+ template files, substituting placeholders, and generating metadata. This is better done by a script than by hand.
The script is at scripts/bootstrap_repo_scaffold.py relative to this skill's directory.
python3 scripts/bootstrap_repo_scaffold.py \
--dest <destination-path> \
--project-name "<Project Name>" \
--model-provider "<provider>" \
--planner-model "<planner-model-string>" \
--implementer-model "<implementer-model-string>"
Optional flags:
--project-slug <slug> — override the auto-generated slug--agent-prefix <prefix> — override the agent filename prefix (defaults to slug)--model-tier <weak|standard|strong> — tune prompt density for generated guidance without changing workflow fidelity--utility-model <model> — set a different model for utility agents (defaults to planner model)--stack-label <label> — stack label for generated docs (defaults to "framework-agnostic")--scope opencode — generate only the .opencode/ layer (for retrofit)--force — overwrite existing filesThe script copies files from assets/project-template/ and substitutes these placeholders:
__PROJECT_NAME__ → project name__PROJECT_SLUG__ → URL-safe slug__AGENT_PREFIX__ → prefix for agent filenames__MODEL_PROVIDER__ → provider label__MODEL_TIER__ → prompt-density tier__PLANNER_MODEL__ → planner/reviewer model string__IMPLEMENTER_MODEL__ → implementer model string__UTILITY_MODEL__ → utility agent model string__STACK_LABEL__ → stack/framework labelOutput includes: README.md, AGENTS.md, START-HERE.md, docs/, tickets/, opencode.jsonc, .opencode/ (agents, tools, plugins, commands, skills, config, state), and .opencode/meta/bootstrap-provenance.json.
For Godot Android game stacks, the script also seeds the base asset-pipeline surfaces so later skills start from a real repo layout instead of prose-only guidance:
assets/requirements.jsonassets/pipeline.jsonassets/manifest.jsonassets/ATTRIBUTION.mdassets/PROVENANCE.mdassets/briefs/, assets/workflows/, assets/previews/, assets/qa/.opencode/meta/asset-pipeline-bootstrap.json.opencode/meta/asset-provenance-lock.jsonThe generated workflow layer includes the stack adapter registry inside environment_bootstrap, so generated bootstrap guidance should reflect the detected stack instead of assuming a Python-only repo.
The arguments should come from the canonical brief and user decisions:
--project-name from the brief's Project Summary--model-provider from the brief's Tooling/Model Constraints--planner-model and --implementer-model from user decisions--stack-label from the brief's Constraints (or "framework-agnostic" if unresolved)deliverable_kind, placeholder_policy, content_source_plan, licensing_or_provenance_constraints, finish_acceptance_signals) so the seeded asset-pipeline metadata is specific on first render.requires_visual_proof should be turned on in bootstrap provenance.After the script generates the base files, you MUST customize them with actual project content in the same session. Phase B is mandatory completion work, not an optional revisit. The generated files contain generic placeholder text that must be replaced before handoff.
README.md — Replace the generic template sections with actual project description, setup instructions, and architecture overview from the canonical brief.
AGENTS.md — Populate with actual project rules, conventions, and the truth hierarchy specific to this project.
docs/spec/CANONICAL-BRIEF.md — This should already contain the normalized brief from spec-pack-normalizer. If it contains template placeholders, replace them with the actual brief content.
docs/process/workflow.md — Customize the workflow description if the project has specific process requirements.
START-HERE.md — handoff-brief will publish the final restart surface, but the surrounding repo surfaces it depends on must already contain real project content.
Agent prompts — Will be customized by opencode-team-bootstrap. Leave for now.
Project-local skills — Will be customized by project-skill-bootstrap. Leave for now.
handoff-brief.environment_bootstrap, then a fresh ticket_lookup.smoke_test, not optional hints that can be replaced by heuristic pytest selection.Before continuing into project-specific specialization, run the early bootstrap-lane proof:
python3 scripts/verify_generated_scaffold.py <repo-root> --verification-kind bootstrap-lane --format both
That early gate must prove one canonical bootstrap ticket, one valid bootstrap status, and one aligned bootstrap-first route across restart, workflow, and tool surfaces before project-skill-bootstrap begins.
The final verifier now also rejects placeholder residue, invalid canonical JSON or JSONC, broken generated agent references, project-name drift across key handoff surfaces, and missing asset-pipeline starter surfaces for generated game repos.
Then continue to ../project-skill-bootstrap/SKILL.md for the full greenfield local-skill pass, and later use scripts/verify_generated_scaffold.py again with the default verification kind as the final immediate-continuation gate before handoff.
references/layout-guide.md for the intended repo shapereferences/workflow-guide.md for the ticketed lifecyclereferences/community-skill-audit.md for notes on external skill patternsassets/project-template/ for the template sourcetesting
Use when validating Android feature flows in an emulator with adb-driven launch, input, UI-tree inspection, screenshots, and logcat capture.
development
Best practices for Remotion - Video creation in React
development
Set browser-game architecture before implementation. Use when the user needs engine choice, simulation and render boundaries, input model, asset organization, or save/debug/performance strategy.
development
Prepare and optimize browser-game 3D assets. Use when the user asks for GLB or glTF shipping work, including Blender cleanup and export, collision or LOD setup, compression, texture packaging, and runtime validation.