.claude-plugin/skills/preflight-check-skill-propagation/SKILL.md
# Preflight Check Skill Propagation ## Overview | Field | Value | |-------|-------| | Date | 2026-02-21 | | Issue | #803 | | Objective | Add preflight check to `worktree-create` skill so developers bypassing `gh-implement-issue` still run the 6-check safety gate | | Outcome | Success — PR #917 created, auto-merge enabled | | Files Changed | `tests/claude-code/shared/skills/worktree/worktree-create/SKILL.md` | ## When to Use Use this pattern when: - A safety/quality gate exists in one entry-
npx skillsauth add homericintelligence/projectscylla .claude-plugin/skills/preflight-check-skill-propagationInstall 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.
| Field | Value |
|-------|-------|
| Date | 2026-02-21 |
| Issue | #803 |
| Objective | Add preflight check to worktree-create skill so developers bypassing gh-implement-issue still run the 6-check safety gate |
| Outcome | Success — PR #917 created, auto-merge enabled |
| Files Changed | tests/claude-code/shared/skills/worktree/worktree-create/SKILL.md |
Use this pattern when:
gh-implement-issue/SKILL.md) to understand the exact language used for the preflight step — copy it verbatim for consistencypreflight_check.sh exists at the referenced path before writing the path into the target skillissue-preflight-check skill for full documentation# Verify the script exists before referencing it
find . -name "preflight_check.sh"
# The correct path to reference in the skill doc
bash tests/claude-code/shared/skills/github/gh-implement-issue/scripts/preflight_check.sh <issue-number>
# Commit (pre-commit runs automatically)
git add tests/claude-code/shared/skills/worktree/worktree-create/SKILL.md
git commit -m "docs(skills): Add preflight check to worktree-create skill"
Symptom: git add tests/claude-code/shared/skills/worktree/worktree-create/SKILL.md printed:
The following paths are ignored by one of your .gitignore files:
tests/claude-code/shared/skills/worktree
Root cause: The worktree directory name appears in .gitignore. However, the file was already staged in the index from a prior interactive operation, so the error was non-fatal.
Resolution: Run git status <file> to confirm the file is already staged ("Changes to be committed"), then proceed directly to git commit. Do not use -f to force-add ignored files unless you have verified intent.
Lesson: When git add is blocked by .gitignore for a skill file that is tracked in the repo, verify staged status first — the error message can be misleading.
--- a/tests/claude-code/shared/skills/worktree/worktree-create/SKILL.md
+++ b/tests/claude-code/shared/skills/worktree/worktree-create/SKILL.md
## Quick Reference
+# 0. Pre-flight check (REQUIRED - runs all 6 checks automatically)
+bash tests/claude-code/shared/skills/github/gh-implement-issue/scripts/preflight_check.sh <issue-number>
+
+# 1. Create worktree (only after pre-flight passes)
./scripts/create_worktree.sh <issue-number> <description>
## Workflow
+1. **Run pre-flight check** - `bash ... preflight_check.sh <issue-number>` — stops on critical failures
2. **Create worktree** - Run create script ...
-1. → 2., 2. → 3., etc.
## Error Handling
+| Pre-flight: issue CLOSED | Stop work; issue already resolved |
+| Pre-flight: merged PR found | Stop work; check PR for implementation |
+| Pre-flight: worktree conflict | Navigate to existing worktree or remove it |
+| Pre-flight: warns existing branch | Review branch before creating new one |
## References
+- See `issue-preflight-check` skill for full pre-flight check documentation
All hooks passed on first attempt:
gh-implement-issue/SKILL.md — source of preflight patternissue-preflight-check skill — full preflight documentationdevelopment
# Skill: docs-status-fix ## Overview | Field | Value | |------------|----------------------------------------------------| | Date | 2026-02-19 | | Category | documentation | | Objective | Fix stale "Current Status" in CLAUDE.md | | Issue | #753 | | PR | #810
tools
# Skill: preflight-closing-issues-fix ## Overview | Field | Value | |-------|-------| | Date | 2026-02-21 | | Issue | #802 | | PR | #912 | | Category | tooling | | Objective | Fix `preflight_check.sh` Check 3 false positives caused by free-text PR search matching issue numbers in unrelated PR titles/bodies | | Outcome | Success — 6 bash tests pass, all pre-commit hooks green, PR created with auto-merge | ## When to Use Trigger this skill when: - A preflight/guard script uses `gh pr list --s
tools
# Orphan Config Detection ## Overview | Field | Value | |------------|-----------------------------------------------------------------| | Date | 2026-02-20 | | Issue | #777 | | PR | #824 | | Objective | Warn when a `config/models/*.yaml` file
tools
# Skill: model-config-naming-validation ## Overview | Field | Value | |------------|----------------------------------------------------| | Date | 2026-02-19 | | Issue | #682 | | PR | #769 | | Objective | CI check that filename matches model_id in YAML configs | | Outcome | Success — 28 tests