skills/executing-plans-preflight/SKILL.md
Use before any implementation start — auto-detects and fixes git state issues (branch, dirty files, remote sync) with one confirmation per fix. Trigger on "start implementation", "implement this plan", "start coding", "execute plan", "開始實作", "執行計劃", or any signal that coding is about to begin.
npx skillsauth add shihyuho/skills executing-plans-preflightInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Semi-automatic git state gate. Detects issues, proposes fixes, executes on confirmation. Run this before any implementation work begins — it ensures git state is ready so you start from a clean, correct baseline.
Not in a git repo? Say Not a git repository — skipping preflight. and move on.
Run in order. Pass silently when nothing is wrong — only speak up when there is something to fix.
Detect default branch via origin/HEAD. Fallback: treat main/master as
default if detection fails.
feat/, fix/,
docs/, refactor/, perf/, test/, chore/, ci/, build/; default
feat/). Propose it, let user confirm or rename, then git switch -c.
No plan in conversation? Ask directly — don't guess from filesystem.Run git status --porcelain. Everything counts as dirty (staged, unstaged,
untracked).
Run git fetch. If fetch fails, warn and continue with local info — don't
claim remote state is fresh when it isn't.
git pull --rebase. If dirty files were
overridden in Check 2, warn that pull may conflict and offer to skip sync.New branches from Check 1 have no upstream — that's expected, don't push.
One-line conclusion after all checks. Each fix gets its own line before it.
Switched to `feat/add-auth` (was on main)
Preflight passed. Ready to go.
If dirty files were overridden, end with Proceeding with uncommitted changes.
instead of Ready to go.
switch -c or pull --rebase on the wrong branch can cost real work.development
Write a short author's briefing to hand to a code reviewer whose agent already has its own review skill, so it supplies the context that skill can't see instead of repeating how to review. Right after you finish a piece of work, it mines this session (and any kickoff implementation-notes) for what the reviewer most needs flagged — the easy-to-miss changes, the parts you're least sure about, the looks-wrong-but-intentional bits, and the blast radius — plus the exact commit range to review. Use when you've just finished work and want to hand the review off to another agent, chat, or teammate, when you want a "heads-up for the reviewer", or when packaging a change for review elsewhere. It does not perform the review and does not re-specify severity tiers or output format — that's the reviewer's own skill's job.
testing
Use when creating, rewriting, pruning, or reviewing `AGENTS.md` or `CLAUDE.md`, especially to remove repo summaries, stale rules, and other low-signal global instructions. Trigger when deciding what belongs in always-on agent files versus a task-specific skill.
development
Drive a structured tutoring workflow that turns Claude into a learning onramp accelerator — consultative diagnosis → custom syllabus → unit-by-unit guided lessons with notes/whiteboard → dynamic adjustment from an accumulating learner profile. Use when the user states a learning goal ("I want to systematically learn X", "teach me Y", "help me prep for Z exam"), uploads study materials and asks for a course plan, or signals sustained guided study (mentions tutor, syllabus, course, lessons, study plan, curriculum, 家教, 學習路徑). Skip for one-shot factual Q&A or quick code-context explanations.
tools
Produce a TL;DR of a given target. Use when the user asks for a tldr, tl;dr, or quick summary of anything.