|
| 1 | +# Git Fix — Full Repo Sync |
| 2 | + |
| 3 | +When this skill is invoked, perform a comprehensive audit of the current GitHub repository — reading every relevant local file, cross-referencing all documentation, and fixing every inconsistency so the repo is fully in sync. |
| 4 | + |
| 5 | +## Invocation |
| 6 | + |
| 7 | +This skill activates when the user types `/gitfix`, or says "gitfix", "fix the github", "sync the repo", "update the readme", "the github is out of date", or "make sure the repo matches the code". |
| 8 | + |
| 9 | +## What This Skill Does |
| 10 | + |
| 11 | +`/gitfix` is a full-repo consistency pass. It reads everything — install scripts, skill files, config files, the README, the cheatsheet, troubleshooting sections, tables, step descriptions, and any other documentation — and fixes every place where the docs don't match reality. |
| 12 | + |
| 13 | +This is not a partial update. When `/gitfix` runs, every section of every doc file gets checked against the actual state of the repo. |
| 14 | + |
| 15 | +## Execution |
| 16 | + |
| 17 | +### Phase 1 — Understand the Repo Structure |
| 18 | + |
| 19 | +Before reading any file, build a complete map of the repo: |
| 20 | + |
| 21 | +1. List all top-level directories and files |
| 22 | +2. For each `step-*/`, `bonus-*/`, `gitfix-skill/`, and other feature folders, list their contents |
| 23 | +3. Note every install script (`*.sh`), skill file (`SKILL.md`), and documentation file (`*.md`) |
| 24 | +4. Identify the primary documentation files: `README.md`, `CHEATSHEET.md`, `SECURITY.md`, and any files in `README-SECTIONS/` or `docs/` |
| 25 | + |
| 26 | +Do not skip any folder. The map must be complete before Phase 2 begins. |
| 27 | + |
| 28 | +### Phase 2 — Read Everything |
| 29 | + |
| 30 | +Read every file that could affect documentation accuracy: |
| 31 | + |
| 32 | +**Install scripts** — Read each `step-*/install*.sh` and `step-final/step-final-install.sh`: |
| 33 | +- What does each step actually install? |
| 34 | +- What commands, aliases, or scripts does it create? |
| 35 | +- What credentials or prerequisites does it require? |
| 36 | +- What are the exact command names (aliases, scripts in `~/.local/bin/`, etc.)? |
| 37 | + |
| 38 | +**Skill files** — Read every `*/SKILL.md` and `~/.claude/skills/*/SKILL.md`: |
| 39 | +- What is the skill's invocation trigger? |
| 40 | +- What does it do? |
| 41 | +- Which step installs it? |
| 42 | + |
| 43 | +**The one-shot script** (`update.sh`) — Read it completely: |
| 44 | +- Which steps does it run? |
| 45 | +- Which steps are skipped in non-interactive mode and why? |
| 46 | +- What does it print at the end? |
| 47 | + |
| 48 | +**Bonus scripts** — Read `bonus-*/`: |
| 49 | +- What do they install? |
| 50 | +- Are they optional or required? |
| 51 | + |
| 52 | +**Config and utility files** — Read `uninstall.sh`, any files in `docs/`, `README-SECTIONS/`, `templates/`, and `tests/` that contain documentation-relevant content. |
| 53 | + |
| 54 | +### Phase 3 — Read All Documentation |
| 55 | + |
| 56 | +Read the full content of every documentation file: |
| 57 | + |
| 58 | +- `README.md` — every section: Quick Nav, overview blurbs, step-by-step sections, troubleshooting, "You're Ready", Installation Order table, Staying Up to Date, Appendix |
| 59 | +- `CHEATSHEET.md` — every table and section |
| 60 | +- `SECURITY.md` — verify it reflects current security practices |
| 61 | +- Any `.md` files in `README-SECTIONS/`, `docs/`, or bonus folders |
| 62 | + |
| 63 | +Read them fully. Do not skim. |
| 64 | + |
| 65 | +### Phase 4 — Cross-Reference and Find Every Gap |
| 66 | + |
| 67 | +Compare what the code actually does (Phase 2) against what the docs say (Phase 3). Find every discrepancy: |
| 68 | + |
| 69 | +**Step descriptions** — Does the README describe each step accurately? |
| 70 | +- Correct name and number? |
| 71 | +- Correct description of what it installs? |
| 72 | +- Correct time estimate? |
| 73 | +- Correct prerequisites? |
| 74 | + |
| 75 | +**Quick nav table** — Does it list every step, bonus, and section that exists? |
| 76 | + |
| 77 | +**Install commands in docs** — Are all `curl` install commands accurate? Do they point to the right script paths? |
| 78 | + |
| 79 | +**Command tables** — Does the cheatsheet list every alias, script, and command that step-1 actually installs? (`cskip`, `cc`, `ccr`, `ccc`, `ctg`, `cbrain`, `cbraintg` — check all) |
| 80 | + |
| 81 | +**Skills table** — Does the cheatsheet list every skill? Is the "Installed in" column accurate for each? |
| 82 | + |
| 83 | +**Step detail sections** — For each step's full section in the README: |
| 84 | +- Do the tool descriptions match what's actually installed? |
| 85 | +- Are the "What it does" bullet points accurate? |
| 86 | +- Are any new tools missing? |
| 87 | +- Are any removed tools still listed? |
| 88 | + |
| 89 | +**Troubleshooting section** — Is every known issue documented? Are the fix instructions accurate? |
| 90 | + |
| 91 | +**One-shot / update.sh coverage** — Does `update.sh` run every step? Are any new steps missing from it? |
| 92 | + |
| 93 | +**Installation Order table** — Does it list every step including any added since it was last updated? |
| 94 | + |
| 95 | +**"You're Ready" section** — Is the daily command still `cbrain`? Are the command descriptions accurate? |
| 96 | + |
| 97 | +**CHEATSHEET auto-triggered tools table** — Does it reflect the actual MCP servers installed across all steps? |
| 98 | + |
| 99 | +**Cross-references between docs** — Does the README point to the right section anchors? Do links resolve? |
| 100 | + |
| 101 | +### Phase 5 — Fix Everything |
| 102 | + |
| 103 | +Fix every gap found in Phase 4. Apply edits in this order: |
| 104 | + |
| 105 | +1. Quick nav table — add/remove/correct entries |
| 106 | +2. Overview blurbs — update step descriptions to match reality |
| 107 | +3. Step detail sections — fix tool descriptions, add missing tools, remove stale ones |
| 108 | +4. Troubleshooting — add missing issues, update stale fix instructions |
| 109 | +5. CHEATSHEET command table — sync with actual aliases and scripts |
| 110 | +6. CHEATSHEET skills table — add new skills, update install step references |
| 111 | +7. CHEATSHEET auto-triggered tools — sync with actual MCP servers |
| 112 | +8. Installation Order table — ensure all steps listed |
| 113 | +9. "You're Ready" section — verify accuracy |
| 114 | +10. `update.sh` — add any missing step calls, fix any stale step references |
| 115 | +11. Any other file where a discrepancy was found |
| 116 | + |
| 117 | +For each fix, make the edit precisely. Do not rewrite sections that are already accurate. Do not add padding or filler. Match the existing tone and formatting exactly. |
| 118 | + |
| 119 | +### Phase 6 — Verify and Report |
| 120 | + |
| 121 | +After all fixes are applied: |
| 122 | + |
| 123 | +1. Re-read the modified sections to confirm edits are correct |
| 124 | +2. Check that no new inconsistencies were introduced |
| 125 | +3. Produce a concise summary report: |
| 126 | + |
| 127 | +``` |
| 128 | +/gitfix complete |
| 129 | +
|
| 130 | +Fixed: |
| 131 | +- [list each change made, one line each] |
| 132 | +
|
| 133 | +Verified (no changes needed): |
| 134 | +- [list sections that were checked and already accurate] |
| 135 | +
|
| 136 | +Watch list (could not verify — manual check recommended): |
| 137 | +- [anything that requires human judgment or external verification] |
| 138 | +``` |
| 139 | + |
| 140 | +Do not produce the report until all fixes are applied. The report is the last thing output. |
| 141 | + |
| 142 | +## Rules |
| 143 | + |
| 144 | +- **Read before fixing.** Never edit a file you haven't fully read in this session. |
| 145 | +- **Precision over coverage.** A precise fix to the right line is better than a sweeping rewrite of a section. |
| 146 | +- **Match the existing style.** Every repo has a voice. Match it. Don't introduce new formatting patterns. |
| 147 | +- **No invented content.** If you don't know the current state of something, read the file. Don't guess. |
| 148 | +- **Flag what you can't verify.** If something requires running a command or checking an external URL, flag it in the Watch list rather than silently skipping it. |
| 149 | +- **Touch every section.** The value of `/gitfix` is that nothing gets missed. If a section is fine, say so in the report. If it's wrong, fix it. |
0 commit comments