Agent skill

Rebase Main

by hyochan in hyochan/react-native-nitro-sound

Safely update local main from origin/main, rebase the current react-native-nitro-sound work branch, resolve conflicts without losing staged, unstaged, untracked, ignored, or generated work, and…

MITAuto-check passedMobile

Install Rebase Main

skills CLI
$ npx skills add hyochan/react-native-nitro-sound --skill rebase-main -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install hyochan/react-native-nitro-sound rebase-main --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/hyochan/react-native-nitro-sound.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/rebase-main .claude/skills/rebase-main && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
rebase-main
GitHub stars
961
Token cost
~702 tokens
SKILL.md length
363 words
Files
2
Skills in repo
14
Repo updated
First seen
Licence
MIT

At a glance

Safely update local main from origin/main, rebase the current react-native-nitro-sound work branch, resolve conflicts without losing staged, unstaged, untracked, ignored, or generated work, and…

  • Works in 4 steps: Read AGENTS.md and record the current… → Inspect .git state for an active rebase,… → Stop if detached, already on main for a… → …
  • Asked to pull main
  • SKILL.md covers Establish State, Safeguard Work, Update And Rebase and Restore And Verify
  • Calls git and yarn

What it does

Rebase Main is an agent skill from hyochan/react-native-nitro-sound. Safely update local main from origin/main, rebase the current react-native-nitro-sound work branch, resolve conflicts without losing staged, unstaged, untracked, ignored, or generated work, and restore the original working-tree state. Use when asked to pull main, rebase onto main, or fix a stuck rebase.

Its SKILL.md is about 700 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Mobile, covering Cross-platform mobile apps and Git workflow. It works with React Native and Git. The repository describes itself as: react-native native module for audio recorder and player with nitromodule! The licence is MIT.

When your agent uses it

  • Asked to pull main
  • Rebase onto main
  • Fix a stuck rebase

Example prompts

  • “/rebase-main”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Read AGENTS.md and record the current branch, HEAD, upstream, worktrees,
  2. Inspect .git state for an active rebase, merge, cherry-pick, revert, or
  3. Stop if detached, already on main for a rebase request, or the target base
  4. Use origin/main only after confirming both refs exist.

What it can do on your machine

Read from SKILL.md and the folder at commit efd5e54. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • yarn

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git and yarn, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Rebase Main loads about 702 tokens when it runs. Until then it costs about 79 tokens; SKILL.md has 363 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~79
When it runs · the whole SKILL.md, loaded when a task matches
~702

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from hyochan/react-native-nitro-sound at commit efd5e54, republished under its MIT licence (© hyochan). 363 words, ~702 tokens.

Download SKILL.mdSave it as .claude/skills/rebase-main/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
rebase-main
description
Safely update local main from origin/main, rebase the current react-native-nitro-sound work branch, resolve conflicts without losing staged, unstaged, untracked, ignored, or generated work, and restore the original working-tree state. Use when asked to pull main, rebase onto main, or fix a stuck rebase.

Rebase Main

Update main, rebase the work branch, and preserve all pre-existing work. Do not commit, push, or force-push unless the user separately authorizes it.

Establish State

  1. Read AGENTS.md and record the current branch, HEAD, upstream, worktrees, staged changes, unstaged changes, untracked files, and relevant ignored local files.
  2. Inspect .git state for an active rebase, merge, cherry-pick, revert, or bisect. Do not start a second operation.
  3. Stop if detached, already on main for a rebase request, or the target base cannot be identified safely.
  4. Use origin/main only after confirming both refs exist.

Safeguard Work

If tracked or untracked changes exist, create one clearly named stash with --include-untracked; never use --all. Record the stash object and verify the worktree is clean. Fingerprint important ignored files and check that neither destination tree tracks their exact paths before switching.

If a stale .git/index.lock or .git/HEAD.lock blocks progress, confirm its age and verify no Git process owns it before removing only that exact lock. If an earlier operation is active, inspect its head, target, todo, and conflicts; continue or abort only when that preserves the recorded intent.

Show full SKILL.md (176 more words)Show less

Update And Rebase

  1. Run git fetch --prune origin.
  2. Check out main without overwriting ignored files.
  3. Run git merge --ff-only origin/main. Stop on local/remote divergence; do not reset or create a merge commit.
  4. Confirm main and origin/main resolve to the same commit.
  5. Check out the recorded work branch with the same ignored-path guard.
  6. Run git rebase origin/main.
  7. For each conflict, inspect base, main, and work-branch intent. Regenerate nitrogen/generated/** through yarn nitrogen or yarn prepare; never pick a blanket side for generated output.

Never use git reset --hard, git checkout --, or git clean as recovery.

Restore And Verify

Apply the safeguard stash with its index. Resolve restoration conflicts, then compare staged, unstaged, untracked, and ignored state with the initial snapshot. Drop only the named stash after restoration is exact.

Run git status, git diff --check, and the lightweight checks affected by conflict resolution. Report old and new main/work heads. If a published branch was rewritten, explain that a later git push --force-with-lease is required but do not perform it without authorization.

© hyochan, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .codex/skills/rebase-main of hyochan/react-native-nitro-sound.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit efd5e54

Compare with similar skills

Rebase Main next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Rebase Main compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rebase Main this skillhyochan/react-native-nitro-sound961—~702Automated safety check: PassMIT
Rebase Mainhyochan/flutter_calendar_carousel860—~662Automated safety check: PassMIT
React Native Best Practicesvercel-labs/openreview1.7k17 repos~1.1kAutomated safety check: PassMIT
Appllama App Design SkillAppllama/appllama-skills2.5k1 repos~5kAutomated safety check: PassMIT
React Devtoolssanity-io/sanity6.4k3 repos~2.1kAutomated safety check: PassMIT
Rnn Codebasewix/react-native-navigation13k—~2kAutomated safety check: PassMIT

Similar skills

  • Rebase Main

    hyochan/flutter_calendar_carousel

    Safely update local main from origin/main, rebase the current fluttercalendarcarousel work branch, resolve conflicts without losing staged, unstaged, untracked, ignored, or generated work, and…

    860 GitHub stars~662 tokensUpdated 18 days ago
    MobileAuto-check passed
  • React Native Best Practices

    vercel-labs/openreview

    Official

    A prioritized rule set for React Native and Expo apps covering list performance, animation, navigation, UI patterns, state, rendering, monorepos and configuration.

    1.7k GitHub starsUsed in 17 repos~1.1k tokens
    MobileAuto-check passed
  • Appllama App Design Skill

    Appllama/appllama-skills

    Build native-feeling, benchmark-quality mobile app screens (Expo / React Native).

    2.5k GitHub starsUsed in 1 repo~5k tokens
    MobileAuto-check passed
  • React Devtools

    sanity-io/sanity

    Official

    React DevTools CLI for AI agents. An agent skill from sanity-io/sanity.

    6.4k GitHub starsUsed in 3 repos~2.1k tokens
    MobileAuto-check passed
  • Rnn Codebase

    wix/react-native-navigation

    Official

    Navigate and work with the react-native-navigation (RNN) codebase.

    13k GitHub stars~2k tokensUpdated 3 days ago
    MobileAuto-check passed
  • Appllama Usage

    Appllama/appllama-skills

    Use the Appllama MCP (mcp.appllama.io) well — research real top-grossing mobile apps, their screens, flows, and UI elements, then build from what you learn.

    2.5k GitHub starsUsed in 1 repo~1.6k tokens
    MobileAuto-check passed

More from hyochan/react-native-nitro-sound

All 14 skills in this repo
  • Simulator Audio E2E

    hyochan/react-native-nitro-sound

    Build and run repeatable react-native-nitro-sound recorder/player regression tests on an iOS Simulator or Android emulator, with explicit virtual-device selection, microphone permission, Maestro…

    961 GitHub stars~1.1k tokensUpdated 10 days ago
    Auto-check passed
  • Android Audio E2E

    hyochan/react-native-nitro-sound

    Build and run device-backed Android end-to-end checks for react-native-nitro-sound permissions, recording, playback, listeners, pause/resume, seek, speed, audio focus, lifecycle behavior, and rapid…

    961 GitHub stars~814 tokensUpdated 10 days ago
    Auto-check passed
  • Generate Doc

    hyochan/react-native-nitro-sound

    Create or update react-native-nitro-sound API documentation, examples, migration notes, FAQ entries, changelog or release notes, and compiled AI context.

    961 GitHub stars~824 tokensUpdated 10 days ago
    Auto-check passed
  • iOS Audio E2E

    hyochan/react-native-nitro-sound

    Build and run device-backed iOS end-to-end checks for react-native-nitro-sound recording, playback, listeners, pause/resume, seek, speed, interruption, audio-session behavior, and rapid switching.

    961 GitHub stars~907 tokensUpdated 10 days ago
    Auto-check passed
  • Funding Steward

    hyochan/react-native-nitro-sound

    Maintain react-native-nitro-sound funding links, GitHub Funding configuration, Buy Me a Coffee and PayPal calls to action, supporter acknowledgements, and transparent maintainer updates.

    961 GitHub stars~650 tokensUpdated 10 days ago
    Auto-check passed
  • Nitro Sound Workflows

    hyochan/react-native-nitro-sound

    A skill your agent uses for react-native-nitro-sound repository work that should follow the project workflows for PR review, code audit, knowledge compilation, full verification, iOS or Android…

    961 GitHub stars~1.2k tokensUpdated 10 days ago
    Auto-check passed

Works with

Categories

Questions about Rebase Main

What does Rebase Main do?

Safely update local main from origin/main, rebase the current react-native-nitro-sound work branch, resolve conflicts without losing staged, unstaged, untracked, ignored, or generated work, and…. Rebase Main is an agent skill from hyochan/react-native-nitro-sound. Safely update local main from origin/main, rebase the current react-native-nitro-sound work branch, resolve conflicts without losing staged, unstaged, untracked, ignored, or generated work, and restore the original working-tree state.

When should I use Rebase Main?

Rebase Main fits situations like: asked to pull main; rebase onto main; fix a stuck rebase.

How do I install Rebase Main in Claude Code?

Run `npx skills add hyochan/react-native-nitro-sound --skill rebase-main -a claude-code`. Or copy the skill folder (.codex/skills/rebase-main in hyochan/react-native-nitro-sound) into .claude/skills/rebase-main in your project. Claude Code loads it when a task matches its description.

How do I install Rebase Main in Codex?

Run `npx skills add hyochan/react-native-nitro-sound --skill rebase-main -a codex`. Or copy the skill folder (.codex/skills/rebase-main in hyochan/react-native-nitro-sound) into .agents/skills/rebase-main in your project. Codex loads it when a task matches its description.

Can I use Rebase Main in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hyochan/react-native-nitro-sound --skill rebase-main -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rebase-main, .gemini/skills/rebase-main, .github/skills/rebase-main and .opencode/skills/rebase-main in your project.

What does Rebase Main need to run?

Going by SKILL.md and its folder, Rebase Main needs the command-line tools its instructions call (git and yarn).

Does Rebase Main access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Rebase Main safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Rebase Main use?

Rebase Main is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Rebase Main use?

About 702 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Rebase Main?

Skills that share tags, products or a category with Rebase Main: Rebase Main (hyochan/flutter_calendar_carousel, 860 stars), React Native Best Practices (vercel-labs/openreview, 1.7k stars), Appllama App Design Skill (Appllama/appllama-skills, 2.5k stars) and React Devtools (sanity-io/sanity, 6.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rebase Main?

hyochan (a GitHub user) maintains it in hyochan/react-native-nitro-sound, which has 961 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on September 29, 2026.

Source: hyochan/react-native-nitro-sound on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.