Przejdź do treści
Biblioteka skilli
AI i agenci · Automatyzacja

create-context

/create-context

Tworzy bazowy kontekst projektu z folderu .in/ według manifestu, jako migawkę .ctx/ uruchamianą raz na projekt.

Repozytorium
agent-skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
4
Skrypty
2
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 2 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/scan-in-folder.sh, scripts/validate-manifest.sh

Co robi i kiedy

Tworzy bazowy kontekst projektu z folderu .in/ według manifestu, jako migawkę .ctx/ uruchamianą raz na projekt.

Wyzwalacze z opisu

create contextbootstrap contextsetup contextinit context

Argumenty

/create-context [--force to overwrite existing .ctx/]
Oryginalny opis (EN)

Create baseline context from .in/ folder with manifest-driven organization (run once per project). Use when bootstrapping project context, setting up .ctx/ snapshot. Triggers include "create context", "bootstrap context", "setup context", "init context".

Jak działa

  1. ⚠️ AskUserQuestion Guard
  2. Folder Architecture
  3. Steps
Sekcje z nagłówków SKILL.md, w oryginale · 67 linii, 345 słów
Podgląd SKILL.md
---
name: create-context
description: Create baseline context from .in/ folder with manifest-driven organization (run once per project). Use when bootstrapping project context, setting up .ctx/ snapshot. Triggers include "create context", "bootstrap context", "setup context", "init context".
argument-hint: "[--force to overwrite existing .ctx/]"
allowed-tools: [Read, Write, Glob, Bash, AskUserQuestion, Task]
context: main
user-invocable: true
---

# Create Context

Bootstrap project context from `.in/` folder → `.ctx/` snapshot + baseline + RISEN INPUT table.

## ⚠️ AskUserQuestion Guard

**CRITICAL**: After EVERY `AskUserQuestion` call, check if answers are empty/blank. Known Claude Code bug: outside Plan Mode, AskUserQuestion silently returns empty answers without showing UI.

**If answers are empty**: DO NOT proceed with assumptions. Instead:
1. Output: "⚠️ Questions didn't display (known Claude Code bug outside Plan Mode)."
2. Present the options as a **numbered text list** and ask user to reply with their choice number.
3. WAIT for user reply before continuing.

## Folder Architecture

- **`.in/`**: Immutable bootstrap (user dumps raw docs, never modified by commands)
- **`.ctx/`**: Actionable snapshot (generated: manifest + summaries + copied files)

## Steps

### 1. Prerequisites

```bash
[ -d .in/ ] || error "No .in/ folder found. Create it and add source files first."
[ -d .ctx/ ] && [ "$1" != "--force" ] && error ".ctx/ exists. Use --force to recreate."
```

Skip security-sensitive files: `.env*`, `*credentials*`, `*secrets*`, `*token*`, `*.key`, `*.pem`, `*.crt`

### 2. Scan & Prioritize

1. Glob: `.in/**/*.{md,txt,csv,yaml,json}`
2. AskUserQuestion per file: HIGH / MEDIUM / LOW + brief description

### 3. Create .ctx/ and Generate Manifest

Write `.ctx/manifest.yaml` — see `reference.md` for schema.

### 4. Context Sizing & Copy

Token estimation: `tokens ≈ words / 0.75` (via `wc -w`)

| Priority | ≤ threshold | > threshold, ≤25K | > 25K |
|----------|-------------|-------------------|-------|
| HIGH | ≤1500 → inline | summarize directly | summarize via sub-agent |
| MEDIUM | ≤2500 → inline | summarize directly | summarize via sub-agent |
| LOW | reference only | — | — |

Copy HIGH/MEDIUM files to `.ctx/`, preserving subdirectory structure.

### 5. Summarize (if needed)

- Direct: Read + generate ~500 token summary → `.ctx/{nn}-{basename}-summary-llm.md`
- Sub-agent: Task(`summarize-for-context`) for files >25K tokens

### 6. Write Baseline

Create `CONTEXT-baseline-llm.md` with inline content + summary refs + LOW references.
Target: ≤2000 tokens.

### 7. Output

Report: file counts, RISEN INPUT table, suggest `/save-context baseline`.

See `reference.md` for manifest schema, baseline template, and validation rules.
Pliki w paczce (4)
  • SKILL.md 3 KB
  • reference.md 4 KB
  • scripts/scan-in-folder.sh 2 KB
  • scripts/validate-manifest.sh 4 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · digital-stoic-org/agent-skills100MIT
pantheon-org/tekhne100MIT

Migawka bazy z 28.10.2026 · wersja paczki 3293ef1a62ce (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

  • 100ctx-init
    Inicjalizuje w repozytorium kodu pliki AGENTS.md, CLAUDE.md i katalog rules/ w trybie od zera, np. przy zakładaniu kontekstu projektu.
  • 100ctx-remember
    Przywołuje kontekst projektu i przedstawia go w ustrukturyzowanej formie, na początku sesji lub gdy kontekst wydaje się utracony.
  • 100ctx-prompt
    Stosuje, wyświetla i zarządza zapisanymi szablonami promptów z .context/prompts/, takimi jak code-review czy refactor.
  • 100project-init
    Konfiguruje przenośny kontekst projektu od początku do końca: project-config, dokumenty referencyjne, CLAUDE.md i AGENTS.md.
  • 100project-init
    Konfiguruje przenośny kontekst projektu od początku do końca: project-config, dokumenty referencyjne, CLAUDE.md i AGENTS.md.
  • 96create
    Tworzy nowy kontekst NeatContext z profilu zachowań i lokalnego folderu wiedzy, na wyraźne polecenie użytkownika.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.