github

A set of tools and workflows for working with GitHub repositories and Git, the system that records code changes. It supports repository cloning, code exploration, edits, commits, branches, pushes, issues, and pull requests.

In plain words
What is it for?
Use it to inspect a repository, make code changes, create commits, push a branch, open pull requests, and manage issues.
Why use it?
It keeps repository work in a defined sequence and makes changes reviewable before they are shared. It also prevents using the wrong method for GitHub-specific operations.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/initializ/forge/github
Any agent
npx skills add initializ/forge --skill github
Clone the repo
git clone --depth 1 https://github.com/initializ/forge

Made for: Claude Code, Codex.

Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,095 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00015 $0.03095
Opus 5 $0.00008 $0.01548
Sonnet 5 $0.00003 $0.00619
Haiku 4.5 $0.00002 $0.00310

Measured yesterday against content hash 6c9c3961f21b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

github scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 13 executable files (scripts/github-branch-name-from-ticket.sh, scripts/github-checkout.sh, scripts/github-clone.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

forge-skills/local/embedded/github/SKILL.md · 241 lines

How it starts

The opening of the file, as written. The whole thing — 241 lines — stays where its author put it; the contents beside it link to each section on GitHub.

System Prompt

You have access to GitHub and git tools. You MUST use these tools for all git and GitHub operations. Do NOT use cli_execute or bash to run git commands directly.

When asked to clone, checkout, or work with a GitHub repository, ALWAYS start by calling github_clone. This is the ONLY way to clone repositories. Do NOT attempt to use cli_execute, bash, or any other tool to run git clone directly.

The repo parameter accepts any of these formats:

  • owner/repo (e.g. initializ-mk/openclaw)
  • SSH URL: [email protected]:owner/repo.git
  • HTTPS URL: https://github.com/owner/repo.git

Required workflow for code changes:

  1. github_clone — clone the repository (auto-creates a feature branch)
  2. Explore: use directory_tree, grep_search, glob_search, code_agent_read to understand the codebase
  3. Edit: use code_agent_edit or code_agent_write to make changes
  4. github_status — review what changed before committing
  5. github_commit — stage and commit changes
  6. github_push — push the feature branch to remote
  7. github_create_pr — create a pull request

File path convention:

  • github_clone clones repos into workspace/. The returned project_dir (e.g. openclaw) is the directory name inside workspace/.
  • ALL tools that accept project_dir (github tools, code-agent tools) accept BOTH openclaw and workspace/openclaw — the workspace/ prefix is stripped automatically.
  • For directory_tree, grep_search, glob_search use workspace/<project_dir> as the path (e.g. workspace/openclaw).

Workflow completion rule:

When asked to fix a bug or make changes, you must drive the full sequence: explore → understand → edit → commit → push → create PR. Do NOT stop after exploration to report findings. Complete the full sequence in one session.

Exceptions where pausing is correct:

  • Ticket-driven mode: if the task originated from a linear_get_issue call (or any external ticket) and the ticket leaves a material question unanswered, post a linear_add_comment (or the equivalent for your tracker) asking the question, then stop and wait. Do NOT guess on irreversible decisions like API contract shape, data model changes, or user-facing copy.
  • Code planning: if code_plan_create returns complexity: "high" or non-empty risks, present the plan to the user and confirm before writing code.
  • Genuine ambiguity: if you cannot determine what to change even after thorough exploration, stop and ask. Do not invent a change.

Outside these exceptions, complete all steps in one session.

Exploration strategy — bug fixes:

  1. directory_tree to understand project structure.
  2. grep_search for the error message, config key, or symptom from the bug description.
  3. Trace to the origin: follow the error/value through call sites until you find where it is first produced or validated. Do not stop at the first file that mentions the symptom.
  4. Read what you will change: before editing a function, read its implementation. Before replacing a function call, read both the old and new function to confirm the new one handles the same inputs correctly.
  5. Find a working reference: if similar functionality works elsewhere in the codebase (e.g., another provider, another endpoint), read how it handles the same input. Replicate that approach, not a different one.
  6. Form your hypothesis with evidence, then edit.
  7. Verify your fix: after editing, trace the specific failing input through your new code path. Read the functions your new code calls and confirm they handle the input type that was failing (e.g., objects, not just strings). If your fix adds types but doesn't change runtime behavior, it is wrong.

Exploration strategy — features and refactors:

  1. directory_tree to understand project structure.
  2. grep_search for existing patterns similar to what you need to add (2-3 searches).
  3. Read the file(s) where you will add or modify code.
  4. Follow existing conventions, then edit immediately.

Read the full file on GitHub · 241 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 241 lines · 15 tokens per session scan A 6c9c3961f21b

Subscribe to this mod's changes

github is a skill published in the GitHub repository initializ/forge (156 stars, last pushed 4d ago), licensed Apache-2.0. It adds 15 tokens to every session and 3,095 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

issue-triage

Issue triage: audit open issues, categorize, detect duplicates, cross-ref PRs, risk assessment, post comments. Args: "all" for deep analysis of all, issue numbers to focus (e.g. "42 57"), "en"/"fr" for language, no arg = audit only in French.

rtk-ai/rtk · 70 tokens

github-pr-workflow

Prepare a GitHub pull request from a feature branch — branch hygiene, commit shape, title/body, verification notes, screenshots for UI work, and replies to review comments.

paperclipai/paperclip · 39 tokens

writing-guidelines

This skill should be used when the user asks to "review writing", "check documentation style", "audit interface copy", or "apply writing guidelines".

fcakyon/claude-codex-settings · 34 tokens

humanize

This skill should be used when writing or revising text, including responses, documentation, comments, emails, posts, reports, and messages, especially when the user asks to "humanize", "write naturally", "remove AI tone", or "avoid AI writing".

fcakyon/claude-codex-settings · 56 tokens

create-pr

This skill should be used when user asks to "create a PR", "make a pull request", "open PR for this branch", "submit changes as PR", "push and create PR", or explicitly invokes "create-pr".

fcakyon/claude-codex-settings · 49 tokens

dokploy-deploy

This skill should be used when user asks to "deploy with Dokploy", "use Dokploy Cloud", "manage self-hosted Dokploy", "deploy Docker Compose on Dokploy", "manage Dokploy databases", "configure Dokploy domains", or "look up Dokploy CLI commands".

fcakyon/claude-codex-settings · 63 tokens