core-setup-repo
/core-setup-repo
Konfiguruje ai1 w bieżącym repozytorium albo zmienia, które jego funkcje są włączone, i wyjaśnia, dlaczego ai1 jest zainstalowany, ale nieaktywny.
- Autor
- Edvantage26 ↗
- Repozytorium
- ai1 ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 13.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 13.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Konfiguruje ai1 w bieżącym repozytorium albo zmienia, które jego funkcje są włączone, i wyjaśnia, dlaczego ai1 jest zainstalowany, ale nieaktywny.
Wyzwalacze z opisu
Oryginalny opis (EN)
Core — Set up ai1 in the current repository, or change which features it has enabled. Use when the person says "set up ai1 here", "configure the harness", "enable/disable an ai1 feature", "activa ai1 en este repo", or when a session reports that ai1 is installed but inactive.
Jak działa
- 1. See the current state
- 2. Propose a configuration
- 3. Ask about overlapping plugins
- 4. Write the configuration
- 5. Show what they have
- 6. Set up each enabled feature
- 7. Close
- Fixed rules
- Customization
Podgląd SKILL.md
---
name: core-setup-repo
description: Core — Set up ai1 in the current repository, or change which features it has enabled. Use when the person says "set up ai1 here", "configure the harness", "enable/disable an ai1 feature", "activa ai1 en este repo", or when a session reports that ai1 is installed but inactive.
allowed-tools: Bash("${CLAUDE_PLUGIN_ROOT}/bin/ai1" skill-context *)
---
# Set up ai1 in this repository
The files are written by the `ai1` CLI (on the Bash PATH while the plugin is enabled), never by
hand: it merges with existing files and validates the result.
## 1. See the current state
```bash
ai1 status --json
```
It returns the repo root, whether `.ai1/config.json` exists, the detected protected branch,
the knowledge bundle path (always `.ai1/okf`) and whether a bundle exists, every feature with `enabled`,
`enabledByDefault` and `recommendation` (`recommended`: true, false or null = the repo cannot tell,
ask; `reason`; `evidence` found in the repo), `detectedVerifyCommands` (the test commands found in
package.json, Makefile, pytest config, Cargo, Go), and `overlappingPlugins`: other plugins enabled for the person (user, project or
local settings) that do part of ai1's job, each with `pluginId`, `features` it overlaps with (`null` =
ai1 as a whole), `action` (`disable` recommended, or only `warn`) and `reason`.
If `legacyMigration.moves` or `legacyMigration.settingsFiles` is not empty, the repo has the old
layout (ai1 was called jig, and OKF bundles live in `.okf/` by convention). `ai1 init` moves it to
`.ai1/` before writing the configuration: `.claude/jig.json` -> `.ai1/config.json`, `.okf/` ->
`.ai1/okf/`, `docs/rfc/` -> `.ai1/later/` (only when the rfc feature was on), `.jig/work/` ->
`.ai1/work/`, a bundle at a custom path from the retired `knowledge` setting -> `.ai1/okf/`, and
`jig@jig` -> `ai1@ai1` in the settings. Tracked paths move with `git mv`; links
inside the moved bundle and later entries are rewritten. A repo that used the `rfc` feature of ai1
before v0.18.0 (`.ai1/rfc/`, `features.rfc`) or the `proposals` feature before v0.25.0
(`.ai1/proposals/`, `features.proposals`) gets it renamed to `later` the same way. Show the person the list and ask before step 4.
If `legacyMigration.conflicts` is not empty, the targets already exist: stop and tell the person.
## 2. Propose a configuration
Look at the repo yourself too (README, CLAUDE.md, the main folders) to confirm or correct each
`recommendation`: the CLI only reads cheap signals. Then show the person, in one message, a table
with one row per feature: on/off in your proposal, and why in one line, citing the evidence ("on:
`db/migrations` and `auth/` are risky areas"). When the repo already has `.ai1/config.json`, show
what changes compared with it. Add the verify commands you propose (`detectedVerifyCommands`, or
what you found) and, if `worktrees` is `null`, the one question it needs: whether several people or
sessions work on this repo at the same time.
Then use AskUserQuestion with **multiSelect**, one option per feature (label = `title`, description
= the reason of your proposal), pre-selecting your proposal by marking those "(recommended)". Do not
invent features. If `verify` is on, confirm the verify commands in the same round.
Before proposing a verify command, run it once from the repo root (Bash, timeout 10 minutes,
measuring the time) and put the result in the table: passes, fails or times out, and how long it
took. The verify gate makes the agent run it in full before finishing every change, so:
- it fails on the current code: say so; propose it anyway only if the person will fix the tests
first, otherwise leave `verify` off for now;
- it takes more than about 3 minutes: say so and propose a faster command that still checks the
changed code (unit tests only, one package), or leave `verify` off;
- it cannot run (missing dependencies, a service down): say what is missing instead of guessing.
## 3. Ask about overlapping plugins
Keep the `overlappingPlugins` whose `features` is `null` or includes a feature the person chose.
If any is left, tell the person in one line per plugin what overlaps and why (its `reason`), then
ask with AskUserQuestion, **multiSelect**, which ones to disable **in this repo only** (written to
`.claude/settings.local.json`, personal and not committed; the plugin keeps working in other repos).
One option per plugin; mark the `disable` ones "(recommended)", the `warn` ones without it. Never
disable one the person did not pick. If none is left, skip this step.
Then, unless `credentialDenyRules` already shows them all, ask one yes/no question (recommended:
yes): add Claude Code permission deny rules so the agent cannot read credential files - private
keys (`*.pem`, `*.key`, `~/.ssh/id_*`) and the credential stores in the home folder (`~/.aws`,
`~/.gnupg`, `~/.kube`, `~/.config/gh`, `~/.docker/config.json`, `~/.netrc`, `~/.git-credentials`,
`~/.npmrc`, `~/.pypirc`). Say in one line what they cover: the file tools and the shell file
commands Claude Code recognises (`cat`, `head`, redirects), not scripts that open files themselves,
and that they go in the committed `.claude/settings.json`, so they apply to the whole team. `.env`
files are not included.
Unless `reportErrors` is already set (it is per person, so it carries across repos), ask once how
ai1's own errors (a hook that crashes, never a misfire) should be reported to the ai1 maintainers:
**ask each time** (recommended), **automatically** (an issue with only versions, OS and the error's
module and plugin file:line, nothing from their work, filed without asking) or **never**. It goes to
their user settings (`~/.claude/settings.json`), not to the repo.
## 4. Write the configuration
```bash
ai1 init --features <comma-separated ids> [--verify "<command>" ...] [--disable-plugins <ids picked in step 3>] [--deny-credentials] [--report-errors ask|auto|off]
```
Pass `--features ""` to turn every optional feature off. Report what the command printed,
including the plugins it disabled in this repo. When it migrated an
old layout, keep the features that were on (from step 1) and offer to update the files it lists as
still mentioning old paths (CLAUDE.md, README...).
## 5. Show what they have
A short table with one row per enabled feature: what it does for them in one line (from its
`description`), and how to use it (its skills `/ai1:...` and `ai1 ...` commands named in the
description, or "automatic" when it only runs hooks).
## 6. Set up each enabled feature
Some features need project-specific setup that `ai1 init` cannot write. Offer each one that applies,
one at a time, in this order, and do it only after a yes (the person may leave any for later):
- `worktrees` and `ai1 status` says `worktree recipe: missing`: plan the recipe with
`/ai1:worktrees-plan-recipe` (it investigates stack, heavy folders, env, ports and checks, and asks
only what the repo cannot answer).
- `okf` and there is no bundle yet: create one with `/ai1:okf-maintain-knowledge` (produce mode).
- `okf` and there is a bundle: run `ai1 claude-md`. If it reports findings, offer
`/ai1:okf-tidy-claude-md`; when the migration listed CLAUDE.md among the files with old paths,
make it one offer (the skill fixes those paths too).
- `design` and the bundle has no concept of type `Product` or `DesignSystem`: capture who the
product is for and its tone; palette, typefaces, type scale, spacing and radii (read from the code
first, ask only what it does not say).
## 7. Close
- Tell the person to commit `.ai1/` (and the moves, if any) and `.claude/settings.json`, and to restart
the Claude Code session so the hooks and skills load with the new configuration.
- Do not commit on your own.
- In one line, tell them that ai1 skills can be customized for this project (committed) or only for
them: `ai1 skill-context --list` shows which ones, and /ai1:core-customize-skill writes it.
## Fixed rules
- The files are written by the `ai1` CLI, never by hand.
- Each feature's own setup only after a yes; do not commit on your own.
## Customization
This project or the person may add their own rules below; they never override the fixed rules. If no `## ai1 customization` section follows, run `"${CLAUDE_PLUGIN_ROOT}/bin/ai1" skill-context core-setup-repo` and apply what it prints.
!`"${CLAUDE_PLUGIN_ROOT}/bin/ai1" skill-context core-setup-repo`
Wersje
W bazie nie ma innych skilli o nazwie core-setup-repo.
Migawka bazy z 13.11.2026 · wersja paczki 33792a2796f5 (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
- 100setup-repo-defaults
Konfiguruje repozytorium do używania repo-defaults i sprawdza, czy konfiguracja jest kompletna. - 86setup
Konfiguruje pamięć projektu Aletheia w bieżącym projekcie, gdy użytkownik o to prosi lub brakuje katalogu .aletheia. - 100setup
Konfiguruje komputer do pracy w zespołowym repozytorium GitHub: instaluje git i gh, loguje się i klonuje repozytorium. - 84setup
Konfiguruje reguły testowania, które nie mogą zawodzić, i sprawdza, które reguły lintera testów są włączone w repozytorium. - 100repo-setup
Ustawia repozytorium tak, by agenci naturalnie trzymali się jego architektury, a ważne błędy wychwytują typy, narzędzia i testy. - 80cmk:repo-setup
Konfiguruje lub sprawdza repozytorium pod kątem zestawu narzędzi devkit: wdrożenie, aktualizację lub weryfikację względem kontraktu.