/h2t-core:init-projectfrom h2t-core
Register existing repo or directory in h2t ecosystem. Triggers on "/init-project", "register project", or actionable hint from session-start when project.id == "unknown". NOT for creating new repos (use /h2t-core:scaffold-project).
Ships in h2t-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Manual project setup? Use
/h2t-core:scaffold-project— it handles new repos, existing dirs, and registration in one wizard. This skill (init-project) is for automated registration triggered bysession-startwhen a project is discovered but not yet registered.
Register the current directory as a project in the h2t ecosystem. The PreToolUse hook has already detected the project type, domain, and task tracker.
Run this before any other command of this skill:
h2t-ops version --expect 4.1.3 --json
Act on the result, in this order:
"ok": true — continue."ok": false — show the user error.hint as it is and stop this skill until
it is resolved. Do not run anything the hint names unless the user asks you to: on
reason: path it is a command for the user to decide on. error.details.reason names the
case: not_installed, version or path.command not found — read ~/.h2t/run/install.env
(grep -E '^(STATE|H2T_HOOK)=' ~/.h2t/run/install.env). With STATE=ready the install
is fine and PATH does not reach it: show the directory of the H2T_HOOK= path, ask the
user to restart the harness, and offer uv tool update-shell for them to run. Without
it there is no install: give the user uvx --isolated --python 3.12.11 --managed-python -c "https://github.com/lichtpfad/h2t-skills/releases/download/v4.1.3/constraints.txt" --from "h2t-ops @ https://github.com/lichtpfad/h2t-skills/releases/download/v4.1.3/h2t_ops-4.1.3-py3-none-any.whl" h2t-setup sync.uvx --isolated --python 3.12.11 --managed-python -c "https://github.com/lichtpfad/h2t-skills/releases/download/v4.1.3/constraints.txt" --from "h2t-ops @ https://github.com/lichtpfad/h2t-skills/releases/download/v4.1.3/h2t_ops-4.1.3-py3-none-any.whl" h2t-setup sync.command -v h2t-project-register >/dev/null 2>&1 || {
echo "ERROR: h2t-project-register not found. Run /h2t-core:setup"
exit 1
}
Look for INIT_DATA: in hook output or system messages. Use it only if its JSON has
cwd equal to the current working directory and at (ISO-8601 with offset) no more than
120 s before now:
pwd; date +%Y-%m-%dT%H:%M:%S%z
Otherwise — no INIT_DATA, a stale one, one for another directory, one without
cwd/at (a 3.x hook), or Codex, which runs no hooks — detect it yourself. The command
prints the same JSON the hook injects, without the INIT_DATA: prefix:
h2t-detect-project --cwd "$(pwd)"
If it contains "error": — show the error and stop.
If it contains "already_registered": true — show confirm_message, ask if user wants to update. If no → stop.
Show confirm_message VERBATIM. Do not modify or supplement.
If needs_input is true:
input_fieldsdomain was collected and tracker_confidence == "deferred":
h2t-ops settings get notion.tasks_database_id exits 0 (a Notion tracker is configured) AND detected.github exists → ask: "GitHub и Notion оба доступны. Task tracker: github или notion?"detected.github, else noneIf needs_input is false — wait for "ок" or corrections from user.
Always collect a one-line description as well, unless the user declines. It is what
LLM task classification reads out of domains.yaml; a project registered without one
sorts worse from then on. Propose one from the repo's README or its issues rather than
asking cold.
Call h2t-project-register with confirmed parameters:
h2t-project-register \
--id "{id}" --domain "{domain}" --type "{type}" \
--label "{label}" --task-tracker "{tracker}" \
--description "{description}" \
--cwd "$(pwd)" \
[--github "{github}"]
--description fills a blank field only; a description already written by hand is kept.
Show the result JSON actions and next_steps to user.
Load references/truth-gate.md (next to this file) and follow it: three questions, each
answered by a command that is run, empty output = red, result written into the project
CLAUDE.md under ## Truth gate. If the heading already exists — re-run the commands and
update statuses; do not skip because "already answered".
| Mistake | Fix |
|---|---|
| Running detection when fresh INIT_DATA is there | The hook already ran it. Use INIT_DATA; run h2t-detect-project only when the freshness rule in Step 1 fails |
| Treating a missing INIT_DATA as normal | In Claude Code the hook is the executor by design (#12): a missing INIT_DATA means the hook failed — say so, then detect with h2t-detect-project. Only Codex has no hook |
| Writing YAML manually | Call h2t-project-register. It handles backups and comment preservation |
| Skipping domain question when needs_input | User MUST confirm domain before apply |
| Resolving tracker before domain is known | Tracker depends on domain. Wait for domain first |
| Ending after registration | Step 4 (truth gate) is part of this skill. Registration without the gate is the audit's root finding: flag says done, content missing |
What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/agent-profileProject-scoped Claude plugin profile manager. Apply base profiles (dev, pos, ops, creative, dcc, product, marketing, mixed) and work contexts to control which plugins load per repo. Supports profile:name and overlay:name explicit refs plus bare-name legacy compat. Triggers: "agent-profile", "apply profile", "plugin profile", "set profile", "configure plugins", "профиль плагинов", "конфигуратор профиля".
/autonomous-runLaunch or resume an autonomous, unattended plan-execution run after brainstorm is complete. Generates a durable, self-contained runbook artifact, materializes a TodoWrite mirror of the pipeline, and carries the decision + gate protocols through to handoff. Use for "работай сам", "автономно", "overnight", "выполни план сам", "autonomous run", "resume runbook"./Other plugins' skills for the same job
npx claudepluginhub lichtpfad/h2t-skills --plugin h2t-core