port-to-github

port-to-github is a skill for Claude Code, Codex from saajunaid/caddis-plugin. It costs 118 tokens per session (4,385 once invoked), scanned A, original, MIT.

A repository migration tool that moves an app or Git repository to GitHub from another Git server, a local or shared folder, or a remote Windows computer. It can preserve branches and tags, verify objects by their SHA checksums, and translate certain CI workflows.

In plain words
What is it for?
Use it to migrate repositories from Gitea, GitLab, other Git servers, local folders, network shares, or remote Windows folders to GitHub.
Why use it?
It reduces the manual work and risk involved in moving source code, history, and automation between hosting systems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to migrate repositories from Gitea, GitLab, other Git servers, local folders, network shares, or remote Windows folders to GitHub.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/saajunaid/caddis-plugin/port-to-github
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.

Any agent
npx skills add saajunaid/caddis-plugin --skill port-to-github
Clone the repo
git clone --depth 1 https://github.com/saajunaid/caddis-plugin

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for port-to-github

README.md
[![agentmods](https://agentmods.dev/badge/skills/saajunaid/caddis-plugin/port-to-github/github.svg)](https://agentmods.dev/skills/saajunaid/caddis-plugin/port-to-github)
Your own site
<a href="https://agentmods.dev/skills/saajunaid/caddis-plugin/port-to-github"><img src="https://agentmods.dev/badge/skills/saajunaid/caddis-plugin/port-to-github/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for port-to-github

Your own site · 80×15
<a href="https://agentmods.dev/skills/saajunaid/caddis-plugin/port-to-github"><img src="https://agentmods.dev/badge/skills/saajunaid/caddis-plugin/port-to-github.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,385 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00118 $0.04385
Opus 5.5 $0.00047 $0.01754
Sonnet 5.5 $0.00024 $0.00877
Haiku 4.5 $0.00012 $0.00439

Measured 13d ago against content hash c8cde20c561e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

port-to-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 13d ago.

The scan reads SKILL.md. This mod also ships 11 executable files (scripts/Compare-PortRefs.ps1, scripts/Convert-PortWorkflow.ps1, scripts/Get-PortSource.ps1, …), 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.

.github/skills/devops/port-to-github/SKILL.md · 298 lines

How it starts

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

port-to-github

Move one app to GitHub without losing history, leaking a secret, or breaking its deploy.

The work is in six phases, plus the content policy (2b). Each ends in a check that can FAIL. Do not start a phase until the one before it passed. Scripts are in scripts/ next to this file. They are PowerShell 7 (pwsh); the parts that run on a remote box are Windows PowerShell 5.1 compatible.

Phase Script Changes anything outside this machine?
1. Stage the source Get-PortSource.ps1 No. The source is only read.
2. Readiness Test-PortReadiness.ps1 No.
2b. Content policy Test-PortContentPolicy.ps1, New-PortRuntimeManifest.ps1, Invoke-PortHistoryClean.ps1 No. Rewrites only the local stage.
3. Publish Publish-PortToGitHub.ps1 Yes: creates a GitHub repo and pushes.
4. CI Convert-PortWorkflow.ps1, Test-PortWorkflowParses.ps1 Yes: a feature branch and a PR.
5. Cutover Switch-CheckoutOrigin.ps1 Yes: changes where a deploy host pulls from.
6. Retire the old host manual, see references/old-host.md Yes, and can be destructive.

Stop and ask the user before phases 3, 5 and 6. Each one is outward-facing. Say exactly what will be created or changed, on which host, and how to undo it.

Not every port needs every phase. A folder that never had CI or a deploy host ends after phase 3. Say which phases apply and why, before you start.

Before you start

  1. Read the project config, if one exists: .caddis/port-to-github.json in the repo you are working from (or $env:PORT_TO_GITHUB_CONFIG). It sets the GitHub owner, visibility, staging folder, the name for the old remote, dependency hosts and their secrets, and projectNotes - pointers to the project's own rules. Read every file projectNotes names before phase 4. Project rules beat this skill. The shape is in references/config.example.json.
  2. gh auth status must show an account that can create repos in the owner. git must be able to push to github.com (run gh auth setup-git once if not).
  3. Find the authoritative copy. If a folder is a clone of a server, port from the SERVER URL, not the folder: the folder may lack branches the server has. Port from a folder only when it is the only copy, or when it holds commits the server lacks. Phase 1 reports both cases.

Read the full file on GitHub · 298 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. 13d ago Changed · +5 lines · -23 tokens per session c8cde20c561e
  2. 19d ago Changed · -90 tokens per session d9f80a9246ed
  3. 27d ago Changed · +61 lines · +64 tokens per session 4b8ff6cc1c0f
  4. 29d ago First seen · 232 lines · 167 tokens per session scan A 036f93acc4af

Subscribe to this mod's changes

port-to-github is a skill published in the GitHub repository saajunaid/caddis-plugin (0 stars, last pushed 2d ago), licensed MIT. It adds 118 tokens to every session and 4,385 once invoked, about $0.0005 per session on Opus 5.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-09-19.