agentleFS
HazATHazAT/pi-config/skills/setup-superconductor-project/SKILL.md

setup-superconductor-project

Skill451 starsChanged 7 months agoMITView on GitHub

Configures a repository for super.engineering with repo-owned worktree setup and development-server scripts. Use when asked to "make this project Superconductor ready", "set up super.engineering", "add worktree setup", or "configure the dev server".

  • Installs packages

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 8 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run sc instructions project and sc project scripts --help before mutation.

    line 14
  2. Distinctive:

    Treat live instructions and current help as authoritative.

    line 24
  3. Very specific:

    Read repository instruction files, the existing .superconductor/config.json when present, root manifests, lockfiles, workspace …

    line 28
  4. Very specific:

    Prefer an existing dev or start script for the default run target.

    line 33
  5. Distinctive:

    Ask one focused question when the package manager, run script, or intended service is ambiguous.

    line 37
  6. Distinctive:

    Do not invent teardown, stop, or cleanup commands.

    line 39
  7. Very specific:

    Use repo scope so managed worktrees inherit the configuration.

    line 43
  8. Distinctive:

    If no setup command is needed, do not add an empty one.

    line 50
  9. Distinctive:

    Run the setup command once when it is safe and non-destructive.

    line 60
  10. Very specific:

    Start the configured target through sc project scripts run <name> --json.

    line 61
  11. Distinctive:

    When the service exposes HTTP and its port is known from evidence, request its IPv4 loopback URL and require a successful response.

    line 63
  12. Distinctive:

    Stop the target after verification unless the user asked to leave it running, then verify it is idle.

    line 64
  13. Distinctive:

    Leave the configuration uncommitted unless the user separately requests a commit.

    line 89

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Set Up a Superconductor Project

Configure the current repository's .superconductor/config.json through the supported sc project scripts interface. Do not create a worktree, commit, push, or open a browser unless separately requested.

Step 1: Load Live Guidance

  1. Read ~/.pi/agent/skills/superconductor/SKILL.md.
  2. Run sc instructions project and sc project scripts --help before mutation.
  3. Inspect current state:
sc project scripts --json
sc project scripts check --json
sc worktree status --json
git status --short --branch

Treat live instructions and current help as authoritative.

Step 2: Derive Commands from Repository Evidence

Read repository instruction files, the existing .superconductor/config.json when present, root manifests, lockfiles, workspace configuration, and package scripts.

Choose commands only when repository evidence supports them:

  • Derive setup from the committed package-manager lockfile, such as pnpm install --frozen-lockfile or npm ci.
  • Prefer an existing dev or start script for the default run target.
  • Inspect the framework CLI help before adding host, port, or forwarding arguments. Do not guess flag syntax.
  • For a browser-facing development server, configure an IPv4-reachable bind address when the framework supports it; verify the exact invocation. For example, Astro accepts pnpm run dev --host 0.0.0.0, while other frameworks differ.
  • Preserve an existing valid setup or run command unless evidence shows it is wrong.
  • Ask one focused question when the package manager, run script, or intended service is ambiguous.

Do not invent teardown, stop, or cleanup commands. Add them only when the repository already defines the required lifecycle behavior.

Step 3: Write Repo-Owned Configuration

Use repo scope so managed worktrees inherit the configuration. Use sc, not direct JSON replacement, because it preserves unknown fields and validates atomically.

sc project scripts set setup "<verified setup command>" --scope repo --json
sc project scripts set run devserver --default "<verified run command>" --scope repo --json

If no setup command is needed, do not add an empty one. If the repository already has multiple named run targets, preserve them and choose a descriptive name for the new target rather than replacing unrelated entries.

Step 4: Verify

  1. Validate the resulting config:
sc project scripts check --json
  1. Run the setup command once when it is safe and non-destructive.
  2. Start the configured target through sc project scripts run <name> --json.
  3. Confirm sc project scripts status --json reports it running.
  4. When the service exposes HTTP and its port is known from evidence, request its IPv4 loopback URL and require a successful response.
  5. Stop the target after verification unless the user asked to leave it running, then verify it is idle.
  6. Inspect .superconductor/config.json, git diff, and git status --short.

A successful process launch without a reachable service is not sufficient verification for a browser-facing app.

Step 5: Report

Report:

Configured `.superconductor/config.json`:
- Setup: `<command>` or none
- Default run target: `<name>` — `<command>`

Verification:
- Config validation — pass/fail
- Setup — pass/skipped with reason
- Runtime state — running/failed
- Service check — URL and result, or not applicable
- Final runtime state — idle or intentionally left running

Files changed:
- `.superconductor/config.json`

Leave the configuration uncommitted unless the user separately requests a commit.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.