sentinel-setup
Installation
SKILL.md
Set Sentinel up in the current workspace: the folder that holds the project's repos, or the repo itself for a single project.
- Run
sentinel --version. If the command is missing, tell the user to install it withuv tool install git+https://github.com/chhunlyyy/sentinel(orpipx installwith the same URL) and stop until it works. - If
sentinel.config.yamlalready exists at the workspace root, do not re-initialize. Runsentinel doctorand fix what it reports. If the shared repo is the problem, ask for its URL (step 3) and runsentinel shared set <url>. - Look at the folders yourself first, then ask the user in one message for what you cannot find out:
- The clone URL of the team's private shared repo (required). It must be an empty private git repository their team owns: it holds the project rules, specs and regression suite. For a quick local trial, a bare repo on disk (
git init --bare ~/sentinel-shared.git) works. - The project shape:
single,fullstack(backend and frontend),fullstack-mobile, orcustom. - The folder of each repo, relative to the workspace. Propose what you see.
- The clone URL of the team's private shared repo (required). It must be an empty private git repository their team owns: it holds the project rules, specs and regression suite. For a quick local trial, a bare repo on disk (
- Run
sentinel init --shape <shape> --shared-repo <url> --non-interactive --set <id>.path=<folder> ...with one--setper repo (ids areapp, orbackend,frontend,mobile). Stack profiles are detected from files such aspubspec.yaml,package.jsonandbuild.gradle; override one with--set <id>.profile=<profile>. For thecustomshape, ask the user to runsentinel initthemselves in a terminal, because it asks for each repo interactively. - If init says the shared repo was empty, it committed starter files locally and printed one push command. Show it and ask the user to run it, or to approve you running it.
- Run
sentinel doctorand report the result. Mention thatsentinel.config.yamlcan switch on team rules (rules), set up QA (qa) and point to guidelines, and offer to help, but change nothing without being asked. - Tell the user they can now use
/sentinelfor a task.