Skip to main content
← All tools

Shelf

Find your other repositories and what each one does

DevelopmentSchema v1.1.0Maintained by mcclowes

Give your agents the context

Install Shelf first. This command installs its capability description and registers your local executable. It doesn't install or run the tool.

clip registry add shelf --purpose "Find your other repositories and what each one does"
clip sync

Coverage: Shelf 0.4.0 repository lookup, relations, scanning, description overrides, agent guidance, and offline introspection. This is a partial community description, not a claim of full CLI Spec conformance. Missing mutation markers mean unknown.

Agent validation

This schema hasn't been run against its tool by an agent yet.

How validation works ↗

what's described

Capabilities

Mutation status unknown

shelf scan

Rebuild the index from local roots and GitHub owners. Flags replace the saved roots or owners; without them the saved ones are reused. Reads files only; never runs anything inside a repository.

shelf scan --root ~/Development --github OWNER
Mutation status unknown

shelf list

List indexed repositories with their descriptions. Creates a missing index or refreshes one older than 24 hours unless --no-refresh is set.

shelf list --undescribed --limit 20 --output json
shelf list --undescribed --limit 20 --output json --no-refresh
Mutation status unknown

shelf search

Find repositories by name, description, topic, language, or relation explanations. Maintains the index and agent skills unless --no-refresh is set.

shelf search billing api --limit 20 --output json
shelf search billing api --limit 20 --output json --no-refresh
Mutation status unknown

shelf show

Show one repository: path, remote, branch, language, manifests, agent files, and related repositories. Maintains the index and agent skills unless --no-refresh is set.

shelf show clip --output json
shelf show clip --output json --no-refresh
Mutation status unknown

shelf describe

Set or clear a description override that survives rescans.

shelf describe delta "Payments service for the web app"
Mutation status unknown

shelf related

List repositories related to one, in both directions: those it declares in its .shelf.json, those declaring it, and your local relations. Local relations replace repo-file ones between the same pair. Maintains the index and agent skills unless --no-refresh is set.

shelf related clip --no-refresh --limit 20 --output json
Mutation status unknown

shelf relate

Record a relation on this machine only, from one repository to another. It survives rescans and moves.

shelf relate clip shelf "Uses the repository index"
Mutation status unknown

shelf sync

Update Shelf guidance for detected Claude and Codex installations and saved custom destinations.

shelf sync --skills-dir ./skills
Read operation

shelf schema

Describe Shelf offline.

shelf schema --limit 20 --output json
Read operation

shelf capabilities

Alias for Shelf schema introspection.

shelf capabilities --limit 20 --output json

Inspect the source

Review the schema's arguments and output fields before use. Community descriptions provide context, not authorization.

Full capability document
{
  "name": "shelf",
  "version": "0.4.0",
  "description": "Index your repositories so agents get context on other projects without walking the filesystem. Community schema verified against Shelf 0.4.0. Lookup commands maintain saved state and agent guidance unless --no-refresh is set.",
  "command_layout": "flat",
  "output": {
    "tty": "text",
    "piped": "json"
  },
  "global_args": [
    {
      "name": "--output",
      "aliases": [
        "-o"
      ],
      "type": "string",
      "enum": [
        "auto",
        "json",
        "text"
      ],
      "default": "auto",
      "description": "Output format."
    },
    {
      "name": "--limit",
      "type": "integer",
      "default": 100,
      "description": "Maximum list results, between 1 and 10000."
    },
    {
      "name": "--help",
      "aliases": [
        "-h"
      ],
      "type": "boolean",
      "description": "Describe the command interface."
    },
    {
      "name": "--version",
      "type": "boolean",
      "description": "Show Shelf version."
    },
    {
      "name": "--no-refresh",
      "type": "boolean",
      "description": "Use cached state without automatic scanning or agent skill updates.",
      "required": false
    }
  ],
  "commands": [
    {
      "name": "scan",
      "description": "Rebuild the index from local roots and GitHub owners. Flags replace the saved roots or owners; without them the saved ones are reused. Reads files only; never runs anything inside a repository.",
      "mutating": true,
      "args": [
        {
          "name": "--root",
          "type": "string",
          "description": "Directory to search for Git repositories; repeatable. Defaults to ~/Development on first scan.",
          "required": false
        },
        {
          "name": "--github",
          "type": "string",
          "description": "GitHub user or organization to list through gh; repeatable.",
          "required": false
        },
        {
          "name": "--no-github",
          "type": "boolean",
          "description": "Stop scanning GitHub owners.",
          "required": false
        },
        {
          "name": "--depth",
          "type": "integer",
          "description": "How many directories deep to look under each root.",
          "required": false,
          "default": 4
        }
      ],
      "examples": [
        "shelf scan --root ~/Development --github OWNER"
      ]
    },
    {
      "name": "list",
      "description": "List indexed repositories with their descriptions. Creates a missing index or refreshes one older than 24 hours unless --no-refresh is set.",
      "mutating": true,
      "args": [
        {
          "name": "--undescribed",
          "type": "boolean",
          "description": "Only repositories with no description.",
          "required": false
        }
      ],
      "examples": [
        "shelf list --undescribed --limit 20 --output json",
        "shelf list --undescribed --limit 20 --output json --no-refresh"
      ],
      "output_fields": [
        {
          "name": "items",
          "type": "array"
        },
        {
          "name": "total",
          "type": "integer"
        },
        {
          "name": "truncated",
          "type": "boolean"
        },
        {
          "name": "scanned_at",
          "type": "string"
        }
      ]
    },
    {
      "name": "search",
      "description": "Find repositories by name, description, topic, language, or relation explanations. Maintains the index and agent skills unless --no-refresh is set.",
      "mutating": true,
      "args": [
        {
          "name": "query",
          "type": "string",
          "description": "Search words; all must match.",
          "required": true
        }
      ],
      "examples": [
        "shelf search billing api --limit 20 --output json",
        "shelf search billing api --limit 20 --output json --no-refresh"
      ],
      "output_fields": [
        {
          "name": "items",
          "type": "array",
          "description": "Matching repositories with id, name, path, remote, and description."
        },
        {
          "name": "total",
          "type": "integer"
        },
        {
          "name": "truncated",
          "type": "boolean"
        },
        {
          "name": "scanned_at",
          "type": "string"
        }
      ]
    },
    {
      "name": "show",
      "description": "Show one repository: path, remote, branch, language, manifests, agent files, and related repositories. Maintains the index and agent skills unless --no-refresh is set.",
      "mutating": true,
      "args": [
        {
          "name": "repo",
          "type": "string",
          "description": "Id, name, owner/name, or path.",
          "required": true
        }
      ],
      "examples": [
        "shelf show clip --output json",
        "shelf show clip --output json --no-refresh"
      ]
    },
    {
      "name": "describe",
      "description": "Set or clear a description override that survives rescans.",
      "mutating": true,
      "args": [
        {
          "name": "repo",
          "type": "string",
          "description": "Id, name, owner/name, or path.",
          "required": true
        },
        {
          "name": "text",
          "type": "string",
          "description": "One-sentence description.",
          "required": false
        },
        {
          "name": "--clear",
          "type": "boolean",
          "description": "Remove the override.",
          "required": false
        }
      ],
      "examples": [
        "shelf describe delta \"Payments service for the web app\""
      ]
    },
    {
      "name": "related",
      "description": "List repositories related to one, in both directions: those it declares in its .shelf.json, those declaring it, and your local relations. Local relations replace repo-file ones between the same pair. Maintains the index and agent skills unless --no-refresh is set.",
      "mutating": true,
      "args": [
        {
          "name": "repo",
          "type": "string",
          "description": "Id, name, owner/name, or path.",
          "required": true
        }
      ],
      "examples": [
        "shelf related clip --no-refresh --limit 20 --output json"
      ]
    },
    {
      "name": "relate",
      "description": "Record a relation on this machine only, from one repository to another. It survives rescans and moves.",
      "mutating": true,
      "args": [
        {
          "name": "repo",
          "type": "string",
          "description": "Id, name, owner/name, or path.",
          "required": true
        },
        {
          "name": "other",
          "type": "string",
          "description": "The related repository.",
          "required": true
        },
        {
          "name": "text",
          "type": "string",
          "description": "How they relate, from the first repository's side.",
          "required": false
        },
        {
          "name": "--clear",
          "type": "boolean",
          "description": "Remove the local relation.",
          "required": false
        }
      ],
      "examples": [
        "shelf relate clip shelf \"Uses the repository index\""
      ]
    },
    {
      "name": "sync",
      "description": "Update Shelf guidance for detected Claude and Codex installations and saved custom destinations.",
      "mutating": true,
      "args": [
        {
          "name": "--skills-dir",
          "type": "string",
          "description": "Write and remember this destination instead. Defaults to detected agent directories, or ~/.claude/skills when none are detected.",
          "required": false
        }
      ],
      "examples": [
        "shelf sync --skills-dir ./skills"
      ]
    },
    {
      "name": "schema",
      "description": "Describe Shelf offline.",
      "mutating": false,
      "args": [],
      "examples": [
        "shelf schema --limit 20 --output json"
      ]
    },
    {
      "name": "capabilities",
      "description": "Alias for Shelf schema introspection.",
      "mutating": false,
      "args": [],
      "examples": [
        "shelf capabilities --limit 20 --output json"
      ]
    }
  ],
  "errors": [
    {
      "kind": "invalid_request",
      "exit_code": 1,
      "retryable": false,
      "description": "Invalid input, missing index, gh failure, or local I/O failure; read message for remediation."
    }
  ],
  "documentation": "https://github.com/mcclowes/shelf/blob/v0.4.0/README.md"
}

View source and propose an update ↗

SHA-256: e2322bcf76ca870229174967e0a028760c2e748debd91df1b6b6b5d714d0a572