project-config
/project-config
Tworzy i sprawdza plik konfiguracji projektu keyturn z językiem klienta i trybem tylko po angielsku, zatrzymując się przy błędach.
- Autor
- optiflowic ↗
- Repozytorium
- keyturn ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 14.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 3
- Skrypty
- 2
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 14.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 2 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: scripts/project_config.py, scripts/test_project_config.py
Co robi i kiedy
Tworzy i sprawdza plik konfiguracji projektu keyturn z językiem klienta i trybem tylko po angielsku, zatrzymując się przy błędach.
Oryginalny opis (EN)
Create or check keyturn's project configuration, keyturn/config.json, which holds the client's language and whether the project uses English-only mode. Use when a keyturn project is being set up, when another keyturn role needs a setting, or when someone asks to see or change the project's language settings. Stops and reports when the file is missing or invalid, instead of guessing a value.
Jak działa
- Rules
- Settings
- Inputs
- Outputs
- Procedure
- Notes
Podgląd SKILL.md
--- name: project-config description: Create or check keyturn's project configuration, keyturn/config.json, which holds the client's language and whether the project uses English-only mode. Use when a keyturn project is being set up, when another keyturn role needs a setting, or when someone asks to see or change the project's language settings. Stops and reports when the file is missing or invalid, instead of guessing a value. --- # project-config Create and check the project configuration, `keyturn/config.json`, so that every role reads the same settings and none guesses them. See ADR 0014 in keyturn's `docs/adr/`. ## Rules - **Never guess a setting.** If the configuration is missing or invalid, stop and report what is wrong. Do not fall back to a default, and do not infer a value from the conversation without asking. - **Ask the client, then write.** The settings are the client's choices. Ask for them in plain words, and write only what they said. - **Change the file only on request.** Create it when a project is set up, or change it when the client asks. Every other use is read-only. ## Settings | Setting | Value | Meaning | |---|---|---| | `client_language` | a language code, such as `ja`, `de`, `pt-BR` | The language the client reads and writes. | | `english_only` | `true` or `false` | `true`: everything committed or posted is in English, and the client reads it through `localize`. `false`: client-facing documents are written in `client_language`. | There are no other settings yet. A setting is added, with the script and its tests, by the skill that first needs it. ## Inputs - For creating: the client's language, and whether the project uses English-only mode (for example, a public open-source project whose published content should all be in English). - For checking or reading: nothing; the file is always `keyturn/config.json` at the repository root. ## Outputs - `keyturn/config.json`, committed with the other keyturn documents. - For a check: `ok`, or one line per problem. ## Procedure The helper script `scripts/project_config.py` (in this skill's folder) does all reading and checking. It needs Python 3.9 or later and Git, and uses only the standard library. Run it from inside the target repository. Below, `project_config.py` means the script's full path. 1. **Check first.** Run `project_config.py check`. - `ok`: the configuration can be used. Read a setting with `project_config.py get <setting>`, which checks the file again first. - Problems (exit code 1): stop, show the client or the role that asked every line the script printed, and fix the cause before going on. A missing file is created with step 2; any other problem is fixed in step 3. 2. **Create it when the project is set up.** Ask the client which language they read and write, and whether everything published must be in English. Then run `project_config.py init --client-language <code> --english-only` (or `--no-english-only`). The script refuses to overwrite an existing file. Run `check`, and commit the file. 3. **Change it only when the client asks.** Edit `keyturn/config.json` (keep it a JSON object with exactly the settings above), run `check` until it prints `ok`, and commit it. A change of `client_language` or `english_only` changes the language of client-facing documents from then on; tell the client which documents will be written in the new language. ## Notes - The check always gives the same result for the same file: it lists missing settings, invalid values, and unknown settings, in a fixed order. An unknown setting is an error, so a typo in a setting's name is caught instead of being ignored. - Scripts and hooks that read the configuration either call `project_config.py get`, or run `project_config.py check` and then parse the JSON themselves.
Pliki w paczce (3)
- SKILL.md 4 KB
- scripts/project_config.py 7 KB
- scripts/test_project_config.py 8 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · optiflowic/keyturn | 100 | MIT |
| duc01226/EasyPlatform | 95 | MIT |
| duc01226/EasyPlatform | 95 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki a743a1e5cc82 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100spec
Zamienia prośbę klienta w wymagania z priorytetami i kryteriami akceptacji, a zatwierdzenie zapisuje wraz z sumą SHA-256. - 100project-settings
Pokazuje lub zmienia ustawienie projektu i wskazuje, skąd pochodzi jego wartość. - 100conventions
Zamienia dokument projektu w reguły narzędziowe, takie jak konfiguracja formatera, lintera i limity złożoności, oraz spisuje konwencje, których nie sprawdzi żadne narzędzie.