Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

codex-session-learning

БесплатноБез исполняемых скриптовНе проверен

Turn past coding-agent debugging sessions into reusable bug-fix guidance, prompt templates, and validation rules. Use this skill when the user wants to learn…

ThalesGroupот ThalesGroup★ 23 звезды на GitHub

Об этом скилле

Codex Session Learning

Use this skill to convert prior Codex or other coding-agent work into explicit reusable assets. The goal is not to pretend the agent has hidden long-term memory. The goal is to extract structured cases, reusable prompt patterns, and validation rules from earlier sessions so future bug fixing starts from a stronger prompt.

Durable destination: .tokki/rules

Distilled, repo-scoped rules belong in the repo's .tokki/rules file (plain text/markdown, surfaced by tokki rules [--root DIR]), following the .tokki/{filters,scope,loc} conventions. Write short imperative rules there (which checks to run first, known pitfalls, preferred commands, what not to reread); keep session-specific narrative in postmortem cases instead. The AGILAB routing-allocation rules from the 2026-04-17 sb3_trainer session live there as the reference example.

When to use

  • Build a bug-fix prompt from one or more prior Codex sessions
  • Turn chat logs or tracebacks into reusable postmortem cases
  • Create a bug taxonomy for recurring AGILAB failures
  • Derive validation rules from successful or failed fixes
  • Build a prompt-routing layer that chooses investigation order before coding

Do not use for

  • direct code editing with no session-learning goal
  • generic “summarize this chat” work with no bug-fix reuse target
  • pretending the model automatically learned from earlier sessions

If the source material is a raw transcript or JSON export, use chat-export first when needed to normalize it.

Core idea

Use past sessions to learn process, not to blindly replay patches.

Extract:

  • the bug family
  • the real failure surface
  • the files inspected first
  • the first wrong turns
  • the fix pattern that worked
  • the validation depth required before push

Then feed those results into a future prompt as explicit guidance.

Workflow

  1. Define the learning target.
    • prompt-routing: choose the right initial debugging plan
    • postmortem: capture why the bug happened and how to prevent it
    • validation-policy: decide what must be tested before push
    • case-library: build reusable examples for recurring failures
  2. Normalize the session inputs.
    • Gather traceback, command context, edited files, tests run, and outcome.
    • Strip noise such as repeated logs or irrelevant tool chatter.
  3. Extract one case per real bug.
    • Record the initial symptom separately from the root cause.
    • Record whether the first attempted fix was wrong or incomplete.
  4. Generalize the reusable rule.
    • Convert one bug into a rule such as:
      • missing import after refactor -> inspect extracted support modules and import wiring first
      • installer solver drift -> compare source app manifest with copied worker manifest before editing app dependencies
  5. Build the prompt asset.
    • Prefer structured prompt controls over free-form prose.
    • Good outputs include:
      • bug family
      • suspected scope
      • first files to inspect
      • likely false fixes to avoid
      • minimum validation to require
    • When building a prompt for a live agilab diff, run uv --preview-features extra-build-dependencies run python tools/impact_validate.py --files ... or --staged and fold its risk zones, push gates, and required validations into the prompt pack.
  6. Close the loop after the next session.
    • Mark whether the routed prompt improved first-pass success.
    • Update the case if the new session revealed a better diagnosis path.

Evidence for learned procedures

Keep the learning claim proportional to the session evidence:

Source evidence Suitable output
A failure with an established cause A postmortem or a candidate prevention rule, even if the final repair is unfinished.
A plan, interrupted run, or assistant statement without a completed check An unvalidated procedure proposal with the missing evidence named.
Completed command/test results tied to the executed revision and inputs A procedure validated for that recorded scope and environment.

Before describing a procedure as validated, inspect its actual completion results and bind them to the source revision, relevant local diff, inputs, and output artifacts. Record stable relative artifact references and content hashes where available. Do not pair an earlier passing run with later untested edits, infer success from missing errors, or treat a hash as proof of execution. Separate local validation, remote publication, and installed/runtime activation when those are different steps of the procedure.

Generalize checkout paths, provider-specific tool identifiers, branch names, and transient targets into parameters or explicit discovery steps. Preserve the required ordering, validation, and authority boundaries. Do not turn provider-specific tool calls into commands another agent is assumed to have. Keep credentials and unrelated transcript content out of reusable assets.

Compare the proposal with the

Полный SKILL.md на GitHub

Установить codex-session-learning в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlreferences/schema.md

FAQ

Что делает скилл codex-session-learning?

Turn past coding-agent debugging sessions into reusable bug-fix guidance, prompt templates, and validation rules. Use this skill when the user wants to learn from Codex or another agent's sessions, extract bug/postmortem cases, route future bug logs into stronger prompts, or build an explicit prompt-improvement loop instead of relying on hidden memory.

Как установить скилл codex-session-learning?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл codex-session-learning запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить codex-session-learning с