01-package-scaffolding/repo-scaffold-factory/SKILL.md
Generate the base repository file structure including README, AGENTS.md, docs layout, ticket templates, and the agent configuration scaffold. Use when creating a greenfield repo foundation or resetting a weakly structured project. This generates a generic starting structure that other skills then customize. Do not use when the repo already has established structure (risks overwriting).
npx skillsauth add chelch5/skilllibrary 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.
If a bootstrap script is available (e.g., scripts/bootstrap_repo_scaffold.py), use it for deterministic mechanical work: copying template files, substituting placeholders, and generating metadata.
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>"
Common placeholder substitutions:
__PROJECT_NAME__ → project name__PROJECT_SLUG__ → URL-safe slug__AGENT_PREFIX__ → prefix for agent filenames__MODEL_PROVIDER__ → provider label__STACK_LABEL__ → stack/framework labelDerive arguments from the canonical brief and user decisions.
If no script exists, create the structure manually:
# Core structure
mkdir -p src tests docs scripts .github/ISSUE_TEMPLATE .github/workflows
# Agent-operated repo additions
mkdir -p tickets
# Plus agent config dir: .opencode/, .copilot/, .codex/, or equivalent
Generate these files:
After the base files exist, customize them with actual project content from the canonical brief:
docs/spec/CANONICAL-BRIEF.md or docs/BRIEF.md)handoff-brief at flow endopencode-team-bootstrap (or equivalent)project-skill-bootstrap./
├── README.md
├── AGENTS.md
├── .gitignore
├── docs/
│ ├── BRIEF.md or spec/CANONICAL-BRIEF.md (input, not generated)
│ ├── ARCHITECTURE.md
│ └── CONTRIBUTING.md
├── .github/
│ ├── ISSUE_TEMPLATE/
│ │ ├── bug_report.md
│ │ └── feature_request.md
│ └── pull_request_template.md
├── src/
├── tests/
├── scripts/
├── tickets/ (if agent-operated)
└── <agent-config-dir>/ (if agent-operated)
../opencode-team-bootstrap/SKILL.mdtesting
Manages context window budgets, loading strategies, and compaction techniques for AI-assisted coding sessions. Trigger on 'context window', 'what to load', 'context management', 'context overflow', 'token budget'. DO NOT USE for loading specific project docs into agent context (use project-context) or prompt wording and optimization (use prompt-crafting).
development
Implements authentication, session, token, and authorization patterns for the current stack. Trigger on 'add auth', 'JWT', 'OAuth', 'login endpoint', 'session management', 'API key auth'. DO NOT USE for OWASP hardening checklists (use security-hardening), threat modeling (use security-threat-model), or secret rotation/storage (use security-best-practices).
tools
Defines request/response shapes, versioning, validation, and compatibility rules for API-first work. Trigger on 'design API', 'OpenAPI spec', 'REST schema', 'API versioning', 'generate client SDK'. DO NOT USE for GraphQL schemas, gRPC/protobuf definitions (use stack-standards), auth endpoint logic (use auth-patterns), or external API client wrappers (use external-api-client).
development
Create a repo-local ticket system with an index, machine-readable manifest, board, and individual ticket files. Use when a repo needs task decomposition that autonomous agents can follow without re-planning the whole project each session. Do not use for executing tickets (use ticket-execution) or quick fixes that don't warrant formal tickets.