Install skill

From Lilac-Labs/gini-agent · View interactive version

Install skill is an AI agent skill from the GitHub repository Lilac-Labs/gini-agent. Install a pasted SKILL.md (or one fetched from a URL or file path) into the user-skill directory, reviewing risk and connector requirements.

How to use this skill

Skill file

Install Skill

You install a SKILL.md the user supplied — pasted text, a URL, or a

file path — into the runtime's user-skills directory. You also review risk

and surface the credentials the new skill will need.

When To Use

Procedure

  1. Acquire the SKILL.md text:

the host is not HTTPS unless it's localhost.

  1. Validate the SKILL.md against the spec without writing to disk:

```bash

bun run gini skill validate /tmp/incoming-skill.md

```

name, trim the description, move legacy fields under

metadata.gini.*). If the issues are substantive (referencing a

credential that isn't configured), see step 4.

  1. Review the scripts and the body for risk. Read every sidecar file

the user provided. Summarize for the user:

  1. Resolve the credential requirements declared under

metadata.gini.requires.credentials (a list of credential names). An

incoming skill may instead carry the legacy

metadata.gini.requires.connectors (with provider: items); that form

is still accepted, but rewrite it to requires.credentials names

(e.g. linear → LINEAR_API_KEY, google-oauth-desktop →

google-workspace-oauth) when you install:

the user already has a healthy credential with that name.

and does not need a credential-managed account, credential, remote API,

or local integration, remove the credential requirement. Record

command requirements under metadata.gini.prerequisites.commands.

Default to forward motion — but forward motion means "install,

then prompt," not "install, then stop." Keep the requirement and

install the skill (step 6). You MUST then prompt for the missing

credential(s) in chat at step 7 (which is mandatory); do not present

an install / hold-off binary choice, and do not treat installation as

the finish line.

  1. Surface the allowed-tools declaration to the user. Read the

skill's frontmatter allowed-tools value (space-separated) and

summarize for the user: "This skill declares it will use:

<tool list>. The audit trail records every invocation."

  1. Install via the API:

```bash

curl -sS -X POST http://localhost:<runtime-port>/api/skills \

-H "authorization: Bearer $GINI_TOKEN" \

-H "content-type: application/json" \

-d "$(jq -nc \

--arg body "$(cat /tmp/incoming-skill.md)" \

'{ body: $body }')"

```

The endpoint writes the file flat under

~/.gini/instances/<instance>/skills/<name>/SKILL.md, triggers a

loader reload, and returns the new enabled SkillRecord. User-installed

skills never nest under a category subfolder.

  1. **MANDATORY — prompt for every missing credential before you report

the skill ready. Installing the skill is NOT the end of the task.**

The install response (step 6) returns the new SkillRecord — use its

id as the skillId. Then:

1. Re-read the installed skill's metadata.gini.requires.credentials

list.

2. For EACH credential name in that list, check GET /api/connectors

for an existing healthy credential with that name.

3. For EACH credential that is still missing, you MUST call

request_connector so the user enters it securely. Do this for

every missing credential — do not skip any, do not batch them into

prose, do not defer to "the next time the skill runs":

e.g. LINEAR_API_KEY → linear): request_connector with that

provider id plus skillId.

with `{name: "<CREDENTIAL_NAME>", type: "<api-key|oauth2>",

skillId: "<installed skill id>", reason: "<what the credential is

for and where to get it>"}. Infer type` from the name: an

UPPER_SNAKE env-var token (e.g. SOME_SERVICE_API_KEY) is

api-key; a kebab handle is oauth2.

Do not stop after "installed." A skill with a missing required

credential is NOT ready to use — it stays inactive until the credential

is granted. You may report the skill as ready ONLY when either every

required credential has been provided (each request_connector card

completed) OR the user has explicitly declined to provide it. If the

user has not yet responded to a card, the task is still in progress;

wait for it, do not declare completion.

Completing the card stores the credential as a typed record AND grants

it to the installed skill — the skill activates once all its

credentials are granted, so there is no separate grant step and no

/skills trip. The secure card captures the secret server-side; the

value never enters the chat transcript.

The /skills page (find the installed skill's row, click the inline

[Set up <Credential>] button) is a fallback only — use it if the

secure card cannot render (e.g. the conversation is not in the web

chat).

Rules

the scripts (binary blobs, opaque URLs), refuse the install and tell the

user why.

stop the install flow to ask permission. Do not add a credential

requirement for skills that only need local commands or an

already-authenticated CLI.

credential via request_connector (step 7) is MANDATORY, not optional.

Never report the skill as installed/ready and then stop while a required

credential is still missing — the skill is inactive until it is granted.

The post-install prompt must happen in the SAME turn as the install, not

deferred to a later on-demand run.

command. A secret on a command line lands in your context, the audit

trail, and process listings. Always use request_connector so the value

is captured server-side through the secure card and never enters the

transcript.

user-source records.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.