kiln-reset-prd

Checkout a feature branch's base branch while preserving the feature branch.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/yoshisada/ai-repo-template --skill kiln-reset-prd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kiln-reset-prd
Source: https://github.com/yoshisada/ai-repo-template/tree/main/plugin-kiln/skills/kiln-reset-prd
Command: npx skills add https://github.com/yoshisada/ai-repo-template --skill kiln-reset-prd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Abandons the current feature branch by checking out the branch it started from (its base), while preserving the feature branch for later return.

Core Features & Use Cases

  • Identify the current feature branch and determine its base (main, master, develop, or the most recent common ancestor).
  • Check out the base branch safely, with warnings for uncommitted changes and an option to stash before switching.
  • Optionally synchronize the project with the latest skills and templates from the ai-repo-template repository.

Quick Start

Reset the current feature branch by switching to its base and keeping the feature branch available for later return.

Frequently Asked Questions about kiln-reset-prd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely checkout a base branch and abandon my current Git feature branch?

Safely checkout a base branch by switching from your current feature branch to its origin, such as main, master, or develop. This Skill identifies the base automatically and preserves the feature branch, enabling a safe reset workflow without losing your work.

What happens to uncommitted changes when I switch from a feature branch to the base branch?

When switching from a feature branch to the base branch, the Skill detects uncommitted changes and warns you. It optionally stashes these changes before checkout, preventing data loss and ensuring a clean transition to the base branch.

How does Git determine the base branch if my feature branch is not directly off main, master, or develop?

If your Git feature branch does not branch from main, master, or develop, the Skill finds the most recent common ancestor between the feature branch and the base. It checks out this ancestor commit, enabling a safe reset workflow regardless of branch history.

Can I synchronize project templates and skills after checking out the base branch in my Git workflow?

Yes, after checking out the base branch, the Skill can optionally synchronize your project with the latest skills and templates from the ai-repo-template repository. This updates your base branch with the newest template assets directly.

What is the best way to reset a Git feature branch while keeping it available for future work?

The best way to reset a Git feature branch while keeping it is to checkout the base branch and leave the feature branch intact. This Skill automates that process, safely returning you to the base while preserving the abandoned branch for later return.