Skip to content

Commit 72476d1

Browse files
committed
docs: update documentation for skills
1 parent 57b0b56 commit 72476d1

11 files changed

Lines changed: 259 additions & 140 deletions

.claude-plugin/marketplace.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "spanner-marketplace",
3+
"interface": {
4+
"displayName": "Spanner Agent Skills"
5+
},
6+
"plugins": [
7+
{
8+
"name": "spanner",
9+
"source": {
10+
"source": "git",
11+
"url": "https://github.com/gemini-cli-extensions/spanner.git"
12+
},
13+
"policy": {
14+
"installation": "AVAILABLE",
15+
"authentication": "ON_INSTALL"
16+
},
17+
"category": "Database"
18+
}
19+
]
20+
}

.github/workflows/header-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: 'Checkout Repository'
27-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
27+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2828

2929
- name: Check License Header
3030
uses: apache/skywalking-eyes/header@61275cc80d0798a405cb070f7d3a8aaf7cf2c2c1 # v0.8.0

.github/workflows/json-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Check out code
26-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
26+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2727

2828
- name: Run JSON Lint
2929
run: jq . gemini-extension.json

.github/workflows/markdown-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Check out code
27-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
27+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2828

2929
- name: Link Checker
3030
uses: lycheeverse/lychee-action@a8c4c7cb88f0c7386610c35eb25108e448569cb0 # v2.7.0

.github/workflows/mirror-changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
steps:
2929
- name: Add Toolbox Release Notes to PR Body
30-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
30+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
3131
env:
3232
REQUIRED_KEYWORDS: 'spanner'
3333
with:

.github/workflows/package-and-upload-assets.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
steps:
4141
- name: Checkout code at the new tag
42-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
42+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
4343
with:
4444
ref: ${{ github.event.release.tag_name }}
4545

@@ -116,7 +116,7 @@ jobs:
116116
contents: write
117117
steps:
118118
- name: Checkout code
119-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
119+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
120120

121121
- name: Download all archives from workflow artifacts
122122
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8

.github/workflows/presubmit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Check out code
25-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
25+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2626

2727
- name: Install Gemini CLI
2828
run: npm install @google/gemini-cli

DEVELOPER.md

Lines changed: 11 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# DEVELOPER.md
22

33
This document provides instructions for setting up your development environment
4-
and contributing to the Spanner Gemini CLI Extension project.
4+
and contributing to the Spanner Agent Skills project.
55

66
## Prerequisites
77

@@ -10,44 +10,29 @@ Before you begin, ensure you have the following:
1010
1. **Gemini CLI:** Install the Gemini CLI version v0.6.0 or above. Installation
1111
instructions can be found on the official Gemini CLI documentation. You can
1212
verify your version by running `gemini --version`.
13-
2. **Spanner Instance:** For testing data plane tools, you will need access to an active Spanner instance and database.
13+
2. **Spanner Instance:** For testing data plane skills, you will need access to an active Spanner instance and database.
1414

1515
## Developing the Extension
1616

1717
### Running from Local Source
1818

19-
The core logic for this extension is handled by a pre-built `toolbox` binary. The development process involves installing the extension locally into the Gemini CLI to test changes.
20-
2119
1. **Clone the Repository:**
2220

2321
```bash
2422
git clone https://github.com/gemini-cli-extensions/spanner.git
2523
cd spanner
2624
```
2725

28-
2. **Download the Toolbox Binary:** The required version of the `toolbox` binary
29-
is specified in `toolbox_version.txt`. Download it for your platform.
30-
31-
```bash
32-
# Read the required version
33-
VERSION=$(cat toolbox_version.txt)
34-
35-
# Example for macOS/amd64
36-
curl -L -o toolbox https://storage.googleapis.com/mcp-toolbox-for-databases/geminicli/v$VERSION/darwin/amd64/toolbox
37-
chmod +x toolbox
38-
```
39-
Adjust the URL for your operating system (`linux/amd64`, `darwin/arm64`, `windows/amd64`).
40-
41-
3. **Link the Extension Locally:** Use the Gemini CLI to install the
26+
2. **Install the Extension Locally:** Use the Gemini CLI to install the
4227
extension from your local directory.
4328

4429
```bash
45-
gemini extensions link .
30+
gemini extensions install .
4631
```
47-
The CLI will prompt you to confirm the linking. Accept it to proceed.
32+
The CLI will prompt you to confirm the installation. Accept it to proceed.
4833

49-
4. **Testing Changes:** After linking, start the Gemini CLI (`gemini`).
50-
You can now interact with the `spanner` tools to manually test your changes
34+
3. **Testing Changes:** After installation, start the Gemini CLI (`gemini`).
35+
You can now interact with the `spanner` skills to manually test your changes
5136
against your connected database.
5237

5338
## Testing
@@ -58,9 +43,9 @@ A GitHub Actions workflow (`.github/workflows/presubmit-tests.yml`) is triggered
5843
for every pull request. This workflow primarily verifies that the extension can
5944
be successfully installed by the Gemini CLI.
6045

61-
Currently, there are no automated unit or integration test suites
62-
within this repository. All functional testing must be performed manually. All tools
63-
are currently tested in the [MCP Toolbox GitHub](https://github.com/googleapis/genai-toolbox).
46+
All skills are currently tested in the [MCP Toolbox GitHub](https://github.com/googleapis/mcp-toolbox).
47+
48+
The skills themselves are validated using the `skills-validate.yml` workflow.
6449

6550
### Other GitHub Checks
6651

@@ -73,17 +58,6 @@ are currently tested in the [MCP Toolbox GitHub](https://github.com/googleapis/g
7358
* **Dependency Updates:** [Renovate](https://github.com/apps/forking-renovate)
7459
is configured to automatically create pull requests for dependency updates.
7560

76-
## Building the Extension
77-
78-
The "build" process for this extension involves packaging the extension's
79-
metadata files (`gemini-extension.json`, `spanner.md`, `LICENSE`) along with the
80-
pre-built `toolbox` binary into platform-specific archives (`.tar.gz` or `.zip`).
81-
82-
This process is handled automatically by the
83-
[`package-and-upload-assets.yml`](.github/workflows/package-and-upload-assets.yml)
84-
GitHub Actions workflow when a new release is created. Manual building is not
85-
required.
86-
8761
## Maintainer Information
8862

8963
### Team
@@ -101,7 +75,7 @@ The release process is automated using `release-please`. It consists of an autom
10175
#### Automated Changelog Enrichment
10276

10377
Before a Release PR is even created, a special workflow automatically mirrors
104-
relevant changelogs from the core `googleapis/genai-toolbox` dependency. This
78+
relevant changelogs from the core `googleapis/mcp-toolbox` dependency. This
10579
ensures that the release notes for this extension accurately reflect important
10680
upstream changes.
10781

@@ -138,7 +112,3 @@ The process is handled by the [`mirror-changelog.yml`](.github/workflows/mirror-
138112
2. **Merge Release PR:** A maintainer approves and merges the Release PR. This
139113
action triggers `release-please` to create a new GitHub tag and a
140114
corresponding GitHub Release.
141-
3. **Package and Upload:** The new release triggers the
142-
`package-and-upload-assets.yml` workflow. This workflow builds the
143-
platform-specific extension archives and uploads them as assets to the
144-
GitHub Release.

0 commit comments

Comments
 (0)