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

context-files

/context-files

Utrzymuje aktualne pliki kontekstu projektu szablonowego w limitach linii: context.md projektu i zadań, podkontekst i logi, oraz przeprowadza cztery pytania na koniec podzadania.

Repozytorium
open-science ↗
Licencja
MIT
Ostatnia zmiana repozytorium
15.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
1
Skrypty
0
Komentarze HTML
2
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 15.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ą
  • SKILL.md zawiera komentarze HTML (2). Nie widać ich w podglądzie Markdown, a model je czyta.

Co robi i kiedy

Utrzymuje aktualne pliki kontekstu projektu szablonowego w limitach linii: context.md projektu i zadań, podkontekst i logi, oraz przeprowadza cztery pytania na koniec podzadania.

Oryginalny opis (EN)

Keep a template project's context files current and under their line caps - the project context.md, each task's context.md, subcontext files and logs - and run the four end-of-subtask questions. Use at session start when driving a task, after every finished subtask, before dispatching subagents or long jobs, when a hook reports a line cap, and when the user asks to update or amend a context file or plan.

Jak działa

  1. Files and caps
  2. When to update
  3. Subagent documents
  4. Amending a context file or plan
Sekcje z nagłówków SKILL.md, w oryginale · 94 linii, 914 słów
Podgląd SKILL.md
---
name: context-files
description: Keep a template project's context files current and under their line caps - the project context.md, each task's context.md, subcontext files and logs - and run the four end-of-subtask questions. Use at session start when driving a task, after every finished subtask, before dispatching subagents or long jobs, when a hook reports a line cap, and when the user asks to update or amend a context file or plan.
---

# Context files

**Invariant: a fresh session given only `AGENTS.md`, the project `context.md` and the task's
`tasks/<id>/context.md` can take the correct next action without asking anything.** Context
files carry what is true now. History goes in the logs, detail in `subcontext/`.

## Files and caps

| file | holds | cap |
|---|---|---|
| `context.md` (project) | goal, task table, in flight, next step, waiting on the user, open questions | 200 lines |
| `tasks/<id>/context.md` | node header + the task's goal, current state, in flight, next step, pointers | 200 lines |
| `tasks/<id>/subcontext/*.md` | one subtask or subagent each: how a result was reached, what was ruled out | none |
| `tasks/<id>/log.md`, `log/YYYY-MM.md` | append-only history, one line per entry | none |
| `map/README.md` | the project's logic, hand-written | 150 lines |

The brainstorm sub-root has the same files with the same caps: `brainstorm/context.md`,
`brainstorm/tasks/<id>/context.md` (200 lines each) and `brainstorm/map/README.md` (150).
The main agent keeps them current the same way; `opsci context check` covers them.

A PostToolUse hook checks the cap after every edit to one of these files and refuses an
over-cap file. `opsci context check` checks the whole project. Pruning means whole finished
items leave the file (to `subcontext/` or the log), not rewording.

**Record content, not conversation.** Write what was decided, why, and what was found, in
your own words. Never paste a user's message verbatim: a user's decision becomes a dated
ruling that states the decision and its reason ("ruling 4 (2026-10-02): the window starts at
$10\,M$, because ..."). Leave out what is not about the science or the code: deadlines and
urgency ("before midnight", "full court press"), the user's availability ("away for a few
hours"), reminders about reporting, allocation or quota remarks ("the allocation is running
out, so ..."), impatience ("this is taking too long, change method"), personal remarks, and
agent mechanics with no technical content (jumps, context size, permissions). When such a
message changes the work, record the technical change alone ("switched to method $Y$: $X$
needs ~40 h per unit, MEASURED"). This holds for every file the agents write: context files,
plans, logs, subcontext and subagent documents, result files.

**Housekeeping stays out of the published context.** The context files are published with
the project, while everything stays in the private files. In "Waiting on the user", "Next
step" and "Open questions", wrap each item that is housekeeping for the user and not part of
the task's or project's goal in an omission marker, for example "commit the plots?", "redo
the figure with larger labels?", "which file name?":

```
<!-- omit -->- Whether to commit `lit_cache/2609.07873/` (28 MB, untracked).<!-- /omit -->
```

The export drops the span (and a section it empties). Keep unmarked what a reader of the
project needs: a scientific decision, the choice of the next task, "next: compute $X$ for
the task goal".

Only the main agent edits the project and task `context.md`. Every pointer states when to
read it ("read only if the fit is re-run"). Dates are absolute, numbers carry units and are
labelled MEASURED or ESTIMATED, commands are copy-pasteable.

## When to update

Update the task context in the same turn as each of these, before the next action:
a subtask finished; a result, decision or user ruling landed; just before dispatching a
subagent or submitting a long job (record the id, where output lands, how to check it);
before ending a turn with work unfinished.

**After every finished subtask, the four questions** (`contracts/main.md` §3):
1. Did a status or edge change, or did a subtask start, finish, fail or branch? Update the
   node header and the task's `map.md`. Did a result land, change or fail? Write or update
   its file in `tasks/<id>/results/`. A result is something later work will rely on, or
   something that answers part of the task's goal; a debugging finding goes only in the
   task's `map.md`, unless it matters conceptually. Set `milestone: true` when the result
   obviously answers part of the project's question; if unsure, ask the user
   (`tasks/README.md`, "Results"). Set `deliverable: true` when it is something the
   project delivers (a talk deck, a living list) or something the user asked for (notes, a
   document, a plot, a table); its files keep one stable name and are updated in place. Run `opsci map build`, which also rewrites the header
   table under the title and the results pages, and settle every result it reports as
   resting on failed or superseded work.
2. Does the next agent need it? Update the project `context.md`.
3. Was a source or package used or consulted? Update `citations/`. If a result relies on
   it, add its key to that result's `uses:`; an assumption taken from it is a result of
   its own, `kind: assumption`.
4. One line in `tasks/<id>/log.md` and one in `log/YYYY-MM.md`.

## Subagent documents

A subagent whose work spans more than one dispatch keeps
`tasks/<id>/subcontext/subagent_<slug>.md`, written at the end of every round as if a
different agent takes over next: current, complete, pruned, including what was ruled out. The
dispatch prompt names its path. On conclusion, fold what is still needed into the task context.

## Amending a context file or plan

When the user changes what the work should be: edit exactly what the discussion changed,
keep the structure, keep the plan and the context consistent with each other, say plainly
what you removed, and end with the path of the file you changed. Do not execute the plan
as part of the edit.

Wersje

RepozytoriumWynikLicencja
Ta strona · mhycheung/open-science100MIT
sergeyklay/.agents100Apache-2.0

Migawka bazy z 13.11.2026 · wersja paczki cde5f69f24dd (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 3 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90advise-with-context
    Doradza przy pliku kontekstu lub planie: odpowiada na pytania bez wykonywania planu i bez edycji dokumentów.
  • 95subtask
    Zleca zadania równoległym pracownikom AI w izolowanych przestrzeniach roboczych gita: tworzy, uruchamia i zarządza taskami z CLI.
  • 100context-engineering
    Optymalizuje konfigurację kontekstu agenta przy nowej sesji, spadku jakości odpowiedzi, zmianie zadań oraz ustawianiu plików reguł i kontekstu projektu.
  • 100context-engineering
    Optymalizuje konfigurację kontekstu agenta przy nowej sesji, spadku jakości odpowiedzi, zmianie zadań oraz ustawianiu plików reguł i kontekstu projektu.
  • 100context-engineering
    Optymalizuje konfigurację kontekstu agenta przy nowej sesji, spadku jakości odpowiedzi, zmianie zadań oraz ustawianiu plików reguł i kontekstu projektu.
  • 100context-engineering
    Optymalizuje konfigurację kontekstu agenta przy nowej sesji, spadku jakości odpowiedzi, zmianie zadań oraz ustawianiu plików reguł i kontekstu projektu.

Uwagi i zgłoszenia

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