Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

bootstrap

БесплатноБез исполняемых скриптовНе проверен

Bootstrap a greenfield project with parent-owned interviews and bounded plan, revision, and apply actions.

rp1-runот rp1-run★ 38 звёзд на GitHub

Об этом скилле

Bootstrap

The top-level skill owns every user-facing question. The retained scaffolder is a bounded, non-interactive worker invoked only after the answer it needs is durable in the target knowledge base.

{% include_shared "parent-owned-interview.md" %}

Invariants

  • Keep metadata.is_workflow: false; bootstrap may start outside an initialized project.
  • Known _TBD_ sections in charter.md and preferences.md are the only resume state.
  • Workflow events are telemetry only. Never use them to decide which question or action comes next.
  • Do not create scratch pads, bootstrap markers, checkpoint comments, context sidecars, relay envelopes, continuation payloads, or generalized scaffold probes.
  • Use the same parent-owned topology on every platform. Do not use platform-specific interaction tags.
  • MUST NOT dispatch inside either interview loop. Across one invocation, dispatch at most one PLAN action, one optional REVISE action, and one APPLY action.

Procedure

1. Validate Every Project Name Before Effects

Begin from a non-mutating directory inventory. Inspect only the current directory and safe-named direct children when looking for resumable work; do not recurse through arbitrary directories.

Validate every supplied, inferred, or recovered project name against ^[a-z0-9][a-z0-9-]*$ before using it as a path segment. Do not trim, sanitize, lowercase, or otherwise rewrite a candidate. Reject separators, .., whitespace, globs, punctuation other than -, an empty name, or a leading hyphen with actionable lowercase-kebab-case guidance.

Target discovery:

  1. Enumerate the current directory name and direct-child names without entering them.
  2. Discard a name unless it passes the project-name regex, then retain only candidates with their own .rp1/project_id. Never derive a candidate path from an unsafe name, and never treat an ancestor project as candidate initialization.
  3. If one initialized candidate exists, offer to inspect and use it. If several exist, present only the validated names and ask the user to choose one or provide a new name. If none exists and no argument was supplied, infer the current directory basename only when the current directory is already its own rp1 project; otherwise ask for a name.
  4. Do not call a selected initialized target resumable until Section 2 resolves its canonical directories and {targetKbRoot}/preferences.md exists. A resumable candidate exists only when its resolved {targetKbRoot}/preferences.md exists. Do not inspect run state, marker files, package manifests, or expected scaffold outputs to infer resume state.

The project-name acquisition question is the only permitted interaction before a new candidate can be validated. Validate its answer immediately. Allow one correction, then stop without writing, initializing, or dispatching.

Set CANDIDATE_PROJECT_NAME from the generated Resolve Arguments section's already-resolved PROJECT_NAME, the selected validated target candidate, the valid inferred basename, or the user's name answer. Do not reconstruct that argument value or parse raw user input again. Validate CANDIDATE_PROJECT_NAME before continuing. Only after validation may the parent set PROJECT_NAME and TARGET_DIR, ask a placement or confirmation question, create a directory, initialize rp1, write an artifact, or dispatch an agent.

2. Initialize Or Reuse The Selected Target

If an initialized target candidate was selected, use its directory as TARGET_DIR. Otherwise, after name validation:

  • Current directory is empty: ask whether to use it or create the direct child {PROJECT_NAME}.
  • Current directory is its own rp1 project with only rp1 setup files: ask whether to use it or create the direct child.
  • Current directory contains unrelated files: propose the direct child and require confirmation; never write into the unrelated current content.
  • Proposed target already contains unrelated content and is not the selected initialized target: stop with guidance instead of overwriting it.

Create a missing TARGET_DIR only after confirmation. If it lacks .rp1/project_id, run rp1 init --yes --force-nested with TARGET_DIR as the command working directory. On failure, stop before artifact creation. If it is already initialized, reuse it without reinitializing.

The generated Resolve Arguments section already parsed PROJECT_NAME and returned directories for the invocation context. Reuse that exact argument value. Its projectRoot, kbRoot, and workRoot values do not become directories for a different selected target.

After target selection and initialization, resolve the selected target's canonical directories exactly once. This directory-only lookup is the one explicit exception to the generated instruction not to re-derive project directories. It MUST NOT include --args or parse arguments again:

rp1 agent-tools resolve-args \
  --name rp1-dev':'bootstrap \
  --project-root "{TARGET_DIR}"

Consume onl

Полный SKILL.md на GitHub

Установить bootstrap в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(echo *)
Bash(rp1 *)
Bash(mkdir *)

FAQ

Что делает скилл bootstrap?

Bootstrap a greenfield project with parent-owned interviews and bounded plan, revision, and apply actions.

Как установить скилл bootstrap?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bootstrap запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить bootstrap с