بنقرة واحدة
learnings
Manage project learnings — read and write gotchas, patterns, decisions, and discoveries to docs/learnings/
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Manage project learnings — read and write gotchas, patterns, decisions, and discoveries to docs/learnings/
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Find a git branch by Linear ticket ID prefix (e.g., STU-15)
Create or reuse a dedicated git worktree for a branch using a deterministic path layout
Create and maintain implementation progress documentation for a feature branch
Find the worktree path for a branch and create/reuse it when missing
Resolve a properly named git branch from a Linear ticket ID following the convention {type}/{ticket-id}-short-description
Push the current branch to the remote repository with upstream tracking
| name | learnings |
| description | Manage project learnings — read and write gotchas, patterns, decisions, and discoveries to docs/learnings/ |
This skill manages project learnings — insights, gotchas, patterns, and decisions discovered during development.
Learnings are stored in docs/learnings/ at the project root:
docs/learnings/
├── gotchas.md # Traps, pitfalls, things that bite you
├── patterns.md # "This is how we do X here"
├── decisions.md # Architectural/technical decisions and rationale
└── discoveries.md # TIL moments, how things work in this codebase
When categorizing a learning, use this guide:
| Category | Use When | Examples |
|---|---|---|
| Gotchas | Something unexpected that caused issues or could cause issues | Silent failures, implicit behavior, edge cases, misleading names |
| Patterns | A repeated way of doing things in this codebase | "Always use X for Y", naming conventions, preferred libraries |
| Decisions | A choice was made with explicit reasoning | "We use X instead of Y because Z", trade-offs, constraints |
| Discoveries | You learned how something works | Internal APIs, undocumented behavior, codebase structure |
If a learning fits multiple categories, pick the primary one. Don't duplicate.
Each learning is appended to the top of the relevant file (newest first):
## Short descriptive title
**Ticket:** ABC-123
**Date:** 2025-01-25
The actual learning content goes here. Be concise but complete.
Include file paths with line numbers when relevant (e.g., `src/auth/token.ts:42`).
---
When starting work (research, planning, implementation):
docs/learnings/ existsRelevance signals:
At the end of implementation or on-demand:
docs/learnings/ directory if it doesn't existWhen auto-extracting learnings from a session, look for:
Skip trivial learnings like:
If a learnings file doesn't exist, create it with this header:
# Gotchas
Things that might bite you. Check here before you get bitten.
---
(Adjust the title and description for each category)
gotchas.md:
# Gotchas
Things that might bite you. Check here before you get bitten.
---
patterns.md:
# Patterns
How we do things around here. Follow these for consistency.
---
decisions.md:
# Decisions
Technical decisions and their rationale. Know why before you change.
---
discoveries.md:
# Discoveries
How things work in this codebase. Tribal knowledge, written down.
---