agentsclimarketplace

Specgate project setup

Skill thanhtung2693/specgate/plugins/skills/specgate-project-setup

Governed handoff and evidence verification for AI coding agents.

Install
npx -y skills add thanhtung2693/specgate --skill specgate-project-setup

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when SpecGate is being initialized or configured for a repository, its workspace binding is missing, IDE plugins need installation or refresh, or setup diagnostics fail.

SKILL.md

4.6 KB, as published. Nobody here has run it

Setting Up SpecGate

Apply the SpecGate operating contract. This phase configures SpecGate; it does not create specifications or product work.

1. Ensure the CLI is available

Use the host shell's command lookup before running any SpecGate command:

command -v specgate
Get-Command specgate -ErrorAction SilentlyContinue

When lookup succeeds, run specgate --version and continue to inspect the current state.

Installing from skills.sh does not install the SpecGate CLI; it provides agent instructions only. If the command is missing on macOS, Linux, or WSL2, show the user the exact installer command and wait for explicit approval before running it:

curl -fsSL https://raw.githubusercontent.com/thanhtung2693/specgate/main/scripts/install-cli.sh | sh

A general request to set up or initialize SpecGate is not approval to download and execute the installer. On native Windows, offer WSL2 with the command above or direct the user to https://github.com/thanhtung2693/specgate/releases/latest; do not invent a PowerShell installer. After installation, run specgate --version. If lookup still fails, report the install path and PATH recovery printed by the installer.

Completion criterion: the installed CLI version is recorded, or setup is paused for explicit installer approval or native Windows installation.

2. Inspect the current state

specgate doctor --json

Use the doctor's reported state and recovery action. In an existing topology, follow that recovery action instead of rerunning initialization or switching mode. Initialization is required only when doctor reports no initialized topology.

Completion criterion: every failing doctor check is recorded, or doctor confirms the current topology is healthy.

3. Initialize only when required

The user chooses Local or Full mode; never infer that product decision from Docker, a URL, or installed software. In an interactive terminal, run exactly the chosen mode:

specgate init --mode local
specgate init --mode full

For noninteractive Local initialization, collect the user's identity values and run:

specgate init --mode local --no-input \
  --workspace-name "<workspace>" \
  --display-name "<display name>" \
  --username "<username>"

Use specgate init --help for Full or non-default noninteractive deployment options. Do not purge, replace, or migrate existing data as part of setup.

Completion criterion: the chosen mode is initialized, or the exact failed command and its recovery action are reported.

4. Select and bind the workspace

specgate user current --json
specgate workspace current --json

If identity or workspace selection is missing or ambiguous, stop for the user to choose it. specgate init binds the checkout where it runs. If workspace current reports this checkout as unbound, bind it with:

specgate workspace bind

Bind only when the current repository binding is missing, incorrect, or explicitly requested; a plugin-only refresh leaves a correct binding unchanged.

Completion criterion: specgate workspace current --json identifies the intended workspace and the repository binding is correct or deliberately left unchanged.

5. Install or refresh the selected IDE integration

Read the session ownership context. If the IDE plugin manager owns SpecGate, skip plugin install and doctor for that IDE. Use that manager for plugin changes.

Otherwise, the user chooses the IDE and whether its files are user-global or project-local. Preview the exact scope, then install it noninteractively:

specgate plugins install --agent <codex|claude|cursor> --dry-run --no-input
specgate plugins install --agent <codex|claude|cursor> --no-input

Add --project-local to both commands only when that scope was selected. Do not install every IDE or change scope merely because an executable is present.

Completion criterion: one owner, selected IDE and scope only.

6. Verify and hand off

specgate doctor --json
specgate workspace current --json
specgate plugins doctor --agent <codex|claude|cursor> --json

Run plugin doctor only for a CLI-installed integration; add --project-local when needed. Otherwise use the IDE plugin manager. Restart the IDE after plugin changes.

Completion criterion: SpecGate, workspace, and selected IDE integration are healthy. On failure, report the failed command and recovery action.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.