agentleFS
letsshipletsship/skills/skills/ship-setup/SKILL.md

ship-setup

Skill1 starsChanged 34 days agoMITView on GitHub

Use when the user wants to set up or install SHIP in this repository, or when another SHIP skill says to run the setup first. It installs the ship CLI, writes the SHIP skills into the repository and connects them to a SHIP token. For example, the user says "set up https://letsship.ai/SKILL.md", "install SHIP" or "connect this repo to SHIP".

  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. leosimini/keelokit★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository6 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Do not install an older version to match an old skill copy.

    line 21
  2. Very specific:

    If a copy already exists, ship init writes nothing and names the file.

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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 SHIP

SHIP runs a team of AI coding agents that plan, build, review and test changes to a repository. The ship CLI is how you hand work to that agent team. This document installs the CLI and the skills that teach you each SHIP capability. Do these steps one time in each repository, and again when the CLI has a new version.

1. Install or upgrade the CLI

This document is the hosted copy, so always install the latest CLI. The same command installs the CLI or upgrades it.

npm install -g @lets-ship/cli@latest
ship --version

Do not install an older version to match an old skill copy. Upgrade the CLI and write the skills again.

2. Write the skills into the repository

ship init          # --force replaces copies that are stale or edited

The command writes one skill for each SHIP capability into .claude/skills/. The version in the frontmatter of each copy is the CLI version that wrote it. Later sessions read the local copies and do not fetch them again.

SkillUse it to
ship-delegateHand a plan, a spec or a finished branch to SHIP.
ship-missionsRead the state of a mission, send it instructions, control it, and read its preview, proof and credits.
ship-agent-runsRead the runs of the agents of a mission, their cost and their logs, and stop one run.
ship-scheduled-tasksRun missions on a schedule.
ship-mcp-serversLet the agents use the MCP servers that the repository declares.
ship-sandboxesAdd runtimes and tools to the sandbox that the agents run in, and read the agent capacity.

If a copy already exists, ship init writes nothing and names the file. If the version of a copy is older than ship --version, run ship init --force. That replaces every copy, and edits to the copies are lost.

The same skills are in the discovery index at https://letsship.ai/.well-known/agent-skills/index.json. An agent that reads skills from the web can fetch them from there. The skills CLI reads that index, and it also reads the public repository:

npx skills add https://letsship.ai
npx skills add letsship/skills

3. Get a token

SHIP_API_TOKEN is a personal access token. A person creates it in the SHIP console at https://letsship.ai/settings/tokens. You cannot create a token yourself, because the API refuses a token request that comes from another token. Ask the user to create a token and export it:

export SHIP_API_TOKEN=pat_...

Each skill names the scopes that its commands need. Ask for the scopes of the skills that the user wants, and no more. The user can also limit the token to one project. Then the token can only reach the missions, runs, environments, artifacts and scheduled tasks of that project. Suggest a project token when the work is about one project.

To see the tokens of the user, or to revoke one that leaked or is no longer in use, run:

ship token list
ship token revoke tok-pat-9b8e2a3f

The list shows only the tokens of the person who created the current token, never a secret. A revoked token fails at once, and nobody can make it work again. Revoke a token only when the user asks for it.

For the complete rules about SHIP credentials, read https://letsship.ai/auth.md.

4. Check the token

ship whoami

The command prints the user, the organization, the role and the scopes of the token. For a project token, it also prints the project. If the command exits 3, the token is not set or not valid. Ask the user for a new token.

ship setup

The command prints each step of the setup checklist, and whether the organization did it. For a step that is not done, it also prints a link to its page. Use it to tell the user the next step.

5. Find the project

ship project list
ship project get prj_123

ship project list lists the projects that the token can reach, each with its id and its repository. Find the project of this repository, then give --project <id> to the commands that need it, or export SHIP_PROJECT_ID. If more than one project uses the repository, ask the user which one. Do not guess a project id. ship project get shows the repository, the tracker and the default sandbox of one project.

ship project update prj_123 --name web-app
ship project update prj_123 --status paused
ship project update prj_123 --auto-merge on

ship project update changes the settings of a project, and only the ones that you give. A paused or archived project starts no new missions. With auto-merge on, SHIP merges each ready pull request of the project, and no person merges it. The flags --repo and --linear-team connect the project to another repository or Linear team. Only an owner or an admin can change a project, and the token needs projects:admin. Change a project only when the user asks for it.

6. Choose the platform

ship talks to https://api.letsship.ai/v1, the production API. For a staging or self-hosted platform, set SHIP_API_BASE_URL. The console links that the CLI prints then point to the same platform.

When something fails

Exit codeMeaningWhat to do
3The token is not set, or it does not have the scope that the command needs.Ask the user for a token with that scope. Do not retry with the same token.
6The organization did not finish the onboarding in the console.Ask the user to finish the onboarding.

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.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.