updatekfg

Synchronizacja KFG między urządzeniami (Windows/Android). Triggers: sync KFG, updatekfg, zaktualizuj

16 stars

Best use case

updatekfg is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Synchronizacja KFG między urządzeniami (Windows/Android). Triggers: sync KFG, updatekfg, zaktualizuj

Teams using updatekfg should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/updatekfg/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/cli-automation/updatekfg/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/updatekfg/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How updatekfg Compares

Feature / AgentupdatekfgStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Synchronizacja KFG między urządzeniami (Windows/Android). Triggers: sync KFG, updatekfg, zaktualizuj

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# /updatekfg - Aktualizacja środowiska KFG

Skill do synchronizacji zmian KFG na wszystkie urządzenia.

## Architektura KFG (PRZECZYTAJ!)

```
KFG/.claude/           →  ~/.claude/ (instalatory kopiują)
├── CLAUDE.md          →  CLAUDE.md (globalne instrukcje)
├── settings.json      →  settings.json (permissions + hooks + statusLine)
├── rules/*.md         →  rules/*.md (reguły automatyczne)
├── hooks/*            →  hooks/* (skrypty walidacji)
├── welcome.txt        →  welcome.txt
├── statusline-wrapper.ps1/.sh  →  statusline wrapper
├── analyze-history.ps1         →  analiza historii (Windows)
└── export-device-stats.ps1     →  eksport stats (Windows)

KFG/platform/
├── android/           →  Android-specific overrides (merge przy instalacji)
└── windows/           →  Windows-specific overrides

KFG/setup/config/
├── termux/.bashrc     →  ~/.bashrc (Android - append)
├── termux/.tmux.conf  →  ~/.tmux.conf (Android)
├── ccstatusline/      →  ~/.config/ccstatusline/ (statusline config)
└── .templates/        →  ~/.templates/ (szablony walidacji)

KFG/desktop/
├── install.ps1        →  Jednorazowy instalator Windows (generuje inline)
├── sync-env.ps1       →  Auto-sync przy każdym `cc` (kopiuje z KFG)
└── config/            →  Windows-specific configs
```

## Mechanizmy synchronizacji

| Platforma | Instalacja | Codzienna sync |
|-----------|------------|----------------|
| **Windows** | `desktop/install.ps1` | Junction (jak symlink) LUB sync-env.ps1 |
| **Android** | `install.sh` (symlink) | Automatyczny (symlink) |

**WAŻNE:**
- Android używa SYMLINK ~/.claude/ → KFG/.claude/ - zmiany w KFG są natychmiast widoczne
- Windows: install.ps1 tworzy JUNCTION ~/.claude/ → KFG/.claude/ (jak symlink)
  - Edycja ~/.claude/* = edycja KFG/.claude/* (ten sam plik!)
  - Git widzi zmiany w KFG/.claude/ automatycznie
  - Jeśli junction nie działa: sync-env.ps1 kopiuje przy `cc`

**UWAGA dla Claude:** Edytuj ~/.claude/CLAUDE.md LUB KFG/.claude/CLAUDE.md - to ten sam plik (junction)!

## Checklist: Co zaktualizować

Przed commitem sprawdź które pliki dotyczą zmiany:

### 1. Instrukcje Claude (CLAUDE.md, rules/)
```
[ ] KFG/.claude/CLAUDE.md - główne instrukcje
[ ] KFG/.claude/rules/*.md - reguły automatyczne
```
**Sync:** Android=natychmiast, Windows=przy `cc`

### 2. Settings (permissions, hooks, statusLine)
```
[ ] KFG/.claude/settings.json - base settings
[ ] KFG/platform/android/settings-override.json - Android override
[ ] KFG/platform/windows/settings-override.json - Windows override (jeśli istnieje)
```
**Sync:** Android=natychmiast, Windows=sync-env kopiuje tylko jeśli nie istnieje lub -Force

### 3. Hooks (walidacja, pre-compact)
```
[ ] KFG/.claude/hooks/*.ps1 - Windows hooks
[ ] KFG/.claude/hooks/*.sh - Android hooks
```
**Sync:** Android=natychmiast, Windows=sync-env

### 4. StatusLine scripts
```
[ ] KFG/.claude/statusline-wrapper.ps1 - Windows wrapper
[ ] KFG/.claude/statusline-wrapper.sh - Android wrapper
[ ] KFG/.claude/analyze-history.ps1 - analiza historii (Windows only)
[ ] KFG/.claude/export-device-stats.ps1 - eksport stats (Windows only)
[ ] KFG/setup/config/ccstatusline/settings.json - ccstatusline config
```
**Sync:** Windows=sync-env, Android=symlink (ale .sh tylko!)

### 5. Bashrc / Shell functions
```
[ ] KFG/setup/config/termux/.bashrc - funkcje bash (p, np, cc, gs...)
[ ] KFG/setup/config/bashrc - alternative location
```
**Sync:** Android=wymaga `source ~/.bashrc` lub reinstall

### 6. Templates
```
[ ] KFG/setup/config/.templates/ - szablony walidacji
[ ] KFG/.templates/ - alternative location
```
**Sync:** Android=install.sh kopiuje, Windows=install.ps1 generuje inline

### 7. Instalatory (jeśli zmiana wymaga)
```
[ ] KFG/install.sh - Android/Linux instalator
[ ] KFG/desktop/install.ps1 - Windows instalator
[ ] KFG/desktop/sync-env.ps1 - Windows daily sync
```

## Workflow aktualizacji

### Mała zmiana (reguły, instrukcje)
```bash
# 1. Edytuj pliki w KFG/.claude/
# 2. Commit + push
git add -A && git commit -m "update: [co]" && git push

# Android: automatycznie (symlink)
# Windows: przy następnym `cc` (sync-env.ps1)
```

### Duża zmiana (nowy feature, settings)
```bash
# 1. Edytuj pliki źródłowe w KFG/
# 2. Sprawdź czy sync-env.ps1 obsługuje nowe pliki
# 3. Commit + push
# 4. Na innych urządzeniach: git pull (Android) lub cc (Windows)
```

### Zmiana wymagająca reinstalacji
```bash
# Jeśli zmieniłeś:
# - install.sh / install.ps1
# - strukturę katalogów
# - nowe pliki których sync-env nie kopiuje

# Android: ./install.sh --force
# Windows: .\desktop\install.ps1 (lub cc z -Force sync)
```

## Przykłady

### Dodanie nowej reguły
```
1. Utwórz: KFG/.claude/rules/nowa-regula.md
2. git add && commit && push
3. Android: automatycznie działa (symlink)
4. Windows: przy następnym `cc`
```

### Zmiana statusline
```
1. Edytuj: KFG/.claude/statusline-wrapper.ps1 (Windows)
2. Edytuj: KFG/.claude/statusline-wrapper.sh (Android) - jeśli dotyczy
3. sync-env.ps1 już kopiuje te pliki
4. git add && commit && push
```

### Nowy skrypt do sync
```
1. Utwórz skrypt w KFG/.claude/
2. Dodaj do sync-env.ps1 $statuslineScripts array (jeśli .ps1)
3. Dla Android: utwórz .sh wersję (symlink = auto)
4. git add && commit && push
```

## Weryfikacja

Po aktualizacji sprawdź:
```powershell
# Windows - sprawdź czy pliki są aktualne
ls ~/.claude/*.ps1
cat ~/.claude/CLAUDE.md | head -20

# Porównaj z KFG
diff ~/.claude/CLAUDE.md $KFG/.claude/CLAUDE.md
```

```bash
# Android - symlink powinien działać
ls -la ~/.claude/  # powinno pokazać -> KFG/.claude/
cat ~/.claude/CLAUDE.md | head -20
```

## TODO (brakujące)

- [ ] Android: analyze-history.sh (bash wersja)
- [ ] Android: export-device-stats.sh (bash wersja)
- [ ] Cross-device stats agregacja na Androidzie

Related Skills

bgo

10
from diegosouzapw/awesome-omni-skill

Automates the complete Blender build-go workflow, from building and packaging your extension/add-on to removing old versions, installing, enabling, and launching Blender for quick testing and iteration.

Coding & Development

mcp-create-declarative-agent

16
from diegosouzapw/awesome-omni-skill

Skill converted from mcp-create-declarative-agent.prompt.md

MCP Architecture Expert

16
from diegosouzapw/awesome-omni-skill

Design and implement Model Context Protocol servers for standardized AI-to-data integration with resources, tools, prompts, and security best practices

mathem-shopping

16
from diegosouzapw/awesome-omni-skill

Automatiserar att logga in på Mathem.se, söka och lägga till varor från en lista eller recept, hantera ersättningar enligt policy och reservera leveranstid, men lämnar varukorgen redo för manuell checkout.

math-modeling

16
from diegosouzapw/awesome-omni-skill

本技能应在用户要求"数学建模"、"建模比赛"、"数模论文"、"数学建模竞赛"、"建模分析"、"建模求解"或提及数学建模相关任务时使用。适用于全国大学生数学建模竞赛(CUMCM)、美国大学生数学建模竞赛(MCM/ICM)等各类数学建模比赛。

matchms

16
from diegosouzapw/awesome-omni-skill

Mass spectrometry analysis. Process mzML/MGF/MSP, spectral similarity (cosine, modified cosine), metadata harmonization, compound ID, for metabolomics and MS data processing.

managing-traefik

16
from diegosouzapw/awesome-omni-skill

Manages Traefik reverse proxy for local development. Use when routing domains to local services, configuring CORS, checking service health, or debugging connectivity issues.

managing-skills

16
from diegosouzapw/awesome-omni-skill

Install, find, update, and manage agent skills. Use when the user wants to add a new skill, search for skills that do something, check if skills are up to date, or update existing skills. Triggers on: install skill, add skill, get skill, find skill, search skill, update skill, check skills, list skills.

manage-agents

16
from diegosouzapw/awesome-omni-skill

Create, modify, and manage Claude Code subagents with specialized expertise. Use when you need to "work with agents", "create an agent", "modify an agent", "set up a specialist", "I need an agent for [task]", or "agent to handle [domain]". Covers agent file format, YAML frontmatter, system prompts, tool restrictions, MCP integration, model selection, and testing.

maintainx-automation

16
from diegosouzapw/awesome-omni-skill

Automate Maintainx tasks via Rube MCP (Composio). Always search tools first for current schemas.

mailsoftly-automation

16
from diegosouzapw/awesome-omni-skill

Automate Mailsoftly tasks via Rube MCP (Composio). Always search tools first for current schemas.

mails-so-automation

16
from diegosouzapw/awesome-omni-skill

Automate Mails So tasks via Rube MCP (Composio). Always search tools first for current schemas.