agentleFS
suyashb734suyashb734/cliagents/.agents/skills/adding-adapters/SKILL.md

adding-adapters

Skill19 starsChanged 7 months agoMITView on GitHub

Use when creating, modifying, or reviewing a cliagents provider adapter for a CLI tool such as Codex, Claude Code, Gemini CLI, Qwen CLI, or OpenCode.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Add focused tests for availability, command construction, working directory, model selection, timeout/error behavior, and child readiness.

    line 32
  2. Distinctive:

    Do not duplicate adapter documentation here.

    line 37
  3. Distinctive:

    Do not advertise collaborator readiness until provider-thread continuity is tested.

    line 38
  4. Distinctive:

    Do not add an adapter to broad routing surfaces if status detection, availability/auth checks, or working-directory behavior is unknown.

    line 40
  5. Distinctive:

    Keep provider-specific hacks behind the adapter boundary.

    line 42

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

Adding Adapters

This is a thin repo-local skill. Do not treat this file as the adapter specification.

Canonical Docs

Read these first:

  • docs/INDEX.md for canonical documentation status.
  • docs/adding-adapters.md for the adapter implementation guide.
  • docs/reference/ADAPTER-CONTRACT.md for required lifecycle and capability metadata.
  • docs/research/CHILD-ADAPTER-RELIABILITY.md for live child/collaborator readiness expectations.

Workflow

  1. Identify whether the change is a direct-session adapter, persistent runtime path, child-session behavior, or model-routing change.
  2. Inspect the nearest existing adapter with the same execution style.
  3. Implement against src/core/base-llm-adapter.js and publish capabilities through src/adapters/contract.js when applicable.
  4. Wire registration and routing only after the adapter has availability, launch/send/resume, failure classification, and usage behavior documented.
  5. Add focused tests for availability, command construction, working directory, model selection, timeout/error behavior, and child readiness.

Guardrails

  • Do not duplicate adapter documentation here.
  • Do not advertise collaborator readiness until provider-thread continuity is tested.
  • Do not add an adapter to broad routing surfaces if status detection, availability/auth checks, or working-directory behavior is unknown.
  • Keep provider-specific hacks behind the adapter boundary.

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.