ワンクリックで
session-distill
Extract project knowledge from the current session into docs/. Keeps docs current, atomic, and indexed.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Extract project knowledge from the current session into docs/. Keeps docs current, atomic, and indexed.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Create or update a GitHub PR for the current branch. It handles branch creation from main, rebases the full branch chain up to main, pushes with --force-with-lease, and generates a PR with a smart title and description focused on business rules and architecture changes. It can also screenshot the affected UI if the change touches frontend code.
Implement features and bugfixes using strict outside-in TDD. Each cycle traces back to requirements and design docs when available. It includes a deliberate refactoring phase and generates integration tests when a vertical slice is complete. It wires up BDD step definitions when feature files exist. It can receive a Linear issue as input, rebuilds docs (requirements, design, plan) from the issue into the repo before coding, and graduates them into permanent knowledge after the implementation is complete.
Create an implementation plan for an initiative. It references specific requirements and design decisions from docs/requirements/ and docs/design/, produces a plan in docs/plans/, and generates test cases traced back to requirements. It bridges "what to build" and "building it."
Record a "before/after" walkthrough video pair for a PR using Playwright. Trigger when the user asks to record a PR video, demo a fix, capture a UI walkthrough, or produce reviewer-facing media for a frontend or workflow change. Produces narrated mp4 (preferred for browser drag-drop into a PR description) and gif (committable to the repo so no browser is needed). Follows the team visual standard.
Split requirements, design specs, and plans into self-contained Linear issues targeting ~200-300 LOC each. It reads from the project's docs/requirements/, docs/design/, and docs/plans/, creates issues with the full spec embedded in the body, tags them with "agent issue", and creates an epic parent issue when more than two issues are generated. It deletes the repo docs files after the issues are created.
Review a PR or diff for architectural quality - SOLID principles, codebase consistency, dependency direction, error handling, data flow, test architecture, performance, and security. It reads the code review output for context, checks alignment with design docs, and produces actionable findings for the coding agent to fix.
| name | session-distill |
| description | Extract project knowledge from the current session into docs/. Keeps docs current, atomic, and indexed. |
| user_invocable | true |
Extract project-relevant knowledge from the current conversation and persist it into the docs/ folder. Keeps documentation current, atomic, and organized behind docs/index.md.
Before doing any work, check if this session produced knowledge worth distilling. Look for:
If none apply (quick config tweak, question-only session, non-project work), skip silently. Do not announce that you're skipping.
Scan the conversation and produce a mental list of knowledge atoms - self-contained facts worth persisting. For each atom, note:
| Type | What to look for |
|---|---|
| architecture | How components connect, data flow, system boundaries, protocols |
| decision | Choices made and WHY (e.g., "Django over FastAPI - company tech stack") |
| gotcha | Non-obvious behavior, workarounds, things that caused trouble |
| infrastructure | Deployment, tunnels, docker, secrets management, dev environment |
| component | New modules - purpose, interface, how to use them |
Before touching docs, scan the session for changes that might affect existing skills in .claude/skills/. Look for:
For each potential skill impact, ask the user before making any changes:
"This session changed [X]. The skill [skill-name] currently assumes [Y]. Should I update it?"
Do NOT update skills without explicit approval. Skills are shared across all projects and sessions - silent changes can have unintended effects.
If no skill impacts are found, move on silently.
Read docs/index.md (if it exists) to understand what documentation already exists.
For each knowledge atom:
/code-tdd skill's Step 8 handles the actual graduation). If /code-tdd was not used, flag the stale docs to the user and ask if they want you to graduate them now.docs/github/).After all changes, rebuild docs/index.md as a structured list of every doc file, grouped by category:
# Documentation Index
## Architecture
- [System Overview](architecture.md) - Components, data flow, Temporal workflows
## Development
- [Dev Environment](dev-environment.md) - 1Password setup, SSH tunnel, justfile
## Reference
- [Key Files](key-files.md) - Task-to-file navigation
- [Gotchas](gotchas.md) - Non-obvious patterns and pitfalls
Categories emerge from the content - don't force a fixed structure. Each entry has the file link and a one-line description (under 80 chars).
The index must include ALL .md files in docs/ (recursively), excluding any working artifacts (plans/specs) that are still pending.
After writing, do a quick check:
docs/index.md actually existsdocs/index.md when context is needed