/platty:platty-setupfrom platty
Initializes Platty workspace, manages projects and registered repositories, inspects setup state, and navigates the Platty setup workflow hub.
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.
None: SKILL.md is the whole skill.
For direct invocation, set PLATTY_INVOCATION_SOURCE=platty-setup 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 for retries, resumes, and every nextCommand or
nextAction.command execution.
PLATTY_INVOCATION_SOURCE=platty-setup platty setup --json
Use this for Platty setup and setup-state decisions. Platty stores CLI state in
the user-global Platty home by default (~/.platty on macOS/Linux,
%APPDATA%\Platty on Windows). PLATTY_HOME overrides that location. The CLI
config field named projectRoot refers to this Platty home/workspace root, not
to a repository being analyzed.
If setup returns PLATTY_DB_MIGRATION_NEWER_THAN_CLI, stop normal setup. Never
delete or repair the existing database or default Platty home. Only for a
user-authorized disposable validation run, use 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.
platty setup is the preferred human onboarding and workflow-hub command. It
shows the current project, registered repositories, a local path example, and
the next recommended workflow action.
For humans, prefer:
platty setup
Do not ask a normal user to run --json unless they are debugging
machine-readable output or copying exact state for an agent.
The setup hub should be described as covering:
project selection -> repository registration -> analysis -> target review ->
technical docs -> EPIC auto-confirm -> business documents
For humans, platty setup opens a project dashboard before workflow work.
Describe the dashboard as showing:
Do not tell users to use tmux for normal setup progress. Prefer the dashboard and persisted Platty run status. Use direct recovery commands only when the dashboard points to a specific run that needs inspection:
platty generate-docs status --project <project> --stage build_docs --run-id <id> --json
platty generate-docs status --project <project> --stage build_business_docs --run-id <id> --json
For agent automation, use JSON output to inspect state and choices. Do not expect prompts in JSON mode.
platty setup --json
platty status --project <project> --json
After inspecting JSON, explain the state in user-friendly language and recommend
one next action. If a response includes nextAction.command, treat that command
as the next step unless a Stop Condition or workflow gate below applies. EPIC
continuation should run the returned confirm-epics command automatically
unless the user explicitly requested manual EPIC review, and business documents
that are still running must not be synced yet.
For agent automation, inspect setup state with JSON output, but explain the result as a user-friendly setup status. Setup is often the user's first Platty experience, so do not lead with raw JSON, raw CLI output, or a list of commands.
Use these fields to populate the shared Operator UX cards from using-platty;
they are not a replacement card format. Setup progress and handoff messages
should still use the shared Start Notice, Progress Checkpoint, and Handoff Card
labels when those cards apply.
Setup-specific fields to include inside those cards or prose:
Checked: <what setup/status state was inspected>
State: <plain-language state with concrete fields>
Next: <one decision or action>
Evidence: <only the command/id/error code needed for handoff or debugging>
Natural language must still be precise. Include selected project, repository count, notable repository paths, analysis status, target-review status, run ids, or blocker codes when those fields explain the next step.
No project exists:
Projects exist but no project is selected:
Multiple projects or ambiguous project:
PROJECT_AMBIGUOUS only as blocker evidence, not as the whole message.Project selected but no repositories:
Repository already registered or duplicate-looking registrations:
Registered repository path is missing or invalid:
NOT_A_GIT_REPO, NOT_A_DIRECTORY, or the exact path as evidence.Repositories ready but analysis incomplete:
Analysis complete but target review pending:
EPIC confirmation pending:
confirm-epics command continues into business docs.Business documents running or incomplete:
CLI failure:
When setup reports that lower-level setup is still needed, preserve this sequence so agents can inspect project ids, repository ids, and next actions without relying on interactive prompts:
platty init --json
platty project list --json
platty project create "<name>" --description "<description>" --json
platty project use <project-id-or-name> --json
platty repo list --project <project> --json
platty repo add <path> --project <project> --json
platty repo list --project <project> --json
Use this decision order:
project list returns zero projects, ask for a project name or create the
requested project.project use.project use, run repo list before any repo add.1. A repository path is NEVER a project selector. Resolve <project> only from
the JSON output of project list / project create / project use.
2. On an existing project, run repo list BEFORE repo add. repo add does not
warn about duplicate names or dead repoPath entries — you must check.
3. Do not infer state location from cwd or the repository path. Run `platty init`
once to create the global Platty home, then register repositories explicitly.
project list, project create, or project use to determine the resolved project selector.repo add.<project> for repo add, repo list, and status.Add repositories inside the selected project:
platty repo list --project <project> --json
platty repo add <path> --project <project> --branch <branch> --json
platty repo list --project <project> --json
Use --source-root when only a subdirectory should be analyzed. Use --branch
when analysis should track a specific branch; without it, repo add tracks
whatever branch the repository currently has checked out.
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 run repo list before each
addition.
Branch rule:
main, the default branch, or any named
branch, include --branch <branch> in repo add; do not assume analyze
will move the source checkout.origin/HEAD, then an
existing main, then an existing master. Recommend that verified default
candidate, normally main or master. If the current branch differs,
present it second as an explicit alternative instead. Wait for confirmation,
then pass the confirmed value explicitly as --branch <branch>; never
silently register the feature checkout.platty repo update <repo-id-or-name> --branch <branch> --project <project> --json
analyze creates or refreshes the app-managed analysis worktree from the
stored repository branch. It does not infer a new branch from the current
shell checkout.For an existing project, run repo list BEFORE repo add and inspect the registered entries:
repoPath does not exist on disk (seeded or moved repos) — analysis pointed at them fails.repo add does not warn on duplicate names.platty repo update <repo-id-or-name> --path <new-path> --project <project> --json
platty repo remove <repo-id-or-name> --project <project> --json
project use or any --project command fails with PROJECT_AMBIGUOUS: stop and ask the user which project to use — never pick one of the matches yourself.repo add fails with NOT_A_GIT_REPO, NOT_A_DIRECTORY, or a nonexistent path: stop and report the path — do not retry with guessed path variants.repo update / repo remove fails with REPO_AMBIGUOUS or REPO_NOT_FOUND after you already re-checked repo list: stop and ask the user which registration to change.When setup is complete enough to continue, choose the next step from verified state:
| State | Human guidance | Agent check |
|---|---|---|
| Select or create project | In platty setup, choose Create or switch project. | platty setup --json |
| Inspect current project state | In platty setup, choose Manage current project. | platty setup --json |
| Static analysis | In Manage current project, choose Run static analysis. | platty status --project <project> --json |
| Target review | In Manage current project, review documentation targets before generating technical docs. | platty targets list --project <project> --json |
| Technical docs | In Manage current project, choose Generate technical docs. | When a run id exists, platty generate-docs status --project <project> --stage build_docs --run-id <run-id> --json |
| EPICs | In Manage current project, choose Generate EPICs or Confirm EPICs. Auto-run returned confirmation commands unless the user requested manual review. | Run the returned platty generate-docs confirm-epics --project <project> --run-id <run-id> --json command |
| Business docs | In Manage current project, choose Generate business docs. Inspect run state and ask before start. | When a run id exists, platty generate-docs status --project <project> --stage build_business_docs --run-id <run-id> --json |
| Sync | In Manage current project, choose sync only after source/repository changes and fresh static analysis. | platty sync static-map --project <project> --json, then sync plan and returned sync run / sync confirm commands |
End setup with the Platty handoff card. The State line must include the
selected project and registered repository count from JSON. The Recommended next line should normally be:
Recommended next: <state-derived command or bare platty setup for a human>
What SKILL.md sets; muted values are Claude Code's defaults
13 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-onboardingUse when Platty CLI and agent skills are already installed and a user wants the first end-to-end project journey from repository registration through static analysis and generated SOT, or wants to resume that multi-phase onboarding journey.npx claudepluginhub paradigmshift-labs/platty --plugin plattyOther plugins' skills for the same job