/platty:platty-onboardingfrom platty
Coordinates the multi-phase initial onboarding journey for Platty CLI, from repository registration through static analysis and generated SOT. Resumes interrupted sessions. Routes to specialized sub-skills.
Ships in platty. 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.
Prerequisite: Read using-platty before acting unless it has already been read in this turn.
Coordinate the installed first-run journey. This skill does not install the CLI or agent plugin. Route detailed phase behavior and recovery to platty-setup, platty-static-analysis, platty-docs-target-curation, and platty-generated-docs.
For direct invocation, set PLATTY_INVOCATION_SOURCE=platty-onboarding on
every Platty CLI process in this workflow. If an outer user-facing workflow
routes here, the outer workflow label wins and overrides this default. Preserve
the active label across routed owner skills, retries, resumes, and every
nextCommand or nextAction.command execution.
Primary command patterns:
PLATTY_INVOCATION_SOURCE=platty-onboarding platty analyze --project <project> --json
PLATTY_INVOCATION_SOURCE=platty-onboarding platty generate-docs run --project <project> --provider <resolved-provider> --docs-llm-concurrency 10 --json
PLATTY_INVOCATION_SOURCE=platty-onboarding platty sot export --project <project> --json
Determine the conversation language from the user's request at the start. An explicit language instruction takes precedence. Otherwise use Korean when the request is Korean, mixes Korean and English, or is ambiguous enough that the language cannot be inferred. Use English when the request is in English. Do not infer the response language from the repository's source language. Keep every user-facing progress update, explanation, question, approval card, and completion or failure report in that language across all routed owner skills. Preserve commands, paths, project and repository names, provider values, ids, and error codes verbatim.
For the shared Start Notice, Progress Checkpoint, and Handoff Card, translate all human-readable labels and headings into the conversation language while preserving the template structure and machine values.
Treat a path appended to an explicit skill invocation as the initial repository
candidate. . means the host session's current working directory. Resolve any
relative or absolute path to its absolute Git root before setup inspection. If
the path or Git root is unverifiable, stop and ask for a valid repository path.
The path identifies the initial repository and is never a project selector; the
normal project resolution, branch gate, and additional-repository questions
still apply.
Use the shared Platty Start Notice, then inspect platty setup --json. Inside the private source checkout, translate public commands to node packages/cli/dist/main.js <command> --json as required by AGENTS.md. If the CLI or agent plugin is missing, stop and route the user to installation; do not install it from this skill.
If inspection returns PLATTY_DB_MIGRATION_NEWER_THAN_CLI, stop normal onboarding. Never delete or repair the existing database or default Platty home. Only for a user-authorized disposable validation run, create a fresh isolated PLATTY_HOME, label it as separate test state, and preserve that same PLATTY_HOME for every command and resume. Record the absolute PLATTY_HOME path in a durable workflow-state or resume-note artifact outside the analyzed repository, and repeat that PLATTY_HOME in every pause and handoff. Without that artifact, report the exact path and do not promise automatic fresh-context resume.
Resolve the project before project-scoped commands and inspect repositories, analysis status, generated-doc runs, and the last verified nextAction. Reconstruct project, repository ids and branches, the latest analysis run id, generated-doc stage/run ids, provider/model flags, and next action from persisted Platty state; never rely on chat history alone. Resume at the first incomplete phase. A repository path is never a project selector.
Use platty-setup. When no intended project is resolved and multiple plausible
projects exist, explain that they are persisted Platty projects from earlier
runs, not filesystem directories discovered beside the repository. Run repo list for each candidate and summarize whether the current repository is
already registered, including source roots only when verified. Offer an
existing project or a new project in one concise question. Do not render Platty handoff
while waiting for this ordinary, resolvable choice; it is not a
terminal stop.
When no plausible existing project exists, ask for the project name and short description.
When the user selects a project, or supplies the project name and short description
for a new one, create or select it and run repo list before every
repo add. Reuse every verified registration and add only missing repositories
or source roots. For each new registration collect the repository path, display name, analysis branch, and optional source root. Follow the owner skill's
default-versus-current branch gate when the branch is omitted: resolve
origin/HEAD, then an existing main, then an existing master; recommend the
verified default branch, normally main or master; present a differing
current branch second as an explicit alternative instead; wait for confirmation;
then pass the confirmed value as --branch <branch>. Never silently register a
feature checkout.
Before choosing registrations, inspect the Git root, root manifest, workspace declaration or metadata, and nested app or package manifests. When one Git root has no usable root manifest or workspace declaration but contains multiple independently analyzable nested app manifests, register the same absolute Git repository path once per app with a distinct --source-root and unique display names. Do not register application subdirectories as the repository path. Pass an explicit --branch on each registration and keep the repo list-before-add invariant.
Explain that multi-repository analysis can connect source-grounded routes, models, API calls, storage access, and service relations across repositories. After each add, ask whether another repository belongs to the same project. Start analysis only when registration is complete.
Use platty-static-analysis. Before starting, say static analysis does not invoke an LLM and does not consume LLM tokens. Explain that it extracts files, symbols, imports, calls, literals, routes, models, database and API access, navigation, events, jobs, storage, and service relations so later documents remain grounded in code.
At the repository-to-analysis boundary, use this required readiness shape in the conversation language:
If the user's original request explicitly authorizes static analysis, including
an end-to-end request to continue through analysis, do not ask a duplicate
question; proceed after the readiness summary. Otherwise ask one concise
question to start static analysis and wait for the answer. This is a
conversational readiness check; it does not add or imply a CLI confirmation
command. The next CLI action remains
platty analyze --project <project> --json.
After completion, give an intermediate report with the project, analyzed and failed repository counts, completed stages, target counts by useful category when available, the analysis run id, actionable blocking failures, and the state-derived next action. Preserve non-actionable internal unresolved facts in the run evidence, but do not expose them in ordinary onboarding output. Do not paste raw JSON. Stop on the owner skill's failure or stall conditions.
Inspect the terminal result's automatic sotExport. Verify and report its outDir and graphView.htmlPath immediately. If the export or outDir is missing, run platty sot export --project <project> --json; if GraphView is still missing or graphView.error is present, run platty graph view --project <project> --json. Apply the private-checkout command translation from Resume First. Summarize the fresh static target inventory. Report a catalog path only when the CLI returned that path and the file exists; never invent a pre-LLM API, screen, event, or job catalog from an expected directory layout.
Use platty-docs-target-curation. Summarize only active APIs, screens, events, and jobs as curatable target kinds. Let the user describe unused or obsolete targets in natural language, resolve them against a fresh list, and mutate only exact target ids. Ask one focused question on ambiguity. Explicitly include the accepted active ids when nothing is excluded. In this public onboarding path, do not run the lower-level docs shared-segments compatibility commands; continue through the public generate-docs facade, which rebuilds the required segments.
First inspect whether the user already explicitly selected a direct API in the
current conversation. If so, branch here before any local provider resolution.
Honor OpenAI API as openai_api and route its OPENAI_API_KEY credential check
through platty-generated-docs; do not add an extra provider question. When
neither Codex nor Claude CLI is installed and the required key is ready,
continue to the cost disclosure and approval below. Do not run command -v
checks and do not apply the local-provider stop to this branch.
A present OPENAI_API_KEY is readiness evidence only and never enters this
branch, selects, or overrides a provider without the user's explicit choice.
Readiness is not spend approval and never replaces the LLM approval below.
Before that approval, explain that direct API calls consume provider tokens and
may incur account cost or provider charges. Preserve every explicit provider
and model through continuation, confirmation, and recovery.
When no direct API was explicitly selected, resolve the local provider before
approval. Determine the current runtime from the host session context, not from
executable ordering, then verify its matching CLI with command -v codex or
command -v claude. Map a detected codex executable to codex_cli, and map a
detected claude executable to claude_code;
<resolved-provider> below always means one of those CLI enum values, never the
executable name. Otherwise select the one available local CLI. If both exist
and the runtime gives no preference, ask once. Do not select claude_api implicitly.
Do not select openai_api implicitly. Stop if neither local provider exists.
Put the static result, target-review outcome, and approval card in the same user-facing response. Do not pause between them; pause only at the explicit approval request. Divide the card into these sections:
command -v path for a local CLI, or the nonblank key source without its value for a direct API), parallel workers, and automatic EPIC continuation.Use the following positive recipe in this order. Translate the headings and field labels into the conversation language; keep machine values verbatim.
Generated outputs and why
Execution
command -v executable path for a local
CLI, or the shell / ~/.platty/.env key source for a direct API without
exposing its value.--docs-llm-concurrency 10, which is
a total technical-document LLM-call budget rather than a document-worker
count. Explain that verified provider pressure may reduce it through
10 -> 5 -> 2 while leaving EPIC and business-document worker defaults
unchanged.Cost and resume
Approval
Wait for explicit approval. Static-analysis completion is not LLM approval.
Use platty-generated-docs. After approval run:
platty generate-docs run --project <project> --provider <resolved-provider> --docs-llm-concurrency 10 --json
That command is for resolved local providers (codex_cli and claude_code).
For an explicitly selected direct API, do not inherit local concurrency 10:
platty generate-docs run --project <project> --provider openai_api --json
The explicit flag satisfies the provider gate; do not ask a duplicate provider question. Preserve --project, --stage, --run-id, --provider, model flags, and --json in every continuation or recovery command.
For both codex_cli and claude_code, preserve the current
--docs-llm-concurrency value in every worker-bearing continuation or recovery
command. Use the owner skill's provider-pressure rule to reduce the same run
only through 10 -> 5 -> 2, with at most two automatic reductions. Do not ask
for another approval when lowering concurrency. Never lower it for JSON/schema,
document-validation, grounding, EPIC-assignment, deterministic task, or poll
failures; keep those on the existing repair-first or polling path.
Continue technical docs -> EPIC draft -> EPIC auto-confirm -> business docs without asking the user to select EPICs. A valid returned confirm-epics command is automatic unless the user explicitly requested manual review. If EPIC confirmation is required but the confirmation command or run id is missing, stop instead of guessing.
For long work, poll about every 30–60 seconds. Report only deltas in stage, saved/completed, active, pending, failed, remaining, cumulative tokens and cost when available, and the next automatic action. Repair failed tasks on the same run for at most two repair rounds, then stop with the remaining failures and exact next action. Preserve saved work; do not regenerate completed work after interruption.
Completion requires all generated-document stages to be terminal with no failed tasks. At terminal completion run the platty-generated-docs export step once:
platty sot export --project <project> --json
Verify non-zero counts.docs and counts.epics. Record lastExportAt as freshness evidence, but a changed timestamp alone is not proof. Report the SOT outDir and graphView.htmlPath from the same result. If graphView is missing or has graphView.error, use platty graph view --project <project> --json as the fallback and verify its HTML path. Keep worker task counts distinct from stored document counts: tasks describe execution, while counts.docs describes final stored business documents.
Finish with one structured response. Render these fields in this exact order and translate their user-facing labels and prose into the conversation language:
platty-retrieval retrieval/search skill
from the public Platty plugin, when discoverable, or configured Platty MCP retrieval can find
source-grounded answers across SOT, EPICs, documents, exact code locations,
and graph relations. Do not invent or automatically run a sample query.platty-sdd-spec turns a product idea or change
request into grounded prd.md and user_stories.md drafts.platty-sdd-design continues from approved product
documents into system_design.md and executable tasks.md.An ordinary project, repository, or target choice that the user can resolve is a guided question, not a terminal stop. Reserve a terminal handoff for missing installation, an explicitly deferred workflow, ambiguity that remains unrecoverable after one focused question, an unverifiable repository path or branch, static-analysis failure or stall, no local provider, missing LLM approval, a missing run id required for continuation or confirmation, failed tasks after at most two repair rounds, unverifiable SOT or GraphView output, or final completion. Preserve owner-skill evidence and the exact next action in the handoff.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub paradigmshift-labs/platty --plugin platty13 skills in this plugin
/platty-cli-routerUse when deciding which Platty CLI root command, project workflow, repository workflow, analysis workflow, document workflow, or Platty skill should handle a request./platty-docs-target-curationUse when listing, filtering, including, deprecating, or reviewing Platty technical documentation targets before docs generation./platty-generated-docsUse when generating, validating, reviewing, resuming, or repairing Platty generated outputs through the public generate-docs workflow./platty-mcp-server-setupUse when configuring, starting, validating, or troubleshooting the Platty context backend that exposes a read-only MCP endpoint./platty-memoryUse when recording, updating, or removing human knowledge (why, corrections, constraints) anchored to Platty epics, documents, or document items./platty-retrievalUse when searching local Platty SOT outputs, generated docs, graph traces, code search, or source-grounded project evidence through the full Platty operator plugin.Other plugins' skills for the same job