Use @timmo001/effect-gh for GitHub REST and GraphQL integration in Effect TypeScript code. Apply when adding or changing GitHub API requests, repository, issue, pull request or workflow operations, uploads, retries, or migrating hand-written GitHub fetch, Octokit or gh subprocess wrappers to Effect.
Ships in timmo-effect-gh. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Prefer @timmo001/effect-gh when an Effect application needs GitHub's REST or
GraphQL APIs. Use its GitHub service and operations instead of rebuilding
requests, authentication, pagination, JSON decoding, rate-limit handling and
cancellation. The commands that need the gh executable or git live on the
@timmo001/effect-gh/cli subpath.
Choose the smallest public operation that fits. Typed operations live in
namespaces named after their area, such as Repository, Issue,
IssueArtifact, PullRequest, Workflow, Cache, Secret, Variable,
Release, Project, Gist, Search, Review, Comment and
Discussion; the README lists them all. Select fields where the operation
takes them. Use Graphql.query with a data schema for other GraphQL, and
Api.json, Api.pages, Api.empty, Api.text or Api.headers with a
response schema for other REST endpoints. When something needs the gh
executable, git or local files, use the /cli subpath rather than spawning
gh yourself. Confirm signatures from the current exports.
Provide the GitHub layer from a token. Keep runtime execution at the
application boundary:
import { NodeServices } from "@effect/platform-node";
import { Api, Auth } from "@timmo001/effect-gh";
import { Effect, Layer, Schema } from "effect";
const github = Auth.layerFromEnv({ timeout: "30 seconds" }).pipe(
Layer.provide(NodeServices.layer),
);
const viewer = Api.json(
{ endpoint: "user", method: "GET" },
Schema.Struct({ login: Schema.String }),
).pipe(Effect.provide(github));
This constructs an effect; the caller decides when to run it. Use
Auth.layerFromEnv for GH_TOKEN or GITHUB_TOKEN, layer({ token }) with a
Redacted token you hold, or Auth.layerFromGhCli to reuse a signed-in
gh (which also needs a ChildProcessSpawner). Every one of them needs a
FileSystem for uploads. Never retrieve or log tokens.
Pass repo as OWNER/REPO (or HOST/OWNER/REPO); there is no
working-directory fallback. Pull requests and issues are numbers or URLs.
Preserve boundary semantics:
Api.text, Api.empty or Api.raw
for empty or non-JSON responses, and JSON request bodies.Workflow.watch and other streams as Streams. Keep their scope
owned by the caller.send, rest and graphql
never retry. Use GitHub.retryTransient (which waits out a rate limit up to
maxWait), isTransient, isRateLimited and RateLimit.cached rather than
local message lists or rate-limit caches, then map GitHubError into the
consumer's own error type.attachments on text writes or
Attachment.upload. A 404 from an upload means the token can't write to the
repository.Verify the integration through the public SDK boundary. Typecheck layer and
Schema requirements, test request construction and relevant failure paths
against a fake HttpClient through layerHttpClient, and run the consumer's
normal checks. When replacing an existing wrapper, account for its
pagination, retry, timeout and error contracts rather than assuming it is a
drop-in replacement.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/timmo-effect-gh:effect-ghfrom timmo-effect-gh
timmo-effect-gh@timmo001-skills is listed by timmo001/skills — review the source before installing
npx claudepluginhub timmo001/skills --plugin timmo-effect-gh