agentleFS
asafoferasafofer/perch/.claude/skills/add-provider/SKILL.md

add-provider

Skill39 starsChanged 43 days agoMITView on GitHub

Connect a new provider to Perch (an agent, an app sessions run in, or a terminal host) and test it. Use when asked to support, add, spike or check a new agent, app or terminal, or to say what one can do.

  • Commits and pushes

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-migration, add-tool and 4 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • PipelexSkill

    add-migration

    Write a migration ledger entry for a configuration schema change in pipelex, so that a user's existing file can be repaired instead of thrown away. Use when `make check-migration-schemas` (alias `cmig`) or `make check-ledger` (alias `cl`) refuses a change, when the user says "add a migration", "write the ledger entry", "the coverage gate is failing", "bump the schema version", "migration entry", "the migration gate won't let me", "account for this schema change", or after any edit to a configuration model that removed a key, renamed one, moved one, retired an enum member, or tightened what a value may be. This is the only skill that writes a ledger.

    Also in 3 projects that use this

  • MicrosoftSkill

    add-tool

    Add a new tool to PilotSwarm. Covers defining the tool with defineTool(), registering it on the worker (worker-level or per-session), referencing it from the client via toolNames, and adding an integration test.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    release-notes

    Author and update release notes for Azure App Configuration libraries and providers. USE FOR: write release notes, add release note entry, update release notes, draft release notes, new version release notes, format release notes. DO NOT USE FOR: generating changelogs from git history, writing internal engineering notes.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    verify

    End-to-end app testing pipeline for browser-based web apps on cloud browsers via Azure Playwright Workspaces: verify the live app, author tests for working flows, heal failing tests, then re-run with video and produce one consolidated report. Three phases (app verification, test authoring, test healing) plus a scoped final sanity run; each phase emits a sub-report. Use when asked to "verify my app", "make sure my app works and has good test coverage", "do a full QA pass", "add tests where I'm missing coverage", "fix failing tests and add new ones", "smoke test before deploy", "QA my deployment", or any combined verify-and-test ask. Requires Azure CLI (`az login`) and a Playwright Workspace resource ID — bootstraps configs on first invocation. Browser-based web apps with Playwright only — not for unit/API tests, native mobile/desktop, load/perf, or full accessibility audits.

    Also in 3 projects that use this

  • MicrosoftSkill

    release

    Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).

    Also in 4 projects that use this

  • SentrySkill

    commit

    Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 20 edited versions we read keep these.

  • 1

    Distinctive

    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:

    Pull requests: Do tool results with the gh pr create address reach its log?

    line 29
  2. Distinctive:

    Follow the nearest existing provider and touch only what its row needs:

    line 42
  3. Very specific:

    Hooks in a stand-in home: before your real config: PERCH_HOME=<short folder> .build/debug/Perch --install-hooks <id>, then the tool run …

    line 59

“Common” is measured: kept by at least 6 in 10 of the 20 edited versions of this file we could read. “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 a provider

A provider earns a row in providers.md. That row is the contract: every cell ends as ✓, ~ with its limit, ✗ with the reason, or — . Work in three stages, each finished before the next: spike, design, build.

1. Spike: what is possible

Install the real tool and drive it; a stand-in or the docs alone tell you what should happen, not what does. Ask the owner before installing or signing in. Write docs/spikes/<provider>.md in the shape of cursor.md: date, version, bundle id and URL scheme, In short, then the evidence.

Answer each question with what you saw, or say it was not driven:

  • Sessions. Where they live (files, SQLite, an app's cache), the id, title, folder, times, and how archived, subagent and headless ones are told apart. Read databases read-only; take only the keys you need from anything holding secrets.
  • Words. The user's prompts, the agent's replies, tool calls and results, and how a turn ends.
  • Status. Hooks, plugin or extension events, or a state field; which say started, tool ran, waiting on you, finished.
  • Approvals and questions. Does it ask? Can an answer go back (hook reply, its client or API, a window through Accessibility)? Does holding a request block the tool's own prompt?
  • Reply. A terminal it runs in, an app window, a link with your words.
  • Pick up. A link or command that opens the exact session; the resume command.
  • Running. How its process looks in the process table (executable, argv[0]), for Agent.recognise.
  • New session. A command or link that starts one in a chosen folder with a prompt.
  • Pull requests. Do tool results with the gh pr create address reach its log?

Done when every column of the provider's row has a verified answer, and the spike's In short says which are ✓, ~ and ✗.

2. Design: the visible part

New UI goes in ui/design.html first (AGENTS.md, step 1): the name in AGENTS and its kind in KINDS (app.js), its real icon (the app's own, read into ui/icons.local.json by --design-icons; a published mark in MARKS when it has no app), a sample session in the dev harness, and scenarios for each status it can reach. Open the page for the owner and wait for "build it".

3. Build: wire and test

Follow the nearest existing provider and touch only what its row needs:

PieceWhere
Identity, resume, answers from the notch, processAgent.swift (all, recognise, mayBe)
Reading sessionsa store beside OpenCode.swift, Pi.swift, Cursor.swift; a scanner in SessionScan.swift; RealSessionProvider
Words and status from the logTranscript.swift (SessionDigest), Recap
Live status, approvals, questionsLiveStatus.swift, HookServer.agents, HookInstaller (and PerchPlugins for a plugin file)
Pick up, replyTerminals.swift, or a window driver like CursorWindow.swift, ConductorApp.swift
New sessionNewSession.swift, NewSessionStarter.swift
IconAppIcons.apps (bundle id)
Pull requestsPullRequestScan for its log

Tests, in this order:

  1. Unit: a fake home with real files from the spike (OtherAgentsScanTests, CursorScanTests), and LiveStatusTests for its events. swift test stays green.
  2. Hooks in a stand-in home before your real config: PERCH_HOME=<short folder> .build/debug/Perch --install-hooks <id>, then the tool run with only that home. Raise a request by hand to the Perch you are testing, which listens on the real socket (the stand-in home's hook would post to a socket nothing listens on): echo '<payload>' | ~/.config/perch/hook <id> <event> (status.md).
  3. The real app with the real tool (AGENTS.md, step 2), driving each ✓ cell: the session is listed with its words; status moves from working to finished; an approval and a question answered from the notch land in the tool; a reply arrives; Pick up reaches the exact session; New session starts one in the chosen folder; a pull request it opened shows. Follow the driving rules in memory (drive banner, screencapture for the panel).

Done when swift test passes, every ✓ in the row was driven in the real app, and the PR says what was driven and what was not.

Docs

The same PR fills the provider's row in providers.md (replacing its "design only" line), its own section in sessions.md or agents.md, its status notes in status.md, and its name in AGENTS.md's opening paragraph.

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.