com um clique
learn
Extract organizational patterns and conventions from repos + history
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Extract organizational patterns and conventions from repos + history
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Multi-slide bilingual brand carousels — Claude writes the deck, kun renders Anthropic-styled slides at exact platform sizes, a human approves, channels receive
Draft, stage, and publish brand social posts — Claude drafts, /higgs renders, a human approves, Hermes relays
Convert a file or URL to Markdown via MarkItDown (PDF, Office, images, audio, web)
Full pipeline — idea to production (chains every stage)
Autonomous block QA — detect, adversarially verify, fix safe tiers, hand the residual to a human
Technical spec — data model, file plan, refined acceptance criteria
| name | learn |
| description | Extract organizational patterns and conventions from repos + history |
| when_to_use | Use when extracting organizational intelligence — patterns, conventions, and team dynamics mined from git history and the databayt repos into memory; feeds the conventions/patterns/drift surfaces. Distinct from /analyze which generates a repo's Claude config. Triggers on: learn, what are our conventions, extract patterns from history. |
| argument-hint | [repo] [--since DATE] |
Extract patterns, conventions, team dynamics, and company knowledge from git history and code.
/learn — Full org scan (all databayt repos)/learn hogwarts — Deep dive into a single repo/learn team — People patterns and work dynamics/learn conventions — Code patterns only (candidate rules)/learn health — Velocity and quality metricsParse arguments:
team → people patternsconventions → code conventions onlyhealth → velocity metrics onlyList all repos:
gh repo list databayt --limit 50 --json name,pushedAt,isArchived --jq '.[] | select(.isArchived == false)'
For each active repo, extract:
gh api repos/databayt/<repo>/commits?per_page=100gh api repos/databayt/<repo>/contributorsgh api repos/databayt/<repo>/languagesCross-reference patterns:
Store insights in memory: ~/.claude/memory/learn_org_<date>.md
Report key findings to the user.
/learn <repo>)Navigate to repo (local path or clone):
cd /Users/abdout/<repo> # or gh repo clone databayt/<repo> /tmp/learn-<repo>
Git history analysis:
# Recent activity
git log --oneline -50
# Commit patterns
git log --format='%s' -100 | head -20
# Hotspot files
git log --format=format: --name-only -200 | sort | uniq -c | sort -rn | head -20
# Author activity
git log --format='%an' -200 | sort | uniq -c | sort -rn
# Fix:feature ratio
git log --oneline -200 | grep -c "feat:" ; git log --oneline -200 | grep -c "fix:"
Structure analysis:
# Directory layout
find . -type d -maxdepth 3 -not -path '*/node_modules/*' -not -path '*/.git/*' -not -path '*/.next/*'
# Key files
cat package.json | jq '{name, dependencies, devDependencies}'
ls -la prisma/schema.prisma 2>/dev/null
ls .claude/ 2>/dev/null
Convention extraction — read 5-10 representative files:
page.tsx — how pages are structuredactions.ts — how server actions are writtenStore in memory: ~/.claude/memory/learn_<repo>.md
Report: conventions found, drift from org patterns, health metrics.
/learn team)Scan all repos for author patterns:
for repo in hogwarts souq mkan shifa kun codebase; do
echo "=== $repo ==="
cd /Users/abdout/$repo 2>/dev/null && git log --since="3 months ago" --format='%an|%aI' | head -50
cd /Users/abdout
done
Build team map:
Store in memory: ~/.claude/memory/learn_team.md
/learn conventions)Sample files across repos — focus on patterns, not people:
Output as candidate rules (not memory — rules are actionable):
Observed: 94% of server actions follow auth→validate→execute→revalidate
→ Candidate rule: rules/server-actions.md
Observed: 100% use conventional commits
→ Already documented in CLAUDE.md ✓
Observed: 3 repos use barrel imports, 1 doesn't
→ Candidate rule: rules/no-barrel-imports.md (with migration note)
Ask user: "Found N candidate rules. Generate rule files? (Y/n)"
/learn health)Numbers only — across all repos:
| Repo | Commits/30d | Fix:Feat | Hotspot File | Last Push |
|-----------|-------------|----------|-------------------------|------------|
| hogwarts | 89 | 0.3 | src/app/admission/... | 2 hours |
| kun | 34 | 0.1 | .claude/agents/_index | 1 day |
| souq | 12 | 0.5 | src/components/cart/... | 1 week |
Trends: compare this month to last month.
Flags: repos with no activity > 2 weeks, high fix ratio, large commits.
All learn outputs go to ~/.claude/memory/ with type project:
---
name: learn_<scope>
description: Intelligence extracted from <scope> — <date>
type: project
---
<findings>
Update existing memory files rather than creating duplicates. Check MEMORY.md first.
Rule: Learn reads everything, remembers what matters, and makes every other agent smarter. Knowledge is the engine's fuel.