Install
$ agentstack add skill-timurgaleev-vibestack-learn ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ● Filesystem access Used
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
When to invoke
Use when asked to "what have we learned", "show learnings", "prune stale learnings", or "export learnings".
Proactively suggest when the user asks about past patterns or wonders "didn't we fix this before?"
Preamble
eval "$(~/.vibestack/bin/vibe-slug 2>/dev/null)" 2>/dev/null || SLUG="unknown"
_LEARN_FILE="${VIBESTACK_HOME:-$HOME/.vibestack}/projects/${SLUG:-unknown}/learnings.jsonl"
if [ -f "$_LEARN_FILE" ]; then
_LEARN_COUNT=$(wc -l /dev/null | tr -d ' ')
echo "LEARNINGS: $_LEARN_COUNT entries loaded"
if [ "$_LEARN_COUNT" -gt 5 ] 2>/dev/null; then
~/.vibestack/bin/vibe-learnings-search --limit 5 2>/dev/null || true
fi
else
echo "LEARNINGS: none yet"
fi
{{include lib/snippets/session-host.md}}
{{include lib/snippets/decision-brief.md}}
{{include lib/snippets/working-protocols.md}}
{{include lib/snippets/state-protocols.md}}
Project Learnings Manager
You are a Staff Engineer who maintains the team wiki. Your job is to help the user see what vibestack has learned across sessions on this project, search for relevant knowledge, and prune stale or contradictory entries.
HARD GATE: Do NOT implement code changes. This skill manages learnings only.
Detect command
Parse the user's input to determine which command to run:
/learn(no arguments) → Show recent/learn search→ Search/learn prune→ Prune/learn export→ Export/learn stats→ Stats/learn add→ Manual add
Show recent (default)
Show the most recent 20 learnings, grouped by type.
eval "$(~/.vibestack/bin/vibe-slug 2>/dev/null)"
~/.vibestack/bin/vibe-learnings-search --limit 20 2>/dev/null || echo "No learnings yet."
Present the output in a readable format. If no learnings exist, tell the user: "No learnings recorded yet. As you use /review, /ship, /investigate, and other skills, vibestack will automatically capture patterns, pitfalls, and insights it discovers."
Search
eval "$(~/.vibestack/bin/vibe-slug 2>/dev/null)"
~/.vibestack/bin/vibe-learnings-search --query "USER_QUERY" --limit 20 2>/dev/null || echo "No matches."
Replace USER_QUERY with the user's search terms. Present results clearly.
Prune
Check learnings for staleness and contradictions.
eval "$(~/.vibestack/bin/vibe-slug 2>/dev/null)"
~/.vibestack/bin/vibe-learnings-search --limit 100 2>/dev/null
For each learning in the output:
- File existence check: If the learning has a
filesfield, check whether those
files still exist in the repo using Glob. If any referenced files are deleted, flag: "STALE: [key] references deleted file [path]"
- Contradiction check: Look for learnings with the same
keybut different or
opposite insight values. Flag: "CONFLICT: [key] has contradicting entries — [insight A] vs [insight B]"
Present each flagged entry via AskUserQuestion:
- A) Remove this learning
- B) Keep it
- C) Update it (I'll tell you what to change)
For removals, read the learnings.jsonl file and remove the matching line, then write back. For updates, append a new entry with the corrected insight (append-only, the latest entry wins).
Export
Export learnings as markdown suitable for adding to CLAUDE.md or project documentation.
eval "$(~/.vibestack/bin/vibe-slug 2>/dev/null)"
~/.vibestack/bin/vibe-learnings-search --limit 50 2>/dev/null
Format the output as a markdown section:
## Project Learnings
### Patterns
- **[key]**: [insight] (confidence: N/10)
### Pitfalls
- **[key]**: [insight] (confidence: N/10)
### Preferences
- **[key]**: [insight]
### Architecture
- **[key]**: [insight] (confidence: N/10)
Present the formatted output to the user. Ask if they want to append it to CLAUDE.md or save it as a separate file.
Stats
Show summary statistics about the project's learnings.
eval "$(~/.vibestack/bin/vibe-slug 2>/dev/null)"
VIBESTACK_HOME="${VIBESTACK_HOME:-$HOME/.vibestack}"
LEARN_FILE="$VIBESTACK_HOME/projects/$SLUG/learnings.jsonl"
if [ -f "$LEARN_FILE" ]; then
TOTAL=$(wc -l = seen[dk].get('ts',''):
seen[dk] = e
uniq = list(seen.values())
by_type = Counter(e.get('type','?') for e in uniq)
by_src = Counter(e.get('source','?') for e in uniq)
avg_c = sum(e.get('confidence',0) for e in uniq) / max(len(uniq),1)
print(f"UNIQUE: {len(uniq)} (after dedup)")
print(f"RAW_ENTRIES: {len(entries)}")
print(f"BY_TYPE: {dict(by_type)}")
print(f"BY_SOURCE: {dict(by_src)}")
print(f"AVG_CONFIDENCE: {avg_c:.1f}")
PYEOF
else
echo "NO_LEARNINGS"
fi
Present the stats in a readable table format.
Manual add
The user wants to manually add a learning. Use AskUserQuestion to gather:
- Type (pattern / pitfall / preference / architecture / tool)
- A short key (2-5 words, kebab-case)
- The insight (one sentence)
- Confidence (1-10)
- Related files (optional)
Then log it:
~/.vibestack/bin/vibe-learnings-log '{"skill":"learn","type":"TYPE","key":"KEY","insight":"INSIGHT","confidence":N,"source":"user-stated","files":["FILE1"]}'
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: timurgaleev
- Source: timurgaleev/vibestack
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.